100 references to Items
System.Windows.Forms (10)
System\Windows\Forms\Controls\UpDown\DomainUpDown.cs (10)
16[DefaultProperty(nameof(Items))] 101ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(value, Items.Count); 123return (index == -1) ? null : Items[index]; 135for (int i = 0; i < Items.Count; i++) 137if (value.Equals(Items[i])) 295? Items[index]!.ToString()!.Equals(text) 296: Items[index]!.ToString()!.ToUpper(CultureInfo.InvariantCulture) 445if (Items is not null) 447s = $"{s}, Items.Count: {Items.Count}, SelectedIndex: {SelectedIndex}"; 512int width = LayoutUtils.OldGetLargestStringSizeInCollection(Font, Items).Width;
System.Windows.Forms.Tests (85)
System\Windows\Forms\AccessibleObjects\DirectionButtonAccessibleObjectTests.cs (2)
18domainUpDown.Items.AddRange(new string[] { "First", "Second", "Third" }); 36domainUpDown.Items.AddRange(new string[] { "First", "Second", "Third" });
System\Windows\Forms\DomainUpDownTests.cs (83)
25_control.Items.Clear(); 27_sub.Items.Clear(); 114_sub.Items.Count.Should().Be(0); 115_sub.Items.Should().BeSameAs(_sub.Items); 292_sub.Items.Add("Item1"); 293_sub.Items.Add("Item2"); 329_sub.Items.Add("Item1"); 330_sub.Items.Add("Item2"); 362_control.Items.Add("Item1"); 363_control.Items.Add("Item2"); 431_control.Items.Add("Item"); 465_sub.Items.Add("Item1"); 466_sub.Items.Add("Item2"); 512_sub.Items.Add("Item1"); 513_sub.Items.Add("Item2"); 554_control.Items.Add("Item1"); 555_control.Items.Add("Item2"); 625_sub.Items.Count.Should().Be(0); 633_sub.Items.Count.Should().Be(0); 641_sub.Items.Count.Should().Be(0); 660_sub.Items.Add("c"); 661_sub.Items.Add("B"); 662_sub.Items.Add("a"); 663_sub.Items.Add("a"); 664_sub.Items.Add("d"); 669_sub.Items.Cast<string>().Should().Equal(expectedItems); 676_sub.Items.Cast<string>().Should().Equal(expectedItems); 684_sub.Items.Cast<string>().Should().Equal(["a", "a", "B", "c", "d"]); 702_sub.Items.Add("c"); 703_sub.Items.Add("B"); 704_sub.Items.Add("a"); 705_sub.Items.Add("a"); 706_sub.Items.Add("d"); 712_sub.Items.Cast<string>().Should().Equal(expectedItems); 719_sub.Items.Cast<string>().Should().Equal(expectedItems); 727_sub.Items.Cast<string>().Should().Equal(["a", "a", "B", "c", "d"]); 748_sub.Items.Count.Should().Be(0); 759_sub.Items.Count.Should().Be(0); 770_sub.Items.Count.Should().Be(0); 783_sub.Items.Add("c"); 784_sub.Items.Add("B"); 785_sub.Items.Add("a"); 786_sub.Items.Add("a"); 787_sub.Items.Add("d"); 799_sub.Items.Cast<string>().Should().Equal(expectedItems); 809_sub.Items.Cast<string>().Should().Equal(expectedItems); 820_sub.Items.Cast<string>().Should().Equal(["a", "a", "B", "c", "d"]); 833_sub.Items.Add("c"); 834_sub.Items.Add("B"); 835_sub.Items.Add("a"); 836_sub.Items.Add("a"); 837_sub.Items.Add("d"); 850_sub.Items.Cast<string>().Should().Equal(expectedItems); 860_sub.Items.Cast<string>().Should().Equal(expectedItems); 871_sub.Items.Cast<string>().Should().Equal(["a", "a", "B", "c", "d"]); 995_sub.Items.Count.Should().Be(0); 1021_sub.Items.Add("a"); 1022_sub.Items.Add("b"); 1023_sub.Items.Add("c"); 1116_control.Items.Add("foo1"); 1117_control.Items.Add("foo2"); 1118_control.Items.Add("foo3"); 1119_control.Items.Add("Cowman"); 1120_control.Items.Add("foo4"); 1127_control.Items.Add("item1"); 1219_sub.Items.Count.Should().Be(0); 1245_sub.Items.Add("a"); 1246_sub.Items.Add("b"); 1247_sub.Items.Add("c"); 1301_sub.Items.Add("Item1"); 1302_sub.Items.Add("Item2"); 1327_sub.Items.Add("Item1"); 1328_sub.Items.Add("Item2"); 1355_control.Items.AddRange(new string[] { "Item1", "Item2", "Item3" }); 1372_control.Items.AddRange(new string[] { "Item1", "Item2", "Item3" }); 1388_control.Items.Clear(); 1389_control.Items.AddRange(items); 1403_control.Items.AddRange(new string[] { "Item1", "Item2", "Item3" }); 1420_control.Items.AddRange(new string[] { "Item1", "Item2", "Item3" }); 1429_control.Items.AddRange(new string[] { "Item1", "Item2", "Item3" }); 1439_control.Items.AddRange(new string[] { "Item1", "Item2", "Item3" }); 1449_control.Items.Clear();
WinFormsControlsTest (5)
CollectionEditors.cs (1)
32domainUpDown1.Items.AddRange(_stringCollection);
MultipleControls.Designer.cs (4)
248this.domainUpDown1.Items.Add("First"); 249this.domainUpDown1.Items.Add("Second"); 250this.domainUpDown1.Items.Add("Third"); 251this.domainUpDown1.Items.Add("Fourth");