Rediger

Del via


StyleSheet.ForeColor Property

Definition

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.

public:
 virtual property System::Drawing::Color ForeColor { System::Drawing::Color get(); void set(System::Drawing::Color value); };
[System.ComponentModel.Bindable(false)]
[System.ComponentModel.Browsable(false)]
public override System.Drawing.Color ForeColor { get; set; }
[<System.ComponentModel.Bindable(false)>]
[<System.ComponentModel.Browsable(false)>]
member this.ForeColor : System.Drawing.Color with get, set
Public Overrides Property ForeColor As Color

Property Value

The foreground Color of the control.

Attributes

Exceptions

The ForeColor property was accessed at run time.

-or-

An attempt was made to set the property.

Remarks

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

Applies to

See also