borderColor property
Specifies the border color of the object.
![]() |
Syntax
Integer value = object.put_borderColor( v);Integer value = object.get_borderColor(* sColor);
Property values
Type: BSTR
one or more of the space-delimited values listed in Possible Values.transparent (transparent)
-
Border is transparent.
color (color)
-
Up to four color names or RGB values in the Color Table.
String format
[
<color>
| currentColor | transparent ]
{1,4}
| inherit
CSS information
| Applies To | All elements |
|---|---|
| Media | visual |
| Inherited | no |
| Initial Value | see individual properties |
Standards information
- CSS Backgrounds and Borders Module Level 3, Section 4.1
Remarks
The IHTMLCurrentStyle::borderColor property is a shorthand for the following properties:
- IHTMLCurrentStyle::borderTopColor
- IHTMLCurrentStyle::borderRightColor
- IHTMLCurrentStyle::borderBottomColor
- IHTMLCurrentStyle::borderLeftColor
Up to four different colors can be specified in the following order: top, right, bottom, left.
- If one color is supplied, it is used for all four sides.
- If two colors are supplied, the first is used for the top and bottom, and the second is used for left and right.
- If three colors are supplied, they are used for top, right and left, and bottom, respectively.
The IHTMLCurrentStyle::borderColor property does not render if the IHTMLCurrentStyle::borderStyle property is set to none.
Some browsers do not recognize color names, but all browsers should recognize RGB color values and display them correctly.
Requirements
|
Minimum supported client | Windows XP |
|---|---|
|
Minimum supported server | Windows Server 2003 |
|
Header |
|
|
IDL |
|
|
DLL |
|
See also
Build date: 11/12/2012
