[]
        
(Showing Draft Content)

C1.C1Preview.TabPositionCollection.Add

Add Method

Add(Unit)

Creates a new TabPosition object, initializes it with the specified tab stop position, and adds it to the current collection.

Declaration
public int Add(Unit tabPosition)
Parameters
Type Name Description
Unit tabPosition

The position of the tab stop relative to the left edge of the text area.

Returns
Type Description
int

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

Add(Unit, TabAlignmentEnum)

Creates a new TabPosition object, initializes it with the specified tab stop position and text alignment, and adds it to the current collection.

Declaration
public int Add(Unit tabPosition, TabAlignmentEnum tabAlignment)
Parameters
Type Name Description
Unit tabPosition

The position of the tab stop relative to the left edge of the text area.

TabAlignmentEnum tabAlignment

The text alignment at the specified tab stop.

Returns
Type Description
int

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

Add(Unit, TabAlignmentEnum, char)

Creates a new TabPosition object, initializes it with the specified tab stop position, text alignment and fill char, and adds it to the current collection.

Declaration
public int Add(Unit tabPosition, TabAlignmentEnum tabAlignment, char fillChar)
Parameters
Type Name Description
Unit tabPosition

The position of the tab stop relative to the left edge of the text area.

TabAlignmentEnum tabAlignment

The text alignment at the specified tab stop.

char fillChar

The fill char between the preceding and the added tab stop.

Returns
Type Description
int

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

Add(TabPosition)

Adds a TabPosition object to the current collection.

Declaration
public int Add(TabPosition tabPosition)
Parameters
Type Name Description
TabPosition tabPosition

The object to add.

Returns
Type Description
int

The index of tabPosition in the current collection.