11 writes to Start
System.Windows.Forms.Primitives (8)
System\Windows\Forms\Automation\UiaTextRange.cs (8)
191
Start
--;
243
Start
--;
463
Start
= End;
468
Start
= MoveEndpointForward(Start, unit, count, out moved);
521
Start
= MoveEndpointForward(Start, unit, count, out moved);
539
Start
= MoveEndpointBackward(Start, unit, count, out moved);
571
Start
= e;
1188
Start
= limit;
System.Windows.Forms.Primitives.Tests (3)
System\Windows\Forms\Automation\UiaTextRangeTests.cs (3)
191
Start
= start
204
Start
= -10
217
Start
= 15 // More than End = 10
70 references to Start
System.Windows.Forms.Primitives (42)
System\Windows\Forms\Automation\UiaTextRange.cs (42)
78
if (
Start
< 0 || End < 0 ||
Start
> End)
84
return End -
Start
;
121
*pRetVal = ComHelpers.GetComPointer<ITextRangeProvider>(new UiaTextRange(_enclosingElement, _provider,
Start
, End));
140
*pRetVal = ComHelpers.TryGetObjectForIUnknown((IUnknown*)range, out UiaTextRange? editRange) && editRange.
Start
==
Start
&& editRange.End == End;
162
int e1 = (endpoint == (int)TextPatternRangeEndpoint.TextPatternRangeEndpoint_Start) ?
Start
: End;
163
int e2 = (targetEndpoint == (int)TextPatternRangeEndpoint.TextPatternRangeEndpoint_Start) ? editRange.
Start
: editRange.End;
189
while (!AtWordBoundary(text,
Start
))
195
End = Math.Min(Math.Max(End,
Start
+ 1), text.Length);
209
int startLine = _provider.GetLineFromCharIndex(
Start
);
241
while (!AtParagraphBoundary(text,
Start
))
247
End = Math.Min(Math.Max(End,
Start
+ 1), text.Length);
303
ReadOnlySpan<char> rangeText = _provider.Text.AsSpan().Slice(
Start
, Length);
311
? ComHelpers.GetComPointer<ITextRangeProvider>(new UiaTextRange(_enclosingElement, _provider,
Start
+ index,
Start
+ index + text.Length))
358
if (
Start
== _provider.TextLength
360
&& End -
Start
== 1 && text[End] == '\n'))
396
Point startPoint = _provider.GetPositionFromChar(
Start
);
440
*pRetVal = text.Length < maxLength -
Start
441
? new(text[
Start
..])
442
: new(text.Substring(
Start
, maxLength));
467
int start =
Start
;
468
Start = MoveEndpointForward(
Start
, unit, count, out moved);
471
if (start !=
Start
)
484
End =
Start
;
514
int start =
Start
;
521
Start = MoveEndpointForward(
Start
, unit, count, out moved);
524
*pRetVal = start ==
Start
? 0 : moved;
539
Start = MoveEndpointBackward(
Start
, unit, count, out moved);
542
*pRetVal = start ==
Start
? 0 : moved;
566
? textRange.
Start
583
_provider.SetSelection(
Start
, End);
596
? _provider.GetLineFromCharIndex(
Start
)
599
_provider.LineScroll(
Start
, newFirstLine - _provider.FirstVisibleLine);
607
VIRTUAL_KEY key =
Start
> visibleStart ? VIRTUAL_KEY.VK_RIGHT : VIRTUAL_KEY.VK_LEFT;
611
if (
Start
> visibleStart ||
Start
< visibleEnd)
620
if (
Start
< visibleStart ||
Start
> visibleEnd)
722
int start =
Start
;
1186
if (
Start
> limit && limit > 0)
System.Windows.Forms.Primitives.Tests (24)
System\Windows\Forms\Automation\UiaTextRangeTests.cs (24)
28
Assert.Equal(start, textRange.
Start
);
53
Assert.Equal(expectedStart, textRange.
Start
);
84
Assert.True(textRange.
Start
>= 0);
112
int actual = textRange.End < textRange.
Start
? textRange.
Start
: textRange.End;
125
Assert.Equal(textRange.
Start
, textRange.End);
131
Assert.Equal(textRange.
Start
, textRange.End);
178
Assert.Equal(start, textRange.
Start
);
193
int actual = textRange.
Start
< textRange.End ? textRange.End : textRange.
Start
;
206
Assert.Equal(0, textRange.
Start
);
219
Assert.True(textRange.
Start
<= textRange.End);
232
Assert.Equal(textRange.
Start
, actual.
Start
);
294
Assert.Equal(expandedStart, textRange.
Start
);
312
Assert.Equal(expandedStart, textRange.
Start
);
343
Assert.Equal(expandedStart, textRange.
Start
);
364
Assert.Equal(expandedStart, textRange.
Start
);
389
Assert.Equal(expandedStart, textRange.
Start
);
909
Assert.Equal(expectedStart, textRange.
Start
);
943
Assert.Equal(expectedStart, textRange.
Start
);
965
Assert.Equal(expectedStart, textRange.
Start
);
1284
Assert.Equal(start, textRange.
Start
);
1320
Assert.Equal(expectedStart, textRange.
Start
);
System.Windows.Forms.Tests (4)
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (2)
965
Assert.Equal(start, textRange.
Start
);
1027
Assert.Equal(0, textRange.
Start
);
System\Windows\Forms\TextBoxBase.TextBoxBaseUiaTextProviderTests.cs (2)
834
Assert.Equal(start, textRange.
Start
);
876
Assert.Equal(0, textRange.
Start
);