1 write to _toolStripComboBox
System.Windows.Forms.Tests (1)
System\Windows\Forms\ToolStripComboBoxTests.cs (1)
16_toolStripComboBox = new();
125 references to _toolStripComboBox
System.Windows.Forms.Tests (125)
System\Windows\Forms\ToolStripComboBoxTests.cs (125)
21_toolStripComboBox.Dispose(); 35_toolStripComboBox.DropDownHeight.Should().Be(106); 37_toolStripComboBox.DropDownHeight = 200; 38_toolStripComboBox.DropDownHeight.Should().Be(200); 44_toolStripComboBox.DropDownWidth = 200; 45_toolStripComboBox.DropDownWidth.Should().Be(200); 51_toolStripComboBox.DroppedDown.Should().BeFalse(); 53_toolStripComboBox.DroppedDown = true; 55_toolStripComboBox.DroppedDown = false; 56_toolStripComboBox.DroppedDown.Should().BeFalse(); 62_toolStripComboBox.MaxLength = 10; 63_toolStripComboBox.MaxLength.Should().Be(10); 69_toolStripComboBox.IntegralHeight.Should().BeTrue(); 71_toolStripComboBox.IntegralHeight = false; 72_toolStripComboBox.IntegralHeight.Should().BeFalse(); 74_toolStripComboBox.IntegralHeight = true; 75_toolStripComboBox.IntegralHeight.Should().BeTrue(); 81_toolStripComboBox.MaxDropDownItems = 20; 82_toolStripComboBox.MaxDropDownItems.Should().Be(20); 88_toolStripComboBox.Sorted.Should().BeFalse(); 90_toolStripComboBox.Sorted = true; 91_toolStripComboBox.Sorted.Should().BeTrue(); 93_toolStripComboBox.Sorted = false; 94_toolStripComboBox.Sorted.Should().BeFalse(); 108_toolStripComboBox.AutoCompleteCustomSource = source; 109_toolStripComboBox.AutoCompleteCustomSource.Should().BeEquivalentTo(source); 119_toolStripComboBox.AutoCompleteMode.Should().Be(AutoCompleteMode.None); 121_toolStripComboBox.AutoCompleteMode = mode; 122_toolStripComboBox.AutoCompleteMode.Should().Be(mode); 137_toolStripComboBox.AutoCompleteSource = source; 138_toolStripComboBox.AutoCompleteSource.Should().Be(source); 145_toolStripComboBox.BackgroundImage = image; 146_toolStripComboBox.BackgroundImage.Should().Be(image); 157_toolStripComboBox.BackgroundImageLayout = layout; 158_toolStripComboBox.BackgroundImageLayout.Should().Be(layout); 167_toolStripComboBox.DropDownStyle = style; 168_toolStripComboBox.DropDownStyle.Should().Be(style); 178_toolStripComboBox.FlatStyle = style; 179_toolStripComboBox.FlatStyle.Should().Be(style); 186_toolStripComboBox.Items.AddRange(items); 187_toolStripComboBox.Items.Cast<string>().Should().Contain(items); 193_toolStripComboBox.SelectedIndex.Should().Be(-1); 195_toolStripComboBox.Items.Add("Item1"); 196_toolStripComboBox.Items.Add("Item2"); 197_toolStripComboBox.SelectedIndex = 1; 198_toolStripComboBox.SelectedIndex.Should().Be(1); 200_toolStripComboBox.SelectedIndex = 0; 201_toolStripComboBox.SelectedIndex.Should().Be(0); 207_toolStripComboBox.SelectedItem.Should().BeNull(); 209_toolStripComboBox.Items.Add("Item1"); 210_toolStripComboBox.Items.Add("Item2"); 211_toolStripComboBox.SelectedItem = "Item2"; 212_toolStripComboBox.SelectedItem.Should().Be("Item2"); 218_toolStripComboBox.SelectionLength.Should().Be(0); 220_toolStripComboBox.Items.Add("Item1"); 221_toolStripComboBox.Items.Add("Item2"); 222_toolStripComboBox.SelectedIndex = 1; 223_toolStripComboBox.SelectionLength = 5; 224_toolStripComboBox.SelectionLength.Should().Be(5); 230_toolStripComboBox.SelectionStart.Should().Be(0); 232_toolStripComboBox.Items.Add("Item1"); 233_toolStripComboBox.Items.Add("Item2"); 234_toolStripComboBox.SelectedIndex = 1; 235_toolStripComboBox.SelectionStart = 1; 236_toolStripComboBox.SelectionStart.Should().Be(1); 245_toolStripComboBox.DropDown += handler; 246_toolStripComboBox.ComboBox.TestAccessor().Dynamic.OnDropDown(EventArgs.Empty); 250_toolStripComboBox.DropDown -= handler; 251_toolStripComboBox.ComboBox.TestAccessor().Dynamic.OnDropDown(EventArgs.Empty); 261_toolStripComboBox.DropDownClosed += handler; 262_toolStripComboBox.ComboBox.TestAccessor().Dynamic.OnDropDownClosed(EventArgs.Empty); 266_toolStripComboBox.DropDownClosed -= handler; 267_toolStripComboBox.ComboBox.TestAccessor().Dynamic.OnDropDownClosed(EventArgs.Empty); 274_toolStripComboBox.DropDownStyle.Should().Be(ComboBoxStyle.DropDown); 279_toolStripComboBox.DropDownStyleChanged += handler; 280_toolStripComboBox.ComboBox.TestAccessor().Dynamic.OnDropDownStyleChanged(EventArgs.Empty); 284_toolStripComboBox.DropDownStyleChanged -= handler; 285_toolStripComboBox.ComboBox.TestAccessor().Dynamic.OnDropDownStyleChanged(EventArgs.Empty); 288_toolStripComboBox.DropDownStyle = ComboBoxStyle.DropDownList; 289_toolStripComboBox.DropDownStyle.Should().Be(ComboBoxStyle.DropDownList); 298_toolStripComboBox.SelectedIndexChanged += handler; 299_toolStripComboBox.Items.Add("Item1"); 300_toolStripComboBox.Items.Add("Item2"); 301_toolStripComboBox.SelectedIndex = 1; 305_toolStripComboBox.SelectedIndexChanged -= handler; 306_toolStripComboBox.SelectedIndex = 0; 316_toolStripComboBox.TextUpdate += handler; 317_toolStripComboBox.ComboBox.TestAccessor().Dynamic.OnTextUpdate(EventArgs.Empty); 321_toolStripComboBox.TextUpdate -= handler; 322_toolStripComboBox.ComboBox.TestAccessor().Dynamic.OnTextUpdate(EventArgs.Empty); 329_toolStripComboBox.Items.Add("Item1"); 330_toolStripComboBox.Items.Add("Item2"); 332_toolStripComboBox.BeginUpdate(); 333_toolStripComboBox.EndUpdate(); 335int index = _toolStripComboBox.FindString("Item1"); 338index = _toolStripComboBox.FindString("Item2", 1); 341index = _toolStripComboBox.FindStringExact("Item1"); 344index = _toolStripComboBox.FindStringExact("Item2", 1); 347int height = _toolStripComboBox.GetItemHeight(0); 350_toolStripComboBox.ComboBox.Text = "Item1"; 351_toolStripComboBox.ComboBox.Select(0, 5); 352_toolStripComboBox.SelectedText.Should().Be("Item1"); 354_toolStripComboBox.SelectAll(); 355_toolStripComboBox.SelectionLength.Should().Be(_toolStripComboBox.Text.Length); 364_toolStripComboBox.DoubleClick += handler; 365_toolStripComboBox.ComboBox.TestAccessor().Dynamic.OnDoubleClick(EventArgs.Empty); 369_toolStripComboBox.DoubleClick -= handler; 370_toolStripComboBox.ComboBox.TestAccessor().Dynamic.OnDoubleClick(EventArgs.Empty); 377_toolStripComboBox.Items.Add("Item1"); 378_toolStripComboBox.Items.Add("Item2"); 379_toolStripComboBox.ToString().Should().Be($"{_toolStripComboBox.GetType().FullName}, Items.Count: 2"); 386Size preferredSize = _toolStripComboBox.GetPreferredSize(constrainingSize); 397Size preferredSize = _toolStripComboBox.GetPreferredSize(constrainingSize); 406_toolStripComboBox.SelectedText = string.Empty; 407_toolStripComboBox.SelectedText.Should().BeEmpty(); 413_toolStripComboBox.Items.Add("Item1"); 414_toolStripComboBox.Items.Add("Item2"); 415_toolStripComboBox.SelectedIndex = 1; 416_toolStripComboBox.SelectionStart = 0; 417_toolStripComboBox.SelectionLength = 5; 418_toolStripComboBox.SelectedText = "Item2"; 420_toolStripComboBox.ComboBox.Select(0, 5); 421_toolStripComboBox.SelectedText.Should().Be("Item2");