LayoutOptions(LayoutAlignment, Boolean) 构造函数

定义

使用 alignmentexpands 创建新的 LayoutOptions 对象。

public:
 LayoutOptions(Microsoft::Maui::Controls::LayoutAlignment alignment, bool expands);
public LayoutOptions (Microsoft.Maui.Controls.LayoutAlignment alignment, bool expands);
new Microsoft.Maui.Controls.LayoutOptions : Microsoft.Maui.Controls.LayoutAlignment * bool -> Microsoft.Maui.Controls.LayoutOptions
Public Sub New (alignment As LayoutAlignment, expands As Boolean)

参数

alignment
LayoutAlignment

对齐值。

expands
Boolean

元素是否会扩展以填充其父级中的可用空间。

适用于