Table of Contents

Constructor CreatePropertyEventArgs

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

CreatePropertyEventArgs(string, string, object, PropertyInfo)

Initializes a new instance of the CreatePropertyEventArgs class.

public CreatePropertyEventArgs(string label, string propName, object instance, PropertyInfo propInfo)

Parameters

label string

Property label.

propName string

Property name in PropertyGrid.

instance object

Object instance which contains the property.

propInfo PropertyInfo

Property information.

Remarks

In order to override default property item creation mechanism, you need to create IPropertyGridItem instance and assign it to PropertyItem property. Also you need to set Handled to true. Also you can leave default value (null) in the PropertyItem. In this case property will not be added to PropertyGrid.