Skip to main content

TdxSpreadSheetPageControlTabDragAndDropEvent Type

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

Declaration

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