TTMSFNCDataGridCellHelper Class
Class helper that adds safe down-cast properties to TTMSFNCDataGridCell, eliminating the need for explicit type-checks and casts.
API unit family: TMSFNCDataGridCell
Syntax
TTMSFNCDataGridCellHelper = class
Remarks
Always check the corresponding Is* property before accessing an As* property to avoid nil access violations.
Properties
| Name | Description |
|---|---|
| AsBitmapCell | Returns the cell cast to TTMSFNCDataGridBitmapCell, or nil when IsBitmapCell is False. |
| AsButtonCell | Returns the cell cast to TTMSFNCDataGridButtonCell, or nil when IsButtonCell is False. |
| AsCheckBoxCell | Returns the cell cast to TTMSFNCDataGridCheckBoxCell, or nil when IsCheckBoxCell is False. |
| AsCheckedCell | Returns the cell cast to TTMSFNCDataGridCheckedCell, or nil when IsCheckedCell is False. |
| AsFNCButtonCell | Returns the cell cast to TTMSFNCDataGridFNCButtonCell, or nil when IsFNCButtonCell is False. |
| AsNodeCell | Returns the cell cast to TTMSFNCDataGridNodeCell, or nil when IsNodeCell is False. |
| AsProgressBarCell | Returns the cell cast to TTMSFNCDataGridProgressBarCell, or nil when IsProgressBarCell is False. |
| AsRadioButtonCell | Returns the cell cast to TTMSFNCDataGridRadioButtonCell, or nil when IsRadioButtonCell is False. |
| IsBitmapCell | True when this cell is an instance of TTMSFNCDataGridBitmapCell. |
| IsButtonCell | True when this cell is an instance of TTMSFNCDataGridButtonCell. |
| IsCheckBoxCell | True when this cell is an instance of TTMSFNCDataGridCheckBoxCell. |
| IsCheckedCell | True when this cell is an instance of TTMSFNCDataGridCheckedCell. |
| IsFNCButtonCell | True when this cell is an instance of TTMSFNCDataGridFNCButtonCell. |
| IsNodeCell | True when this cell is an instance of TTMSFNCDataGridNodeCell. |
| IsProgressBarCell | True when this cell is an instance of TTMSFNCDataGridProgressBarCell. |
| IsRadioButtonCell | True when this cell is an instance of TTMSFNCDataGridRadioButtonCell. |