Share via


IHTMLRuleStyle7::stroke Property

New for Internet Explorer 9

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

Gets or sets a value that indicates the color to paint along the outline of a given graphical element.

Syntax

HRESULT IHTMLRuleStyle7::get_stroke(BSTR *p);
HRESULT IHTMLRuleStyle7::put_stroke(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 paint is applied.
currentColor Indicates that painting is done using the current animated value of the color specified by the color property. This enables sharing of color attributes between parent grammars, such as other, non-Scalable Vector Graphics (SVG), XML. This keyword enables you to define a style in your HTML that sets the color property. The keyword then passes that style to Internet Explorer so that your SVG text will draw in the same color.
inherit Indicates that the property takes the same computed value as the property for the element's parent.
color Indicates the explicit color to be used to paint the current object. Internet Explorer 9 supports all the syntax alternatives for the Cascading Style Sheets (CSS) color property. (For a table of colors in CSS, see Color Table.) Internet Explorer 9 also supports the color keyword names recognized by SVG.
funciri Indicates an Internationalized Resource Identifier (IRI) reference to a paint server such as a gradient or a pattern. If the IRI reference is not valid (for example, it points to an object that does not exist or the object is not a valid paint server), the paint method following the funciri (for example, none, currentColor, or color) is used if provided. Otherwise, the document is in error.

Return Value

Returns S_OK if successful, or an error value otherwise.

See Also

IHTMLRuleStyle7::strokeDasharray, IHTMLRuleStyle7::strokeDashoffset, IHTMLRuleStyle7::strokeLinecap, IHTMLRuleStyle7::strokeLinejoin, IHTMLRuleStyle7::strokeMiterlimit, IHTMLRuleStyle7::strokeOpacity, IHTMLRuleStyle7::strokeWidth, IHTMLRuleStyle7::fill