top
Expand Minimize
This topic has not yet been rated - Rate this topic

filter property

The IHTMLCSSStyleDeclaration::filter property is generally used to apply a previously define filter to an applicable element.

This property is read/write.

Internet Explorer 10

Syntax

HRESULT put_filter(
  [in]   DOMString val
);

HRESULT get_filter(
  [out]  DOMString **ptr
);

Property values

Type: DOMString

Remarks

Filter elements are never rendered directly; their only usage is as something that can be referenced using the IHTMLCSSStyleDeclaration::filter property. Be aware that filter elements are available for referencing even when the IHTMLCSSStyleDeclaration::display property on the filter element or any of its ancestors is set to none.

In the following example, a previously defined Gaussian_Blur filter (that is, filter:url(#Gaussian_Blur)"/>) is being applied to an SVG ellipse:


<ellipse cx="200" cy="150" rx="70" ry="40"
         style="fill:#ff0000; stroke:#000000;
         stroke-width:2; filter:url(#Gaussian_Blur)"/>

See also

Filter

 

 

Build date: 11/12/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.