TcxContainerStyle.TextStyle Property
Specifies a set of font attributes applied to text in the affected control.
Declaration
property TextStyle: TFontStyles read; write;
Property Value
Type | Description |
---|---|
TFontStyles | The set of font attribute flags applied to text in the affected control. |
Remarks
You can use Font, TextColor, and TextStyle
properties to customize text appearance in the affected control.
The Font property allows you to customize general font settings, such as size, typeface, and pitch. TextColor and TextStyle
properties specify text color and font attributes applied to text in the affected control.
Font Attribute Flags
The TextStyle
property value can include any number of the following flags in any combination:
Flag | Description |
---|---|
fsBold |
The bold font attribute is applied to text. |
fsItalic |
The italic font attribute is applied to text. |
fsUnderline |
Text is underlined. |
fsStrikeOut |
A horizontal line crosses text. |
Style Setting Modification Flag
Any TextStyle
property value change adds the csvTextStyle
flag to the AssignedValues property. To restore the default TextStyle
property value, remove the csvTextStyle
flag.
To restore all default style settings simultaneously, call the RestoreDefaults procedure.
Default Value
The TextStyle
property’s default value is []
.