Show/Hide Toolbars

Inventu Viewer+ .NET Programmer's Reference

Navigation: HostScreen Class > Methods

copyRows Method

Scroll Prev Top Next More

Copy row data from one area of the screen to another.

 

bool HostScreen.copyRows(int fromRow, int toRow, int count);

 

Remarks

 

Will copy one or more rows within the active screen buffer.  This enables the use of a "scratch pad" at the top of the screen so that contents of some rows can be saved and restored, or possibly moved to other areas of the screen.

 

Note: both fromRow and toRow can be a higher value than the active top row, but an exception will be thrown if the offset of any portion of fromRow / toRow combined with count exceeds the maximum offset (currently equal to 4096).

 

One use can be to save the contents of one or more rows from a partial logical row for a multirow fieldmap where there are irregular rows on the screen (widow and orphans within a multirow map with a row height greater than 1), then restore that on the next screen during paging.

 

Requirements

 

Inventu Viewer+

 

Applies To: HostScreen object

 


© 2022 Inventu Corporation