Flexible TreeView 5.1.9 Help
MeasureText Method (NodeControl)



The target text to measure.
The draw context.
Text default font.
true if the specified text can contain a HTML content; otherwise, the specified text contains a plain text only.
true if try to wrap the specified text within the specified bounds.
Measures the specified text taking into account specified text settings.
Syntax
'Declaration
 
Protected Function MeasureText( _
   ByVal pText As String, _
   ByVal pContext As DrawContext, _
   ByVal pFont As Font, _
   ByVal pSupportHtml As Boolean, _
   ByVal pWrapText As Boolean _
) As Size
'Usage
 
Dim instance As NodeControl
Dim pText As String
Dim pContext As DrawContext
Dim pFont As Font
Dim pSupportHtml As Boolean
Dim pWrapText As Boolean
Dim value As Size
 
value = instance.MeasureText(pText, pContext, pFont, pSupportHtml, pWrapText)

Parameters

pText
The target text to measure.
pContext
The draw context.
pFont
Text default font.
pSupportHtml
true if the specified text can contain a HTML content; otherwise, the specified text contains a plain text only.
pWrapText
true if try to wrap the specified text within the specified bounds.

Return Value

Text size.
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

NodeControl Class
NodeControl Members

Send Feedback