語言

ArcSegment 建構函式

定義

初始化 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。

size
Size

弧的 x 半徑和 y 半徑。x 半徑由Size結構Width性質指定,y 半徑由結構Size性質指定Height。

rotationAngle
Double

橢圓的 x 軸旋轉。

isLargeArc
Boolean

弧線是否應該大於180度。

sweepDirection
SweepDirection

設為 Clockwise 繪製正角方向的弧;設定為 Counterclockwise 以負角度繪製弧。

isStroked
Boolean

設定為 true 在使用 a Pen 來渲染該段時描繪弧線;否則,為 false。

備註

該 ArcSegment 類別僅定義其所代表弧的終點;弧的起點為 的當前點 PathFigure,且該 ArcSegment 點被加入。

對於大多數具有特定位置、大小和旋轉的橢圓弧,可以畫出四種不同的弧線;與largeArcsweepDirection參數表示應使用哪種弧線。

在四個候選弧線掃描中,有兩個代表掃描角度達180度或以上的大弧線,另外兩個代表掃描角度為180度或更小的較小弧線。 若 largeArc , true則選擇兩個較大的弧掃描之一;否則,若 largeArc , false則選擇較小的弧掃描之一。

若 sweepDirection , Clockwise則弧線以正角度繪製。 若 sweepDirection 為 Counterclockwise,則該弧線以負角度方向繪製。

適用於