
























BindableAttribute:
在设计期间用于确定属性是否支持双向数据绑定
BrowsableAttribute:
确定是否显示在可视化设计器中
CategoryAttribute:
确定属性窗口中,属性显示在哪个类别中。使用预定义的类别,或创建新的类别,默认值为Misc
DefaultEventAttribute:
指定类的默认事件
DefaultPropertyAttribute:
指定类的默认属性
DefaultValueAttribute:
指定属性的默认值。一般是初始值
DescriptionAttribute:
在选中属性时,这是显示在设计器窗口底部的文本
[Category("Behavior"),
Description("Gets or sets the base or root folder of the tree."),
DefaultValue("C:\\")]
public string RootFolder
{
get { return _rootFolder; }
set
{
_rootFolder = value;
if (!_inInit)
InitializeTree();
}
}
DesignOnlyAttribute:
把属性标记为只能在设计模式下编辑
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。