ComponentOne MultiSelect for WinForms
C1.Framework.Drawing.Gdi.DeviceContexts Namespace / DeviceContext Class / TextExtent Method
A string that saves a character string to be computed.

In This Topic
    TextExtent Method (DeviceContext)
    In This Topic
    Computes the width and height of the specified string of text.
    Syntax
    'Declaration
     
    
    Public Function TextExtent( _
       ByVal text As String _
    ) As Size
    public Size TextExtent( 
       string text
    )

    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