Back to Devexpress

Workbook.ScrollPositionChanged Event

officefileapi-devexpress-dot-spreadsheet-dot-workbook-d3276c1e.md

latest3.4 KB
Original Source

Workbook.ScrollPositionChanged Event

Occurs when the scroll position changes in a worksheet.

You need a license for the DevExpress Office File API Subscription or DevExpress Universal Subscription to use this event in production code.

Namespace : DevExpress.Spreadsheet

Assembly : DevExpress.Docs.v25.2.dll

NuGet Package : DevExpress.Document.Processor

Declaration

csharp
public event ScrollPositionChangedEventHandler ScrollPositionChanged
vb
Public Event ScrollPositionChanged As ScrollPositionChangedEventHandler

Event Data

The ScrollPositionChanged event's data class is ScrollPositionChangedEventArgs. The following properties provide information specific to this event:

PropertyDescription
ColumnIndexGets the index of the left-most column of the currently visible area.
RowIndexGets the index of the top row of the currently visible area.

Remarks

The ScrollPositionChanged event occurs in the following cases:

Handle this event to determine the name of the worksheet being scrolled and obtain the column and row indexes of the top-left cell of the currently visible area. If a worksheet contains frozen rows and columns, the ColumnIndex and RowIndex properties of the ScrollPositionChangedEventArgs class return indexes of the top-left cell of the currently visible scrollable area.

Note

This event does not occur by default. The event fires only if the WorkbookEventOptions.RaiseOnModificationsViaAPI property is true.

Implements

ScrollPositionChanged

See Also

Workbook Class

Workbook Members

DevExpress.Spreadsheet Namespace