Constructor CreatePropertyEventArgs
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
stringProperty label.
propName
stringProperty name in PropertyGrid.
instance
objectObject instance which contains the property.
propInfo
PropertyInfoProperty 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.