A newer version of this page is available. Switch to the current version.

EditorButtonCollection Class

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

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v19.1.dll

Declaration

[ListBindable(false)]
public class EditorButtonCollection :
    CollectionBase,
    IEnumerable<EditorButton>,
    IEnumerable,
    IList<EditorButton>,
    ICollection<EditorButton>
<ListBindable(False)>
Public Class EditorButtonCollection
    Inherits CollectionBase
    Implements IEnumerable(Of EditorButton),
               IEnumerable,
               IList(Of EditorButton),
               ICollection(Of EditorButton)

Related API Members

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.

Inheritance

Object
CollectionBase
EditorButtonCollection
See Also