LinedFlowLayout.ItemsJustification 属性

定义

获取或设置一个值,该值指示项目在水平轴上的对齐方式。

public:
 property LinedFlowLayoutItemsJustification ItemsJustification { LinedFlowLayoutItemsJustification get(); void set(LinedFlowLayoutItemsJustification value); };
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultItemsJustification")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultItemsJustification")]
LinedFlowLayoutItemsJustification ItemsJustification();

void ItemsJustification(LinedFlowLayoutItemsJustification value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultItemsJustification")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultItemsJustification")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultItemsJustification")]
LinedFlowLayoutItemsJustification ItemsJustification();

void ItemsJustification(LinedFlowLayoutItemsJustification value);
public LinedFlowLayoutItemsJustification ItemsJustification { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultItemsJustification")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultItemsJustification")] set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultItemsJustification")]
public LinedFlowLayoutItemsJustification ItemsJustification { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultItemsJustification")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultItemsJustification")] set; }
var linedFlowLayoutItemsJustification = linedFlowLayout.itemsJustification;
linedFlowLayout.itemsJustification = linedFlowLayoutItemsJustification;
Public Property ItemsJustification As LinedFlowLayoutItemsJustification

属性值

一个枚举值,该值指示项的对齐方式。 默认为 Start

属性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

注解

此图显示了每个 LinedFlowLayoutItemsJustification 枚举值对项目水平排列的影响。

内线流布局项理由枚举页包含此图中显示的每个值的说明。

这些屏幕截图显示了应用于映像库的每个值的示例。

Start项与行的开头对齐,末尾有额外的空间。项之间的间距不会更改。

Center项在线条的中心对齐,开头和结尾有额外的空间。项之间的间距不会更改。

End项与行尾对齐,开头有额外的空间。项之间的间距不会更改。

SpaceAround项对齐,以便在每个项之前和之后均匀添加额外的空间。

SpaceBetween项对齐,以便在相邻项之间均匀添加额外的空间。开头或末尾不添加任何空间。

SpaceEvenly项对齐,以便在每个项之前和之后均匀添加额外的空间。

适用于