BarEditItemLink.ShowEditor() Method
Activates this link’s editor.
Namespace: DevExpress.XtraBars
Assembly: DevExpress.XtraBars.v18.2.dll
Declaration
Remarks
Use the ShowEditor method to activate this link’s editor programmatically. The editor is activated if the following conditions are met:
- The BarEditItemLink.CanOpenEdit property returns true.
- The link is currently visible. (For instance, the edit link may not be visible if the owning bar is oriented vertically, and its BarOptions.RotateWhenVertical option is enabled.)
- The ItemCancelEventArgs.Cancel parameter of the BarEditItem.ShowingEditor event is not set to true. This event is raised when activating the editor via the mouse, or calling the ShowEditor method. The ItemCancelEventArgs.Cancel parameter allows you to prohibit editor activation.
After the editor has been activated, the BarEditItem.ShownEditor event of the corresponding item is raised.
To access the currently active editor, use the BarManager.ActiveEditor property.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the ShowEditor() 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.