We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to Add/ Remove the ContextMenuItem from EditControl Embedded ContextMenu?

EditControl has default embedded ContextMenu. This ContextMenu supports to add/remove the ContextMenuItem. It can be achieved using below functions.

 

AddContextMenuItem: Used to add the ContextMenuItem.

 

RemoveContextMenuItem: Used to remove the ContextMenuItem from the Embedded ContextMenu by passing the below corresponding ContextMenuItem Text. Please make use of the below ContextMenuItem Text. 

 

ContextMenuItem 

Corresponding Item Text 


1.Edit  

 

Cut  

Copy 

Paste 

Delete 

Undo 

Redo 

Find… 

Replace… 

Go to… 

Select All 

Delete All 

 

2. File 

 

New 

Open… 

Close 

Save 

Save As… 

Print Preview 

Print 

 

3. Advanced 

 

Tabify Selection 

Untabify Selection 

Indent Selection 

Unindent Selection 

Comment Selection 

Uncomment  

Expand All 

Collapse All 

 

4. Bookmarks 

 

Toggle Bookmark 

Next Bookmark 

Previous Bookmark 

Clear Bookmarks 

 

5. Options…  

 

 

1. &Edit 

 

“Cu&t” 

“Cop&y” 

“&Delete” 

“&Paste” 

“&Undo” 

“R&edo” 

“&Find” 

“&Replace” 

“&Go to…” 

“&Select All” 

“De&lete All” 

 

2. “&File” 

 

“&New” 

“&Open…” 

“&Close” 

“&Save” 

“Save &As..” 

“Print Pre&view” 

“&Print”  

 

3. “&Advanced” 

 

“&Tabify Selection” 

“&Untabify Selection” 

“&Indent Selection” 

“&U&nindent Selection” 

“&Comment Selection” 

“Unc&omment Selection” 

“&Exapnd All” 

“Co&llapse All” 

 

4. “&Bookmarks” 

 

“Toggle Bookmark” 

“Next Bookmark” 

“Previous Bookmark” 

“Clear Bookmarks” 

 

5. “&Options…” 

 

The following code demonstrates the same.

 

Code Example: [C#]

 

 

Code Example: [VB]

 

Screenshot

 

Figure: Default ContextMenu.

 

Figure: After Remove Save As.. from File ContextMenu Item.

 

Sample:

 

C#:  EditControlSample

VB:  EditControlSample

 

Article ID: Published Date: Last Revised Date: Platform: Control:
8467 02/22/2018 02/22/2018 Windows Forms EditControl
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon