惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
小众软件
小众软件
博客园 - 叶小钗
宝玉的分享
宝玉的分享
博客园_首页
Hugging Face - Blog
Hugging Face - Blog
人人都是产品经理
人人都是产品经理
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
S
SegmentFault 最新的问题
B
Blog RSS Feed
Engineering at Meta
Engineering at Meta
N
Netflix TechBlog - Medium
Google DeepMind News
Google DeepMind News
U
Unit 42
F
Fortinet All Blogs
IT之家
IT之家
Y
Y Combinator Blog
Martin Fowler
Martin Fowler
T
The Blog of Author Tim Ferriss
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The GitHub Blog
The GitHub Blog
Stack Overflow Blog
Stack Overflow Blog
Blog — PlanetScale
Blog — PlanetScale
酷 壳 – CoolShell
酷 壳 – CoolShell

博客园 - rudyshen

我的自信到哪里去啦 了解一下自己 最近失业啦 XtraGrid控件3——3种GridView的属性 C#命名规范,控件、数据类型、ADO.NET等 C# 跳转语句(break,continue,goto,return,throw) Winform中通过一个字符串定位到和字符串相等ID的控件(将字符串转换成相应的控件名称) - rudyshen - 博客园 用户控件笔记<原创> XML笔记<原创> 什么时候应当使用interface?什么时候应当使用abstract class? XML操作<转> 怎样从DevExpress 7.1.1升级到DevExpress 7.3.5<原创> 怎样从DevExpress 7.1.1升级到DevExpress 7.3.5<原创> (C#)利用反射动态调用类成员[转载] Net中的反射使用入门 程序集的完全限定名与动态加载程序 DevExpress 7.3.5 笔记 DevExpress 组件ToolBar、PopupMenu 使用有感 转 实现QQ中消息窗体闪烁功能 转
C#控件属性
rudyshen · 2008-03-28 · via 博客园 - rudyshen

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:
把属性标记为只能在设计模式下编辑