7 writes to SelectionStart
System.Windows.Forms (4)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (3)
1180SelectionStart = 0; 2932SelectionStart = 0; 2950SelectionStart = 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)
947get => DropDownStyle == ComboBoxStyle.DropDownList ? string.Empty : Text.Substring(SelectionStart, SelectionLength); 979Select(SelectionStart, value); 2945else if (SelectionStart != 0) 2947int boundaryStart = ClientUtils.GetWordBoundaryStart(Text, SelectionStart); 2948int 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);