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

ITabbedViewController.SelectNextTab(Boolean) Method

Selects a Document neighboring the currently selected one.

Namespace: DevExpress.XtraBars.Docking2010.Views.Tabbed

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

bool SelectNextTab(
    bool forward
)

#Parameters

Name Type Description
forward Boolean

A boolean value specifying the selection direction.

#Returns

Type Description
Boolean

true if the document selection was successful; otherwise, false.

#Remarks

The SelectNextTab method selects a Document next to the currently selected one. The forward parameter specifies selection direction - set true to select the successive document or false to select the previous one. If only one document is hosted within the current DocumentManager, the SelectNextTab method does nothing.

To explicitly set which document should be selected use the ITabbedViewController.Select method instead.

The SelectNextTab method is performed by a ITabbedViewController. To access a controller associated with the current tabbed view, use the BaseView.Controller method and cast its return value to the ITabbedViewController type.

See Also