Table of Contents

Method AddProps

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

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

instance object

Object instance which properties will be added.

parent IPropertyGridItem

Optional. Parent item to which properties are added.

sort bool

Optional. Equals false by default. If true, properties will be sorted ascending dy name.

Remarks

If parent is null (default) properties are added on the root level.