Поделиться через


ArcSegment.SweepDirection Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

'Declaration
Public Property SweepDirection As SweepDirection
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.

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

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

Platforms

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