Calculates the best dimensions for the current cell.
Class: CellBaseClass
Namespace: Softelvdm.Controls
Assembly: Softelvdm.SftTreeNET
public virtual Size BestDimensions( Graphics g, int proposedWidth );
Public Overridable Function BestDimensions(
ByVal g As Graphics,
ByVal proposedWidth As Integer
) As Sizeg
Defines the drawing surface or null/Nothing if unavailable.
proposedWidth
The cell's maximum allowable width or -1 (see below).
The dimensions of the cell.
Calculates the best dimensions for the current cell.
BestDimensions calculates the cell's dimensions based on the available width (proposedWidth). If the width is limited, the cell may be able to grow in height, for example by wrapping text around. item, including all the cell's subordinate cells are used to determine the best dimensions.
as the available width (plus the additional width made available by subordinate cells).
See Also CellBaseClass Class | Classes | SftTree/NET 2.0