Compartilhar via


RectangleGridAdorner Constructor

Definition

Initializes a new instance of the RectangleGridAdorner class.

public RectangleGridAdorner (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.RectangleGridAdorner : Microsoft.Maui.IView * single * Nullable<Microsoft.Maui.Graphics.Point> * Microsoft.Maui.Graphics.Color * Microsoft.Maui.Graphics.Color -> Microsoft.Maui.RectangleGridAdorner
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)

Parameters

view
IView

An IView to create the Adorner around.

density
Single

Override density setting. Default: 1

offset
Nullable<Point>

Offset Point used for positioning drawable object. Default: null

fillColor
Color

Canvas Fill Color.

strokeColor
Color

Canvas Stroke Color.

Applies to