CellAlignmentproperty
Returns or sets a value that determines the horizontal and vertical alignment of data within the current cell.
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 CellAlignment () AS SHORT
PROPERTY CellAlignment (BYVAL nAlignment AS SHORT)
Parameters
| Name | Description | |
|---|---|---|
nALignment | An integer or constant that specifies how text should be aligned within the current cell. |
Description
Returns or sets the horizontal and vertical alignment of text within the currently selected cell or range of cells.
Example
grid.FillStyle = flexFillRepeat grid.Row = 1: grid.Col = 1 ' Start of range grid.RowSel = 5: grid.ColSel = 5 ' End of range grid.CellAlignment = flexAlignCenterCenter grid.FillStyle = flexFillSingle ' Reset to default
Reference
- Documented in Windows/Windows GUI/MSHFlexGrid Class.md
- Topic: Microsoft Hierarchical Grid