ComponentOne Input for WinForms
C1.Win.C1Input.4.5.2 Assembly / C1.Framework.Drawing.Gdi.DeviceContexts Namespace / DeviceContext Class / TabbedTextExtent Method
A string that saves a character string to be computed.
An array containing the tab-stop positions, in device units. The tab stops must be sorted in increasing order; the smallest x-value should be the first item in the array.
If the function succeeds, the value is the dimensions of the string in logical units. Else the value is Size.Empty.

In This Topic
    TabbedTextExtent Method
    In This Topic
    The TabbedTextExtent method computes the width and height of a character string.If the string contains one or more tab characters, the width of the string is based upon the specified tab stops. The TabbedTextExtent method uses the currently selected font to compute the dimensions of the string.
    Syntax
    'Declaration
     
    Public Function TabbedTextExtent( _
       ByVal text As System.String, _
       ByVal tabStopPositions() As System.Integer, _
       ByRef size As System.Drawing.Size _
    ) As System.Boolean
    public System.bool TabbedTextExtent( 
       System.string text,
       System.int[] tabStopPositions,
       out System.Drawing.Size size
    )

    Parameters

    text
    A string that saves a character string to be computed.
    tabStopPositions
    An array containing the tab-stop positions, in device units. The tab stops must be sorted in increasing order; the smallest x-value should be the first item in the array.
    size
    If the function succeeds, the value is the dimensions of the string in logical units. Else the value is Size.Empty.

    Return Value

    Retrun a value indictaes whether this function succeed or not.
    See Also