Skip to main content
All docs
V25.2
  • IContextMenuItem.Visible Property

    Specifies whether the context menu item is visible.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.2.dll

    Declaration

    bool Visible { get; set; }

    Property Value

    Type Description
    Boolean

    true if the context menu item is visible; otherwise, false.

    Remarks

    Use the Visible property to hide or display the context menu item in Rich Text Editor, Grid, or TreeList.

    <DxRichEdit CustomizeContextMenu="CustomizeContextMenu"/>
    
    @code {
        void CustomizeContextMenu(IContextMenuItemCollection items) {
            IContextMenuItem selectAllItem = items[RichEditContextMenuItemNames.SelectAll];
            selectAllItem.Visible = false;
        }
    }
    

    Refer to CustomizeContextMenu event descriptions for additional information and examples:

    See Also