TXTextControl.Selection.ForeColor Property

Returns or sets the color used to display the selected text.


public Color ForeColor { get; set; }
[Visual Basic]
Public Property ForeColor() As Color


The property's default value is the system color for window text.

The property returns its default value when the text selection contains multiple characters with mixed colors. The Selection.IsCommonValueSelected method can be used to check for mixed attributes.


Runtime only.

See Also