Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    FastTrackingCollectionChangedEventArgs Struct

    Namespace: Stride.Core.Collections
    Assembly: Stride.Core.dll

    public struct FastTrackingCollectionChangedEventArgs
    Name Description
    Constructors
    FastTrackingCollectionChangedEventArgs(NotifyCollectionChangedAction, Object, Object, Int32, Boolean)
    FastTrackingCollectionChangedEventArgs(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


    FastTrackingCollectionChangedEventArgs(NotifyCollectionChangedAction, Object, Object, Int32, Boolean)

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

    FastTrackingCollectionChangedEventArgs(NotifyCollectionChangedAction, Object, Object, Object, Boolean)

    public FastTrackingCollectionChangedEventArgs(NotifyCollectionChangedAction action, object key, object item, object oldItem, bool collectionChanged = false)
    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.ValueType.Equals(System.Object)
    System.ValueType.GetHashCode()
    System.ValueType.ToString()

    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