PrintDocument for WinForms | ComponentOne
C1.PrintDocument.6 Assembly / C1.C1Preview Namespace / TabPositionCollection Class / Add Method / Add(Unit,TabAlignmentEnum) Method
The position of the tab stop relative to the left edge of the text area.
The text alignment at the specified tab stop.

In This Topic
    Add(Unit,TabAlignmentEnum) Method
    In This Topic
    Creates a new TabPosition object, initializes it with the specified tab stop position and text alignment, and adds it to the current collection.
    Syntax
    'Declaration
     
    Public Overloads Function Add( _
       ByVal tabPosition As Unit, _
       ByVal tabAlignment As TabAlignmentEnum _
    ) As Integer
    public int Add( 
       Unit tabPosition,
       TabAlignmentEnum tabAlignment
    )

    Parameters

    tabPosition
    The position of the tab stop relative to the left edge of the text area.
    tabAlignment
    The text alignment at the specified tab stop.

    Return Value

    The index of the added TabPosition object in the current collection.
    See Also