Udostępnij za pośrednictwem


LinedFlowLayout.LineSpacing Property

Definition

Gets or sets the vertical space between items.

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

void LineSpacing(double value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultLineSpacing")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultLineSpacing")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultLineSpacing")]
double LineSpacing();

void LineSpacing(double value);
public double LineSpacing { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultLineSpacing")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultLineSpacing")] set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultLineSpacing")]
public double LineSpacing { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultLineSpacing")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultLineSpacing")] set; }
var double = linedFlowLayout.lineSpacing;
linedFlowLayout.lineSpacing = double;
Public Property LineSpacing As Double

Property Value

Double

double

The space (in pixels) between items on the vertical axis. Default is 0.0.

Attributes
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

Examples

<ItemsView ItemsSource="{x:Bind Photos}">
    <ItemsView.Layout>
        <LinedFlowLayout LineSpacing="10"/>
    </ItemsView.Layout>
</ItemsView>

Remarks

Set this property to specify the vertical spacing between lines.

Applies to