将属性添加到自定义控件的新类别 [英] Add property to new category of Custom control

查看:78
本文介绍了将属性添加到自定义控件的新类别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在asp.net的属性窗口中将控件的属性自定义为新类别
例如

How to custom control''s property to new category in property window in asp.net
as for example

[Category("Appearance")]
        public string GridCssClass
        {
            set { CssClass = value; }
        }


此代码会将Property GridCssClass添加到Appearance Category下的Property窗口中.
我的问题是我想创建新类别并将此属性添加到新创建的类别下.


this code will add Property GridCssClass to Property window under Appearance Category
My Question is that i want to make new category and add this property under newly created category

推荐答案

问题是什么?在该属性中添加一个新类别,例如

what''s the problem? Add a new category in that proerty for example

[Category("1est1 new category")]
[Description("Indicates the value of something.")]
public string GridCssClass
{
     set { CssClass = value; }
}


感谢兄弟.
对我来说真的很有效.
好的答案
Thanx brother.
It really worked for me.
Good answer


这篇关于将属性添加到自定义控件的新类别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆