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

画布笔划颜色。

适用于