Back to Devexpress

ControlNavigator.Buttons Property

windowsforms-devexpress-dot-xtraeditors-dot-controlnavigator-7b9fa9c9.md

latest2.7 KB
Original Source

ControlNavigator.Buttons Property

Provides access to the navigator’s built-in and custom buttons.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Behavior")]
[SmartTagSearchNestedProperties]
public ControlNavigatorButtons Buttons { get; }
vb
<DXCategory("Behavior")>
<SmartTagSearchNestedProperties>
Public ReadOnly Property Buttons As ControlNavigatorButtons

Property Value

TypeDescription
ControlNavigatorButtons

A ControlNavigatorButtons object which is the navigator’s buttons.

|

Remarks

The Buttons property provides access to the navigator’s built-in and custom buttons.

All built-in buttons are stored in the NavigatorButtonsBase.ButtonCollection inherited collection. These buttons can also be accessed individually with the properties exposed by the ControlNavigatorButtons class, e.g., ControlNavigatorButtons.First, ControlNavigatorButtons.Next, ControlNavigatorButtons.Edit, etc.

Custom buttons can be added using the NavigatorButtonsBase.CustomButtons inherited collection. By default, custom buttons are displayed after built-in buttons. To change the display order of custom buttons, use their NavigatorCustomButton.Index properties.

To respond to button clicks, handle the NavigatorBase.ButtonClick event.

See Also

ButtonClick

ControlNavigator Class

ControlNavigator Members

DevExpress.XtraEditors Namespace