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 the www.asp.net/mobile Web site.

Namespace:   System.Web.UI.MobileControls
Assembly:  System.Web.Mobile (in System.Web.Mobile.dll)

public:
[BindableAttribute(false)]
[BrowsableAttribute(false)]
property Color ForeColor {
	virtual Color get() override;
	virtual void set(Color value) override;
}

Property Value

Type: System.Drawing::Color

The foreground Color of the control.

Exception Condition
Exception

The ForeColor property was accessed at run time.

-or-

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.

.NET Framework
Available since 1.1
Return to top
Show: