EllipseGeometry 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
代表圓形或橢圓形的幾何。
public ref class EllipseGeometry sealed : Geometry
/// [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 EllipseGeometry final : Geometry
[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 EllipseGeometry : Geometry
Public NotInheritable Class EllipseGeometry
Inherits Geometry
<EllipseGeometry .../>
- 繼承
- 屬性
範例
此範例示範如何使用 EllipseGeometry建立省略號。
<Canvas>
<Path Fill="Gold" Stroke="Red" StrokeThickness="1">
<Path.Data>
<EllipseGeometry Center="50,50" RadiusX="50" RadiusY="50" />
</Path.Data>
</Path>
</Canvas>
建構函式
EllipseGeometry() |
初始化 EllipseGeometry 類別的新實例。 |
屬性
Bounds |
取得 Rect ,指定 Geometry 的軸對齊周框方塊。 (繼承來源 Geometry) |
Center |
取得或設定 EllipseGeometry的中心點。 |
CenterProperty |
識別 中心 相依性屬性。 |
Dispatcher |
一律會在 Windows 應用程式 SDK 應用程式中傳回 |
DispatcherQueue |
|
RadiusX |
取得或設定 EllipseGeometry 的 x 半徑值。 |
RadiusXProperty |
識別 RadiusX 相依性屬性。 |
RadiusY |
取得或設定 EllipseGeometry 的 y 半徑值。 |
RadiusYProperty |
識別 RadiusY 相依性屬性。 |
Transform |
取得或設定套用至 Geometry 的 Transform 物件。 (繼承來源 Geometry) |
方法
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) |