Colproperty
Returns or sets the coordinates of the active cell in an MSHFlexGrid.
No implementation located. This member is documented, but the source scan found no matching declaration. It is likely declared in a header this scan does not resolve, or provided by a macro.
Syntax
PROPERTY Col () AS LONG
PROPERTY Col (BYVAL nCol AS LONG)
Parameters
| Name | Description | |
|---|---|---|
nCol | The column position of the active cell. Column indices start at 0. If the grid has one fixed column, the first scrollable data column is typically index 1. |
Description
Returns or sets the column position of the active cell or the start of a selection.
Remarks
This property identifies the horizontal position of the active cell or the start of a selection.
To modify a cell’s value without changing the selected Row and Col properties, use the TextMatrix property.
Example
' Move the active focus to the second column grid.Col = 1
' The following property now applies to the cell at current Row/Col grid.CellForeColor = vbRed
Reference
- Documented in Windows/Windows GUI/MSHFlexGrid Class.md
- Topic: Microsoft Hierarchical Grid