Click or drag to resize

NamedObjectCollectionChangedEventArgs Class

Provides event data for changes in a named object collection.
Inheritance Hierarchy
SystemObject
  SystemEventArgs
    Altaxo.MainSelfAccumulateableEventArgs
      Altaxo.MainNamedObjectCollectionChangedEventArgs

Namespace: Altaxo.Main
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public class NamedObjectCollectionChangedEventArgs : SelfAccumulateableEventArgs

The NamedObjectCollectionChangedEventArgs type exposes the following members.

Constructors
 NameDescription
Public methodNamedObjectCollectionChangedEventArgs(Object, NamedObjectCollectionChangeType) Initializes a new instance of the NamedObjectCollectionChangedEventArgs class.
Public methodNamedObjectCollectionChangedEventArgs(Object, String, String, NamedObjectCollectionChangeType) Initializes a new instance of the NamedObjectCollectionChangedEventArgs class for a single item change.
Top
Properties
 NameDescription
Public propertyChanges Gets the recorded change flags.
Public propertyItem Gets the affected item.
Public propertyNewName Gets the current item name.
Public propertyOldName Gets the previous item name, if available.
Public propertyWasItemAdded Gets a value indicating whether an item was added.
Public propertyWasItemRemoved Gets a value indicating whether an item was removed.
Public propertyWasItemRenamed Gets a value indicating whether an item was renamed.
Public propertyWasMultipleItemsChanged Gets a value indicating whether multiple items changed.
Top
Methods
 NameDescription
Public methodAdd Adds the specified event arguments.
(Overrides SelfAccumulateableEventArgsAdd(SelfAccumulateableEventArgs))
Public methodEquals Override so that two instances of this type, which contain exactly the same item are considered the same. This is to ensure that events are accumulated for each individual item of a collection during the suspended state.
(Overrides SelfAccumulateableEventArgsEquals(Object))
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodStatic memberFromItemAdded Returns an instance when an item was added.
Public methodStatic memberFromItemRemoved(INamedObject) Returns an instance when an item was added.
Public methodStatic memberFromItemRemoved(INamedObject, String) Returns an instance when an item was added. Here the additional parameter itemNameOverride is used as the new and old name of the item. Use this only when absolutely sure about it.
Public methodStatic memberFromItemRenamed Returns an instance when an item was added.
Public methodStatic memberFromMultipleChanges Returns an instance when an item was added.
Public methodGetHashCode Override so that two instances of this type, which contain exactly the same item are considered the same. This is to ensure that events are accumulated for each individual item of a collection during the suspended state.
(Overrides SelfAccumulateableEventArgsGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also