Xceed Grid for WinForms v4.3 Documentation
GetFittedWidth Method (CellViewerManager)


Xceed.Grid.v4.3 Assembly > Xceed.Grid.Viewers Namespace > CellViewerManager Class : GetFittedWidth Method
The Xceed.Grid.Cell whose content is to be displayed.
This parameter is reserved for future use.
The System.Drawing.Graphics object used to paint.
true if the viewer is being printed; false otherwise.
Retrieves a value representing the fitted width of the viewer in pixels and raises the QueryFittedWidth event.
Syntax
'Declaration
 
Protected Friend Function GetFittedWidth( _

   ByVal cell As Cell, _

   ByVal mode As AutoWidthMode, _

   ByVal graphics As Graphics, _

   ByVal printing As Boolean _

) As Integer
'Usage
 
Dim instance As CellViewerManager

Dim cell As Cell

Dim mode As AutoWidthMode

Dim graphics As Graphics

Dim printing As Boolean

Dim value As Integer

 

value = instance.GetFittedWidth(cell, mode, graphics, printing)
protected internal int GetFittedWidth( 

   Cell cell,

   AutoWidthMode mode,

   Graphics graphics,

   bool printing

)

Parameters

cell
The Xceed.Grid.Cell whose content is to be displayed.
mode
This parameter is reserved for future use.
graphics
The System.Drawing.Graphics object used to paint.
printing
true if the viewer is being printed; false otherwise.

Return Value

A value representing the fitted width of the viewer in pixels. If -1, then no fitted width is required or desired.
Requirements

Target Platforms: 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

CellViewerManager Class
CellViewerManager Members