Share via


IHTMLRuleStyle7::borderRadius Property

New for Internet Explorer 9

[This documentation is preliminary and is subject to change.]

Gets or sets one or more values that define the radii of a quarter ellipse that defines the shape of the corners for the outer border edge of the current box.

Syntax

HRESULT IHTMLRuleStyle7::get_borderRadius(BSTR *p);
HRESULT IHTMLRuleStyle7::put_borderRadius(BSTR v);

Parameters

  • p
    Pointer to a variable of type BSTR that receives one or more radius values, separated by a slash ("/").
  • v
    BSTR that specifies one or more radius values, separated by a slash ("/").

Possible Values

radius A floating-point number, followed by either an absolute units designator (cm, mm, in, pt, or pc) or a relative units designator (em, ex, or px), that indicates the radius. For more information about the supported length units, see CSS Length Units Reference.
percentage An integer, followed by a %. The value is a percentage of, for horizontal radii, the width of the border box, or for vertical radii, the height of the border box.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

The IHTMLRuleStyle7::borderRadius property is a composite property that specifies up to four border-*-radius properties. If values are given before and after the slash, the values before the slash set the horizontal radius and the values after the slash set the vertical radius. If there is no slash, the values set both radii equally. The four values for each radii are given in the following order: top-left, top-right, bottom-right, bottom-left. If the bottom-left value is omitted, the value is the same as the top-right value. If the bottom-right value is omitted, the value is the same as the top-left value. If the top-right value is omitted, the value is the same as the top-left value.

See Also

IHTMLRuleStyle7::borderTopRightRadius, IHTMLRuleStyle7::borderBottomLeftRadius, IHTMLRuleStyle7::borderBottomRightRadius, IHTMLRuleStyle7::borderTopLeftRadius