[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Represents an elliptical arc between two points.
Assembly: System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.
Public NotInheritable Class ArcSegment _ Inherits PathSegment
public sealed class ArcSegment : PathSegment
The ArcSegment type exposes the following members.
|ArcSegment||Initializes a new instance of the ArcSegment class.|
|Dispatcher||Gets the Dispatcher this object is associated with. (Inherited from DependencyObject.)|
|IsLargeArc||Gets or sets a value that indicates whether the arc should be greater than 180 degrees.|
|Point||Gets or sets the endpoint of the elliptical arc.|
|RotationAngle||Gets or sets the amount (in degrees) by which the ellipse is rotated about the x-axis.|
|Size||Gets or sets the x- and y-radius of the arc as a Size structure.|
|SweepDirection||Gets or sets a value that specifies whether the arc is drawn in the Clockwise or Counterclockwise direction.|
|CheckAccess||Determines whether the calling thread has access to this object. (Inherited from DependencyObject.)|
|ClearValue||Clears the local value of a dependency property. (Inherited from DependencyObject.)|
|Equals(Object)||Determines whether the specified Object is equal to the current Object. (Inherited from Object.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)|
|GetAnimationBaseValue||Returns any base value established for a Windows Phone dependency property, which would apply in cases where an animation is not active. (Inherited from DependencyObject.)|
|GetHashCode||Serves as a hash function for a particular type. (Inherited from Object.)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|GetValue||Returns the current effective value of a dependency property from a DependencyObject. (Inherited from DependencyObject.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ReadLocalValue||Returns the local value of a dependency property, if a local value is set. (Inherited from DependencyObject.)|
|SetValue||Sets the local value of a dependency property on a DependencyObject. (Inherited from DependencyObject.)|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
|IsLargeArcProperty||Identifies the IsLargeArc dependency property.|
|PointProperty||Identifies the Point dependency property.|
|RotationAngleProperty||Identifies the RotationAngle dependency property.|
|SizeProperty||Identifies the Size dependency property.|
|SweepDirectionProperty||Identifies the SweepDirection dependency property.|
Use a PathFigure object to store ArcSegment objects and other segments.
An elliptical arc is defined by its start and end points, x- and y-radius, x-axis rotation factor, a value indicating whether the arc should be greater than 180 degrees, and a value describing the direction in which the arc is drawn. The ArcSegment class does not contain a property for the starting point of the arc; it only defines the destination point of the arc it represents. The beginning point of the arc is the current point of the PathFigure to which the ArcSegment is added.
IsLargeArc and SweepDirection
Of the four candidate arc sweeps, two represent large arcs with sweeps of 180 degrees or greater, and two represent smaller arcs with sweeps 180 degrees or less. If IsLargeArc is true, then one of the two larger arc sweeps is chosen; otherwise, if IsLargeArc is false, one of the smaller arc sweeps is chosen. The remaining two arc candidates are each drawn in a different direction: Counterclockwise or Clockwise. The SweepDirection property specifies which one to use.
ArcSegment objects with different IsLargeArc settings
ArcSegment objects with different SweepDirection settings
Windows Phone OS
Supported in: 8.1, 8.0, 7.1, 7.0
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.