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
    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.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also