NavigatorButtonsBase.CustomButtons Property

Gets the collection of custom buttons.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

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

Property Value

Type Description
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.

DataNavigator_CustomButtons

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