Calculates the best dimensions for the current cell.
Class: CellBaseClass
Namespace: Softelvdm.SftTabsNET.Controls
Assembly: Softelvdm.SftTabsNET
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. The proposedWidth argument is not used. The space needed to display the tab contents in their entirety is calculated.
See Also CellBaseClass Class | Classes | SftTabs/NET 3.0