ComponentOne MultiSelect for WinForms
C1.Framework.Drawing.Gdi.DeviceContexts Namespace / WindowDeviceContext Class / MeasureText Method
The string that specifies the text to be drawn.
Contains the proposed size in which the text is to be formatted.
Specifies the method of formatting the text.

In This Topic
    MeasureText Method (WindowDeviceContext)
    In This Topic
    Draws formatted text in the specified rectangle.
    Syntax
    'Declaration
     
    
    Public Function MeasureText( _
       ByVal text As String, _
       ByVal proposedSize As Size, _
       ByVal format As TextFormat _
    ) As Size
    public Size MeasureText( 
       string text,
       Size proposedSize,
       TextFormat format
    )

    Parameters

    text
    The string that specifies the text to be drawn.
    proposedSize
    Contains the proposed size in which the text is to be formatted.
    format
    Specifies the method of formatting the text.
    See Also