Partager via


borderRightStyle property

Specifies the style of the right border of the object.

 

Syntax

Integer value = object.put_borderRightStyle(BSTR v);Integer value = object.get_borderRightStyle(BSTR* sStyle);

Property values

Type: BSTR

none (none)

Default. No border is drawn, regardless of any specified IHTMLCurrentStyle::borderWidth.

hidden (hidden)

Internet Explorer 8. Same as none, except in terms of conflict resolution of collapsed borders. Any element with a hidden border suppresses all shared borders at that location. Borders with a style of none have the lowest priority.

dotted (dotted)

Border is a dotted line.

dashed (dashed)

Border is a dashed line.

solid (solid)

Border is a solid line.

double (double)

Border is a double line drawn on top of the background of the object. The sum of the two single lines and the space between equals the IHTMLCurrentStyle::borderWidth value. The border width must be at least 3 pixels wide to draw a double border.

groove (groove)

3-D groove is drawn in colors based on the value.

ridge (ridge)

3-D ridge is drawn in colors based on the value.

inset (inset)

3-D inset is drawn in colors based on the value.

outset (outset)

3-D outset is drawn in colors based on the value.

window-inset (window-inset)

Internet Explorer 6 and later. Same as inset with a thin outside border.

String format

none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset | window-inset

CSS information

Applies To All elements
Media visual
Inherited no
Initial Value none

Standards information

Remarks

A IHTMLCurrentStyle::borderWidth greater than 0 must be set for the IHTMLCurrentStyle::borderRightStyle attribute to render.

Examples

This example uses IHTMLCurrentStyle::borderRightStyle to specify the right border style for a div element.

<body>
   <div id="right"></div> 
</body>

The CSS below specifies double as the default border style for div elements, then sets IHTMLCurrentStyle::borderRightStyle to solid for the specific div element. The following image shows the result, a solid right border.

div {
   width: 50px;
   height: 50px;
   border-width: 5px;
   border-style: double;
   border-color: #4169E1;           
}
#right {
   border-right-style: solid;
}

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IHTMLRuleStyle::border

IHTMLCurrentStyle::borderTopStyle

IHTMLCurrentStyle::borderBottomStyle

IHTMLCurrentStyle::borderLeftStyle