15 writes to End
System.Windows.Forms.Primitives (11)
System\Windows\Forms\Automation\UiaTextRange.cs (11)
177End = MoveEndpointForward(End, TextUnit.TextUnit_Character, 1, out _); 195End = Math.Min(Math.Max(End, Start + 1), text.Length); 199End++; 247End = Math.Min(Math.Max(End, Start + 1), text.Length); 251End++; 484End = Start; 489End = MoveEndpointBackward(End, unit, count, out moved); 528End = MoveEndpointForward(End, unit, count, out moved); 546End = MoveEndpointBackward(End, unit, count, out moved); 575End = e; 1193End = limit;
System.Windows.Forms.Primitives.Tests (4)
System\Windows\Forms\Automation\UiaTextRangeTests.cs (4)
110End = end 123End = 3 /*Incorrect value*/ 127textRange.End = 6; 130textRange.End = -10; /*Incorrect value*/
62 references to End
System.Windows.Forms.Primitives (33)
System\Windows\Forms\Automation\UiaTextRange.cs (33)
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; 177End = MoveEndpointForward(End, TextUnit.TextUnit_Character, 1, out _); 195End = Math.Min(Math.Max(End, Start + 1), text.Length); 197while (!AtWordBoundary(text, End)) 212int endLine = _provider.GetLineFromCharIndex(End); 247End = Math.Min(Math.Max(End, Start + 1), text.Length); 249while (!AtParagraphBoundary(text, End)) 359|| (_provider.IsMultiline && End < _provider.TextLength 360&& End - Start == 1 && text[End] == '\n')) 397Point endPoint = _provider.GetPositionFromCharForUpperRightCorner(End - 1, text); 433maxLength = End + 1; 463Start = End; 488int end = End; 489End = MoveEndpointBackward(End, unit, count, out moved); 492if (end != End) 515int end = End; 528End = MoveEndpointForward(End, unit, count, out moved); 531*pRetVal = end == End ? 0 : moved; 546End = MoveEndpointBackward(End, unit, count, out moved); 549*pRetVal = end == End ? 0 : moved; 567: textRange.End; 583_provider.SetSelection(Start, End); 597: Math.Max(0, _provider.GetLineFromCharIndex(End) - _provider.LinesPerPage + 1); 723int end = End; 1191if (End > limit && limit > 0)
System.Windows.Forms.Primitives.Tests (25)
System\Windows\Forms\Automation\UiaTextRangeTests.cs (25)
29Assert.Equal(end, textRange.End); 54Assert.Equal(expectedEnd, textRange.End); 85Assert.True(textRange.End >= 0); 97Assert.Equal(end, textRange.End); 112int actual = textRange.End < textRange.Start ? textRange.Start : textRange.End; 125Assert.Equal(textRange.Start, textRange.End); 128Assert.Equal(6, textRange.End); 131Assert.Equal(textRange.Start, textRange.End); 193int actual = textRange.Start < textRange.End ? textRange.End : textRange.Start; 207Assert.Equal(8, textRange.End); 219Assert.True(textRange.Start <= textRange.End); 233Assert.Equal(textRange.End, actual.End); 295Assert.Equal(expandedEnd, textRange.End); 313Assert.Equal(expandedEnd, textRange.End); 344Assert.Equal(expandedEnd, textRange.End); 365Assert.Equal(expandedEnd, textRange.End); 390Assert.Equal(expandedEnd, textRange.End); 910Assert.Equal(expectedEnd, textRange.End); 944Assert.Equal(expectedEnd, textRange.End); 966Assert.Equal(expectedEnd, textRange.End); 1285Assert.Equal(end, textRange.End); 1321Assert.Equal(expectedEnd, textRange.End);
System.Windows.Forms.Tests (4)
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (2)
966Assert.Equal(end, textRange.End); 1028Assert.Equal(0, textRange.End);
System\Windows\Forms\TextBoxBase.TextBoxBaseUiaTextProviderTests.cs (2)
835Assert.Equal(end, textRange.End); 877Assert.Equal(0, textRange.End);