1 write to _provider
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Automation\UiaTextRange.cs (1)
41_provider = provider.OrThrowIfNull();
77 references to _provider
System.Windows.Forms.Primitives (77)
System\Windows\Forms\Automation\UiaTextRange.cs (77)
121*pRetVal = ComHelpers.GetComPointer<ITextRangeProvider>(new UiaTextRange(_enclosingElement, _provider, Start, End)); 185string text = _provider.Text; 207if (_provider.LinesCount != 1) 209int startLine = _provider.GetLineFromCharIndex(Start); 210int startIndex = _provider.GetLineIndex(startLine); 212int endLine = _provider.GetLineFromCharIndex(End); 214if (endLine < _provider.LinesCount - 1) 217endIndex = _provider.GetLineIndex(endLine); 221endIndex = _provider.TextLength; 228MoveTo(0, _provider.TextLength); 237string text = _provider.Text; 260MoveTo(0, _provider.TextLength); 303ReadOnlySpan<char> rangeText = _provider.Text.AsSpan().Slice(Start, Length); 311? ComHelpers.GetComPointer<ITextRangeProvider>(new UiaTextRange(_enclosingElement, _provider, Start + index, Start + index + text.Length)) 349string text = _provider.Text; 358if (Start == _provider.TextLength 359|| (_provider.IsMultiline && End < _provider.TextLength 363endlinePoint = _provider.PointToScreen(endlinePoint); 364Rectangle endlineRectangle = new(endlinePoint.X, endlinePoint.Y + 2, UiaTextProvider.EndOfLineWidth, Math.Abs(_provider.Logfont.lfHeight) + 1); 386Rectangle clippingRectangle = _provider.BoundingRectangle; 388if (_provider.IsMultiline) 396Point startPoint = _provider.GetPositionFromChar(Start); 397Point endPoint = _provider.GetPositionFromCharForUpperRightCorner(End - 1, text); 436string text = _provider.Text; 583_provider.SetSelection(Start, End); 593if (_provider.IsMultiline) 596? _provider.GetLineFromCharIndex(Start) 597: Math.Max(0, _provider.GetLineFromCharIndex(End) - _provider.LinesPerPage + 1); 599_provider.LineScroll(Start, newFirstLine - _provider.FirstVisibleLine); 604if (_provider.IsScrollable) 606_provider.GetVisibleRangePoints(out int visibleStart, out int visibleEnd); 609if (_provider.IsReadingRTL) 614_provider.GetVisibleRangePoints(out _, out _); 623_provider.GetVisibleRangePoints(out _, out _); 688UIA_TEXTATTRIBUTE_ID.UIA_CapStyleAttributeId => GetCapStyle(_provider.WindowStyle), 689UIA_TEXTATTRIBUTE_ID.UIA_FontNameAttributeId => GetFontName(_provider.Logfont), 690UIA_TEXTATTRIBUTE_ID.UIA_FontSizeAttributeId => GetFontSize(_provider.Logfont), 691UIA_TEXTATTRIBUTE_ID.UIA_FontWeightAttributeId => GetFontWeight(_provider.Logfont), 693UIA_TEXTATTRIBUTE_ID.UIA_HorizontalTextAlignmentAttributeId => GetHorizontalTextAlignment(_provider.WindowStyle), 694UIA_TEXTATTRIBUTE_ID.UIA_IsItalicAttributeId => GetItalic(_provider.Logfont), 696UIA_TEXTATTRIBUTE_ID.UIA_StrikethroughStyleAttributeId => GetStrikethroughStyle(_provider.Logfont), 697UIA_TEXTATTRIBUTE_ID.UIA_UnderlineStyleAttributeId => GetUnderlineStyle(_provider.Logfont), 725int startLine = _provider.GetLineFromCharIndex(start); 726int endLine = _provider.GetLineFromCharIndex(end - 1); 729int firstVisibleLine = _provider.FirstVisibleLine; 733start = _provider.GetLineIndex(startLine); 737int lastVisibleLine = firstVisibleLine + _provider.LinesPerPage - 1; 741end = _provider.GetLineIndex(endLine + 1); // Index of the next line is the end caret position of the previous line. 745int lineHeight = Math.Abs(_provider.Logfont.lfHeight); 747string text = _provider.Text; 754int lineStartIndex = lineIndex == startLine ? start : _provider.GetLineIndex(lineIndex); 755Point lineStartPoint = _provider.GetPositionFromChar(lineStartIndex); 766: _provider.GetLineIndex(lineIndex + 1) - 1; 768Point lineEndPoint = _provider.GetPositionFromCharForUpperRightCorner(lineEndIndex, text); 770if (!_provider.IsReadingRTL) 837Point pt = _provider.GetPositionFromChar(i); 844pt = _provider.GetPositionFromCharForUpperRightCorner(i, text); 870rect = _provider.RectangleToScreen(rect); 905private bool GetReadOnly() => _provider.IsReadOnly; 933int limit = _provider.TextLength; 946string text = _provider.Text; 970int line = _provider.GetLineFromCharIndex(index); 974int lineMax = _provider.LinesCount; 980index = _provider.GetLineIndex(line + moved); 985index = _provider.TextLength; 996string text = _provider.Text; 1022int limit = _provider.TextLength; 1060string text = _provider.Text; 1081int line = _provider.GetLineFromCharIndex(index) + 1; 1083int lineMax = _provider.LinesCount; 1108bool firstLineEmpty = (lineMax == 0 || (lineMax > 1 && _provider.GetLineIndex(1) == LineSeparator.Length)); 1121index = _provider.GetLineIndex(line + actualCount) - LineSeparator.Length; 1131string text = _provider.Text; 1184int limit = _provider.TextLength;