Skip to main content

TcxTabs.Insert(Integer,string) Method

Inserts a tab with the specified caption to the specified position.

Declaration

procedure Insert(Index: Integer; const S: string); override;

Parameters

Name Type
Index Integer
S string

Remarks

Use the Insert method to add a new tab to the tabs collection. The S parameter specifies the caption of the added tab. Its value is assigned to the Caption property of a newly created TcxTab object.

The Index parameter specifies the position within the tabs collection to which a tab is inserted. Indexes are zero-based. If the Index parameter value is negative or greater than the last available index, an error is raised. The last available index is specified by the Count property value.

See Also