Skip to main content
A newer version of this page is available. .

NavigatorButtonsBase.CustomButtons Property

Gets the collection of custom buttons.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.1.dll

Declaration

public NavigatorCustomButtons CustomButtons { get; }

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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the CustomButtons property.

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.

See Also