1 write to NewIndex
System.ComponentModel.TypeConverter (1)
System\ComponentModel\ListChangedEventArgs.cs (1)
30
NewIndex
= newIndex;
42 references to NewIndex
PresentationFramework (5)
System\Windows\Data\BindingListCollectionView.cs (5)
1911
int index = args.
NewIndex
;
1995
if (args.OldIndex < _newItemIndex && _newItemIndex < args.
NewIndex
)
1999
else if (args.
NewIndex
<= _newItemIndex && _newItemIndex < args.OldIndex)
2006
_cachedList.Insert(args.
NewIndex
, item);
2016
item = InternalList[args.
NewIndex
];
System.Data.Common (9)
System\Data\DataView.cs (9)
1268
if (_addNewMoved.
NewIndex
== _addNewMoved.OldIndex)
1376
Debug.Assert(((ListChangedType.ItemChanged == e.ListChangedType) && ((e.
NewIndex
== e.OldIndex) || (-1 == e.OldIndex))) ||
1377
(ListChangedType.ItemMoved == e.ListChangedType && (e.
NewIndex
!= e.OldIndex) && (0 <= e.OldIndex)),
1380
Debug.Assert(0 <= e.
NewIndex
, "negative NewIndex");
1381
if (0 <= e.
NewIndex
)
1383
DataRow dr = GetRow(e.
NewIndex
);
1404
if ((col != null) && (e.
NewIndex
== e.OldIndex))
1406
ListChangedEventArgs newEventArg = new ListChangedEventArgs(e.ListChangedType, e.
NewIndex
, new DataColumnPropertyDescriptor(col));
1417
this[e.
NewIndex
].RaisePropertyChangedEvent(propertyName);
System.Windows.Forms (28)
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (12)
412
if (!_dataConnectionState[DATACONNECTIONSTATE_finishedAddNew] && _owner.NewRowIndex == e.
NewIndex
)
596
if (_owner.NewRowIndex == -1 || e.
NewIndex
!= _owner.Rows.Count)
598
_owner.Rows.InsertInternal(e.
NewIndex
, _owner.RowTemplateClone, force: true);
610
_owner.Rows.RemoveAtInternal(e.
NewIndex
, force: true);
617
Debug.Assert(e.
NewIndex
> -1, "how can we move an item outside of the list?");
618
int lo = Math.Min(e.OldIndex, e.
NewIndex
);
619
int hi = Math.Max(e.OldIndex, e.
NewIndex
);
623
Debug.Assert(e.
NewIndex
!= -1, "the item changed event does not cover changes to the entire list");
639
_owner.OnCellCommonChange(columnIndex, e.
NewIndex
);
644
_owner.OnCellCommonChange(columnIndex, e.
NewIndex
);
650
_owner.InvalidateCell(-1, e.
NewIndex
);
652
if (_owner.CurrentCellAddress.Y == e.
NewIndex
&& _owner.IsCurrentCellInEditMode)
System\Windows\Forms\DataBinding\CurrencyManager.cs (16)
627
dbe = new ListChangedEventArgs(ListChangedType.ItemAdded, e.
NewIndex
, e.OldIndex);
629
else if (e.ListChangedType == ListChangedType.ItemMoved && e.
NewIndex
< 0)
631
dbe = new ListChangedEventArgs(ListChangedType.ItemDeleted, e.OldIndex, e.
NewIndex
);
654
if (dbe.ListChangedType == ListChangedType.Reset && e.
NewIndex
== -1)
697
if (dbe.
NewIndex
<= listposition && listposition < _list.Count - 1)
714
else if (dbe.
NewIndex
== listposition && listposition == _list.Count - 1 && listposition != -1)
738
if (dbe.
NewIndex
== listposition)
749
if (dbe.
NewIndex
< listposition)
764
if (dbe.
NewIndex
== listposition)
769
OnItemChanged(new ItemChangedEventArgs(dbe.
NewIndex
));
776
ChangeRecordState(dbe.
NewIndex
, true, Position > -1 && Position < _list.Count, true, false);
778
else if (dbe.
NewIndex
== listposition)
1042
if (e.
NewIndex
== _lastGoodKnownRow)
1052
if (e.
NewIndex
<= _lastGoodKnownRow && _lastGoodKnownRow < List.Count - 1)
1061
_lastGoodKnownRow = e.
NewIndex
;
1066
if (e.
NewIndex
== _lastGoodKnownRow)