SweepDirection Property

Gets or sets a value that specifies whether the arc is drawn in the Clockwise or Counterclockwise direction.

XAML
<object SweepDirection="SweepDirection" .../>
Scripting
value = object.SweepDirection
object.SweepDirection = value

Property Value

SweepDirection

A value that specifies the direction in which the arc is drawn.

This property is read/write. The default value is Counterclockwise.

Remarks

For an ArcSegment with a given Size, RotationAngle, start point, and end Point, four different arcs are possible. Specifying the IsLargeArc property reduces the number of possible arcs to two: an arc drawn from the start point to the end Point in a Clockwise direction and an arc drawn from the start point to the end point in a Counterclockwise direction.

The following illustrations shows two elliptical arcs that are identical except for their SweepDirection settings.

ArcSegments with Clockwise SweepDirection

ArcSegments with Clockwise SweepDirection

ArcSegments with CounterClockwise SweepDirection

ArcSegments with CounterClockwise SweepDirection

Applies To

ArcSegment

See Also

Path Markup Syntax