7 writes to SelectionLength
System.Windows.Forms (4)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (3)
1181SelectionLength = text.Length; 2933SelectionLength = Text.Length; 2951SelectionLength = length;
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (1)
279set { ComboBox.SelectionLength = value; }
System.Windows.Forms.Tests (3)
System\Windows\Forms\ComboBoxTests.cs (3)
480control.SelectionLength = 7; 1764control.SelectionLength = 5; 2887SelectionLength = 0;
13 references to SelectionLength
System.Windows.Forms (4)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (3)
947get => DropDownStyle == ComboBoxStyle.DropDownList ? string.Empty : Text.Substring(SelectionStart, SelectionLength); 1001Select(value, SelectionLength); 2941if (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)
966Assert.Equal(end, comboBox.SelectionStart + comboBox.SelectionLength); 995Assert.Equal(0, comboBox.SelectionStart + comboBox.SelectionLength); 1028Assert.Equal(0, comboBox.SelectionStart + comboBox.SelectionLength);
System\Windows\Forms\ComboBoxTests.cs (6)
1396Assert.Equal(0, control.SelectionLength); 1400Assert.Equal(0, control.SelectionLength); 1410Assert.Equal(0, control.SelectionLength); 1414Assert.Equal(0, control.SelectionLength); 2702control.SelectionLength.Should().Be(control.Text.Length); 2713control.SelectionLength.Should().Be(control.Text.Length);