ColumnDefinition.Width Właściwość

Definicja

Pobiera szerokość obliczeniową ColumnDefinition elementu lub ustawia GridLength wartość kolumny zdefiniowanej przez element ColumnDefinition.

public:
 property System::Windows::GridLength Width { System::Windows::GridLength get(); void set(System::Windows::GridLength value); };
public System.Windows.GridLength Width { get; set; }
member this.Width : System.Windows.GridLength with get, set
Public Property Width As GridLength

Wartość właściwości

Wartość GridLength reprezentująca szerokość kolumny. Wartość domyślna to 1.0.

Uwagi

Wartość domyślna GridUnitType to Star.

Podczas dodawania lub usuwania wierszy lub kolumn ActualWidth dla wszystkich ColumnDefinition elementów i ActualHeight wszystkich RowDefinition elementów staje się zero do momentu Measure wywołania.

Informacje dotyczące właściwości zależności

Pole identyfikatora WidthProperty
Właściwości metadanych ustawione na true Brak

Dotyczy