ComponentOne Input for WinForms
C1.Win.C1Input.4.5.2 Assembly / 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
    In This Topic
    Computes the width and height of the specified string of text.
    Syntax
    'Declaration
     
    Public Function TextExtent( _
       ByVal text As System.String _
    ) As System.Drawing.Size
    public System.Drawing.Size TextExtent( 
       System.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