ArcSegment class

Applies to Windows and Windows Phone

Represents an elliptical arc between two points.

Inheritance

Object
  DependencyObject
    PathSegment
      ArcSegment

Syntax


public sealed class ArcSegment : PathSegment


<ArcSegment .../>

Attributes

[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]
[WebHostHidden()]

Members

The ArcSegment class has these types of members:

Constructors

The ArcSegment class has these constructors.

ConstructorDescription
ArcSegment Initializes a new instance of the ArcSegment class.

 

Methods

The ArcSegment class has these methods. It also inherits methods from the Object class.

MethodDescription
ClearValue Clears the local value of a dependency property. (Inherited from DependencyObject)
GetAnimationBaseValue Returns any base value established for a dependency property, which would apply in cases where an animation is not active. (Inherited from DependencyObject)
GetValue Returns the current effective value of a dependency property from a DependencyObject. (Inherited from DependencyObject)
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)

 

Properties

The ArcSegment class has these properties.

PropertyAccess typeDescription

Dispatcher

Read-onlyGets the CoreDispatcher that this object is associated with. (Inherited from DependencyObject)

IsLargeArc

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

IsLargeArcProperty

Read-onlyIdentifies the IsLargeArc dependency property.

Point

Read/writeGets or sets the endpoint of the elliptical arc.

PointProperty

Read-onlyIdentifies the Point dependency property.

RotationAngle

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

RotationAngleProperty

Read-onlyIdentifies the RotationAngle dependency property.

Size

Read/writeGets or sets the x-radius and y-radius of the arc as a Size structure.

SizeProperty

Read-onlyIdentifies the Size dependency property.

SweepDirection

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

SweepDirectionProperty

Read-onlyIdentifies the SweepDirection dependency property.

 

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.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Media
Windows::UI::Xaml::Media [C++]

Metadata

Windows.winmd

See also

PathSegment
Path
PathGeometry
XAML vector-based drawing sample
Quickstart: Drawing shapes
Move and draw commands syntax

 

 

Show:
© 2014 Microsoft