All docs
V20.1
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

ContextItemCollection Class

Represents a collection of ContextItem objects displayed in a control.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v20.1.dll

Declaration

public class ContextItemCollection :
    CollectionBase,
    ICloneable,
    IEnumerable<ContextItem>,
    IEnumerable
Public Class ContextItemCollection
    Inherits CollectionBase
    Implements ICloneable,
               IEnumerable(Of ContextItem),
               IEnumerable

Remarks

The ContextItemCollection property represents all ContextItem objects displayed in a control.

ContextItems

You can get and manipulate a control's ContextItemCollection in code - from the control's repository item. The code below demonstrates how to add a new ContextButton to the collection.

using DevExpress.Utils;
// ...
pictureEdit1.Properties.ContextButtons.Add(new ContextButton());

Altrnatively, you can access the control's ContextButtons property in the Properties window.

ContextItemCollection

Click the ellipsis button to invoke the ContextItemCollection editor.

ContextItemCollection

Inheritance

See Also