NewStartingIndex property
Collapse the table of content
Expand the table of content

NotifyCollectionChangedEventArgs.NewStartingIndex property

Gets the index at which the change occurred.

Syntax


public:
property int NewStartingIndex { 
   int get();
}

Property value

Type: Int32

The index at which the change occurred.

Remarks

When programming with .NET, this class is hidden and developers should use the System.Collections.Specialized.NotifyCollectionChangedEventArgs class.

NewStartingIndex will contain the following values, depending on the Action being reported in the event data.

ActionValue
AddThe index of the newly added item.
MoveThe index of the newly added item. Because a Move can logically be considered a virtual Remove followed by a virtual Add, the index reported here might already be adjusted for the virtual Remove.
Remove-1
ReplaceThe index of the replaced item.
Reset-1

 

Note that this value is signed. This enables the -1 value cases.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows::UI::Xaml::Interop

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows::UI::Xaml::Interop

Metadata

Windows.winmd

See also

NotifyCollectionChangedEventArgs
XAML data binding sample

 

 

Show:
© 2016 Microsoft