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