menucontroldesigner.cs
来自「c#编写的仿OUTLOOK工具条的Winform菜单」· CS 代码 · 共 31 行
CS
31 行
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Windows.Forms;
using System.Windows.Forms.Design;
namespace UtilityLibrary.Menus
{
public class MenuControlDesigner : System.Windows.Forms.Design.ParentControlDesigner
{
public override ICollection AssociatedComponents
{
get
{
if (base.Control is UtilityLibrary.Menus.MenuControl)
return ((UtilityLibrary.Menus.MenuControl)base.Control).MenuCommands;
else
return base.AssociatedComponents;
}
}
protected override bool DrawGrid
{
get { return false; }
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?