wroxtab.cs
来自「ASP.NET服务器控件高级编程电子书」· CS 代码 · 共 51 行
CS
51 行
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 + =
减小字号Ctrl + -
显示快捷键?