共用方式為


RectangleAdorner(IView, Single, Nullable<Point>, Color, Color) 建構函式

定義

初始化 RectangleAdorner 類別的新執行個體。

public RectangleAdorner (Microsoft.Maui.IView view, float density = 1, Microsoft.Maui.Graphics.Point? offset = default, Microsoft.Maui.Graphics.Color? fillColor = default, Microsoft.Maui.Graphics.Color? strokeColor = default);
new Microsoft.Maui.RectangleAdorner : Microsoft.Maui.IView * single * Nullable<Microsoft.Maui.Graphics.Point> * Microsoft.Maui.Graphics.Color * Microsoft.Maui.Graphics.Color -> Microsoft.Maui.RectangleAdorner
Public Sub New (view As IView, Optional density As Single = 1, Optional offset As Nullable(Of Point) = Nothing, Optional fillColor As Color = Nothing, Optional strokeColor As Color = Nothing)

參數

view
IView

IView 建立裝飾項的 。

density
Single

覆寫密度設定。 預設值:1

offset
Nullable<Point>

用於定位可繪製物件的位移點。 預設值:null

fillColor
Color

畫布填滿色彩。

strokeColor
Color

畫布筆劃色彩。

適用於