Share via


IHTMLRuleStyle7::strokeWidth Property

New for Internet Explorer 9

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

Gets or sets a value that specifies the width of the stroke on the current object.

Syntax

HRESULT IHTMLRuleStyle7::get_strokeWidth(VARIANT *p);
HRESULT IHTMLRuleStyle7::put_strokeWidth(VARIANT v);

Parameters

  • p
    Pointer to a variable of type VARIANT that receives one of the values listed in Possible Values.
  • v
    VARIANT that specifies one of the values listed in Possible Values.

Possible Values

inherit Indicates that the property takes the same computed value as the property for the element's parent.
percentage An integer, followed by a % sign. The value is a percentage of the current viewport.
length 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 width of the stroke. (For more information about the supported length units, see CSS Length Units Reference.)

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

A length value of 0 causes no stroke to be painted. A negative value is an error.

See Also

IHTMLRuleStyle7::stroke, IHTMLRuleStyle7::strokeDasharray, IHTMLRuleStyle7::strokeDashoffset, IHTMLRuleStyle7::strokeLinecap, IHTMLRuleStyle7::strokeLinejoin, IHTMLRuleStyle7::strokeMiterlimit, IHTMLRuleStyle7::strokeOpacity