Show / Hide Table of Contents

Class ObservableDictionaryEventArgs<TKey, TValue>

Represents the arguments thrown by the ObservableDictionaryEventArgs events.

Inheritance
System.Object
System.EventArgs
ObservableDictionaryEventArgs<TKey, TValue>
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 ObservableDictionaryEventArgs<TKey, TValue> : EventArgs
Type Parameters
Name Description
TKey

Type of items.

TValue

Type of items.

Constructors

| Improve this Doc View Source

ObservableDictionaryEventArgs(KeyValuePair<TKey, TValue>)

Initializes a new instance of ObservableDictionaryEventArgs.

Declaration
public ObservableDictionaryEventArgs(KeyValuePair<TKey, TValue> item)
Parameters
Type Name Description
System.Collections.Generic.KeyValuePair<TKey, TValue> item

Item that is being added or removed from the dictionary.

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 operations.

| Improve this Doc View Source

Item

Get the item that is being added to or removed from the dictionary.

Declaration
public KeyValuePair<TKey, TValue> Item { get; }
Property Value
Type Description
System.Collections.Generic.KeyValuePair<TKey, TValue>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX