AbsoluteLayout.GetLayoutBounds Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetLayoutBounds(BindableObject) |
Gets the layout bounds of |
GetLayoutBounds(IView) |
GetLayoutBounds(BindableObject)
- Source:
- AbsoluteLayout.cs
- Source:
- AbsoluteLayout.cs
Gets the layout bounds of bindable
.
public:
static Microsoft::Maui::Graphics::Rect GetLayoutBounds(Microsoft::Maui::Controls::BindableObject ^ bindable);
[System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Controls.BoundsTypeConverter))]
public static Microsoft.Maui.Graphics.Rect GetLayoutBounds (Microsoft.Maui.Controls.BindableObject bindable);
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Controls.BoundsTypeConverter))>]
static member GetLayoutBounds : Microsoft.Maui.Controls.BindableObject -> Microsoft.Maui.Graphics.Rect
Public Shared Function GetLayoutBounds (bindable As BindableObject) As Rect
Parameters
- bindable
- BindableObject
A visual element.
Returns
The layout bounds of the object.
- Attributes
Remarks
This method supports the AbsoluteLayout.LayoutBounds
XAML attached property. In XAML, Application developers can specify a comma-separated list—possibly with spaces—of four values that specify the bounding rectangle's position and dimensions. The first two values in the list must represent numbers. The latter two values may each either be numbers, or the string "AutoSize". The AbsoluteLayout.LayoutFlags
attached property determines how the values in the list are interpreted to create the bounding rectangle.
Applies to
GetLayoutBounds(IView)
- Source:
- AbsoluteLayout.cs
- Source:
- AbsoluteLayout.cs
public:
virtual Microsoft::Maui::Graphics::Rect GetLayoutBounds(Microsoft::Maui::IView ^ view);
public Microsoft.Maui.Graphics.Rect GetLayoutBounds (Microsoft.Maui.IView view);
abstract member GetLayoutBounds : Microsoft.Maui.IView -> Microsoft.Maui.Graphics.Rect
override this.GetLayoutBounds : Microsoft.Maui.IView -> Microsoft.Maui.Graphics.Rect
Public Function GetLayoutBounds (view As IView) As Rect
Parameters
- view
- IView