Measures the height of the specified text in a specified width, font, and format at run time.
Syntax
Visual Basic (Declaration) | |
---|
Overloads Public Function MeasureParagraphHeight( _
ByVal strText As String, _
ByVal width As Single, _
ByVal textFont As Font, _
ByVal strFormat As StringFormat _
) As SizeF |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As Page
Dim strText As String
Dim width As Single
Dim textFont As Font
Dim strFormat As StringFormat
Dim value As SizeF
value = instance.MeasureParagraphHeight(strText, width, textFont, strFormat)
|
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