AbsoluteLayout.GetLayoutFlags 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
GetLayoutFlags(BindableObject) |
获取在将 |
GetLayoutFlags(IView) |
GetLayoutFlags(BindableObject)
获取在将 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)
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
返回
实现
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈