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