Share via


VisualElement.Layout(Rect) Method

Definition

Caution

Use ArrangeOverride instead. This method will be removed in a future version.

Updates the bounds of the element during the layout cycle.

public:
 void Layout(Microsoft::Maui::Graphics::Rect bounds);
[System.Obsolete("Use ArrangeOverride instead. This method will be removed in a future version.")]
public void Layout(Microsoft.Maui.Graphics.Rect bounds);
public void Layout(Microsoft.Maui.Graphics.Rect bounds);
[<System.Obsolete("Use ArrangeOverride instead. This method will be removed in a future version.")>]
member this.Layout : Microsoft.Maui.Graphics.Rect -> unit
member this.Layout : Microsoft.Maui.Graphics.Rect -> unit
Public Sub Layout (bounds As Rect)

Parameters

bounds
Rect

The new bounds of the element.

Attributes

Remarks

Calling this method will trigger a layout cycle for the sub-tree of this element.

Applies to