Xceed Toolkit Plus for WPF v4.6 Documentation
GetFittedWidth Method (ColumnBase)


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace > ColumnBase Class : GetFittedWidth Method
Retrieves the fitted width of the column, in device-independent units (1/96th inch per unit).
Syntax
'Declaration
 
Public Overridable Function GetFittedWidth() As Double
'Usage
 
Dim instance As ColumnBase
Dim value As Double
 
value = instance.GetFittedWidth()
public virtual double GetFittedWidth()

Return Value

The fitted width of the column, in device-independent units (1/96th inch per unit).
Remarks
The fitted width of a column represents the width necessary to display the entire content of the column's cells on one line. Only the items that are displayed in a grid's viewport—the "realized" items—will be used when calculating the fitted width of a column.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ColumnBase Class
ColumnBase Members