⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 commandresource.cs

📁 代码模版 codtemplate
💻 CS
字号:
using System;

namespace CodeTemplate
{
	/// <summary>
	/// Summary description for CommandResource.
	/// </summary>
	internal struct CommandResource
	{
		public CommandResource(String progID, String commandName, String buttonText, String toolTip)
		{
            this.ProgID = progID;
            this.CommandName = commandName;
            this.ButtonText = buttonText;
            this.ToolTip = toolTip;
            this.IsMSOButton = true;
            this.BitmapID = 0;
            this.KeyBind = "";
		}

        public CommandResource(String progID, String commandName, String buttonText, String toolTip, Int32 bitmapID, Boolean isMSOButton):
            this(progID, commandName, buttonText, toolTip)
        {
			this.BitmapID = bitmapID;
            this.IsMSOButton = isMSOButton;
        }

        public CommandResource(String progID, String commandName, String buttonText, String toolTip, Int32 bitmapID, Boolean isMSOButton, String keyBind):
            this(progID, commandName, buttonText, toolTip, bitmapID, isMSOButton)
        {
            this.KeyBind = keyBind;
        }

        public readonly String ProgID;
        public readonly String CommandName;
        public readonly String ButtonText;
        public readonly String ToolTip;
        public readonly Boolean IsMSOButton;
        public readonly Int32 BitmapID;
        public readonly String KeyBind;

        public String FullCommand
        {
            get { return this.ProgID + "." + this.CommandName; }
        }
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -