📄 wroxtab.cs
字号:
using System;
using System.Windows.Forms.Design;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Drawing;
namespace WroxDesign.Design
{
public class WroxTab : PropertyTab
{
public WroxTab()
{
}
public override Bitmap Bitmap
{
get
{
return base.Bitmap;
}
}
public override string TabName
{
get { return "Wrox Tab"; }
}
public override bool CanExtend(object extendee)
{
if (extendee is WroxButton) return true;
return false;
}
public override PropertyDescriptorCollection GetProperties(object component)
{
return TypeDescriptor.GetProperties(component);
//return null;
}
public override PropertyDescriptorCollection GetProperties(object component, Attribute[] attributes)
{
return TypeDescriptor.GetProperties(component, attributes);
//return null;
}
public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object component, Attribute[] attributes)
{
return TypeDescriptor.GetProperties(component, attributes);
//return null;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -