TX Text Control .NET for Windows Forms Documentation

Selection.ForeColor Property

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

Syntax

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

Remarks

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.

Limitations

Runtime only.

See Also

 
 
 

Products

Support

Downloads

Corporate

Buy Now