View.VerticalOptions 屬性

定義

取得或設定 , LayoutOptions 定義元素在版面配置週期中的配置方式。 這是可繫結屬性。

public:
 property Microsoft::Maui::Controls::LayoutOptions VerticalOptions { Microsoft::Maui::Controls::LayoutOptions get(); void set(Microsoft::Maui::Controls::LayoutOptions value); };
public Microsoft.Maui.Controls.LayoutOptions VerticalOptions { get; set; }
member this.VerticalOptions : Microsoft.Maui.Controls.LayoutOptions with get, set
Public Property VerticalOptions As LayoutOptions

屬性值

LayoutOptions 定義如何配置 專案。 除非另有記載,否則預設值為 Fill

備註

VerticalOptions指派會修改元素在父版面配置中有超過可用空間時,如何配置元素。 如果配置內的多個元素設定為展開,則會按比例分配額外的空間。

適用於