Skip to main content
All docs
V24.1

IContextMenuItem.Items Property

Returns a collection of nested items.

Namespace: DevExpress.Blazor.Office

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

IContextMenuItemCollection Items { get; }

Property Value

Type Description
IContextMenuItemCollection

The collection of nested items.

Remarks

The Items property allows you to access an item collection for an individual item.

You can obtain an item by its name or index. To obtain names of built-in items, use the RichEditContextMenuItemNames class properties.

<DxRichEdit CustomizeContextMenu=OnCustomizeContextMenu />

@code {
    void OnCustomizeContextMenu(IContextMenuItemCollection items) {
        IContextMenuItem textWrapMenu = items[RichEditContextMenuItemNames.TextWrapMenu];
        // Returns the first item in the Text Wrap Menu
        IContextMenuItem firstItem = textWrapMenu.Items[0];
        // Returns the "Text Wrap Inline" item
        IContextMenuItem wrapInlineItem = textWrapMenu.Items[RichEditContextMenuItemNames.TextWrapInline];
    }
}
See Also