menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class CollectionEventArgs - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class CollectionEventArgs

    Class which is used for sending messages between the collection and the 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.HTMLUI
    Assembly: Syncfusion.HTMLUI.Windows.dll
    Syntax
    public class CollectionEventArgs : EventArgs

    Constructors

    CollectionEventArgs(Int32, Object)

    Initializes a new instance of the CollectionEventArgs class

    Declaration
    public CollectionEventArgs(int index, object value)
    Parameters
    Type Name Description
    System.Int32 index

    Index of the item.

    System.Object value

    Value - reference to the collection item.

    CollectionEventArgs(Int32, Object, Object)

    Initializes a new instance of the CollectionEventArgs class

    Declaration
    public CollectionEventArgs(int index, object value, object old)
    Parameters
    Type Name Description
    System.Int32 index

    Index of the item.

    System.Object value

    Value - reference to the collection item.

    System.Object old

    Old value of the item.

    Properties

    Cancel

    Gets or sets a value indicating whether class will skip call to base Collection method; False indicates that the CollectionBase's class override method will be called.

    Declaration
    public bool Cancel { get; set; }
    Property Value
    Type
    System.Boolean

    Empty

    Gets an empty instance of the class.

    Declaration
    public static CollectionEventArgs Empty { get; }
    Property Value
    Type
    CollectionEventArgs

    Index

    Gets the index of the item.

    Declaration
    public int Index { get; }
    Property Value
    Type
    System.Int32

    OldValue

    Gets the old value of the property.

    Declaration
    public object OldValue { get; }
    Property Value
    Type
    System.Object

    Value

    Gets the value of the item.

    Declaration
    public object Value { get; }
    Property Value
    Type
    System.Object
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved