WinForms

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

    Show / Hide Table of Contents

    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.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    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 Description
    System.Boolean

    Empty

    Gets the empty instance of this class.

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

    Index

    Gets the index of item.

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

    OldValue

    Gets the old value collection.

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

    Value

    Gets the value of item.

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