Inheritance
System.Object
XPMenusProvider
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Syncfusion.Tools.Windows.dll
public class XPMenusProvider : IContextMenuProvider
Constructors
Declaration
Fields
Declaration
protected bool m_bNeedAddRemoveButton
Field Value
Declaration
protected PopupMenu popupMenu
Field Value
textHandlerMap
Declaration
protected Hashtable textHandlerMap
Field Value
| Type |
| System.Collections.Hashtable |
Methods
AddContextMenuItem(String, EventHandler)
Declaration
public void AddContextMenuItem(string itemtext, EventHandler handler)
Parameters
| Type |
Name |
Description |
| System.String |
itemtext |
|
| System.EventHandler |
handler |
|
AddContextMenuItem(String, String, EventHandler)
Declaration
public void AddContextMenuItem(string parentitemtext, string itemtext, EventHandler handler)
Parameters
| Type |
Name |
Description |
| System.String |
parentitemtext |
|
| System.String |
itemtext |
|
| System.EventHandler |
handler |
|
Declaration
ContextMenuCommandHandler(Object, EventArgs)
Declaration
protected void ContextMenuCommandHandler(object sender, EventArgs args)
Parameters
| Type |
Name |
Description |
| System.Object |
sender |
|
| System.EventArgs |
args |
|
Declaration
public void DisposeContextMenu()
Declaration
public bool GetContextMenuItemChecked(string itemtext)
Parameters
| Type |
Name |
Description |
| System.String |
itemtext |
|
Returns
Declaration
public bool GetContextMenuItemEnabled(string itemtext)
Parameters
| Type |
Name |
Description |
| System.String |
itemtext |
|
Returns
Declaration
public Shortcut GetContextMenuItemShortcut(string itemtext)
Parameters
| Type |
Name |
Description |
| System.String |
itemtext |
|
Returns
| Type |
| System.Windows.Forms.Shortcut |
Gets the ContextMenu items Count.
Declaration
public int GetItemsCount()
Returns
Declaration
public void InitializeContextMenu()
Indicates whether "Add or Remove buttons" is needed.
Declaration
public bool NeedAddRemoveButtons()
Returns
Declaration
protected bool RecurseContainsMenuItem(ParentBarItem parentitem, string itemtext)
Parameters
| Type |
Name |
Description |
| ParentBarItem |
parentitem |
|
| System.String |
itemtext |
|
Returns
Declaration
protected void RecurseDisposeMenuItems(ParentBarItem parentitem)
Parameters
Declaration
protected BarItem RecurseGetMenuItem(ParentBarItem parentitem, string itemtext)
Parameters
| Type |
Name |
Description |
| ParentBarItem |
parentitem |
|
| System.String |
itemtext |
|
Returns
Declaration
protected ParentBarItem RecurseGetParentMenuItem(ParentBarItem parentitem, string itemtext)
Parameters
| Type |
Name |
Description |
| ParentBarItem |
parentitem |
|
| System.String |
itemtext |
|
Returns
Declaration
public void RemoveContextMenuItem(string itemtext)
Parameters
| Type |
Name |
Description |
| System.String |
itemtext |
|
Declaration
public void SetContextMenuItemChecked(string itemtext, bool bchecked)
Parameters
| Type |
Name |
Description |
| System.String |
itemtext |
|
| System.Boolean |
bchecked |
|
Declaration
public void SetContextMenuItemEnabled(string itemtext, bool benabled)
Parameters
| Type |
Name |
Description |
| System.String |
itemtext |
|
| System.Boolean |
benabled |
|
Declaration
public void SetContextMenuItemImage(string itemtext, ImageList list, int index)
Parameters
| Type |
Name |
Description |
| System.String |
itemtext |
|
| System.Windows.Forms.ImageList |
list |
|
| System.Int32 |
index |
|
Declaration
public void SetContextMenuItemSeparator(string itemtext, bool binsertseparator)
Parameters
| Type |
Name |
Description |
| System.String |
itemtext |
|
| System.Boolean |
binsertseparator |
|
Declaration
public void SetContextMenuItemShortcut(string itemtext, Shortcut key)
Parameters
| Type |
Name |
Description |
| System.String |
itemtext |
|
| System.Windows.Forms.Shortcut |
key |
|
Declaration
public void SetVisualStyle(VisualStyle style)
Parameters
Declaration
public void ShowContextMenu(Control owner, Point pt)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.Control |
owner |
|
| System.Drawing.Point |
pt |
|
Events
Occurs when menu is collapsed.
Declaration
public event EventHandler Collapse
Event Type
Occurs when menu is popped up.
Declaration
public event EventHandler Popup
Event Type
Implements