CollectionViewGroup 类

定义

表示根据 GroupDescriptionsCollectionView 对象创建的组。Represents a group created by a CollectionView object based on the GroupDescriptions.

public ref class CollectionViewGroup abstract : System::ComponentModel::INotifyPropertyChanged
public abstract class CollectionViewGroup : System.ComponentModel.INotifyPropertyChanged
type CollectionViewGroup = class
    interface INotifyPropertyChanged
Public MustInherit Class CollectionViewGroup
Implements INotifyPropertyChanged
继承
CollectionViewGroup
实现

注解

当使用定义组时 GroupDescriptions ,视图对象 (CollectionViewSource 对象或派生自) 的对象 CollectionView 包装对象中的每个组 CollectionViewGroupWhen you define groups using the GroupDescriptions, your view object (a CollectionViewSource object or an object that derives from CollectionView) wraps each group in a CollectionViewGroup object.

XAML 文本用法XAML Text Usage

不能在 XAML 中使用此类。You cannot use this class in XAML.

构造函数

CollectionViewGroup(Object)

使用组名称初始化 CollectionViewGroup 类的新实例。Initializes a new instance of the CollectionViewGroup class with the name of the group.

属性

IsBottomLevel

获取一个值,该值指示此组是否有任何子组。Gets a value that indicates whether this group has any subgroups.

ItemCount

获取此组下子树中项数。Gets the number of items in the subtree under this group.

Items

获取此组中包含的即时项。Gets the immediate items contained in this group.

Name

获取此组的名称。Gets the name of this group.

ProtectedItemCount

获取或设置此组下子树中项的数目。Gets or sets the number of items in the subtree under this group.

ProtectedItems

获取此组中包含的即时项。Gets the immediate items contained in this group.

方法

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
OnPropertyChanged(PropertyChangedEventArgs)

使用提供的自变量引发 PropertyChanged 事件。Raises the PropertyChanged event using the provided arguments.

ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

事件

PropertyChanged

在属性值更改时发生。Occurs when a property value changes.

显式接口实现

INotifyPropertyChanged.PropertyChanged

在属性值更改时发生。Occurs when a property value changes.

适用于