27 writes to SelectedIndex
System.Windows.Forms (2)
System\Windows\Forms\Controls\UpDown\DomainUpDown.cs (2)
130SelectedIndex = -1; 139SelectedIndex = i;
System.Windows.Forms.Tests (25)
System\Windows\Forms\AccessibleObjects\DirectionButtonAccessibleObjectTests.cs (2)
17domainUpDown.SelectedIndex = 1; // Select the second item 35domainUpDown.SelectedIndex = 1; // Select the second item
System\Windows\Forms\DomainUpDownTests.cs (23)
266_sub.SelectedIndex = -1; 275_sub.SelectedIndex = -1; 293_sub.SelectedIndex = value; 302_sub.SelectedIndex = value; 311_sub.SelectedIndex = -1; 330_sub.SelectedIndex = value; 339_sub.SelectedIndex = value; 348_sub.SelectedIndex = -1; 382_control.SelectedIndex = 0; 388_control.SelectedIndex = 0; 394_control.SelectedIndex = 1; 400_control.SelectedIndex = -1; 408_control.SelectedIndex = 0; 420_control.Invoking(c => c.SelectedIndex = value).Should().Throw<ArgumentOutOfRangeException>().And.ParamName.Should().Be("value"); 430_control.Invoking(c => c.SelectedIndex = value).Should().Throw<ArgumentOutOfRangeException>().And.ParamName.Should().Be("value"); 1246_sub.SelectedIndex = 2; 1327_sub.SelectedIndex = 0; 1355_control.SelectedIndex = initialIndex; 1372_control.SelectedIndex = initialIndex; 1388_control.SelectedIndex = selectedIndex; 1419_control.SelectedIndex = 2; 1428_control.SelectedIndex = 0; 1438_control.SelectedIndex = 0;
72 references to SelectedIndex
System.Windows.Forms (4)
System\Windows\Forms\Controls\UpDown\DomainUpDown.cs (3)
103if (value != SelectedIndex) 122int index = SelectedIndex; 457s = $"{s}, Items.Count: {Items.Count}, SelectedIndex: {SelectedIndex}";
System\Windows\Forms\Controls\UpDown\DomainUpDown.DomainUpDownItemCollection.cs (1)
38if (_owner.SelectedIndex == index)
System.Windows.Forms.Tests (68)
System\Windows\Forms\AccessibleObjects\DirectionButtonAccessibleObjectTests.cs (2)
24Assert.Equal(1, domainUpDown.SelectedIndex); 43Assert.Equal(expectedIndex, domainUpDown.SelectedIndex);
System\Windows\Forms\DomainUpDownTests.cs (66)
131_sub.SelectedIndex.Should().Be(-1); 268_sub.SelectedIndex.Should().Be(-1); 276_sub.SelectedIndex.Should().Be(-1); 294_sub.SelectedIndex.Should().Be(value); 303_sub.SelectedIndex.Should().Be(value); 312_sub.SelectedIndex.Should().Be(-1); 331_sub.SelectedIndex.Should().Be(value); 340_sub.SelectedIndex.Should().Be(value); 349_sub.SelectedIndex.Should().Be(-1); 383_control.SelectedIndex.Should().Be(0); 389_control.SelectedIndex.Should().Be(0); 395_control.SelectedIndex.Should().Be(1); 401_control.SelectedIndex.Should().Be(-1); 409_control.SelectedIndex.Should().Be(0); 439_sub.SelectedIndex.Should().Be(-1); 448_sub.SelectedIndex.Should().Be(-1); 467_sub.SelectedIndex.Should().Be(expectedSelectedIndex); 476_sub.SelectedIndex.Should().Be(expectedSelectedIndex); 485_sub.SelectedIndex.Should().Be(expectedSelectedIndex); 494_sub.SelectedIndex.Should().Be(-1); 514_sub.SelectedIndex.Should().Be(expectedSelectedIndex); 523_sub.SelectedIndex.Should().Be(expectedSelectedIndex); 532_sub.SelectedIndex.Should().Be(expectedSelectedIndex); 541_sub.SelectedIndex.Should().Be(-1); 624_sub.SelectedIndex.Should().Be(-1); 632_sub.SelectedIndex.Should().Be(-1); 640_sub.SelectedIndex.Should().Be(-1); 668_sub.SelectedIndex.Should().Be(-1); 675_sub.SelectedIndex.Should().Be(-1); 683_sub.SelectedIndex.Should().Be(-1); 711_sub.SelectedIndex.Should().Be(expectedSelectedIndex); 718_sub.SelectedIndex.Should().Be(expectedSelectedIndex); 726_sub.SelectedIndex.Should().Be(expectedSelectedIndex); 747_sub.SelectedIndex.Should().Be(-1); 758_sub.SelectedIndex.Should().Be(-1); 769_sub.SelectedIndex.Should().Be(-1); 798_sub.SelectedIndex.Should().Be(-1); 808_sub.SelectedIndex.Should().Be(-1); 819_sub.SelectedIndex.Should().Be(-1); 849_sub.SelectedIndex.Should().Be(expectedSelectedIndex); 859_sub.SelectedIndex.Should().Be(expectedSelectedIndex); 870_sub.SelectedIndex.Should().Be(expectedSelectedIndex); 977_sub.SelectedIndex.Should().Be(-1); 982_sub.SelectedIndex.Should().Be(-1); 996_sub.SelectedIndex.Should().Be(-1); 1001_sub.SelectedIndex.Should().Be(-1); 1024_sub.SelectedIndex.Should().Be(0); 1029_sub.SelectedIndex.Should().Be(1); 1034_sub.SelectedIndex.Should().Be(2); 1039_sub.SelectedIndex.Should().Be(expectedWrapSelectedIndex); 1201_sub.SelectedIndex.Should().Be(-1); 1206_sub.SelectedIndex.Should().Be(-1); 1220_sub.SelectedIndex.Should().Be(-1); 1225_sub.SelectedIndex.Should().Be(-1); 1249_sub.SelectedIndex.Should().Be(1); 1254_sub.SelectedIndex.Should().Be(0); 1259_sub.SelectedIndex.Should().Be(expectedWrapSelectedIndex1); 1264_sub.SelectedIndex.Should().Be(expectedWrapSelectedIndex2); 1360_control.SelectedIndex.Should().Be(expectedIndex); 1378_control.SelectedIndex.Should().Be(expectedIndex); 1404_control.SelectedIndex.Should().Be(expectedIndex); 1412_control.SelectedIndex.Should().Be(-1); 1421_control.SelectedIndex.Should().Be(1); 1431_control.SelectedIndex.Should().Be(0); 1441_control.SelectedIndex.Should().Be(2); 1449_control.SelectedIndex.Should().Be(-1);