ArcSegment.SweepDirection Property

Definition

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

public System.Windows.Media.SweepDirection SweepDirection { get; set; }

Property Value

A value that specifies the direction in which the arc is drawn. 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 illustration shows two elliptical arcs that are identical except for their SweepDirection settings.

ArcSegments with different SweepDirection settings ArcSegment objects with different SweepDirection settings

Dependency Property Information

Item Value
Identifier field SweepDirectionProperty
Metadata properties set to true None

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9