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