AbsoluteLayout.GetLayoutFlags 方法

定义

重载

GetLayoutFlags(BindableObject)

获取在将 bindable 添加至 AbsoluteLayout 时所指定的布局标志。

GetLayoutFlags(IView)

GetLayoutFlags(BindableObject)

Source:
AbsoluteLayout.cs
Source:
AbsoluteLayout.cs

获取在将 bindable 添加至 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

参数

bindable
BindableObject

可视元素。

返回

该对象的布局标志。

注解

此方法支持 AbsoluteLayout.LayoutFlags XAML 附加属性。 在 XAML 中,应用程序开发人员可以在 的子级AbsoluteLayout上为此属性的值指定以下AbsoluteLayoutFlags枚举值名称:

  • All :
  • None :
  • HeightProportional :
  • WidthProportional :
  • SizeProportional :
  • XProportional :
  • YProportional :
  • PositionProportional :

应用程序开发人员可以通过提供逗号分隔列表来组合上述任何值。

适用于

GetLayoutFlags(IView)

Source:
AbsoluteLayout.cs
Source:
AbsoluteLayout.cs
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

参数

view
IView

返回

实现

适用于