Export (0) Print
Expand All

ArcSegment.SweepDirection Property

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

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)

public SweepDirection SweepDirection { get; set; }
<ArcSegment SweepDirection="Clockwise"/>
-or-
<ArcSegment SweepDirection="CounterClockwise"/>

Property Value

Type: System.Windows.Media.SweepDirection
One of the enumeration values that specifies the direction in which the arc is drawn. The default is Counterclockwise.

Dependency property identifier field: SweepDirectionProperty

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 illustration shows two elliptical arcs that are identical except for their SweepDirection settings.

ArcSegments with Clockwise SweepDirection

Sweepdirection of clockwise.
ArcSegments with CounterClockwise SweepDirection

SweepDirection of counter clockwise.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft