View.HorizontalOptions 屬性

定義

取得或設定 , LayoutOptions 定義如何在版面配置週期中配置專案。 這是可繫結屬性。

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

屬性值

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

備註

指派會 HorizontalOptions 修改從父版面配置沿著 X 軸提供多餘的空間時,元素的配置方式。 如果配置內的多個元素設定為展開,則會按比例分配額外的空間。

適用於