Table of Contents

Method SetChildBoundsAbsoluteLayout

Namespace
Alternet.UI
Assembly
Alternet.UI.Maui.dll

SetChildBoundsAbsoluteLayout(BindableObject, Rect, AbsoluteLayoutFlags)

Sets the layout bounds and flags for a child element within an AbsoluteLayout.

public static void SetChildBoundsAbsoluteLayout(BindableObject obj, Rect bounds, AbsoluteLayoutFlags flags = AbsoluteLayoutFlags.None)

Parameters

obj BindableObject

The child element whose layout bounds and flags are to be set. Cannot be null.

bounds Rect

The rectangle that defines the position and size of the child element within the AbsoluteLayout, in device-independent units.

flags AbsoluteLayoutFlags

The layout flags that specify how the bounds are interpreted. The default is AbsoluteLayoutFlags.None.

Remarks

This method is a convenience for setting both the layout bounds and layout flags of a child element in an AbsoluteLayout. It is equivalent to calling AbsoluteLayout.SetLayoutFlags and AbsoluteLayout.SetLayoutBounds separately.