Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxTabs.Insert(Integer,string) Method

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

#Declaration

Delphi
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