Table of Contents

Class ColumnDefinition

Namespace
Avalonia.Controls
Assembly
Avalonia.Controls.dll

Holds a column definitions for a Grid.

public class ColumnDefinition : DefinitionBase, INotifyPropertyChanged
Inheritance
ColumnDefinition
Implements
Inherited Members

Constructors

ColumnDefinition()

Initializes a new instance of the ColumnDefinition class.

public ColumnDefinition()

ColumnDefinition(GridLength)

Initializes a new instance of the ColumnDefinition class.

public ColumnDefinition(GridLength width)

Parameters

width GridLength

The width of the column.

ColumnDefinition(double, GridUnitType)

Initializes a new instance of the ColumnDefinition class.

public ColumnDefinition(double value, GridUnitType type)

Parameters

value double

The width of the column.

type GridUnitType

The width unit of the column.

Fields

MaxWidthProperty

Defines the MaxWidth property.

public static readonly StyledProperty<double> MaxWidthProperty

Field Value

StyledProperty<double>

MinWidthProperty

Defines the MinWidth property.

public static readonly StyledProperty<double> MinWidthProperty

Field Value

StyledProperty<double>

WidthProperty

Defines the Width property.

public static readonly StyledProperty<GridLength> WidthProperty

Field Value

StyledProperty<GridLength>

Properties

ActualWidth

Gets the actual calculated width of the column.

public double ActualWidth { get; }

Property Value

double

MaxWidth

Gets or sets the maximum width of the column in DIPs.

public double MaxWidth { get; set; }

Property Value

double

MinWidth

Gets or sets the minimum width of the column in DIPs.

public double MinWidth { get; set; }

Property Value

double

Width

Gets or sets the width of the column.

public GridLength Width { get; set; }

Property Value

GridLength