IHTMLRuleStyle7::fill 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 the interior of the given graphical element.

Syntax

HRESULT IHTMLRuleStyle7::get_fill(BSTR *p);
HRESULT IHTMLRuleStyle7::put_fill(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 Indicates that no paint is applied.
currentColor Indicates that painting is done using the current animated value of the color specified by the IHTMLStyle::color property. This enables sharing of color attributes between parent grammars such as other XML—for example, non-Scalable Vector Graphics (SVG). This keyword enables you to define a style in your HTML that sets the IHTMLStyle::color property and then pass 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 that are 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 it is provided. Otherwise, the document is in error.

Return Value

Returns S_OK if successful, or an error value otherwise.

See Also

IHTMLRuleStyle7::stroke