Skip to main content

ITabbedViewController.SelectNextTab(Boolean) Method

Selects a Document neighboring the currently selected one.

Namespace: DevExpress.XtraBars.Docking2010.Views.Tabbed

Assembly: DevExpress.XtraBars.v24.1.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