Help Center

CellFontSizeproperty

Returns or sets the size, in points, for the current cell text.

Windowspropertydoc-orphan
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 CellFontSize () AS SINGLE
PROPERTY CellFontSize (BYREF nSize AS SINGLE)

Parameters

NameDescription
nSizethe size of the current cell text.

Description

Returns or sets the size, in points, for the current cell text.

Examples

grid.Row = 2 ' Selects the 3rd row (index 2) grid.Col = 3 ' Selects the 4th column (index 3) grid.CellFontSize = 14 ' Sets font size to 14pt grid.CellFontName = "Arial" ' Optionally change font name grid.CellFontBold = True ' Optionally make it bold

grid.Col = 1 ' Selects the 2nd column For intCounter As Long = 0 To grid.Rows - 1 grid.Row = intCounter grid.CellFontSize = 10 ' Set font size for all cells in this column Next

For specific cells: For an entire column:

Reference