Share via


View.HorizontalOptions Property

Definition

Gets or sets the LayoutOptions that define how the element gets laid out in a layout cycle. This is a bindable property.

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

Property Value

Remarks

Assigning HorizontalOptions modifies how the element is laid out when there is excess space available along the X axis from the parent layout. If multiple elements inside a layout are set to expand, the extra space is distributed proportionally.

Applies to