SelectionCount Property
Applies To
fpSpread control
Description
Returns the number of blocks selected. This property is available at run time only.
Syntax
C++
long CSpreadSheet::GetSelectionCount();
Visual Basic
[form.]fpSpread.SelectionCount
Remarks
Users can select multiple, discontiguous blocks of cells in the sheet given the following:
- If the AllowMultiBlocks property is set to True and the OperationMode property is set to 0 (Normal).
- If the OperationMode property is set to 4 (Multi Select) or 5 (Extended Select).
Use this property to return the number of selected blocks of cells. After returning the number of selected blocks, you can use the GetSelection method to retrieve each block.
This setting is returned for the current sheet setting unless you first set the Sheet property to specify the sheet for which you are returning the property.
Data Type
Long Integer
See Also
AllowMultiBlocks, OperationMode, Sheet properties
GetSelection method
DLL Correspondence
SSGetMultiSelBlocks function