BitmapEffectInput.AreaToApplyEffect Property

Gets or sets a rectangular region on the visual to which the BitmapEffect is applied.

Namespace: System.Windows.Media.Effects
Assembly: PresentationCore (in presentationcore.dll)
XML Namespace:

public Rect AreaToApplyEffect { get; set; }
/** @property */
public Rect get_AreaToApplyEffect ()

/** @property */
public void set_AreaToApplyEffect (Rect value)

public function get AreaToApplyEffect () : Rect

public function set AreaToApplyEffect (value : Rect)

    <Rect .../>
<object AreaToApplyEffect="Rect" .../>

Property Value

The rectangular region of the visual to which the effect is applied. The default value is Empty.

When the rectangle has a Width or Height equal to 0, the effect will not be applied to the visual.

BitmapEffectInput expresses different behavior depending on whether the background of the element is transparent or not. If no background is present or defined, UIElement only considers the children for its size and the starting point for coordinates begin where the visual rendering starts.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0