共用方式為


Border.StrokeShape 屬性

定義

取得或設定邊界的形狀。 這是可綁定屬性。

public:
 property Microsoft::Maui::Graphics::IShape ^ StrokeShape { Microsoft::Maui::Graphics::IShape ^ get(); void set(Microsoft::Maui::Graphics::IShape ^ value); };
[System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Controls.Shapes.StrokeShapeTypeConverter))]
public Microsoft.Maui.Graphics.IShape? StrokeShape { get; set; }
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Controls.Shapes.StrokeShapeTypeConverter))>]
member this.StrokeShape : Microsoft.Maui.Graphics.IShape with get, set
Public Property StrokeShape As IShape

屬性值

定義 IShape 邊界形狀的 null A 或預設 Rectangle 形狀。

屬性

備註

預設值為 Rectangle。 你可以把它設定成其他形狀,比如 RoundRectangle、 , Ellipse或任何自訂 IShape 實作來改變邊框的外觀。

適用於