Xceed SmartUI for WinForms v3.6 Documentation
GetStringHeight(String,Int32) Method


Xceed.SmartUI.v3.6 Assembly > Xceed.SmartUI Namespace > SmartPaint Class > GetStringHeight Method : GetStringHeight(String,Int32) Method
The string whose height is to be retrieved.
The width of the string.
Retrieves the height of the specified string.
Syntax
'Declaration
 
Public Overloads Function GetStringHeight( _
   ByVal text As String, _
   ByVal width As Integer _
) As Integer
'Usage
 
Dim instance As SmartPaint
Dim text As String
Dim width As Integer
Dim value As Integer
 
value = instance.GetStringHeight(text, width)
public int GetStringHeight( 
   string text,
   int width
)

Parameters

text
The string whose height is to be retrieved.
width
The width of the string.

Return Value

A value representing the height of text.
Remarks

The Font and StringFormat are taken into consideration when calculating the height of the string.

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

SmartPaint Class
SmartPaint Members
Overload List