using System; using System.Text; namespace DevComponents.DotNetBar { /// /// Provides information for ribbon customization events. /// public class RibbonCustomizeEventArgs : EventArgs { /// /// Gets or sets whether the menu popup will be cancelled. Default value is false. /// public bool Cancel = false; /// /// Gets or sets the reference to the object customize menu will be acting on. This could be an ButtonItem or any /// BaseItem derived class as well as RibbonBar object. /// public object ContextObject = null; /// /// Gets or sets the reference to the popup menu that will be displayed. You can change the members of SubItems collection to add/remove/change /// the context menu items that will be displayed. /// public BaseItem PopupMenu = null; /// /// Creates new instance of the object and initializes it with default values. /// /// Reference to context object. /// Reference to popup menu item if any. public RibbonCustomizeEventArgs(object contextObject, BaseItem popupMenuItem) { this.ContextObject = contextObject; this.PopupMenu = popupMenuItem; } } }