Class CollectionEventArgs
Represents a class that was used for sending messages between collection and user.
Inheritance
System.Object
System.EventArgs
CollectionEventArgs
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Windows.Forms.Edit.Utils
Assembly: Syncfusion.Edit.Windows.dll
Syntax
public class CollectionEventArgs : EventArgs
Constructors
CollectionEventArgs()
Initializes a new instance of the CollectionEventArgs class.
Declaration
public CollectionEventArgs()
CollectionEventArgs(Int32, Object)
Initializes a new instance of the CollectionEventArgs class with set Value and index.
Declaration
public CollectionEventArgs(int index, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of item |
System.Object | value | Value - refernce to collection item |
CollectionEventArgs(Int32, Object, Object)
Initializes a new instance of the CollectionEventArgs class with set value, index and old value.
Declaration
public CollectionEventArgs(int index, object value, object old)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of item |
System.Object | value | Value - refernce to collection item |
System.Object | old | Old value of item |
Properties
Cancel
Gets or sets a value indicating whether the class will skip call to base Collection method, otherwise CollectionBase class override methods will be called.
Declaration
public bool Cancel { get; set; }
Property Value
Type |
---|
System.Boolean |
Empty
Gets the empty instance of this class.
Declaration
public static CollectionEventArgs Empty { get; }
Property Value
Type |
---|
CollectionEventArgs |
Index
Gets the index of item.
Declaration
public int Index { get; }
Property Value
Type |
---|
System.Int32 |
OldValue
Gets the old value collection.
Declaration
public object OldValue { get; }
Property Value
Type |
---|
System.Object |
Value
Gets the value of item.
Declaration
public object Value { get; }
Property Value
Type |
---|
System.Object |