System.Web.UI.WebControls Namespace Style Class
Sets or retrieves the color of the object's text.
Inline |
<asp:control ForeColor = strColor ... > |
Script |
Style.ForeColor [ = strColor ] |
strColor |
A System.Drawing.Color that represents the foreground color of the control, using any of the standard .NET color identifiers. See Color Table. |
This property is read/write and returns an empty string if not set.
ForeColor is used to specify the color of the textual content ( the foreground color ) of a Web server control. This property is set using a System.Drawing.Color object, the possible range of values of which are specified in this workshop's Color Table.
Style Members Base Web Control Properties