Back to Devexpress

XtraTabControl.TabPages Property

windowsforms-devexpress-dot-xtratab-dot-xtratabcontrol-bc221ecb.md

latest4.3 KB
Original Source

XtraTabControl.TabPages Property

Provides access to the tab control’s page collection.

Namespace : DevExpress.XtraTab

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Behavior")]
public virtual XtraTabPageCollection TabPages { get; }
vb
<DXCategory("Behavior")>
Public Overridable ReadOnly Property TabPages As XtraTabPageCollection

Property Value

TypeDescription
XtraTabPageCollection

An XtraTabPageCollection object which represents a collection of tab pages within a tab control.

|

Remarks

The TabPages property provides access to the tab pages owned by the tab control. The returned object provides properties and methods that can be used to add, delete and access individual tab pages within the collection.

The following code snippets (auto-collected from DevExpress Examples) contain references 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-spreadsheetcontrol-api-part-3/CS/SpreadsheetControl_API_Part03/Form1.cs#L423

csharp
if (examplesCSCount == 0)
    foreach (XtraTabPage t in xtraTabControl1.TabPages) if (t.Tag.ToString() == "CS") t.PageEnabled = false;
if (examplesVBCount == 0)

winforms-richedit-document-api/CS/RichEditAPISample/Form1.cs#L528

csharp
if (examplesCSCount == 0)
    foreach (XtraTabPage t in xtraTabControl1.TabPages) if (t.Tag.ToString() == "CS") t.PageEnabled = false;
if (examplesVBCount == 0)

word-document-api-examples/CS/Form1.cs#L104

csharp
if (examplesCSCount == 0)
    foreach (XtraTabPage t in xtraTabControl1.TabPages) if (t.Tag.ToString() == "CS") t.PageEnabled = false;
if (examplesVBCount == 0)

winforms-spreadsheetcontrol-api-part-3/VB/SpreadsheetControl_API_Part03/Form1.vb#L401

vb
If examplesCSCount = 0 Then
    For Each t As XtraTabPage In xtraTabControl1.TabPages
        If Equals(t.Tag.ToString(), "CS") Then t.PageEnabled = False

winforms-richedit-document-api/VB/RichEditAPISample/Form1.vb#L504

vb
If examplesCSCount = 0 Then
    For Each t As XtraTabPage In xtraTabControl1.TabPages
        If Equals(t.Tag.ToString(), "CS") Then t.PageEnabled = False

word-document-api-examples/VB/Form1.vb#L94

vb
If examplesCSCount = 0 Then
    For Each t As XtraTabPage In xtraTabControl1.TabPages
        If Equals(t.Tag.ToString(), "CS") Then t.PageEnabled = False

See Also

XtraTabControl Class

XtraTabControl Members

DevExpress.XtraTab Namespace