New to Telerik UI for WinForms? Start a free 30-day trial

Provides read-only access to top-level or nested PropertyGrid items, with name lookup and explicit sorting.

The collection wraps the supplied list rather than copying it; sorting changes that backing list.

Definition

Constructors

Wraps the list that stores the property items.

C#
public PropertyGridItemCollection(IList<PropertyGridItem> items)
Parameters:itemsIList<PropertyGridItem>

The backing list; it must be a List<PropertyGridItem> if Sort(IComparer<PropertyGridItem>) will be used.

Properties

Finds the first child item whose property name matches the specified name.

C#
public PropertyGridItem this[string propertyName] { get; }
Parameters:propertyNamestring

The property name to find.

Property Value:

The matching item, or null if no child has that name.

Methods

Sorts the backing list in place.

C#
public virtual void Sort(IComparer<PropertyGridItem> comparer)
Parameters:comparerIComparer<PropertyGridItem>

The comparer used to order the items.