Class TUndoSubdivide

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TUndoSubdivide = class(TCustomUndoChangeGridDimensions)

Description

TUndoSubdivide is used to subdivide columns, rows, or layers.

Hierarchy

Overview

Fields

Private FColumnCount: integer;
Private FFirstColumn: integer;
Private FFirstLayer: integer;
Private FFirstRow: integer;
Private FLastColumn: integer;
Private FLastLayer: integer;
Private FLastRow: integer;
Private FLayerCount: integer;
Private FRowCount: integer;

Methods

Protected function Description: string; override;
Protected procedure Recombine(const Count, OldPosition: integer; var AnArray: TOneDRealArray);
Protected procedure Subdivide(const Count, OldPosition: integer; var AnArray: TOneDRealArray);
Public procedure DoCommand; override;
Public procedure Undo; override;

Properties

Public property ColumnCount: integer read FColumnCount write FColumnCount;
Public property FirstColumn: integer read FFirstColumn write FFirstColumn;
Public property FirstLayer: integer read FFirstLayer write FFirstLayer;
Public property FirstRow: integer read FFirstRow write FFirstRow;
Public property LastColumn: integer read FLastColumn write FLastColumn;
Public property LastLayer: integer read FLastLayer write FLastLayer;
Public property LastRow: integer read FLastRow write FLastRow;
Public property LayerCount: integer read FLayerCount write FLayerCount;
Public property RowCount: integer read FRowCount write FRowCount;

Description

Fields

Private FColumnCount: integer;

FColumnCount: integer; See ColumnCount.

Private FFirstColumn: integer;

FFirstColumn: integer; See FirstColumn.

Private FFirstLayer: integer;

FFirstLayer: integer; See FirstLayer.

Private FFirstRow: integer;

FFirstRow: integer; See FirstRow.

Private FLastColumn: integer;

FLastColumn: integer; See LastColumn.

Private FLastLayer: integer;

FLastLayer: integer; See LastLayer.

Private FLastRow: integer;

FLastRow: integer; See LastRow.

Private FLayerCount: integer;

FLayerCount: integer; See LayerCount.

Private FRowCount: integer;

FRowCount: integer; See RowCount.

Methods

Protected function Description: string; override;

See TCustomUndo.Description.

Protected procedure Recombine(const Count, OldPosition: integer; var AnArray: TOneDRealArray);

Recombine rejoins several columns, rows, or layers that have been subdivided into a single column, row, or layer.

Parameters
Count
is the number of columns, rows, or layers to combine
OldPosition
is the index of the first of the columns, rows, or layers to be recombined.
Protected procedure Subdivide(const Count, OldPosition: integer; var AnArray: TOneDRealArray);

Subdivide subdivides a column, row, or layer.

Parameters
Count
is the number of columns, rows, or layers in which to subdivide the selected column, row, or layer.
OldPosition
is the index of the first of the column, row, or layer to be recombined.
Public procedure DoCommand; override;

DoCommand subdivides the selected columns, rows, and layers.

Public procedure Undo; override;

Undo recombines the selected columns, rows, and layers.

Properties

Public property ColumnCount: integer read FColumnCount write FColumnCount;

ColumnCount is the number of columns each selected column should be divided into. If columns will not be subdivided, ColumnCount is zero.

Public property FirstColumn: integer read FFirstColumn write FFirstColumn;

FirstColumn is the first column to subdivide.

Public property FirstLayer: integer read FFirstLayer write FFirstLayer;

FirstLayer is the first layer to subdivide.

Public property FirstRow: integer read FFirstRow write FFirstRow;

FirstRow is the first row to subdivide.

Public property LastColumn: integer read FLastColumn write FLastColumn;

LastColumn is the last column to subdivide.

Public property LastLayer: integer read FLastLayer write FLastLayer;

LastLayer is the last layer to subdivide.

Public property LastRow: integer read FLastRow write FLastRow;

LastRow is the last row to subdivide.

Public property LayerCount: integer read FLayerCount write FLayerCount;

LayerCount is the number of layers each selected layer should be divided into. If layers will not be subdivided, LayerCount is zero.

Public property RowCount: integer read FRowCount write FRowCount;

RowCount is the number of rows each selected row should be divided into. If rows will not be subdivided, RowCount is zero.


Generated by PasDoc 0.12.1 on 2013-05-13 15:42:06