Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    TrackingCollectionChangedEventArgs Class

    Namespace: Stride.Core.Collections
    Assembly: Stride.Core.dll
    System.Object → System.EventArgs → TrackingCollectionChangedEventArgs
    Derived from TrackingCollectionChangedEventArgs:

    public class TrackingCollectionChangedEventArgs : EventArgs
    Name Description
    Constructors
    TrackingCollectionChangedEventArgs(NotifyCollectionChangedAction, Object, Object, Int32, Boolean)
    TrackingCollectionChangedEventArgs(NotifyCollectionChangedAction, Object, Object, Object, Boolean)
    Properties
    Action

    Gets the type of action performed. Allowed values are System.Collections.Specialized.NotifyCollectionChangedAction.Add and System.Collections.Specialized.NotifyCollectionChangedAction.Remove.

    CollectionChanged

    Gets a value indicating whether [collection changed (not a replacement but real insertion/removal)].

    Index

    Gets the index in the collection (if applicable).

    Item

    Gets the added or removed item (if dictionary, value only).

    Key

    Gets the added or removed key (if dictionary).

    OldItem

    Gets the previous value. Only valid if Action is System.Collections.Specialized.NotifyCollectionChangedAction.Add and

    | Improve this Doc View Source

    Constructors


    TrackingCollectionChangedEventArgs(NotifyCollectionChangedAction, Object, Object, Int32, Boolean)

    public TrackingCollectionChangedEventArgs(NotifyCollectionChangedAction action, object item, object oldItem, int index, bool collectionChanged)
    Parameters
    Type Name Description
    System.Collections.Specialized.NotifyCollectionChangedAction action
    System.Object item
    System.Object oldItem
    System.Int32 index
    System.Boolean collectionChanged

    TrackingCollectionChangedEventArgs(NotifyCollectionChangedAction, Object, Object, Object, Boolean)

    public TrackingCollectionChangedEventArgs(NotifyCollectionChangedAction action, object key, object item, object oldItem, bool collectionChanged)
    Parameters
    Type Name Description
    System.Collections.Specialized.NotifyCollectionChangedAction action
    System.Object key
    System.Object item
    System.Object oldItem
    System.Boolean collectionChanged
    | Improve this Doc View Source

    Properties


    Action

    Gets the type of action performed. Allowed values are System.Collections.Specialized.NotifyCollectionChangedAction.Add and System.Collections.Specialized.NotifyCollectionChangedAction.Remove.

    public NotifyCollectionChangedAction Action { get; }
    Property Value
    Type Description
    System.Collections.Specialized.NotifyCollectionChangedAction

    CollectionChanged

    Gets a value indicating whether [collection changed (not a replacement but real insertion/removal)].

    public bool CollectionChanged { get; }
    Property Value
    Type Description
    System.Boolean

    true if [collection changed]; otherwise, false.


    Index

    Gets the index in the collection (if applicable).

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

    Item

    Gets the added or removed item (if dictionary, value only).

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

    Key

    Gets the added or removed key (if dictionary).

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

    OldItem

    Gets the previous value. Only valid if Action is System.Collections.Specialized.NotifyCollectionChangedAction.Add and

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

    Inherited Members

    System.EventArgs.Empty

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation