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

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上。

原文地址:https://www.cnblogs.com/ghfsusan/p/1654288.html