Class CollectionChange

Describes a change in a collection.

see

{@link http://msdn.microsoft.com/en-us/library/dd393798(v=vs.100).aspx}

Index

Constructor methods

Properties

Constructor methods

constructor(action: NotifyCollectionChangedAction, newItems: Array<any>, newStartingIndex: number, oldItems: Array<any>, oldStartingIndex: number): CollectionChange

Creates a CollectionChange object based on the supplied parameters.

Parameters

  • action: NotifyCollectionChangedAction
          A NotifyCollectionChangedAction enumeration value.
    
  • newItems: Array<any>
          (Optional) The items that were added when the action is add or replace.
    
  • newStartingIndex: number
          (Optional) An integer that represents the index where new items have been inserted.
    
  • oldItems: Array<any>
          (Optional) The items that were removed when the action is remove or replace.
    

    @param oldStartingIndex (Optional) An integer that represents the index where old items have been removed.

  • oldStartingIndex: number

Returns

CollectionChange

Properties

public action: NotifyCollectionChangedAction

Gets a NotifyCollectionChangedAction object that contains the change action enumeration value.

returns

A NotifyCollectionChangedAction object.

public newItems: Array<any>

returns

An array of items that were added.

public newStartingIndex: number

The index where new items have been inserted.

returns

An integer that represents the index where new items have been inserted.

public oldItems: Array<any>

The items that were removed when the NotifyCollectionChangedAction object is set to remove.

returns

An array containing the items that were removed.

public oldStartingIndex: number

Gets the index where old items have been removed.

returns

An integer that represents the index where old items have been removed.