IHTMLStyle7::stopColor Property

New for Internet Explorer 9

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

Gets or sets a value that indicates what color to use at the current gradient stop.


HRESULT IHTMLStyle7::get_stopColor(VARIANT *p);
HRESULT IHTMLStyle7::put_stopColor(VARIANT v);


  • 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

currentColor Indicates that painting at this gradient stop 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 at the gradient stop. Internet Explorer 9 supports all the syntax alternatives for the Cascading Style Sheets (CSS) color property. (For the CSS color table, see Color Table.) Internet Explorer 9 also supports the color keyword names that are recognized by SVG. An International Color Consortium (ICC) color specification can also be indicated, following the explicit color.

Return Value

Returns S_OK if successful, or an error value otherwise.