CollectionView.GroupDescriptions 属性

定义

获取 GroupDescription 对象的集合,该集合描述集合中的项在视图中的分组方式。Gets a collection of GroupDescription objects that describes how the items in the collection are grouped in the view.

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

属性值

ObservableCollection<GroupDescription>

在所有情况下均为 nullnull in all cases.

实现

注解

此属性的值始终为, null 因为 CollectionView 类不支持对其基础集合进行分组。The value of this property is always null because the CollectionView class does not support grouping over its underlying collection. 派生类 ListCollectionViewBindingListCollectionView do 支持分组。The derived classes ListCollectionView and BindingListCollectionView do support grouping.

适用于

另请参阅