Show / Hide Table of Contents

Class ObservableCollectionEventArgs<T>

Represents the arguments thrown by the ObservableCollection events.

Inheritance
System.Object
System.EventArgs
ObservableCollectionEventArgs<T>
Inherited Members
System.EventArgs.Empty
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: netDxf.Collections
Assembly: CADability.dll
Syntax
public class ObservableCollectionEventArgs<T> : EventArgs
Type Parameters
Name Description
T

Type of items.

Constructors

| Improve this Doc View Source

ObservableCollectionEventArgs(T)

Initializes a new instance of ObservableCollectionEventArgs.

Declaration
public ObservableCollectionEventArgs(T item)
Parameters
Type Name Description
T item

Item that is being added or removed from the collection.

Properties

| Improve this Doc View Source

Cancel

Gets or sets if the operation must be canceled.

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

This property is used by the OnBeforeAdd and OnBeforeRemove events to cancel the add or remove operation.

| Improve this Doc View Source

Item

Get the item that is being added or removed from the collection.

Declaration
public T Item { get; }
Property Value
Type Description
T
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX