ColumnDefinition.Width プロパティ

定義

ColumnDefinition要素の計算された幅を取得するか、GridLengthで定義されている列の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

プロパティ値

列の幅を表す GridLength 。 既定値は 1.0 です。

注釈

既定の GridUnitTypeStar です。

行または列を追加または削除すると、すべてのActualWidth要素のColumnDefinitionと、すべてのActualHeight要素のRowDefinitionは、Measureが呼び出されるまでゼロになります。

依存関係プロパティ情報

品目 価値
識別子フィールド WidthProperty
に設定されたメタデータ プロパティ true None

適用対象