Muokkaa

Jaa


ArcSegment Constructors

Definition

Initializes a new instance of the ArcSegment class.

Overloads

ArcSegment()

Initializes a new instance of the ArcSegment class.

ArcSegment(Point, Size, Double, Boolean, SweepDirection, Boolean)

Initializes a new instance of the ArcSegment class.

Remarks

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.

For most elliptical arcs of a particular position, size, and rotation, there are four different arcs that can be drawn; the largeArc and sweepDirection parameters 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 largeArc is true, then one of the two larger arc sweeps is chosen; otherwise, if largeArc is false, one of the smaller arc sweeps is chosen.

If sweepDirection is Clockwise, the arc is drawn in a positive-angle direction. If sweepDirection is Counterclockwise, the arc is drawn in a negative-angle direction.

ArcSegment()

Initializes a new instance of the ArcSegment class.

public:
 ArcSegment();
public ArcSegment ();
Public Sub New ()

Remarks

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.

For most elliptical arcs of a particular position, size, and rotation, there are four different arcs that can be drawn; the largeArc and sweepDirection parameters 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 largeArc is true, then one of the two larger arc sweeps is chosen; otherwise, if largeArc is false, one of the smaller arc sweeps is chosen.

If sweepDirection is Clockwise, the arc is drawn in a positive-angle direction. If sweepDirection is Counterclockwise, the arc is drawn in a negative-angle direction.

Applies to

ArcSegment(Point, Size, Double, Boolean, SweepDirection, Boolean)

Initializes a new instance of the ArcSegment class.

public:
 ArcSegment(System::Windows::Point point, System::Windows::Size size, double rotationAngle, bool isLargeArc, System::Windows::Media::SweepDirection sweepDirection, bool isStroked);
public ArcSegment (System.Windows.Point point, System.Windows.Size size, double rotationAngle, bool isLargeArc, System.Windows.Media.SweepDirection sweepDirection, bool isStroked);
new System.Windows.Media.ArcSegment : System.Windows.Point * System.Windows.Size * double * bool * System.Windows.Media.SweepDirection * bool -> System.Windows.Media.ArcSegment
Public Sub New (point As Point, size As Size, rotationAngle As Double, isLargeArc As Boolean, sweepDirection As SweepDirection, isStroked As Boolean)

Parameters

point
Point

The destination point of the arc; the start point of the arc is defined as the current point of the PathFigure to which the ArcSegment is added.

size
Size

The x- and y-radius of the arc. The x-radius is specified by the Size structure's Width property, and the y-radius is specified by the Size structure's Height property.

rotationAngle
Double

The x-axis rotation of the ellipse.

isLargeArc
Boolean

Whether the arc should be greater than 180 degrees.

sweepDirection
SweepDirection

Set to Clockwise to draw the arc in a positive angle direction; set to Counterclockwise to draw the arc in a negative angle direction.

isStroked
Boolean

Set to true to stroke the arc when a Pen is used to render the segment; otherwise, false.

Remarks

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.

For most elliptical arcs of a particular position, size, and rotation, there are four different arcs that can be drawn; the largeArc and sweepDirection parameters 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 largeArc is true, then one of the two larger arc sweeps is chosen; otherwise, if largeArc is false, one of the smaller arc sweeps is chosen.

If sweepDirection is Clockwise, the arc is drawn in a positive-angle direction. If sweepDirection is Counterclockwise, the arc is drawn in a negative-angle direction.

Applies to