ComponentOne SuperTooltip for WinForms
C1.Win.4.8 Assembly / C1.Util Namespace / FontSubSet Class / MeasureText Method / MeasureText(String,Boolean,Int32,Int32,Int32) Method
The text string.
Whether using a vertical font.
Output calculated width of the text.
Output calculated height of the text.
The default width of some character.

In This Topic
    MeasureText(String,Boolean,Int32,Int32,Int32) Method
    In This Topic
    Measure text for this font subset.
    Syntax
    'Declaration
     
    Public Overloads Function MeasureText( _
       ByVal text As System.String, _
       ByVal vertical As System.Boolean, _
       ByRef width As System.Integer, _
       ByRef height As System.Integer, _
       Optional ByVal defaultWidth As System.Integer _
    ) As System.Integer
    public System.int MeasureText( 
       System.string text,
       System.bool vertical,
       out System.int width,
       out System.int height,
       System.int defaultWidth
    )

    Parameters

    text
    The text string.
    vertical
    Whether using a vertical font.
    width
    Output calculated width of the text.
    height
    Output calculated height of the text.
    defaultWidth
    The default width of some character.

    Return Value

    If calculated then return true, otherwise false.
    See Also