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