Edit

Share via


DropShadowBitmapEffect.Direction Property

Definition

Note: This API is now obsolete. The non-obsolete alternative is DropShadowEffect. Gets or sets the angle at which the shadow is cast.

public:
 property double Direction { double get(); void set(double value); };
public double Direction { get; set; }
member this.Direction : double with get, set
Public Property Direction As Double

Property Value

The angle at which the shadow is cast. The valid range of values is from 0 through 360. The value 0 puts the direction immediately to the right of the object. Subsequent values move the direction around the object in a counter-clockwise direction. For example, a value of 90 indicates the shadow is cast directly upward from the object; a value of 180 is cast directly to the left of the object, and so on. The default value is 315.

Remarks

The following diagram shows in which direction the shadow is cast for a given value of this property.

Diagram: DropShadow direction

The following illustration demonstrates the effect of this property.

Screenshot: Compare shadow direction

Dependency Property Information

Identifier field DirectionProperty
Metadata properties set to true None

Applies to