Table of Contents

Class XPCollectionChangedEventArgs

Namespace
DevExpress.Xpo
Assembly
DevExpress.Xpo.v24.1.dll

Provides data for the XPBaseCollection.CollectionChanged event.

public class XPCollectionChangedEventArgs : EventArgs
Inheritance
XPCollectionChangedEventArgs
Inherited Members

Constructors

XPCollectionChangedEventArgs(XPCollectionChangedType, object)

Initializes a new instance of the XPCollectionChangedEventArgs class.

public XPCollectionChangedEventArgs(XPCollectionChangedType collectionChangedType, object changedObject)

Parameters

collectionChangedType XPCollectionChangedType

An XPCollectionChangedType enumeration value which represents the kind of change. This value is assigned to the XPCollectionChangedEventArgs.CollectionChangedType property.

changedObject object

An object which represents the instance of the collection with the change. This value is assigned to the XPCollectionChangedEventArgs.ChangedObject property.

XPCollectionChangedEventArgs(XPCollectionChangedType, object, int)

Initializes a new instance of the XPCollectionChangedEventArgs class with the specified settings.

public XPCollectionChangedEventArgs(XPCollectionChangedType collectionChangedType, object changedObject, int newIndex)

Parameters

collectionChangedType XPCollectionChangedType

An XPCollectionChangedType enumeration value which represents the kind of change. This value is assigned to the XPCollectionChangedEventArgs.CollectionChangedType property.

changedObject object

An object which represents the instance of the collection with the change. This value is assigned to the XPCollectionChangedEventArgs.ChangedObject property.

newIndex int

An integer value which specifies the object’s new index within the collection. This value is assigned to the XPCollectionChangedEventArgs.NewIndex field.

Fields

ChangedObject

An object which represents the instance of the collection that has been changed.

public object ChangedObject

Field Value

object

CollectionChangedType

An XPCollectionChangedType enumeration value which represents the kind of change.

public XPCollectionChangedType CollectionChangedType

Field Value

XPCollectionChangedType

NewIndex

Gets or sets the zero-based index of the object in the XPCollection.

public int NewIndex

Field Value

int