Grid.ColumnSpacing Property

Definition

Gets or sets the uniform distance (in pixels) between grid columns.

Equivalent WinUI property: Microsoft.UI.Xaml.Controls.Grid.ColumnSpacing.

public:
 property double ColumnSpacing { double get(); void set(double value); };
double ColumnSpacing();

void ColumnSpacing(double value);
public double ColumnSpacing { get; set; }
var double = grid.columnSpacing;
grid.columnSpacing = double;
Public Property ColumnSpacing As Double
<Grid ColumnSpacing="double" .../>

Property Value

Double

The uniform distance (in pixels) between grid columns.

Windows 10 requirements

Device family
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v5.0)

Applies to