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


Xceed.Editors.v2.6 Assembly > Xceed.Editors Namespace > WinCalculator Class : GetFittedWidth Method
Retrieves the fitted width of the WinCalculator control, in pixels.
Syntax
'Declaration
 
Public Function GetFittedWidth() As Integer
'Usage
 
Dim instance As WinCalculator
Dim value As Integer
 
value = instance.GetFittedWidth()
public int GetFittedWidth()

Return Value

A value representing the fitted width of the WinCalculator control, in pixels.
Remarks

By default, the height and width of the buttons will be resized if/when the WinCalculator is resized however; explicitly setting the ButtonHeight and ButtonWidth properties will prevent the height and width of the buttons from being modified when the calculator is resized. This also implies that the size of the WinCalculator control will not adapt to the size defined by the ButtonHeight and ButtonWidth properties and clipping of the buttons may occur.

The fitted width and height of the WinCalculator control (the size necessary to correctly display all the buttons and the formula box) can be retrieve using the GetFittedWidth and GetFittedHeight methods and assigned to the Width and Height properties of the WinCalculator control.

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

WinCalculator Class
WinCalculator Members