Help Center

CellFontUnderlineproperty

Returns or sets a value that specifies if the underline style is applied to 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 CellFontUnderline () AS BOOLEAN
PROPERTY CellFontUnderline (BYVAL bUnderline AS VARIANT_BOOL)

Parameters

NameDescription
bUnderlineTrue to set the attribute; False, othewise

Description

Returns or sets a value that specifies if the underline style is applied to the current cell text.

Example

' 1. Set the desired cell as the target for the next font modifications grid.Row = 1 ' Example: target row 1 grid.Col = 2 ' Example: target column 2

' 2. Access the CellFont property and set its Underline attribute to True grid.CellFont->Underline = True

' Optional: You can also change other font properties in the same way grd.CellFont->Bold = True grid.CellFont->Italic = True grid.CellFont->Size = 12 grid.CellFont->Name = "Arial"

This method modifies the font properties of the cell specified by the current Row and Col properties.

Reference