Share via


IHTMLRuleStyle7::strokeDasharray Property

New for Internet Explorer 9

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

Gets or sets one or more values that indicate the pattern of dashes and gaps used to stroke paths.

Syntax

HRESULT IHTMLRuleStyle7::get_strokeDasharray(BSTR *p);
HRESULT IHTMLRuleStyle7::put_strokeDasharray(BSTR v);

Parameters

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

Possible Values

none Default. Indicates that no dashed lines are used. If stroked, the line is drawn solid.
inherit Indicates that the property takes the same computed value as the property for the element's parent.
dasharray A list of comma or white space separated lengths (which can have a unit identifier) and percentages that specify the lengths of alternating dashes and gaps. If an odd number of values is provided, the list of values is repeated to yield an even number of values. A percentage represents a distance as a percentage of the current viewport. A negative value is an error. If the sum of the values is zero, the stroke is rendered as if a value of none was specified.

Return Value

Returns S_OK if successful, or an error value otherwise.

See Also

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