ArcSegment 构造函数

定义

初始化 ArcSegment 类的新实例。

重载

名称 说明
ArcSegment()

初始化 ArcSegment 类的新实例。

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

初始化 ArcSegment 类的新实例。

注解

ArcSegment仅定义它所表示的弧线的目标点;弧的起点是添加的弧PathFigure线的ArcSegment当前点。

对于特定位置、大小和旋转的大多数椭圆弧,可以绘制四个不同的弧线:和largeArcsweepDirection参数指示要使用的弧线。

在四个候选弧线扫描中,两个表示大弧线,扫描度为 180 度或更大,两个表示扫描为 180 度或更小的较小弧线。 largeArc如果是true,则选择两个较大的弧线扫描之一;否则,如果选择largeArcfalse一个较小的弧线扫描。

sweepDirection如果是Clockwise,则以正角度方向绘制弧线。 sweepDirection如果是Counterclockwise,则以负角度方向绘制弧线。

ArcSegment()

初始化 ArcSegment 类的新实例。

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

注解

ArcSegment仅定义它所表示的弧线的目标点;弧的起点是添加的弧PathFigure线的ArcSegment当前点。

对于特定位置、大小和旋转的大多数椭圆弧,可以绘制四个不同的弧线:和largeArcsweepDirection参数指示要使用的弧线。

在四个候选弧线扫描中,两个表示大弧线,扫描度为 180 度或更大,两个表示扫描为 180 度或更小的较小弧线。 largeArc如果是true,则选择两个较大的弧线扫描之一;否则,如果选择largeArcfalse一个较小的弧线扫描。

sweepDirection如果是Clockwise,则以正角度方向绘制弧线。 sweepDirection如果是Counterclockwise,则以负角度方向绘制弧线。

适用于

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

初始化 ArcSegment 类的新实例。

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)

参数

point
Point

弧的目标点;弧的起点定义为向其添加的当前点PathFigureArcSegment

size
Size

弧的 x 半径和 y 半径。x 半径由 Size 结构 Width 的属性指定,y 半径由 Size 结构 Height 的属性指定。

rotationAngle
Double

椭圆的 x 轴旋转。

isLargeArc
Boolean

弧线是否应大于 180 度。

sweepDirection
SweepDirection

Clockwise设置为以正角度方向绘制弧线;设置为Counterclockwise在负角度方向绘制弧线。

isStroked
Boolean

设置为 true 在用于呈现线段时 Pen 绘制弧线;否则为 false

注解

ArcSegment仅定义它所表示的弧线的目标点;弧的起点是添加的弧PathFigure线的ArcSegment当前点。

对于特定位置、大小和旋转的大多数椭圆弧,可以绘制四个不同的弧线:和largeArcsweepDirection参数指示要使用的弧线。

在四个候选弧线扫描中,两个表示大弧线,扫描度为 180 度或更大,两个表示扫描为 180 度或更小的较小弧线。 largeArc如果是true,则选择两个较大的弧线扫描之一;否则,如果选择largeArcfalse一个较小的弧线扫描。

sweepDirection如果是Clockwise,则以正角度方向绘制弧线。 sweepDirection如果是Counterclockwise,则以负角度方向绘制弧线。

适用于