Component Attributes


Visual Basic .NET Unleashed
By Paul Kimmel
Table of Contents
Chapter 12.  Defining Attributes

Component Attributes

There are dozens of attributes that we have not covered yet. You already know how to use attributes in general. The only thing you have to do is discover the attribute's name , determine its purpose and its positional and named arguments, and you will be able to subclass or employ those attributes.

To provide you with a starting point, several attributes that you might see in other sections of this book are listed by name.

There are several component attributes. These include the following:

BindableAttribute DescriptionAttribute
BrowsableAttribute DesignerAttribute
CategoryAttribute DesignerSerializableAttribute
DefaultEventAttribute EditorAttribute
DefaultPropertyAttribute LocalizableAttribute
DefaultValueAttribute TypeConverterAttribute

DescriptionAttribute and CategoryAttribute were demonstrated earlier in this chapter, and you can read Chapter 16, "Designing User Interfaces," for more examples of component building.


Visual BasicR. NET Unleashed
Visual BasicR. NET Unleashed
Year: 2001
Pages: 222 © 2008-2017.
If you may any questions please contact us: