dbicList Send comments on this topic.
MeasureBodyTextSize Method
See Also 
dbicList Assembly > Dbi.WinControl.List Namespace > dbiList Class : MeasureBodyTextSize Method

strText
The string to measure.
fntFont
The Font to use in the calculation.
szProposedSize
The Size of the target text.
bWordWrap
A Boolean indicating wether or not to use wordwrap.
This method calculates a <="" is="" wordwrap="" if="" and="" control="" the="" of="" size="" proposed="" font,="" string,="" on="" based="">

Syntax

Visual Basic (Declaration) 
Public Function MeasureBodyTextSize( _
   ByVal strText As String, _
   ByVal fntFont As Font, _
   ByVal szProposedSize As Size, _
   ByVal bWordWrap As Boolean _
) As Size
C# 
public Size MeasureBodyTextSize( 
   string strText,
   Font fntFont,
   Size szProposedSize,
   bool bWordWrap
)

Parameters

strText
The string to measure.
fntFont
The Font to use in the calculation.
szProposedSize
The Size of the target text.
bWordWrap
A Boolean indicating wether or not to use wordwrap.

Return Value

Size

Requirements

Target Platforms: Current Windows operating system with .NET 8.

See Also