HtmlTableCell::BorderColor Property
Gets or sets the border color of the cell represented by an instance of the HtmlTableCell class.
Assembly: System.Web (in System.Web.dll)
<asp:HtmlTableCell BorderColor="String" />
Property Value
Type: System::StringThe border color of the cell represented by an instance of HtmlTableCell.
Use the BorderColor property to specify the border color of the cell represented by an instance of the HtmlTableCell class. 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 BorderColor property. For more information on HTML colors, see the World Wide Web Consortium (W3C) Web site.
Color name | Hexadecimal value |
|---|---|
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 BorderColor property can be determined from the KnownColor enumeration.
Color names are case-insensitive.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.