ITabbedViewController.SelectNextTab(Boolean) Method

Selects a Document neighboring the currently selected one.

Namespace: DevExpress.XtraBars.Docking2010.Views.Tabbed

Assembly: DevExpress.XtraBars.v21.2.dll


bool SelectNextTab(
    bool forward


Name Type Description
forward Boolean

A boolean value specifying the selection direction.


Type Description

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


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