Back to Devexpress

TabContainerDashboardItem.TabPages Property

dashboard-devexpress-dot-dashboardcommon-dot-tabcontainerdashboarditem.md

latest3.1 KB
Original Source

TabContainerDashboardItem.TabPages Property

Provides access to the collection of tab pages stored in the tab container.

Namespace : DevExpress.DashboardCommon

Assembly : DevExpress.Dashboard.v25.2.Core.dll

NuGet Package : DevExpress.Dashboard.Core

Declaration

csharp
public DashboardTabPageCollection TabPages { get; }
vb
Public ReadOnly Property TabPages As DashboardTabPageCollection

Property Value

TypeDescription
DashboardTabPageCollection

A collection of tab pages in the tab container.

|

Remarks

To obtain a dashboard’s tab page, iterate over tab containers and use the TabPages property to iterate over a container’s tab pages.

You can add a tab page to the collection by doing one of the following:

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the TabPages property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-dashboard-window-calculation-example/CS/WindowCalculationExample/TabPageLoadHelper.cs#L90

csharp
if (item != null) {
    node.DashboardItem = CopyItemFromPageToPage(item, destinationParentContainer.TabPages[1]);
    node.Weight = currentNode.Weight;

winforms-dashboard-window-calculation-example/VB/WindowCalculationExample/TabPageLoadHelper.vb#L104

vb
If item IsNot Nothing Then
    node.DashboardItem = CopyItemFromPageToPage(item, destinationParentContainer.TabPages(1))
    node.Weight = currentNode.Weight

See Also

TabContainerDashboardItem Class

TabContainerDashboardItem Members

DevExpress.DashboardCommon Namespace