EditorButtonCollection.Insert(Int32, EditorButton) Method
Inserts the specified button at a given position.
Namespace: DevExpress.XtraEditors.Controls
Assembly: DevExpress.XtraEditors.v19.1.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
index | Int32 | The zero-based index at which the button is inserted. |
button | EditorButton | The button to insert to the collection. |
Remarks
The Insert method allows you to insert a button at a specific position. Elements that follow the insertion point are moved down to accommodate the new element.
If the index parameter is equal to or greater than the number of elements in the collection, the new element is appended to the end.
To add a new element(s) to the end of collection, see the EditorButtonCollection.Add and EditorButtonCollection.AddRange methods.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Insert(Int32, EditorButton) 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.