Table of Contents

TTMSFNCDataGrid.AutoFill Method

Fills a target range by extending the data pattern from the source range (Excel-style fill handle behaviour).

API unit family: TMSFNCDataGrid Declaring type: TTMSFNCDataGrid Inherited from: TTMSFNCCustomDataGrid

Syntax

procedure AutoFill(const ASourceStart: TTMSFNCDataGridCellCoord; const ASourceEnd: TTMSFNCDataGridCellCoord; const ATargetStart: TTMSFNCDataGridCellCoord; const ATargetEnd: TTMSFNCDataGridCellCoord; const ADirection: TTMSFNCDataGridDataAutoFillDirection = gafdAuto);

Parameters

Name Description
ASourceStart Top-left cell of the source pattern range.
ASourceEnd Bottom-right cell of the source pattern range.
ATargetStart Top-left cell of the range to fill.
ATargetEnd Bottom-right cell of the range to fill.
ADirection Fill direction; gafdAuto detects direction from the target relative to the source.