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