1 write to _toolStripComboBox
System.Windows.Forms.Tests (1)
System\Windows\Forms\ToolStripComboBoxTests.cs (1)
14_toolStripComboBox = new();
125 references to _toolStripComboBox
System.Windows.Forms.Tests (125)
System\Windows\Forms\ToolStripComboBoxTests.cs (125)
19_toolStripComboBox.Dispose(); 33_toolStripComboBox.DropDownHeight.Should().Be(106); 35_toolStripComboBox.DropDownHeight = 200; 36_toolStripComboBox.DropDownHeight.Should().Be(200); 42_toolStripComboBox.DropDownWidth = 200; 43_toolStripComboBox.DropDownWidth.Should().Be(200); 49_toolStripComboBox.DroppedDown.Should().BeFalse(); 51_toolStripComboBox.DroppedDown = true; 53_toolStripComboBox.DroppedDown = false; 54_toolStripComboBox.DroppedDown.Should().BeFalse(); 60_toolStripComboBox.MaxLength = 10; 61_toolStripComboBox.MaxLength.Should().Be(10); 67_toolStripComboBox.IntegralHeight.Should().BeTrue(); 69_toolStripComboBox.IntegralHeight = false; 70_toolStripComboBox.IntegralHeight.Should().BeFalse(); 72_toolStripComboBox.IntegralHeight = true; 73_toolStripComboBox.IntegralHeight.Should().BeTrue(); 79_toolStripComboBox.MaxDropDownItems = 20; 80_toolStripComboBox.MaxDropDownItems.Should().Be(20); 86_toolStripComboBox.Sorted.Should().BeFalse(); 88_toolStripComboBox.Sorted = true; 89_toolStripComboBox.Sorted.Should().BeTrue(); 91_toolStripComboBox.Sorted = false; 92_toolStripComboBox.Sorted.Should().BeFalse(); 106_toolStripComboBox.AutoCompleteCustomSource = source; 107_toolStripComboBox.AutoCompleteCustomSource.Should().BeEquivalentTo(source); 117_toolStripComboBox.AutoCompleteMode.Should().Be(AutoCompleteMode.None); 119_toolStripComboBox.AutoCompleteMode = mode; 120_toolStripComboBox.AutoCompleteMode.Should().Be(mode); 135_toolStripComboBox.AutoCompleteSource = source; 136_toolStripComboBox.AutoCompleteSource.Should().Be(source); 143_toolStripComboBox.BackgroundImage = image; 144_toolStripComboBox.BackgroundImage.Should().Be(image); 155_toolStripComboBox.BackgroundImageLayout = layout; 156_toolStripComboBox.BackgroundImageLayout.Should().Be(layout); 165_toolStripComboBox.DropDownStyle = style; 166_toolStripComboBox.DropDownStyle.Should().Be(style); 176_toolStripComboBox.FlatStyle = style; 177_toolStripComboBox.FlatStyle.Should().Be(style); 184_toolStripComboBox.Items.AddRange(items); 185_toolStripComboBox.Items.Cast<string>().Should().Contain(items); 191_toolStripComboBox.SelectedIndex.Should().Be(-1); 193_toolStripComboBox.Items.Add("Item1"); 194_toolStripComboBox.Items.Add("Item2"); 195_toolStripComboBox.SelectedIndex = 1; 196_toolStripComboBox.SelectedIndex.Should().Be(1); 198_toolStripComboBox.SelectedIndex = 0; 199_toolStripComboBox.SelectedIndex.Should().Be(0); 205_toolStripComboBox.SelectedItem.Should().BeNull(); 207_toolStripComboBox.Items.Add("Item1"); 208_toolStripComboBox.Items.Add("Item2"); 209_toolStripComboBox.SelectedItem = "Item2"; 210_toolStripComboBox.SelectedItem.Should().Be("Item2"); 216_toolStripComboBox.SelectionLength.Should().Be(0); 218_toolStripComboBox.Items.Add("Item1"); 219_toolStripComboBox.Items.Add("Item2"); 220_toolStripComboBox.SelectedIndex = 1; 221_toolStripComboBox.SelectionLength = 5; 222_toolStripComboBox.SelectionLength.Should().Be(5); 228_toolStripComboBox.SelectionStart.Should().Be(0); 230_toolStripComboBox.Items.Add("Item1"); 231_toolStripComboBox.Items.Add("Item2"); 232_toolStripComboBox.SelectedIndex = 1; 233_toolStripComboBox.SelectionStart = 1; 234_toolStripComboBox.SelectionStart.Should().Be(1); 243_toolStripComboBox.DropDown += handler; 244_toolStripComboBox.ComboBox.TestAccessor().Dynamic.OnDropDown(EventArgs.Empty); 248_toolStripComboBox.DropDown -= handler; 249_toolStripComboBox.ComboBox.TestAccessor().Dynamic.OnDropDown(EventArgs.Empty); 259_toolStripComboBox.DropDownClosed += handler; 260_toolStripComboBox.ComboBox.TestAccessor().Dynamic.OnDropDownClosed(EventArgs.Empty); 264_toolStripComboBox.DropDownClosed -= handler; 265_toolStripComboBox.ComboBox.TestAccessor().Dynamic.OnDropDownClosed(EventArgs.Empty); 272_toolStripComboBox.DropDownStyle.Should().Be(ComboBoxStyle.DropDown); 277_toolStripComboBox.DropDownStyleChanged += handler; 278_toolStripComboBox.ComboBox.TestAccessor().Dynamic.OnDropDownStyleChanged(EventArgs.Empty); 282_toolStripComboBox.DropDownStyleChanged -= handler; 283_toolStripComboBox.ComboBox.TestAccessor().Dynamic.OnDropDownStyleChanged(EventArgs.Empty); 286_toolStripComboBox.DropDownStyle = ComboBoxStyle.DropDownList; 287_toolStripComboBox.DropDownStyle.Should().Be(ComboBoxStyle.DropDownList); 296_toolStripComboBox.SelectedIndexChanged += handler; 297_toolStripComboBox.Items.Add("Item1"); 298_toolStripComboBox.Items.Add("Item2"); 299_toolStripComboBox.SelectedIndex = 1; 303_toolStripComboBox.SelectedIndexChanged -= handler; 304_toolStripComboBox.SelectedIndex = 0; 314_toolStripComboBox.TextUpdate += handler; 315_toolStripComboBox.ComboBox.TestAccessor().Dynamic.OnTextUpdate(EventArgs.Empty); 319_toolStripComboBox.TextUpdate -= handler; 320_toolStripComboBox.ComboBox.TestAccessor().Dynamic.OnTextUpdate(EventArgs.Empty); 327_toolStripComboBox.Items.Add("Item1"); 328_toolStripComboBox.Items.Add("Item2"); 330_toolStripComboBox.BeginUpdate(); 331_toolStripComboBox.EndUpdate(); 333int index = _toolStripComboBox.FindString("Item1"); 336index = _toolStripComboBox.FindString("Item2", 1); 339index = _toolStripComboBox.FindStringExact("Item1"); 342index = _toolStripComboBox.FindStringExact("Item2", 1); 345int height = _toolStripComboBox.GetItemHeight(0); 348_toolStripComboBox.ComboBox.Text = "Item1"; 349_toolStripComboBox.ComboBox.Select(0, 5); 350_toolStripComboBox.SelectedText.Should().Be("Item1"); 352_toolStripComboBox.SelectAll(); 353_toolStripComboBox.SelectionLength.Should().Be(_toolStripComboBox.Text.Length); 362_toolStripComboBox.DoubleClick += handler; 363_toolStripComboBox.ComboBox.TestAccessor().Dynamic.OnDoubleClick(EventArgs.Empty); 367_toolStripComboBox.DoubleClick -= handler; 368_toolStripComboBox.ComboBox.TestAccessor().Dynamic.OnDoubleClick(EventArgs.Empty); 375_toolStripComboBox.Items.Add("Item1"); 376_toolStripComboBox.Items.Add("Item2"); 377_toolStripComboBox.ToString().Should().Be($"{_toolStripComboBox.GetType().FullName}, Items.Count: 2"); 384Size preferredSize = _toolStripComboBox.GetPreferredSize(constrainingSize); 395Size preferredSize = _toolStripComboBox.GetPreferredSize(constrainingSize); 404_toolStripComboBox.SelectedText = string.Empty; 405_toolStripComboBox.SelectedText.Should().BeEmpty(); 411_toolStripComboBox.Items.Add("Item1"); 412_toolStripComboBox.Items.Add("Item2"); 413_toolStripComboBox.SelectedIndex = 1; 414_toolStripComboBox.SelectionStart = 0; 415_toolStripComboBox.SelectionLength = 5; 416_toolStripComboBox.SelectedText = "Item2"; 418_toolStripComboBox.ComboBox.Select(0, 5); 419_toolStripComboBox.SelectedText.Should().Be("Item2");