AbsoluteLayout.GetLayoutFlags 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
GetLayoutFlags(BindableObject) |
Gets the layout flags that were specified when |
GetLayoutFlags(IView) |
GetLayoutFlags(BindableObject)
Gets the layout flags that were specified when bindable
was added to an AbsoluteLayout.
public:
static Microsoft::Maui::Layouts::AbsoluteLayoutFlags GetLayoutFlags(Microsoft::Maui::Controls::BindableObject ^ bindable);
public static Microsoft.Maui.Layouts.AbsoluteLayoutFlags GetLayoutFlags (Microsoft.Maui.Controls.BindableObject bindable);
static member GetLayoutFlags : Microsoft.Maui.Controls.BindableObject -> Microsoft.Maui.Layouts.AbsoluteLayoutFlags
Public Shared Function GetLayoutFlags (bindable As BindableObject) As AbsoluteLayoutFlags
Parameters
- bindable
- BindableObject
A visual element.
Returns
The layout flags of the object.
Remarks
This method supports the AbsoluteLayout.LayoutFlags
XAML attached property. In XAML, Application developers can specify the following AbsoluteLayoutFlags enumeration value names for the value of this property on the children of a AbsoluteLayout:
-
All
: -
None
: -
HeightProportional
: -
WidthProportional
: -
SizeProportional
: -
XProportional
: -
YProportional
: -
PositionProportional
:
Application developers can combine any of the above values by supplying a comma-separated list.
Applies to
GetLayoutFlags(IView)
public:
virtual Microsoft::Maui::Layouts::AbsoluteLayoutFlags GetLayoutFlags(Microsoft::Maui::IView ^ view);
public Microsoft.Maui.Layouts.AbsoluteLayoutFlags GetLayoutFlags (Microsoft.Maui.IView view);
abstract member GetLayoutFlags : Microsoft.Maui.IView -> Microsoft.Maui.Layouts.AbsoluteLayoutFlags
override this.GetLayoutFlags : Microsoft.Maui.IView -> Microsoft.Maui.Layouts.AbsoluteLayoutFlags
Public Function GetLayoutFlags (view As IView) As AbsoluteLayoutFlags
Parameters
- view
- IView
Returns
Implements
Applies to
Comentários
https://aka.ms/ContentUserFeedback.
Em breve: Ao longo de 2024, eliminaremos os problemas do GitHub como o mecanismo de comentários para conteúdo e o substituiremos por um novo sistema de comentários. Para obter mais informações, consulteEnviar e exibir comentários de