Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:  PresentationCore (in PresentationCore.dll)

public SweepDirection SweepDirection { get; set; }

Property Value

Type: System.Windows.Media.SweepDirection

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

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 different SweepDirection settings

ArcSegment objects with different SweepDirection settings

Identifier field

SweepDirectionProperty

Metadata properties set to true

None

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show:
© 2017 Microsoft