StyleSheet.ForeColor Property


Gets or sets the specified foreground color for the style. Typically, this property sets the color for the text. The default value is Empty. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

 virtual property System::Drawing::Color ForeColor { System::Drawing::Color get(); void set(System::Drawing::Color value); };
public override System.Drawing.Color ForeColor { get; set; }
member this.ForeColor : System.Drawing.Color with get, set
Public Overrides Property ForeColor As Color

Property Value

The foreground Color of the control.



The ForeColor property was accessed at run time.


An attempt was made to set the property.


You can use the ForeColor property to display text in a different color. For more information, see MobileControl.ForeColor.

Applies to

See also