Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

EditorButtonCollection.Insert(Int32, EditorButton) Method

Inserts the specified button at a given position.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public virtual void Insert(
    int index,
    EditorButton button
)

#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.

See Also