Back to Devexpress

TabPageChangedEventArgs.Page Property

windowsforms-devexpress-dot-xtratab-dot-tabpagechangedeventargs.md

latest3.0 KB
Original Source

TabPageChangedEventArgs.Page Property

Gets the tab page currently being processed.

Namespace : DevExpress.XtraTab

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public XtraTabPage Page { get; }
vb
Public ReadOnly Property Page As XtraTabPage

Property Value

TypeDescription
XtraTabPage

An XtraTabPage object which represents the tab page currently being processed.

|

Remarks

If the XtraTabControl.HotTrackedPageChanged event is handled, the Page property’s value represents the currently hot-tracked tab page. If the XtraTabControl.SelectedPageChanged event is handled, this property returns the currently focused tab page.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Page 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-spreadsheet-use-cell-range-as-data-source/CS/RangeDataSource/Form1.cs#L79

csharp
private void xtraTabControl1_SelectedPageChanged(object sender, DevExpress.XtraTab.TabPageChangedEventArgs e) {
    if (e.Page == tbSheet) {
        dataRibbonPage1.Visible = true;

winforms-spreadsheet-use-cell-range-as-data-source/VB/RangeDataSource/Form1.vb#L84

vb
Private Sub xtraTabControl1_SelectedPageChanged(ByVal sender As Object, ByVal e As DevExpress.XtraTab.TabPageChangedEventArgs)
    If e.Page Is tbSheet Then
        dataRibbonPage1.Visible = True

See Also

PrevPage

TabPageChangedEventArgs Class

TabPageChangedEventArgs Members

DevExpress.XtraTab Namespace