Base:
property
Position
System.Windows.Forms.BindingManagerBase.Position
9 writes to Position
System.Windows.Forms (4)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
2626DataManager.Position = SelectedIndex;
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (1)
1362CurrencyManager.Position = e.RowIndex;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
1901DataManager.Position = SelectedIndex;
System\Windows\Forms\DataBinding\BindingSource.cs (1)
369_currencyManager.Position = value;
System.Windows.Forms.Tests (5)
System\Windows\Forms\ListBoxTests.cs (3)
2450control.DataManager.Position = position; 2932control.DataManager.Position = position; 5826control.DataManager.Position = position;
System\Windows\Forms\ListControlTests.cs (2)
350control.DataManager.Position = 1; 366control.DataManager.Position = 1;
76 references to Position
System.Windows.Forms (45)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (4)
2621if (DataManager is not null && DataManager.Position != SelectedIndex) 3017SelectedIndex = DataManager.Position; 3290PInvokeCore.SendMessage(this, PInvoke.CB_SETCURSEL, (WPARAM)DataManager.Position); 3294_selectedIndex = DataManager.Position;
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (8)
718CurrencyManager!.Position > -1 && // condition 3. 719CurrencyManager.Position == _owner.NewRowIndex && // condition 4. 1227int rowIndex = CurrencyManager!.Position; 1291if (CurrencyManager!.Position >= 0 && CurrencyManager.Position < CurrencyManager.List!.Count) 1304if (CurrencyManager.Position >= 0 && CurrencyManager.Position < CurrencyManager.List!.Count) 1358&& CurrencyManager.Position != e.RowIndex)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
14782Debug.Assert(DataConnection.CurrencyManager.Position == _ptCurrentCell.Y);
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (4)
1894if (DataManager is not null && DataManager.Position != SelectedIndex) 1939SelectedIndex = DataManager.Position; 2012SelectedIndex = DataManager.Position; 2118PInvokeCore.SendMessage(this, PInvoke.LB_SETCURSEL, (WPARAM)DataManager.Position);
System\Windows\Forms\Controls\ListControl\ListControl.cs (2)
399SelectedIndex = _dataManager.Position; 414SelectedIndex = _dataManager.Position;
System\Windows\Forms\DataBinding\Binding.BindToObject.cs (1)
185cm[cm.Position] = value;
System\Windows\Forms\DataBinding\BindingSource.cs (2)
361get => _currencyManager.Position; 364if (_currencyManager.Position != value)
System\Windows\Forms\DataBinding\CurrencyManager.cs (21)
132public override object? Current => this[Position]; 288validating: (Position != _list.Count - 1), 289endCurrentEdit: (Position != _list.Count - 1), 301object? item = (Position >= 0 && Position < _list.Count) ? _list[Position] : null; 310iListWithCancelAddNewSupport.CancelNew(Position); 313OnItemChanged(new ItemChangedEventArgs(Position)); 314if (Position != -1) 316OnListChanged(new ListChangedEventArgs(ListChangedType.ItemChanged, Position)); 474object? item = (Position >= 0 && Position < _list.Count) ? _list[Position] : null; 483iListWithCancelAddNewSupport.EndNew(Position); 776ChangeRecordState(dbe.NewIndex, true, Position > -1 && Position < _list.Count, true, false); 782ChangeRecordState(dbe.OldIndex, true, Position > -1 && Position < _list.Count, true, false); 845object? item = _list[Position]; 891if ((e.Index == listposition || (e.Index == -1 && Position < Count)) && !_state.HasFlag(CurrencyManagerStates.InChangeRecordState)) 1022ChangeRecordState(newPos, _state.HasFlag(CurrencyManagerStates.Bound), (Position != newPos), true, false);
System\Windows\Forms\DataBinding\ListBindingHelper.cs (2)
57bool currentKnown = (cm is not null && cm.Position >= 0 && cm.Position <= cm.Count - 1);
System.Windows.Forms.Tests (31)
System\Windows\Forms\BindingContextTests.cs (10)
423Assert.Equal(0, manager.Position); 437Assert.Equal(0, manager.Position); 456Assert.Equal(0, manager.Position); 583Assert.Equal(0, manager.Position); 620Assert.Equal(0, manager.Position); 642Assert.Equal(0, manager.Position); 827Assert.Equal(0, manager.Position); 865Assert.Equal(0, manager.Position); 922Assert.Equal(0, manager1.Position); 929Assert.Equal(0, manager2.Position);
System\Windows\Forms\BindingSourceTests.cs (7)
28Assert.Equal(-1, source.CurrencyManager.Position); 87Assert.Equal(-1, source.CurrencyManager.Position); 152Assert.Equal(-1, source.CurrencyManager.Position); 238Assert.Equal(0, source.CurrencyManager.Position); 308Assert.Equal(0, source.CurrencyManager.Position); 417Assert.Equal(-1, source.CurrencyManager.Position); 491Assert.Equal(-1, source.CurrencyManager.Position);
System\Windows\Forms\ListBoxTests.cs (11)
2458Assert.Equal(1, control.DataManager.Position); 2467Assert.Equal(1, control.DataManager.Position); 2476Assert.Equal(0, control.DataManager.Position); 2485Assert.Equal(0, control.DataManager.Position); 2940Assert.Equal(1, control.DataManager.Position); 2949Assert.Equal(1, control.DataManager.Position); 2958Assert.Equal(1, control.DataManager.Position); 2967Assert.Equal(0, control.DataManager.Position); 2976Assert.Equal(0, control.DataManager.Position); 5848Assert.Equal(position, control.DataManager.Position); 5855Assert.Equal(position, control.DataManager.Position);
System\Windows\Forms\ListControlTests.cs (3)
389Assert.Equal(0, control.DataManager.Position); 465Assert.Equal(0, control.DataManager.Position); 508Assert.Equal(0, control.DataManager.Position);