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
XPCollectionChangedTypeAn XPCollectionChangedType enumeration value which represents the kind of change. This value is assigned to the XPCollectionChangedEventArgs.CollectionChangedType property.
changedObject
objectAn 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
XPCollectionChangedTypeAn XPCollectionChangedType enumeration value which represents the kind of change. This value is assigned to the XPCollectionChangedEventArgs.CollectionChangedType property.
changedObject
objectAn object which represents the instance of the collection with the change. This value is assigned to the XPCollectionChangedEventArgs.ChangedObject property.
newIndex
intAn 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
CollectionChangedType
An XPCollectionChangedType enumeration value which represents the kind of change.
public XPCollectionChangedType CollectionChangedType
Field Value
NewIndex
Gets or sets the zero-based index of the object in the XPCollection.
public int NewIndex