AddSelection Method
Applies To
fpSpread control
Description
Selects a block of cells if the AllowMultiBlocks property is set to True.
Syntax
void CSpreadSheet::AddSelection(long lCol, long lRow, long lCol2, long lRow2);
fpSpread1.AddSelection(ByVal lCol As Long, ByVal lRow As Long, ByVal lCol2 As Long, ByVal lRow2 As Long)
Parameters
The following parameters are available:
Parameter | Description |
---|---|
lCol | Left column coordinate of the block reference |
lRow | Top row coordinate of the block reference |
lCol2 | Right column coordinate of the block reference |
lRow2 | Bottom row coordinate of the block reference |
Remarks
Set the AllowMultiBlocks property to True to let the user select multiple blocks of cells. Use this method to add additional blocks of selected cells. The additional blocks can be contiguous with, overlap, or be separate from existing selected blocks.
This method is called for the current sheet setting unless you first set the Sheet property to specify the sheet with which you want to work.
Return Type
None
See Also
AllowMultiBlocks, Sheet properties
ClearSelection, GetSelection, SetSelection methods
DLL Correspondence
SSAddMultiSelBlocks function