LeftCol Property
Applies To
fpSpread control
Description
Sets or returns the number of the column to position as the leftmost column in the displayed sheet. This property is available at run time only.
Syntax
long CSpreadSheet::GetLeftCol( );
void CSpreadSheet::SetLeftCol(long value);
[form.]fpSpread.LeftCol[ = value&]
Remarks
Set the LeftCol property to a column number to position that column next to the left edge of the fpSpread control.
When the leftmost displayed column changes, the TopLeftChange event occurs.
If you set the ColsFrozen property to a value other than 0, the value returned using the LeftCol property will be the value of the leftmost scrolling column.
Note: Positioning a column using the LeftCol property does not affect the position of the active cell. |
This setting is applied to the current sheet setting unless you first set the Sheet property to specify the sheet for which you are setting the property.
Use the TopRow property to set or return the row to position as the topmost row in the displayed sheet.
Spread Designer
Choose the Sheet menu, then the Columns and Rows menu, select the Columns tab, and then choose or type a number in the Left Col spin box in the Settings-All Columns group box in the Column and Row Settings dialog box.
Notes: |
Data Type
Long Integer
See Also
Designating the Leftmost Column to Display
ColsFrozen, Sheet, TopRow properties
TopLeftChange event
DLL Correspondence
SSGetTopLeftCell, SSShowCell functions