Skip to main content

TabbedGroup.AddTabPage(LayoutGroup, String) Method

Appends the specified tab page with the specified text to the TabbedGroup.TabPages collection.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public LayoutGroup AddTabPage(
    LayoutGroup newItem,
    string text
)

Parameters

Name Type Description
newItem LayoutGroup

A LayoutGroup object or descendant that represents the new tab page.

text String

A String value that specifies the text displayed within the page header. This value is assigned to the BaseLayoutItem.Text property.

Returns

Type Description
LayoutGroup

A LayoutGroup object or descendant that represents the new page. null (Nothing in Visual Basic) if the collection contains the specified tab page.

Remarks

After the page has been created and added to the collection, it’s automatically selected.

See Also