|
|
Title | Use the Category attribute in VB .NET |
Description | This example shows how to use the Category attribute in VB .NET. |
Keywords | Category, CategoryAttribute, attribute, VB.NET, property |
Categories | VB.NET |
|
|
The Category attribute indicates the category that should contain a property in the Properties window (when the user groups the properties by category rather than displaying alphabetically.
In this example, the Employee class's FirstName and LastName properties are displayed in the "PersonName" category.
|
|
<Category("PersonName")> _
Public Property FirstName() As String
...
End Property
<Category("PersonName")> _
Public Property LastName() As String
...
End Property
|
|
You can make up whatever category names you like but you should use existing names if they make sense.
|
|
|
|
|
|