7 writes to SelectionStart
System.Windows.Forms (4)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (3)
1181SelectionStart = 0; 2933SelectionStart = 0; 2951SelectionStart = boundaryStart;
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (1)
288set { ComboBox.SelectionStart = value; }
System.Windows.Forms.Tests (3)
System\Windows\Forms\ComboBoxTests.cs (3)
479control.SelectionStart = 0; 1763control.SelectionStart = 2; 2886SelectionStart = Text.Length + cursorRelativeToEnd;
20 references to SelectionStart
System.Windows.Forms (8)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxUiaTextProvider.cs (2)
140_owningComboBox.SelectionStart, 141_owningComboBox.SelectionStart));
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (5)
948get => DropDownStyle == ComboBoxStyle.DropDownList ? string.Empty : Text.Substring(SelectionStart, SelectionLength); 980Select(SelectionStart, value); 2946else if (SelectionStart != 0) 2948int boundaryStart = ClientUtils.GetWordBoundaryStart(Text, SelectionStart); 2949int length = SelectionStart - boundaryStart;
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (1)
287get { return ComboBox.SelectionStart; }
System.Windows.Forms.Tests (12)
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (6)
965Assert.Equal(start, comboBox.SelectionStart); 966Assert.Equal(end, comboBox.SelectionStart + comboBox.SelectionLength); 994Assert.Equal(0, comboBox.SelectionStart); 995Assert.Equal(0, comboBox.SelectionStart + comboBox.SelectionLength); 1027Assert.Equal(0, comboBox.SelectionStart); 1028Assert.Equal(0, comboBox.SelectionStart + comboBox.SelectionLength);
System\Windows\Forms\ComboBoxTests.cs (6)
1423Assert.Equal(0, control.SelectionStart); 1427Assert.Equal(0, control.SelectionStart); 1437Assert.Equal(0, control.SelectionStart); 1441Assert.Equal(0, control.SelectionStart); 2701control.SelectionStart.Should().Be(0); 2712control.SelectionStart.Should().Be(0);