7 writes to SelectionLength
System.Windows.Forms (4)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (3)
1182
SelectionLength
= text.Length;
2934
SelectionLength
= Text.Length;
2952
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)
482
control.
SelectionLength
= 7;
1766
control.
SelectionLength
= 5;
2889
SelectionLength
= 0;
13 references to SelectionLength
System.Windows.Forms (4)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (3)
948
get => DropDownStyle == ComboBoxStyle.DropDownList ? string.Empty : Text.Substring(SelectionStart,
SelectionLength
);
1002
Select(value,
SelectionLength
);
2942
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)
968
Assert.Equal(end, comboBox.SelectionStart + comboBox.
SelectionLength
);
997
Assert.Equal(0, comboBox.SelectionStart + comboBox.
SelectionLength
);
1030
Assert.Equal(0, comboBox.SelectionStart + comboBox.
SelectionLength
);
System\Windows\Forms\ComboBoxTests.cs (6)
1398
Assert.Equal(0, control.
SelectionLength
);
1402
Assert.Equal(0, control.
SelectionLength
);
1412
Assert.Equal(0, control.
SelectionLength
);
1416
Assert.Equal(0, control.
SelectionLength
);
2704
control.
SelectionLength
.Should().Be(control.Text.Length);
2715
control.
SelectionLength
.Should().Be(control.Text.Length);