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