語言

ArcSegment 類別

定義

代表兩點之間的橢圓弧。

public ref class ArcSegment sealed : PathSegment
/// [Windows.Foundation.Metadata.Activatable(65536, "Microsoft.UI.Xaml.WinUIContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ArcSegment final : PathSegment
[Windows.Foundation.Metadata.Activatable(65536, "Microsoft.UI.Xaml.WinUIContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ArcSegment : PathSegment
Public NotInheritable Class ArcSegment
Inherits PathSegment
<ArcSegment .../>
繼承
Object Platform::Object IInspectable DependencyObject PathSegment ArcSegment
屬性

備註

至少每個弧段都應該設定其 旋轉角 和 大小 屬性,因為這些屬性沒有實用的預設值。

此類別對於設定 路徑 或 路徑圖示的向量資料非常重要。

你也可以在字串中定義 ArcSegment,作為向量的一部分,作為 Move and Draw 指令語法的一部分。

建構函式

名稱 Description
ArcSegment()

初始化 ArcSegment 類別的新實例。

屬性

名稱 Description
Dispatcher

它總是在 Windows 應用程式 SDK 應用程式中回傳 null 。 改用 DispatcherQueue 。

(繼承來源 DependencyObject)
DispatcherQueue

得到 DispatcherQueue 這個物件所關聯的那個。 代表 DispatcherQueue 一個功能,即使程式碼是由非 UI 執行緒發起,也能存取 UI DependencyObject 執行緒。

(繼承來源 DependencyObject)
IsLargeArc

會取得或設定一個值,指示弧線是否應該大於180度。

IsLargeArcProperty

識別 IsLargeArc 相依屬性。

Point

取得或設定橢圓弧的終點。

PointProperty

識別 點 依賴性質。

RotationAngle

取得或設定橢圓繞 x 軸旋轉的程度(以度數計)。

RotationAngleProperty

識別旋轉 角 依賴性質。

Size

取得或設定弧的 x 半徑和 y 半徑作為 Size 結構。

SizeProperty

識別 Size 依賴性質。

SweepDirection

取得或設定一個值,指定弧線是順 時針 方向還是 逆時針 方向繪製。

SweepDirectionProperty

識別 SweepDirection 依賴性質。

方法

名稱 Description
ClearValue(DependencyProperty)

清除依賴性財產的局部價值。

(繼承來源 DependencyObject)
GetAnimationBaseValue(DependencyProperty)

回傳任何為相依屬性建立的基礎值,適用於動畫未啟用時。

(繼承來源 DependencyObject)
GetValue(DependencyProperty)

回傳 DependencyObject 中相依屬性的當前有效值。

(繼承來源 DependencyObject)
ReadLocalValue(DependencyProperty)

若設定了本地值,則回傳依賴性質的局部值。

(繼承來源 DependencyObject)
RegisterPropertyChangedCallback(DependencyProperty, DependencyPropertyChangedCallback)

註冊一個通知函式,用於監聽此 DependencyObject 實例中特定 DependencyProperty 的變更。

(繼承來源 DependencyObject)
SetValue(DependencyProperty, Object)

將相依屬性的局部值設定在 DependencyObject 上。

(繼承來源 DependencyObject)
UnregisterPropertyChangedCallback(DependencyProperty, Int64)

取消先前透過呼叫 RegisterPropertyChangedCallback 註冊的變更通知。

(繼承來源 DependencyObject)

適用於

另請參閱