Gets or sets a value that indicates the color to paint the interior of the given graphical element.
HRESULT IHTMLCSSStyleDeclaration::get_fill(BSTR *p);HRESULT IHTMLCSSStyleDeclaration::put_fill(BSTR v);
- Pointer to a variable of type BSTR that receives one of the values listed in Possible Values.
- BSTR that specifies one of the values listed in 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 the client 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,
currentColor, or color) is used if it is provided. Otherwise, the document is in error.
Returns S_OK if successful, or an error value otherwise.