ComponentOne Input for WinForms
C1.Win.C1Input.4.5.2 Assembly / C1.Framework.Drawing.Gdi.DeviceContexts Namespace / DeviceContext 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
    In This Topic
    Draws formatted text in the specified rectangle.
    Syntax
    'Declaration
     
    Public Function MeasureText( _
       ByVal text As System.String, _
       ByVal proposedSize As System.Drawing.Size, _
       ByVal format As TextFormat _
    ) As System.Drawing.Size
    public System.Drawing.Size MeasureText( 
       System.string text,
       System.Drawing.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