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

NavigatorCustomButtons.Add() Method

Adds a new custom button to the current collection.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.2.dll

Declaration

public NavigatorCustomButton Add()

Returns

Type Description
NavigatorCustomButton

The button added to the collection.

Remarks

The properties of the button created by this method are set to their default values.

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

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Add() 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.

See Also