Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxSpreadSheetScrollEvent Type

The type of worksheet scroll notification events that occur in the Spreadsheet and Report Designer controls.

#Declaration

Delphi
TdxSpreadSheetScrollEvent = procedure(Sender: TdxCustomSpreadSheet; AScrollBarKind: TScrollBarKind; AFirstScrollablePosition: Integer) of object;

#Parameters

Name Type
Sender TdxCustomSpreadSheet
AScrollBarKind TScrollBarKind
AFirstScrollablePosition Integer

#Remarks

The Sender parameter specifies the Spreadsheet or Report Designer control instance that fired the event. To access control-specific members via the Sender parameter, cast it to the TdxSpreadSheet or TdxSpreadSheetReportDesigner type, respectively.

The AScrollBarKind parameter specifies the worksheet scrolling direction – horizontally (i.e., by columns) or vertically (by rows). To identify the column or row (by its zero-based index) located at the scrollable area’s top or left border, respectively, use the AFirstScrollablePosition parameter:

If a number of columns and/or rows is frozen within the active worksheet, the first scrollable column and/or row does not match the first visible column and/or row, respectively. In this case, the AFirstScrollablePosition parameter indicates the row or column that adjoins the frozen rows or columns, depending on the scrolling direction:

The TdxSpreadSheetScrollEvent type is referenced by the OnScroll event declared in the TdxCustomSpreadSheet class.

See Also