ArcSegment 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 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。
- rotationAngle
- Double
椭圆的 x 轴旋转。
- isLargeArc
- Boolean
弧线是否应大于 180 度。
- sweepDirection
- SweepDirection
Clockwise设置为以正角度方向绘制弧线;设置为Counterclockwise在负角度方向绘制弧线。
注解
类ArcSegment仅定义它所表示的弧线的目标点;弧的起点是添加的弧PathFigure线的ArcSegment当前点。
对于特定位置、大小和旋转的大多数椭圆弧,可以绘制四个不同的弧线:和largeArcsweepDirection参数指示要使用的弧线。
在四个候选弧线扫描中,两个表示大弧线,扫描度为 180 度或更大,两个表示扫描为 180 度或更小的较小弧线。
largeArc如果是true,则选择两个较大的弧线扫描之一;否则,如果选择largeArcfalse一个较小的弧线扫描。
sweepDirection如果是Clockwise,则以正角度方向绘制弧线。
sweepDirection如果是Counterclockwise,则以负角度方向绘制弧线。