组件编程之固有属性和事件属性

EventAttribute有:
  BrowsableAttribute 、CategoryAttribute、DescriptionAttribute、DefaultEventAttribute
PropertyAttribute有:
  BrowsableAttribute 、CategoryAttribute、DescriptionAttribute、DefaultPropertyAttribute、DefaultValueAttributeEditorAttribute、DesignerSerializationVisibilityAttribute、TypeConverterAttributeBindableAttribute、LocalizableAttribute

Attribute简明阐述如下:

   BrowsableAttribute:在Property窗口中是否可见。
  CategoryAttribute:Property或者Event所属的哪个组。
  DescriptionAttribute:Property或者Event的简单描述。
  DefaultEventAttribute:默认Event,选中组件,其Event默认选中在这个Event上.
  DefaultPropertyAttribute:默认Property,选中组件,其Property窗口中默认选中在这个Property上。

 

posted on 2010-01-22 16:31  冬日阳光  阅读(256)  评论(0编辑  收藏  举报

导航