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

📄 commandbarbuttonbase.cs

📁 c#源代码
💻 CS
字号:
// ---------------------------------------------------------
// Windows Forms CommandBar Control
// Copyright (C) 2001-2003 Lutz Roeder. All rights reserved.
// http://www.aisto.com/roeder
// roeder@aisto.com
// ---------------------------------------------------------
namespace Reflector.UserInterface
{
	using System;
	using System.ComponentModel;
	using System.Drawing;
	using System.Windows.Forms;
	
	public abstract class CommandBarButtonBase : CommandBarControl
	{
		private Keys shortcut = Keys.None;

		protected CommandBarButtonBase(string text) : base(text)
		{
		}

		protected CommandBarButtonBase(Image image) : base(image)
		{
		}

		protected CommandBarButtonBase(Image image, string text) : base(image, text)
		{
		}

		public Keys Shortcut
		{
			set
			{ 
				if (value != this.shortcut)
				{ 
					this.shortcut = value; 
					this.OnPropertyChanged(new PropertyChangedEventArgs("Shortcut")); 
				}
			}

			get { return this.shortcut; }
		  }
	}
}

⌨️ 快捷键说明

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