DataGridColumn.ActualWidth 屬性

定義

取得資料行的目前寬度,以裝置獨立單位為單位, (每單位 1/96 英吋) 。

public:
 property double ActualWidth { double get(); };
public double ActualWidth { get; }
member this.ActualWidth : double
Public ReadOnly Property ActualWidth As Double

屬性值

Double

裝置獨立單位的資料行寬度 (每單位 1/96 英吋) 。 已註冊的預設值為 0。 如需哪些因素會影響值的詳細資訊,請參閱 DependencyProperty

備註

屬性的值 ActualWidth 是用來排列資料行的儲存格和標頭。 值會強制在 和 MinWidth 條件約束內 MaxWidth

若要取得資料行的呈現寬度,請使用 DisplayValue 屬性的 Width

適用於

另請參閱