Source/Events/RibbonCustomizeEventArgs.cs

(完整代码) 1KB

using System;
using System.Text;

namespace DevComponents.DotNetBar
{
    /// <summary>
    /// Provides information for ribbon customization events.
    /// </summary>
    public class RibbonCustomizeEventArgs : EventArgs
    {
        /// <summary>
        /// Gets or sets whether the menu popup will be cancelled. Default value is false.
        /// </summary>
        public bool Cancel = false;

        /// <summary>
        /// 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.
        /// </summary>
        public object ContextObject = null;

        /// <summary>
        /// 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.
        /// </summary>
        public BaseItem PopupMenu = null;

        /// <summary>
        /// Creates new instance of the object and initializes it with default values.
        /// </summary>
        /// <param name="contextObject">Reference to context object.</param>
        /// <param name="popupMenuItem">Reference to popup menu item if any.</param>
        public RibbonCustomizeEventArgs(object contextObject, BaseItem popupMenuItem)
        {
            this.ContextObject = contextObject;
            this.PopupMenu = popupMenuItem;
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。