The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
How can I get the range of cells being painted in the onPaint event?
RangeInfoToRectangle is giving me a much larger range. For example, if I programmatically go to the end of the spreadsheet then the call to this.RectangleToRangeInfo(e.ClipRectangle), returns the entire spreadsheet from column 1 to my max number of columns.
Thanks,
Steve
I believe I''ve answered it.
this.ViewLayout.RectangleToClientRowCol(e.ClipRectangle.... should give just the viewable cells being painted, correct?
STSteveJanuary 11, 2005 06:25 PM UTC
Nevermind, that didn''t work after I scolled.
What method should I use in the onPaint event to get the range of cells being painted?
Thanks,
Steve
ADAdministrator Syncfusion Team January 11, 2005 06:33 PM UTC
I think you do need to use this.ViewLayout.RectangleToClientRowCol.
But this gives you the client row/col range (not absolute row/col). Once you have the client row/col range, you can add grid.LeftColIndex and grid.TopRowIndex to get the range I think you are looking for.