📄 dateitem.cs
字号:
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms.Design;
namespace MonthCalendar
{
public class DateItemDesigner : System.Windows.Forms.Design.ControlDesigner
{
public DateItemDesigner()
{
}
[System.Obsolete]
public override void OnSetComponentDefaults()
{
base.OnSetComponentDefaults();
}
/*// Use pull model to populate smart tag menu.
public override DesignerActionListCollection ActionLists
{
get
{
if (null == actionLists)
{
actionLists = new DesignerActionListCollection();
actionLists.Add(
new CalendarActionList(this.Component));
}
return actionLists;
}
}
*/
public override SelectionRules SelectionRules
{
get
{
// Remove all manual resizing of the control
SelectionRules selectionRules = base.SelectionRules;
//selectionRules = SelectionRules.Visible | SelectionRules.AllSizeable | SelectionRules.Moveable;
return selectionRules;
}
}
protected override void PreFilterProperties(System.Collections.IDictionary properties)
{
base.PreFilterProperties(properties);
/*
// Remove obsolete properties
properties.Remove("(ApplicationSettings)");
//properties.Remove("(Name)");
properties.Remove("GenerateMember");
properties.Remove("Modifiers");*/
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -