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