Share via


FlexLayout.JustifyContent 属性

定义

获取或设置一个值,用于描述子元素在周围有额外空间时的对齐方式。

public:
 property Microsoft::Maui::Layouts::FlexJustify JustifyContent { Microsoft::Maui::Layouts::FlexJustify get(); void set(Microsoft::Maui::Layouts::FlexJustify value); };
public Microsoft.Maui.Layouts.FlexJustify JustifyContent { get; set; }
member this.JustifyContent : Microsoft.Maui.Layouts.FlexJustify with get, set
Public Property JustifyContent As FlexJustify

属性值

一个值,该值描述子元素在周围有额外的空间时如何对齐。

注解

下图显示了何时JustifyContentDirection设置为ColumnAlignItems设置为Stretch以下选项:

适用于