Method AddProps
AddProps(object, IPropertyGridItem?, bool)
Adds all public properties of the specified object.
void AddProps(object instance, IPropertyGridItem? parent = null, bool sort = false)
Parameters
instance
objectObject instance which properties will be added.
parent
IPropertyGridItemOptional. Parent item to which properties are added.
sort
boolOptional. Equals
false
by default. Iftrue
, properties will be sorted ascending dy name.
Remarks
If parent
is null
(default) properties are
added on the root level.