Gets or sets the background color of the System.Web.UI.HtmlControls.HtmlTable control.
Documentation for this section has not yet been entered.
Use the HtmlTable.BgColor property to specify the background color of the System.Web.UI.HtmlControls.HtmlTable control. You can specify a color either by name or by using a hexadecimal value, preceded by the pound character (#), in the form #RRGGBB. RR, GG, and BB represent hexadecimal values from 0 to 255 that indicate the red, green, and blue components of a color, respectively. For example, the value #0000FF represents the color blue. It specifies the minimum value (00) for the red and green components, while specifying the maximum value (FF) for the blue component.
The following table shows the sixteen predefined HTML color names and corresponding hexadecimal values that can be used for the HtmlTable.BgColor property. For more information on HTML colors, see the tp://go.microsoft.com/fwlink/?linkid=37125.
Aqua |
#00FFFF |
Black |
#000000 |
Blue |
#0000FF |
Fuchsia |
#FF00FF |
Gray |
#808080 |
Green |
#008000 |
Lime |
#00FF00 |
Maroon |
#800000 |
Navy |
#000080 |
Olive |
#808000 |
Purple |
#800080 |
Red |
#FF0000 |
Silver |
#C0C0C0 |
Teal |
#008080 |
White |
#FFFFFF |
Yellow |
#FFFF00 |
The available colors for use with the HtmlTable.BgColor property can be determined from the System.Drawing.KnownColor enumeration.
Color names are case-insensitive.