|
|
Title | Use the MergableProperty attribute in VB .NET |
Description | This example shows how to use the MergableProperty attribute in VB .NET. |
Keywords | MergableProperty, MergablePropertyAttribute, attribute, VB.NET, property |
Categories | VB.NET |
|
|
The MergableProperty attribute indicates whether the property can be merged with the same property provided by other components in the Properties window. If this is False and you select this property for more than one component, the Properties window doesn't display the property. The default is True.
In this example, the Employee class's FirstName property has MergableProperty = True but its LastName property has MergableProperty = False. If you select two Employee components on a form, you can set both of their FirstName values at the same time in the Properties window but the LastName property is not shown.
|
|
Public Class Employee
...
<MergableProperty(True)> _
Public Property FirstName() As String
...
End Property
<MergableProperty(False)> _
Public Property LastName() As String
...
End Property
...
End Class
|
|
|
|
|
|