ComponentOne MultiSelect for WinForms
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 (DeviceContext)
    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 String, _
       ByVal tabStopPositions() As Integer, _
       ByRef size As Size _
    ) As Boolean
    public bool TabbedTextExtent( 
       string text,
       int[] tabStopPositions,
       out 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