TextExtent Method (DeviceContext)
In This Topic
Computes the width and height of the specified string of text.
Syntax
'Declaration
Public Function TextExtent( _
ByVal As String _
) As Size
public Size TextExtent(
string
)
Parameters
- text
- A string that saves a character string to be computed.
Return Value
If the function succeeds, the return value is the dimensions of the string in logical units.
See Also