ItemCollection.GroupDescriptions Property

Definition

Gets a collection of GroupDescription objects that defines how to group the items.

public:
 virtual property System::Collections::ObjectModel::ObservableCollection<System::ComponentModel::GroupDescription ^> ^ GroupDescriptions { System::Collections::ObjectModel::ObservableCollection<System::ComponentModel::GroupDescription ^> ^ get(); };
public override System.Collections.ObjectModel.ObservableCollection<System.ComponentModel.GroupDescription> GroupDescriptions { get; }
member this.GroupDescriptions : System.Collections.ObjectModel.ObservableCollection<System.ComponentModel.GroupDescription>
Public Overrides ReadOnly Property GroupDescriptions As ObservableCollection(Of GroupDescription)

Property Value

An ObservableCollection<T> of GroupDescription objects. The collection is indexed by the group levels.

Examples

For a related example, see PropertyGroupDescription.

Remarks

Use the CanGroup property to test whether the current implementation supports grouping before adding GroupDescription objects.

Note

This property can be set only by accessing the collection object and using its various methods, such as Add. The property to access the collection object is read-only, while the collection itself is read-write.

Applies to

See also