Back to Devexpress

ContextItemCollection Class

windowsforms-devexpress-dot-utils-711f8d79.md

latest4.9 KB
Original Source

ContextItemCollection Class

Represents a collection of ContextItem objects displayed in a control.

Namespace : DevExpress.Utils

Assembly : DevExpress.Utils.v25.2.dll

NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core

Declaration

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

The following members return ContextItemCollection objects:

Show 17 links

Remarks

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

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.

csharp
using DevExpress.Utils;
// ...
pictureEdit1.Properties.ContextButtons.Add(new ContextButton());
vb
Imports DevExpress.Utils
' ...
pictureEdit1.Properties.ContextButtons.Add(New ContextButton())

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

Click the ellipsis button to invoke the ContextItemCollection editor.

Inheritance

Object CollectionBase ContextItemCollection AccordionContextItemCollection

See Also

ContextItemCollection Members

Tutorial: WinExplorer View - Context Buttons

DevExpress.Utils Namespace