7 writes to SelectionLength
System.Windows.Forms (4)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (3)
1182SelectionLength = text.Length; 2934SelectionLength = Text.Length; 2952SelectionLength = length;
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (1)
279set { ComboBox.SelectionLength = value; }
System.Windows.Forms.Tests (3)
System\Windows\Forms\ComboBoxTests.cs (3)
482control.SelectionLength = 7; 1766control.SelectionLength = 5; 2889SelectionLength = 0;
13 references to SelectionLength
System.Windows.Forms (4)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (3)
948get => DropDownStyle == ComboBoxStyle.DropDownList ? string.Empty : Text.Substring(SelectionStart, SelectionLength); 1002Select(value, SelectionLength); 2942if (SelectionLength != 0)
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (1)
278get { return ComboBox.SelectionLength; }
System.Windows.Forms.Tests (9)
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (3)
968Assert.Equal(end, comboBox.SelectionStart + comboBox.SelectionLength); 997Assert.Equal(0, comboBox.SelectionStart + comboBox.SelectionLength); 1030Assert.Equal(0, comboBox.SelectionStart + comboBox.SelectionLength);
System\Windows\Forms\ComboBoxTests.cs (6)
1398Assert.Equal(0, control.SelectionLength); 1402Assert.Equal(0, control.SelectionLength); 1412Assert.Equal(0, control.SelectionLength); 1416Assert.Equal(0, control.SelectionLength); 2704control.SelectionLength.Should().Be(control.Text.Length); 2715control.SelectionLength.Should().Be(control.Text.Length);