System.ComponentModel.MergablePropertyAttribute Class

Specifies that this property can be combined with properties belonging to other objects in a Properties window.

See Also: MergablePropertyAttribute Members

Syntax

[System.AttributeUsage(System.AttributeTargets.All)]
public sealed class MergablePropertyAttribute : Attribute

Remarks

Properties that are marked with the System.ComponentModel.MergablePropertyAttribute set to true can be combined with properties belonging to other objects in a Properties window. Properties that are marked with the System.ComponentModel.MergablePropertyAttribute set to false must be displayed separately. The default is true.

Note:

When you mark a property with the System.ComponentModel.MergablePropertyAttribute set to true, the value of this attribute is set to the constant member MergablePropertyAttribute.Yes. For a property marked with the System.ComponentModel.MergablePropertyAttribute property set to false, the value is MergablePropertyAttribute.No. Therefore, when you want to check the value of this attribute in your code, you must specify the attribute as MergablePropertyAttribute.Yes or MergablePropertyAttribute.No.

For more information, see Extending Metadata Using Attributes.

Requirements

Namespace: System.ComponentModel
Assembly: System (in System.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0, 2.0.0.0, 4.0.0.0