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

EditorButtonCollection Class

Represents a collection of editor buttons in a ButtonEdit control or its descendant.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v18.1.dll

Declaration

[TypeConverter(typeof(UniversalCollectionTypeConverter))]
[ListBindable(false)]
public class EditorButtonCollection :
    CollectionBase,
    IList<EditorButton>,
    ICollection<EditorButton>,
    IEnumerable<EditorButton>,
    IEnumerable

The following members accept/return EditorButtonCollection objects:

Remarks

ButtonEdit editors and descendants allow you to display an unlimited number of buttons within the editor’s box. The collection of editor buttons available for an editor can be accessed via the RepositoryItemButtonEdit.Buttons property. This property returns a EditorButtonCollection object whose members allow you to add, delete, access individual buttons and perform other common collection management tasks. Note that each individual button is represented by an EditorButton object.

You don’t have to remove buttons to make them temporarily invisible. Instead, use the EditorButton.Visible property of the desired editor button.

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

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.

Inheritance

Object
CollectionBase
EditorButtonCollection
See Also