ArcSegment 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 ArcSegment 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| ArcSegment() |
初始化 ArcSegment 類別的新執行個體。 |
| ArcSegment(Point, Size, Double, Boolean, SweepDirection, Boolean) |
初始化 ArcSegment 類別的新執行個體。 |
備註
該 ArcSegment 類別僅定義其所代表弧的終點;弧的起點為 的當前點 PathFigure,且該 ArcSegment 點被加入。
對於大多數具有特定位置、大小和旋轉的橢圓弧,可以畫出四種不同的弧線;與largeArcsweepDirection參數表示應使用哪種弧線。
在四個候選弧線掃描中,有兩個代表掃描角度達180度或以上的大弧線,另外兩個代表掃描角度為180度或更小的較小弧線。 若 largeArc , true則選擇兩個較大的弧掃描之一;否則,若 largeArc , false則選擇較小的弧掃描之一。
若 sweepDirection , Clockwise則弧線以正角度繪製。 若 sweepDirection 為 Counterclockwise,則該弧線以負角度方向繪製。
ArcSegment()
初始化 ArcSegment 類別的新執行個體。
public:
ArcSegment();
public ArcSegment();
Public Sub New ()
備註
該 ArcSegment 類別僅定義其所代表弧的終點;弧的起點為 的當前點 PathFigure,且該 ArcSegment 點被加入。
對於大多數具有特定位置、大小和旋轉的橢圓弧,可以畫出四種不同的弧線;與largeArcsweepDirection參數表示應使用哪種弧線。
在四個候選弧線掃描中,有兩個代表掃描角度達180度或以上的大弧線,另外兩個代表掃描角度為180度或更小的較小弧線。 若 largeArc , true則選擇兩個較大的弧掃描之一;否則,若 largeArc , false則選擇較小的弧掃描之一。
若 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則選擇兩個較大的弧掃描之一;否則,若 largeArc , false則選擇較小的弧掃描之一。
若 sweepDirection , Clockwise則弧線以正角度繪製。 若 sweepDirection 為 Counterclockwise,則該弧線以負角度方向繪製。