ArcSegment ArcSegment ArcSegment ArcSegment Class

Definition

Represents an elliptical arc between two points.

public : sealed class ArcSegment : PathSegment, IArcSegment
public sealed class ArcSegment : PathSegment, IArcSegment
Public NotInheritable Class ArcSegment Inherits PathSegment Implements IArcSegment
var arcSegment = new arcSegment();
<ArcSegment .../>
Inheritance
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

At a minimum each ArcSegment should have its RotationAngle and Size properties set, because these don't have useful defaults.

This class is relevant for setting the vector data for either a Path or a PathIcon.

Rather than creating an instance or an object element, you can also define an ArcSegment as part of a vector within the string for a Move and draw commands syntax.

Constructors

ArcSegment() ArcSegment() ArcSegment() ArcSegment()

Initializes a new instance of the ArcSegment class.

public : ArcSegment()
public ArcSegment()
Public Sub New()
var arcSegment = new arcSegment();

Properties

IsLargeArc IsLargeArc IsLargeArc IsLargeArc

Gets or sets a value that indicates whether the arc should be greater than 180 degrees.

public : Platform::Boolean IsLargeArc { get; set; }
public bool IsLargeArc { get; set; }
Public ReadWrite Property IsLargeArc As bool
var bool = arcSegment.isLargeArc;
arcSegment.isLargeArc = bool;
<ArcSegment IsLargeArc="bool"/>
Value
Platform::Boolean bool bool bool

true if the arc should be greater than 180 degrees; otherwise, false.

IsLargeArcProperty IsLargeArcProperty IsLargeArcProperty IsLargeArcProperty

Identifies the IsLargeArc dependency property.

public : static DependencyProperty IsLargeArcProperty { get; }
public static DependencyProperty IsLargeArcProperty { get; }
Public Static ReadOnly Property IsLargeArcProperty As DependencyProperty
var dependencyProperty = Windows.UI.Xaml.Media.ArcSegment.isLargeArcProperty;

Point Point Point Point

Gets or sets the endpoint of the elliptical arc.

public : Point Point { get; set; }
public Point Point { get; set; }
Public ReadWrite Property Point As Point
var point = arcSegment.point;
arcSegment.point = point;
<ArcSegment Point="x,y"/>
Value
Point Point Point Point

The point to which the arc is drawn. The default is a Point with value 0,0.

PointProperty PointProperty PointProperty PointProperty

Identifies the Point dependency property.

public : static DependencyProperty PointProperty { get; }
public static DependencyProperty PointProperty { get; }
Public Static ReadOnly Property PointProperty As DependencyProperty
var dependencyProperty = Windows.UI.Xaml.Media.ArcSegment.pointProperty;

RotationAngle RotationAngle RotationAngle RotationAngle

Gets or sets the amount (in degrees) by which the ellipse is rotated about the x-axis.

public : double RotationAngle { get; set; }
public double RotationAngle { get; set; }
Public ReadWrite Property RotationAngle As double
var double = arcSegment.rotationAngle;
arcSegment.rotationAngle = double;
<ArcSegment RotationAngle="double"/>
Value
double double double double

The amount (in degrees) by which the ellipse is rotated about the x-axis. The default is 0.

RotationAngleProperty RotationAngleProperty RotationAngleProperty RotationAngleProperty

Identifies the RotationAngle dependency property.

public : static DependencyProperty RotationAngleProperty { get; }
public static DependencyProperty RotationAngleProperty { get; }
Public Static ReadOnly Property RotationAngleProperty As DependencyProperty
var dependencyProperty = Windows.UI.Xaml.Media.ArcSegment.rotationAngleProperty;

Size Size Size Size

Gets or sets the x-radius and y-radius of the arc as a Size structure.

public : Size Size { get; set; }
public Size Size { get; set; }
Public ReadWrite Property Size As Size
var size = arcSegment.size;
arcSegment.size = size;
<ArcSegment Size="width,height"/>
Value
Size Size Size Size

A Size structure that describes the x-radius and y-radius of the elliptical arc. The Size structure's Width value specifies the arc's x-radius; its Height value specifies the arc's y-radius. The default is a Size with value 0,0.

See Also

SizeProperty SizeProperty SizeProperty SizeProperty

Identifies the Size dependency property.

public : static DependencyProperty SizeProperty { get; }
public static DependencyProperty SizeProperty { get; }
Public Static ReadOnly Property SizeProperty As DependencyProperty
var dependencyProperty = Windows.UI.Xaml.Media.ArcSegment.sizeProperty;

SweepDirection SweepDirection SweepDirection SweepDirection

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

public : SweepDirection SweepDirection { get; set; }
public SweepDirection SweepDirection { get; set; }
Public ReadWrite Property SweepDirection As SweepDirection
var sweepDirection = arcSegment.sweepDirection;
arcSegment.sweepDirection = sweepDirection;
<ArcSegment SweepDirection="Clockwise"/>
-or-
<ArcSegment SweepDirection="Counterclockwise"/>
Value
SweepDirection SweepDirection SweepDirection SweepDirection

One of the enumeration values that specifies the direction in which the arc is drawn. The default is Counterclockwise.

SweepDirectionProperty SweepDirectionProperty SweepDirectionProperty SweepDirectionProperty

Identifies the SweepDirection dependency property.

public : static DependencyProperty SweepDirectionProperty { get; }
public static DependencyProperty SweepDirectionProperty { get; }
Public Static ReadOnly Property SweepDirectionProperty As DependencyProperty
var dependencyProperty = Windows.UI.Xaml.Media.ArcSegment.sweepDirectionProperty;

Dispatcher Dispatcher Dispatcher Dispatcher

Inherited from DependencyObject

Methods

ClearValue(DependencyProperty) ClearValue(DependencyProperty) ClearValue(DependencyProperty) ClearValue(DependencyProperty)

Inherited from DependencyObject

GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty)

Inherited from DependencyObject

GetValue(DependencyProperty) GetValue(DependencyProperty) GetValue(DependencyProperty) GetValue(DependencyProperty)

Inherited from DependencyObject

ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty)

Inherited from DependencyObject

RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback) RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback) RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback) RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback)

Inherited from DependencyObject

SetValue(DependencyProperty,Object) SetValue(DependencyProperty,Object) SetValue(DependencyProperty,Object) SetValue(DependencyProperty,Object)

Inherited from DependencyObject

UnregisterPropertyChangedCallback(DependencyProperty,Int64) UnregisterPropertyChangedCallback(DependencyProperty,Int64) UnregisterPropertyChangedCallback(DependencyProperty,Int64) UnregisterPropertyChangedCallback(DependencyProperty,Int64)

Inherited from DependencyObject

See Also