Bar

BarManager.SelectLink(BarItemLink) Method

Selects the specified link.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v20.1.dll

Declaration

public virtual void SelectLink(
    BarItemLink link
)
Public Overridable Sub SelectLink(
    link As BarItemLink
)

Parameters

Name Type Description
link BarItemLink

A BarItemLink object representing the link to be selected.

Remarks

End-users can navigate through bars and their links using their keyboard. They can initiate keyboard navigation using the ALT key. The first link of the main menu will be selected after pressing it. Arrow keys allow users to navigate through links and sub-menus. End-users can also press the TAB and SHIFT+TAB combinations to move one link forward or backward. The CTRL+TAB combination moves keyboard focus from bar to bar.

Use the SelectLink method to initiate keyboard navigation through links starting at the link specified as the parameter. Note that a link cannot be selected if it is not currently visible on screen. For instance, you cannot use the SelectLink method to select a link residing in a closed sub-menu.

Note: when navigating through links using the keyboard, the BarManager.HighlightedLinkChanged event fires. The BarManager.HighlightedLink property allows you to obtain the currently highlighted (selected) link.

See Also