Measures the height of the specified text in a specified width, font, and format at run time.
Syntax
'Declaration
Public Overloads Function MeasureParagraphHeight( _
ByVal As String, _
ByVal As Single, _
ByVal As Font, _
ByVal As StringFormat _
) As SizeF
public SizeF MeasureParagraphHeight(
string ,
float ,
Font ,
StringFormat
)
Parameters
- strText
Text string to be measured.
- width
- Width of the text (in inches).
- textFont
- The font of the text string to be measured.
- strFormat
- The format of the text string to be measured.
See Also