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])) 300found = Items[index]!.ToString()!.Equals(text); 304found = Items[index]!.ToString()!.ToUpper(CultureInfo.InvariantCulture).StartsWith(text, StringComparison.Ordinal); 455if (Items is not null) 457s = $"{s}, Items.Count: {Items.Count}, SelectedIndex: {SelectedIndex}"; 522int width = LayoutUtils.OldGetLargestStringSizeInCollection(Font, Items).Width;
System.Windows.Forms.Tests (85)
System\Windows\Forms\AccessibleObjects\DirectionButtonAccessibleObjectTests.cs (2)
16domainUpDown.Items.AddRange(new string[] { "First", "Second", "Third" }); 34domainUpDown.Items.AddRange(new string[] { "First", "Second", "Third" });
System\Windows\Forms\DomainUpDownTests.cs (83)
23_control.Items.Clear(); 25_sub.Items.Clear(); 112_sub.Items.Count.Should().Be(0); 113_sub.Items.Should().BeSameAs(_sub.Items); 290_sub.Items.Add("Item1"); 291_sub.Items.Add("Item2"); 327_sub.Items.Add("Item1"); 328_sub.Items.Add("Item2"); 360_control.Items.Add("Item1"); 361_control.Items.Add("Item2"); 429_control.Items.Add("Item"); 463_sub.Items.Add("Item1"); 464_sub.Items.Add("Item2"); 510_sub.Items.Add("Item1"); 511_sub.Items.Add("Item2"); 552_control.Items.Add("Item1"); 553_control.Items.Add("Item2"); 623_sub.Items.Count.Should().Be(0); 631_sub.Items.Count.Should().Be(0); 639_sub.Items.Count.Should().Be(0); 658_sub.Items.Add("c"); 659_sub.Items.Add("B"); 660_sub.Items.Add("a"); 661_sub.Items.Add("a"); 662_sub.Items.Add("d"); 667_sub.Items.Cast<string>().Should().Equal(expectedItems); 674_sub.Items.Cast<string>().Should().Equal(expectedItems); 682_sub.Items.Cast<string>().Should().Equal(["a", "a", "B", "c", "d"]); 700_sub.Items.Add("c"); 701_sub.Items.Add("B"); 702_sub.Items.Add("a"); 703_sub.Items.Add("a"); 704_sub.Items.Add("d"); 710_sub.Items.Cast<string>().Should().Equal(expectedItems); 717_sub.Items.Cast<string>().Should().Equal(expectedItems); 725_sub.Items.Cast<string>().Should().Equal(["a", "a", "B", "c", "d"]); 746_sub.Items.Count.Should().Be(0); 757_sub.Items.Count.Should().Be(0); 768_sub.Items.Count.Should().Be(0); 781_sub.Items.Add("c"); 782_sub.Items.Add("B"); 783_sub.Items.Add("a"); 784_sub.Items.Add("a"); 785_sub.Items.Add("d"); 797_sub.Items.Cast<string>().Should().Equal(expectedItems); 807_sub.Items.Cast<string>().Should().Equal(expectedItems); 818_sub.Items.Cast<string>().Should().Equal(["a", "a", "B", "c", "d"]); 831_sub.Items.Add("c"); 832_sub.Items.Add("B"); 833_sub.Items.Add("a"); 834_sub.Items.Add("a"); 835_sub.Items.Add("d"); 848_sub.Items.Cast<string>().Should().Equal(expectedItems); 858_sub.Items.Cast<string>().Should().Equal(expectedItems); 869_sub.Items.Cast<string>().Should().Equal(["a", "a", "B", "c", "d"]); 993_sub.Items.Count.Should().Be(0); 1019_sub.Items.Add("a"); 1020_sub.Items.Add("b"); 1021_sub.Items.Add("c"); 1114_control.Items.Add("foo1"); 1115_control.Items.Add("foo2"); 1116_control.Items.Add("foo3"); 1117_control.Items.Add("Cowman"); 1118_control.Items.Add("foo4"); 1125_control.Items.Add("item1"); 1217_sub.Items.Count.Should().Be(0); 1243_sub.Items.Add("a"); 1244_sub.Items.Add("b"); 1245_sub.Items.Add("c"); 1299_sub.Items.Add("Item1"); 1300_sub.Items.Add("Item2"); 1325_sub.Items.Add("Item1"); 1326_sub.Items.Add("Item2"); 1353_control.Items.AddRange(new string[] { "Item1", "Item2", "Item3" }); 1370_control.Items.AddRange(new string[] { "Item1", "Item2", "Item3" }); 1386_control.Items.Clear(); 1387_control.Items.AddRange(items); 1401_control.Items.AddRange(new string[] { "Item1", "Item2", "Item3" }); 1418_control.Items.AddRange(new string[] { "Item1", "Item2", "Item3" }); 1427_control.Items.AddRange(new string[] { "Item1", "Item2", "Item3" }); 1437_control.Items.AddRange(new string[] { "Item1", "Item2", "Item3" }); 1447_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");