Class ContextMenuModule
Represents the context menu module in DocumentEditor.
Inheritance
System.Object
ContextMenuModule
Namespace: Syncfusion.Blazor.DocumentEditor
Assembly: Syncfusion.Blazor.DocumentEditor.dll
Syntax
public class ContextMenuModule : Object
Constructors
ContextMenuModule(SfDocumentEditor)
Initializes a new instance of the ContextMenuModule class. Default constructor for ContextMenu.
Declaration
public ContextMenuModule(SfDocumentEditor baseComponent)
Parameters
Type | Name | Description |
---|---|---|
SfDocumentEditor | baseComponent | An DocumentEdiorComponent instance. |
Properties
DocumentEditor
DocumentEdiorComponent instance.
Declaration
protected SfDocumentEditor DocumentEditor { get; set; }
Property Value
Type |
---|
SfDocumentEditor |
Methods
AddCustomMenu(List<MenuItemModel>, Boolean, Boolean)
Add and customize custom context menu items.
Declaration
public void AddCustomMenu(List<MenuItemModel> items, bool isEnable, bool isBottom)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<MenuItemModel> | items | Custom context menu items. |
System.Boolean | isEnable | Hide existing menu items and show custom menu item alone. |
System.Boolean | isBottom | Place the new items at the bottom of existing items. |
HideSpellContextItems()
Hide spelling context menu items.
Declaration
public void HideSpellContextItems()