EditorButtonCollection Class
Represents a collection of editor buttons in a ButtonEdit control or its descendant.
Namespace: DevExpress.XtraEditors.Controls
Assembly: DevExpress.XtraEditors.v24.2.dll
Declaration
[ListBindable(false)]
public class EditorButtonCollection :
CollectionBase,
IEnumerable<EditorButton>,
IEnumerable,
IList<EditorButton>,
ICollection<EditorButton>
Related API Members
The following members 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.