TdxSpreadSheetTableView.CanClearCells Method
Identifies if it is possible to clear the current cell selection.
Declaration
function CanClearCells: Boolean; overload; virtual;
Returns
Type | Description |
---|---|
Boolean | True if it is possible to clear selected cells; otherwise, False. |
Remarks
The function returns True only if the following conditions are met:
Cell edit operations are allowed (that is, the Spreadsheet control’s OptionsBehavior.Editing property is set to True).
The selected cell or cell range is editable (that is, the worksheet protection is disabled).
Otherwise, the CanClearCells function returns False.
Note
The CanClearCells function returns True if the worksheet is protected but the Style.Locked property is set to False for one or more cells in the target cell range.
See Also