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