Share via


IHTMLStyle7::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 IHTMLStyle7::get_strokeWidth(VARIANT *p);
HRESULT IHTMLStyle7::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

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