Compartilhar via


ArcSegment.Point Property

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

Gets or sets the endpoint of the elliptical arc.

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public Property Point As Point
public Point Point { get; set; }
<ArcSegment Point="x,y"/>

XAML Values

  • x
    The X value of the Point that specifies the end point.

  • y
    The Y value of a Point that specifies the end point.

The XAML syntax for this property specifies a new Point as a string. The delimiter between the x and y values of the point can be either a comma or a space. Note that the comma usage has potential to clash with the usage of comma as the decimal point in some UI cultures. For more information, see the "XAML Attribute Syntax" section of Point.

Property Value

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

Remarks

Dependency property identifier field: PointProperty

The ArcSegment class defines only 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.

If the arc segment's start point and end point are the same, no arc is drawn.

For most arcs of a particular position, size, and rotation, there are four different arcs that can be drawn; the IsLargeArc and SweepDirection properties indicate which arc to use.

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.

The following illustration shows several elliptical arcs that are identical except for their Point settings.

Several ArcSegment objects with different Point settings

ArcSegments with different Point settings

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.