共用方式為


LayoutOptions(LayoutAlignment, Boolean) Constructor

Definition

Creates a new LayoutOptions object with alignment and expands.

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)

Parameters

alignment
LayoutAlignment

An alignment value.

expands
Boolean

Whether or not an element will expand to fill available space in its parent.

Applies to