Back to Devexpress

NavigatorButtonsBase.CustomButtons Property

windowsforms-devexpress-dot-xtraeditors-dot-navigatorbuttonsbase-a2796a96.md

latest2.6 KB
Original Source

NavigatorButtonsBase.CustomButtons Property

Gets the collection of custom buttons.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public NavigatorCustomButtons CustomButtons { get; }
vb
Public ReadOnly Property CustomButtons As NavigatorCustomButtons

Property Value

TypeDescription
NavigatorCustomButtons

A NavigatorCustomButtons object, which is the collection of custom buttons.

|

Remarks

The CustomButtons property provides access to the collection of custom buttons. Custom buttons can be added to or removed from the collection using the appropriate methods of the collection. Individual buttons can be accessed using indexer notation. The image below shows the data navigator control which contains a custom button.

To access the built-in buttons, use the NavigatorButtonsBase.ButtonCollection property. This property is accessible from the control’s DataNavigator.Buttons or ControlNavigator.Buttons property.

By default, custom buttons are displayed after built-in buttons. To place a custom button at a specific position among the built-in and existing custom buttons, use the NavigatorCustomButton.Index property.

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

See Also

Buttons

ButtonClick

NavigatorButtonsBase Class

NavigatorButtonsBase Members

DevExpress.XtraEditors Namespace