66 writes to SelectionStart
System.Windows.Forms (10)
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.cs (1)
228SelectionStart = Text.Length;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (3)
846EditTextBox.SelectionStart = 0; 4351EditTextBox.SelectionStart = 0; 4684EditTextBox.SelectionStart = 0;
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (4)
1181SelectionStart = ++_caretTestPos; 1994SelectionStart = ++_caretTestPos; // caretTestPos is updated in PlaceChar. 2665SelectionStart = _caretTestPos; 2846SelectionStart = _caretTestPos;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
220SelectionStart = boundaryStart;
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (1)
332set { TextBox.SelectionStart = value; }
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\LinkAreaEditor.LinkAreaUI.cs (1)
145_sampleEdit.SelectionStart = linkArea.Start;
System.Windows.Forms.Tests (54)
MaskedTextBoxTests.cs (1)
649control.SelectionStart = 0;
System\Windows\Forms\RichTextBoxTests.cs (14)
5475SelectionStart = 1, 5542SelectionStart = 1 6036SelectionStart = value 6044control.SelectionStart = value; 6065SelectionStart = value 6072control.SelectionStart = value; 6101control.SelectionStart = value; 6111control.SelectionStart = value; 6136control.SelectionStart = value; 6152control.SelectionStart = value; 6157control.SelectionStart = value; 6169Assert.Throws<ObjectDisposedException>(() => control.SelectionStart = value); 7172SelectionStart = selectionStart, 7457SelectionStart = selectionStart,
TextBoxBaseTests.ClipboardTests.cs (7)
18SelectionStart = 1, 41SelectionStart = 1, 64SelectionStart = 1, 101SelectionStart = 1, 124SelectionStart = 1, 172SelectionStart = 1, 186SelectionStart = 1,
TextBoxBaseTests.cs (31)
2642SelectionStart = selectionStart, 2663SelectionStart = selectionStart, 2685SelectionStart = selectionStart, 2707SelectionStart = selectionStart, 2840SelectionStart = 1, 2907SelectionStart = 1 2988SelectionStart = value 2996control.SelectionStart = value; 3017SelectionStart = value 3024control.SelectionStart = value; 3053control.SelectionStart = value; 3063control.SelectionStart = value; 3088control.SelectionStart = value; 3106Assert.Throws<ArgumentOutOfRangeException>("value", () => control.SelectionStart = -1); 3115control.SelectionStart = value; 3120control.SelectionStart = value; 3133control.SelectionStart = value; 3138control.SelectionStart = value; 3269SelectionStart = selectionStart, 3436SelectionStart = selectionStart, 3898SelectionStart = 1, 3918SelectionStart = 1, 3939SelectionStart = 1, 4150SelectionStart = 1, 4227SelectionStart = 1, 5464SelectionStart = 1, 5967SelectionStart = text.Length + cursorRelativeToEnd 5982SelectionStart = text.Length, 6001SelectionStart = 2, 6871SelectionStart = 1, 6909SelectionStart = 1,
TextBoxTests.cs (1)
629SelectionStart = 1,
WinFormsControlsTest (1)
DragDrop.cs (1)
220textBox.SelectionStart = textBox.Text.Length;
118 references to SelectionStart
System.Windows.Forms (14)
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.cs (7)
132if ((RightToLeft == RightToLeft.No && !(SelectionLength == 0 && SelectionStart == Text.Length)) || 133(RightToLeft == RightToLeft.Yes && !(SelectionLength == 0 && SelectionStart == 0))) 144if ((RightToLeft == RightToLeft.No && !(SelectionLength == 0 && SelectionStart == 0)) || 145(RightToLeft == RightToLeft.Yes && !(SelectionLength == 0 && SelectionStart == Text.Length))) 155int end = SelectionStart + SelectionLength; 167|| SelectionStart + SelectionLength < Text.IndexOf("\r\n", StringComparison.Ordinal))) 194SelectionStart < Text.Length)
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
2653_caretTestPos = SelectionStart;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (3)
215else if (SelectionStart != 0) 217int boundaryStart = ClientUtils.GetWordBoundaryStart(Text, SelectionStart); 218int length = SelectionStart - boundaryStart;
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (2)
178Owner.SelectionStart, 179Owner.SelectionStart));
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (1)
331get { return TextBox.SelectionStart; }
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\LinkAreaEditor.LinkAreaUI.cs (1)
120Value = new LinkArea(_sampleEdit.SelectionStart, _sampleEdit.SelectionLength);
System.Windows.Forms.Tests (103)
MaskedTextBoxTests.cs (1)
593control.SelectionStart.Should().Be(0);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (7)
111Assert.Equal(0, control.SelectionStart); 1460Assert.Equal(0, control.SelectionStart); 1467Assert.Equal(0, control.SelectionStart); 1474Assert.Equal(4, control.SelectionStart); 1493Assert.Equal(4, control.SelectionStart); 1500Assert.Equal(4, control.SelectionStart); 1507Assert.Equal(0, control.SelectionStart);
System\Windows\Forms\RichTextBoxTests.cs (34)
5449Assert.Equal(0, control.SelectionStart); 5456Assert.Equal(0, control.SelectionStart); 5512Assert.Equal(0, control.SelectionStart); 5522Assert.Equal(0, control.SelectionStart); 5972Assert.Equal(0, control.SelectionStart); 5976Assert.Equal(0, control.SelectionStart); 5992Assert.Equal(0, control.SelectionStart); 5999Assert.Equal(0, control.SelectionStart); 6010Assert.Equal(0, control.SelectionStart); 6019Assert.Throws<ObjectDisposedException>(() => control.SelectionStart); 6039Assert.Equal(expected, control.SelectionStart); 6046Assert.Equal(expected, control.SelectionStart); 6067Assert.Equal(expected, control.SelectionStart); 6073Assert.Equal(expected, control.SelectionStart); 6103Assert.Equal(expected, control.SelectionStart); 6113Assert.Equal(expected, control.SelectionStart); 6153Assert.Equal(0, control.SelectionStart); 6158Assert.Equal(0, control.SelectionStart); 7064Assert.Equal(0, control.SelectionStart); 7077Assert.Equal(0, control.SelectionStart); 7179Assert.Equal(0, control.SelectionStart); 7190Assert.Equal(0, control.SelectionStart); 7211Assert.Equal(0, control.SelectionStart); 7222Assert.Equal(0, control.SelectionStart); 7251Assert.Equal(0, control.SelectionStart); 7265Assert.Equal(0, control.SelectionStart); 7297Assert.Equal(0, control.SelectionStart); 7313Assert.Equal(0, control.SelectionStart); 7406Assert.Equal(0, control.SelectionStart); 7419Assert.Equal(0, control.SelectionStart); 7471Assert.Equal(0, control.SelectionStart); 7485Assert.Equal(0, control.SelectionStart); 10194Assert.Equal(0, control.SelectionStart); 10428Assert.Equal(0, control.SelectionStart);
TextBoxBaseTests.cs (58)
2592Assert.Equal(expectedSelectionStart, control.SelectionStart); 2646Assert.Equal(expectedSelectionStart, control.SelectionStart); 2668Assert.Equal(expectedSelectionStart, control.SelectionStart); 2690Assert.Equal(expectedSelectionStart, control.SelectionStart); 2719Assert.Equal(expectedSelectionStart, control.SelectionStart); 2814Assert.Equal(0, control.SelectionStart); 2821Assert.Equal(0, control.SelectionStart); 2877Assert.Equal(0, control.SelectionStart); 2887Assert.Equal(0, control.SelectionStart); 2944Assert.Equal(0, control.SelectionStart); 2951Assert.Equal(0, control.SelectionStart); 2962Assert.Equal(0, control.SelectionStart); 2971Assert.Equal(0, control.SelectionStart); 2991Assert.Equal(expected, control.SelectionStart); 2998Assert.Equal(expected, control.SelectionStart); 3019Assert.Equal(expected, control.SelectionStart); 3025Assert.Equal(expected, control.SelectionStart); 3055Assert.Equal(expected, control.SelectionStart); 3065Assert.Equal(expected, control.SelectionStart); 3116Assert.Equal(0, control.SelectionStart); 3121Assert.Equal(0, control.SelectionStart); 3134Assert.Equal(0, control.SelectionStart); 3139Assert.Equal(0, control.SelectionStart); 3222Assert.Equal(0, control.SelectionStart); 3233Assert.Equal(0, control.SelectionStart); 3276Assert.Equal(expectedSelectionStart, control.SelectionStart); 3287Assert.Equal(expectedSelectionStart, control.SelectionStart); 3306Assert.Equal(0, control.SelectionStart); 3317Assert.Equal(0, control.SelectionStart); 3341Assert.Equal(0, control.SelectionStart); 3354Assert.Equal(0, control.SelectionStart); 3385Assert.Equal(0, control.SelectionStart); 3398Assert.Equal(0, control.SelectionStart); 3450Assert.Equal(0, control.SelectionStart); 3464Assert.Equal(0, control.SelectionStart); 3865Assert.Equal(expected.Length, control.SelectionStart); 3883Assert.Equal(expectedSelectionStart, control.SelectionStart); 3903Assert.Equal(expectedSelectionStart, control.SelectionStart); 3924Assert.Equal(expectedSelectionStart, control.SelectionStart); 3946Assert.Equal(expectedSelectionStart, control.SelectionStart); 3969Assert.Equal(expected.Length, control.SelectionStart); 3998Assert.Equal(expectedSelectionStart, control.SelectionStart); 4215Assert.Equal(0, control.SelectionStart); 4231Assert.Equal(1, control.SelectionStart); 5488Assert.Equal(1, control.SelectionStart); 5501Assert.Equal(1, control.SelectionStart); 6232Assert.Equal(expectedSelectionStart, control.SelectionStart); 6239Assert.Equal(expectedSelectionStart, control.SelectionStart); 6262Assert.Equal(expectedSelectionStart, control.SelectionStart); 6272Assert.Equal(expectedSelectionStart, control.SelectionStart); 6322Assert.Equal(0, control.SelectionStart); 6329Assert.Equal(0, control.SelectionStart); 6343Assert.Equal(0, control.SelectionStart); 6350Assert.Equal(0, control.SelectionStart); 6369Assert.Equal(0, control.SelectionStart); 6379Assert.Equal(0, control.SelectionStart); 6404Assert.Equal(0, control.SelectionStart); 6414Assert.Equal(0, control.SelectionStart);
TextBoxTests.cs (3)
104Assert.Equal(0, control.SelectionStart); 653Assert.Equal(0, control.SelectionStart); 666Assert.Equal(0, control.SelectionStart);