[英]Category of UserControl, CustomControl property
I'm developer my new CustomControl
, I know when I put [Caterogy("MyCategeory")]
on the property, it will create a new category in the property List in design mode 我正在开发新的
CustomControl
,我知道将[Caterogy("MyCategeory")]
放在属性上时,它将在设计模式下的属性List中创建一个新类别。
Example: 例:
[Category("Mask")]
public string Mask
{
get
{
return _Mask;
}
set
{
this._Mask = value;
}
}
What name is this? 这叫什么名字 How to I can search about it?
我该如何搜索? I want meet others features for customize my control property, but I don't know how to called it and I don't know what more can I do for customize my properties
我想见其他功能来自定义控件属性,但是我不知道如何调用它,也不知道我还能做些什么来自定义属性
Example, how to can I set a property contains get, set, but no show in the property list? 例如,如何设置包含get,set但在属性列表中不显示的属性?
Category is an example of an Attribute . 类别是Attribute的一个示例。
Google "C# Attributes" and you should find a load of references to help you explore. Google的“ C#属性”,您应该找到大量参考资料来帮助您进行探索。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.