Back to Devexpress

ContextItemCollectionOptions Class

windowsforms-devexpress-dot-utils-3ee503fb.md

latest3.8 KB
Original Source

ContextItemCollectionOptions Class

Stores a ContextItemCollection‘s settings. Use the ContextItemCollection.Options property or the control’s repository item to access them.

Namespace : DevExpress.Utils

Assembly : DevExpress.Utils.v25.2.dll

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

Declaration

csharp
public class ContextItemCollectionOptions :
    BaseOptions
vb
Public Class ContextItemCollectionOptions
    Inherits BaseOptions

The following members return ContextItemCollectionOptions objects:

Remarks

You can get and manipulate options for a control’s ContextItemCollection in code. To access the ContextItemCollectionOptions object, use the control’s repository item. The code below demonstrates how to change TopPanelColor.

csharp
using DevExpress.Utils;
using System.Drawing;
// ...
pictureEdit1.Properties.ContextButtonOptions.TopPanelColor = Color.Black;
vb
Imports DevExpress.Utils
Imports System.Drawing
' ...
pictureEdit1.Properties.ContextButtonOptions.TopPanelColor = Color.Black

The image below demonstrates the result.

Alternatively, you can access ContextItemCollectionOptions in a control’s Properties window.

Inheritance

Object ViewStatePersisterCore BaseOptions ContextItemCollectionOptions SimpleContextItemCollectionOptions

AccordionContextItemCollectionOptions

See Also

ContextItemCollectionOptions Members

DevExpress.Utils Namespace