StyleSheet::ForeColor Property
.NET Framework (current version)
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.
Assembly: System.Web.Mobile (in System.Web.Mobile.dll)
| 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
Available since 1.1
Styles
ForeColor
StyleSheet Class
System.Web.UI.MobileControls Namespace
Introduction to the StyleSheet Control
Show: