Język

ColumnDefinition.Width Właściwość

Definicja

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

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.

Gdy dodasz lub usuniesz wiersze lub kolumny, ActualWidth element dla wszystkich ColumnDefinition elementów i ActualHeight wszystkie RowDefinition elementy staną się zerowe do momentu Measure wywołania.

Informacje o właściwości zależności

Przedmiot Wartość
Pole identyfikatora WidthProperty
Właściwości metadanych ustawione na true Żadne

Dotyczy