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

TdxSpreadSheetPageControlTabDragAndDropEvent Type

The procedural type of a worksheet tab position change during a drag-and-drop operation.

#Declaration

Delphi
TdxSpreadSheetPageControlTabDragAndDropEvent = procedure(ASpreadSheet: TdxCustomSpreadSheet; AIndex: Integer; ANewIndex: Integer; var AAccepted: Boolean) of object;

#Parameters

Name Type
ASpreadSheet TdxCustomSpreadSheet
AIndex Integer
ANewIndex Integer
AAccepted Boolean

#Remarks

Use the ASpreadSheet parameter to access the Spreadsheet or Report Designer control that raised a TdxSpreadSheetPageControlTabDragAndDropEvent event. To access the control’s class-specific members, cast ASpreadSheet to the TdxSpreadSheet or TdxSpreadSheetReportDesigner class.

The AIndex and ANewIndex parameters return indexes that correspond to the source and target worksheet tab positions.

Assign False to the AAccepted parameter to prevent a dragged worksheet tab from moving to the position that corresponds to the ANewIndex index.

A spreadsheet control’s OnPageControlTabDragAndDrop event references the TdxSpreadSheetPageControlTabDragAndDropEvent procedural type.

See Also