MeasureText Method (DeviceContext)
In This Topic
Draws formatted text in the specified rectangle.
Syntax
'Declaration
Public Function MeasureText( _
ByVal As String, _
ByVal As Size, _
ByVal As TextFormat _
) As Size
public Size MeasureText(
string ,
Size ,
TextFormat
)
Parameters
- text
- The string that specifies the text to be drawn.
- proposedSize
- Contains the proposed size in which the text is to be formatted.
- format
- Specifies the method of formatting the text.
See Also