ITabbedViewController.SelectNextTab(Boolean) Method
Selects a Document neighboring the currently selected one.
Namespace: DevExpress.XtraBars.Docking2010.Views.Tabbed
Assembly: DevExpress.XtraBars.v19.2.dll
Declaration
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.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SelectNextTab(Boolean) method.
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.