1 write to _provider
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Automation\UiaTextRange.cs (1)
39_provider = provider.OrThrowIfNull();
77 references to _provider
System.Windows.Forms.Primitives (77)
System\Windows\Forms\Automation\UiaTextRange.cs (77)
119*pRetVal = ComHelpers.GetComPointer<ITextRangeProvider>(new UiaTextRange(_enclosingElement, _provider, Start, End)); 183string text = _provider.Text; 205if (_provider.LinesCount != 1) 207int startLine = _provider.GetLineFromCharIndex(Start); 208int startIndex = _provider.GetLineIndex(startLine); 210int endLine = _provider.GetLineFromCharIndex(End); 212if (endLine < _provider.LinesCount - 1) 215endIndex = _provider.GetLineIndex(endLine); 219endIndex = _provider.TextLength; 226MoveTo(0, _provider.TextLength); 235string text = _provider.Text; 258MoveTo(0, _provider.TextLength); 301ReadOnlySpan<char> rangeText = _provider.Text.AsSpan().Slice(Start, Length); 309? ComHelpers.GetComPointer<ITextRangeProvider>(new UiaTextRange(_enclosingElement, _provider, Start + index, Start + index + text.Length)) 347string text = _provider.Text; 356if (Start == _provider.TextLength 357|| (_provider.IsMultiline && End < _provider.TextLength 361endlinePoint = _provider.PointToScreen(endlinePoint); 362Rectangle endlineRectangle = new(endlinePoint.X, endlinePoint.Y + 2, UiaTextProvider.EndOfLineWidth, Math.Abs(_provider.Logfont.lfHeight) + 1); 384Rectangle clippingRectangle = _provider.BoundingRectangle; 386if (_provider.IsMultiline) 394Point startPoint = _provider.GetPositionFromChar(Start); 395Point endPoint = _provider.GetPositionFromCharForUpperRightCorner(End - 1, text); 434string text = _provider.Text; 581_provider.SetSelection(Start, End); 591if (_provider.IsMultiline) 594? _provider.GetLineFromCharIndex(Start) 595: Math.Max(0, _provider.GetLineFromCharIndex(End) - _provider.LinesPerPage + 1); 597_provider.LineScroll(Start, newFirstLine - _provider.FirstVisibleLine); 602if (_provider.IsScrollable) 604_provider.GetVisibleRangePoints(out int visibleStart, out int visibleEnd); 607if (_provider.IsReadingRTL) 612_provider.GetVisibleRangePoints(out _, out _); 621_provider.GetVisibleRangePoints(out _, out _); 686UIA_TEXTATTRIBUTE_ID.UIA_CapStyleAttributeId => GetCapStyle(_provider.WindowStyle), 687UIA_TEXTATTRIBUTE_ID.UIA_FontNameAttributeId => GetFontName(_provider.Logfont), 688UIA_TEXTATTRIBUTE_ID.UIA_FontSizeAttributeId => GetFontSize(_provider.Logfont), 689UIA_TEXTATTRIBUTE_ID.UIA_FontWeightAttributeId => GetFontWeight(_provider.Logfont), 691UIA_TEXTATTRIBUTE_ID.UIA_HorizontalTextAlignmentAttributeId => GetHorizontalTextAlignment(_provider.WindowStyle), 692UIA_TEXTATTRIBUTE_ID.UIA_IsItalicAttributeId => GetItalic(_provider.Logfont), 694UIA_TEXTATTRIBUTE_ID.UIA_StrikethroughStyleAttributeId => GetStrikethroughStyle(_provider.Logfont), 695UIA_TEXTATTRIBUTE_ID.UIA_UnderlineStyleAttributeId => GetUnderlineStyle(_provider.Logfont), 723int startLine = _provider.GetLineFromCharIndex(start); 724int endLine = _provider.GetLineFromCharIndex(end - 1); 727int firstVisibleLine = _provider.FirstVisibleLine; 731start = _provider.GetLineIndex(startLine); 735int lastVisibleLine = firstVisibleLine + _provider.LinesPerPage - 1; 739end = _provider.GetLineIndex(endLine + 1); // Index of the next line is the end caret position of the previous line. 743int lineHeight = Math.Abs(_provider.Logfont.lfHeight); 745string text = _provider.Text; 752int lineStartIndex = lineIndex == startLine ? start : _provider.GetLineIndex(lineIndex); 753Point lineStartPoint = _provider.GetPositionFromChar(lineStartIndex); 764: _provider.GetLineIndex(lineIndex + 1) - 1; 766Point lineEndPoint = _provider.GetPositionFromCharForUpperRightCorner(lineEndIndex, text); 768if (!_provider.IsReadingRTL) 835Point pt = _provider.GetPositionFromChar(i); 842pt = _provider.GetPositionFromCharForUpperRightCorner(i, text); 868rect = _provider.RectangleToScreen(rect); 903private bool GetReadOnly() => _provider.IsReadOnly; 931int limit = _provider.TextLength; 944string text = _provider.Text; 968int line = _provider.GetLineFromCharIndex(index); 972int lineMax = _provider.LinesCount; 978index = _provider.GetLineIndex(line + moved); 983index = _provider.TextLength; 994string text = _provider.Text; 1020int limit = _provider.TextLength; 1058string text = _provider.Text; 1079int line = _provider.GetLineFromCharIndex(index) + 1; 1081int lineMax = _provider.LinesCount; 1106bool firstLineEmpty = (lineMax == 0 || (lineMax > 1 && _provider.GetLineIndex(1) == LineSeparator.Length)); 1119index = _provider.GetLineIndex(line + actualCount) - LineSeparator.Length; 1129string text = _provider.Text; 1182int limit = _provider.TextLength;