Xceed DataGrid for WPF v7.2 Documentation
GetFittedWidth Method (Cell)


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

Dim value As Double

 

value = instance.GetFittedWidth()
public double GetFittedWidth()

Return Value

A value representing the fitted width of the cell, in device-independent units (1/96th inch per unit).
Remarks
The fitted width of the cell represents the width necessary to display its content, on one line.
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

Cell Class
Cell Members