NotifyCollectionChangedEventArgs.NewStartingIndex Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the index at which the change occurred.
public:
property int NewStartingIndex { int get(); };
int NewStartingIndex();
public int NewStartingIndex { get; }
var int32 = notifyCollectionChangedEventArgs.newStartingIndex;
Public ReadOnly Property NewStartingIndex As Integer
Property Value
int
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.
Action | Value |
---|---|
Add | The index of the newly added item. |
Move | The 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 |
Replace | The index of the replaced item. |
Reset | -1 |
Note that this value is signed. This enables the -1 value cases.