TextExtent Method (DesktopDeviceContext)
Computes the width and height of the specified string of text.
'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.