76 references to UiaTextRange
System.Windows.Forms (21)
System\Windows\Forms\Accessibility\LabelEditUiaTextProvider.cs (7)
41
new
UiaTextRange
(_owningChildEditAccessibilityObject,
91
*pRetVal = ComHelpers.GetComPointer<ITextRangeProvider>(new
UiaTextRange
(
167
using var selection = ComHelpers.GetComScope<ITextRangeProvider>(new
UiaTextRange
(_owningChildEditAccessibilityObject, this, start, end));
215
using var ranges = ComHelpers.GetComScope<ITextRangeProvider>(new
UiaTextRange
(_owningChildEditAccessibilityObject, this, start, end));
240
new
UiaTextRange
(
275
new
UiaTextRange
(
297
new
UiaTextRange
(
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxUiaTextProvider.cs (7)
47
new
UiaTextRange
(
137
new
UiaTextRange
(
228
using var selection = ComHelpers.GetComScope<ITextRangeProvider>(new
UiaTextRange
(_owningComboBox.ChildEditAccessibleObject, this, start, end));
282
using var ranges = ComHelpers.GetComScope<ITextRangeProvider>(new
UiaTextRange
(_owningComboBox.ChildEditAccessibleObject, this, start, end));
307
new
UiaTextRange
(
348
new
UiaTextRange
(
370
new
UiaTextRange
(
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (7)
49
using var selection = ComHelpers.GetComScope<ITextRangeProvider>(new
UiaTextRange
(Owner.AccessibilityObject, this, start, end));
73
using var ranges = ComHelpers.GetComScope<ITextRangeProvider>(new
UiaTextRange
(Owner.AccessibilityObject, this, start, end));
113
new
UiaTextRange
(
135
new
UiaTextRange
(
147
new
UiaTextRange
(
175
new
UiaTextRange
(
194
new
UiaTextRange
(
System.Windows.Forms.Primitives (2)
System\Windows\Forms\Automation\UiaTextRange.cs (2)
121
*pRetVal = ComHelpers.GetComPointer<ITextRangeProvider>(new
UiaTextRange
(_enclosingElement, _provider, Start, End));
311
? ComHelpers.GetComPointer<ITextRangeProvider>(new
UiaTextRange
(_enclosingElement, _provider, Start + index, Start + index + text.Length))
System.Windows.Forms.Primitives.Tests (53)
System\Windows\Forms\Automation\UiaTextRangeTests.cs (53)
27
UiaTextRange textRange =
new
(enclosingElement, provider, start, end);
52
UiaTextRange textRange =
new
(enclosingElement, provider, start, end);
62
Assert.Throws<ArgumentNullException>(() => new
UiaTextRange
(enclosingElement, null, 0, 5));
71
Assert.Throws<ArgumentNullException>(() => new
UiaTextRange
(null, provider, 0, 5));
83
UiaTextRange textRange =
new
(enclosingElement, provider, start, end);
96
UiaTextRange textRange =
new
(enclosingElement, provider, start: 0, end);
108
UiaTextRange textRange =
new
(enclosingElement, provider, start: 0, end: 0)
121
UiaTextRange textRange =
new
(enclosingElement, provider, start: 5, end: 10)
144
UiaTextRange textRange =
new
(enclosingElement, provider, start, end);
157
UiaTextRange textRange =
new
(enclosingElement, provider, 3, 10);
174
UiaTextRange textRange =
new
(enclosingElement, provider, start: 0, end: 0);
189
UiaTextRange textRange =
new
(enclosingElement, provider, start: 0, end: 0)
202
UiaTextRange textRange =
new
(enclosingElement, provider, start: 4, end: 8)
215
UiaTextRange textRange =
new
(enclosingElement, provider, start: 4, end: 10)
227
UiaTextRange textRange =
new
(enclosingElement, provider, start: 3, end: 9);
243
UiaTextRange textRange1 =
new
(enclosingElement, provider, start: 3, end: 9);
244
UiaTextRange textRange2 =
new
(enclosingElement, provider, start, end);
274
UiaTextRange textRange =
new
(enclosingElement, provider, start: 3, end: 9);
275
UiaTextRange targetRange =
new
(enclosingElement, provider, start: targetStart, end: targetEnd);
292
UiaTextRange textRange =
new
(enclosingElement, provider, start, end);
310
UiaTextRange textRange =
new
(enclosingElement, provider, start, end);
341
UiaTextRange textRange =
new
(enclosingElement, provider, start, end);
362
UiaTextRange textRange =
new
(enclosingElement, provider, start, end);
387
UiaTextRange textRange =
new
(enclosingElement, provider, start, end);
400
UiaTextRange textRange =
new
(enclosingElement, provider, start: 0, end: 0);
429
UiaTextRange textRange =
new
(enclosingElement, provider, start: 0, end: 28);
452
UiaTextRange textRange =
new
(enclosingElement, provider, start: 0, end: 28);
536
UiaTextRange textRange =
new
(enclosingElement, provider, start: 0, end: 28);
562
UiaTextRange textRange =
new
(enclosingElement, provider, start: 0, end: 0);
593
UiaTextRange textRange =
new
(enclosingElement, provider, start: 0, end: 0);
622
UiaTextRange textRange =
new
(enclosingElement, provider, start: 3, end: 3);
663
UiaTextRange textRange =
new
(enclosingElement, provider, start, end);
746
UiaTextRange textRange =
new
(enclosingElement, providerMock.Object, start, end);
828
UiaTextRange textRange =
new
(enclosingElement, providerMock.Object, start, end);
843
UiaTextRange textRange =
new
(enclosingElement, provider, start: 0, end: 0);
875
UiaTextRange textRange =
new
(enclosingElement, provider, start, end);
906
UiaTextRange textRange =
new
(enclosingElement, provider, start, end);
940
UiaTextRange textRange =
new
(enclosingElement, provider, start, end);
961
UiaTextRange textRange =
new
(enclosingElement, provider, start, end);
962
UiaTextRange targetRange =
new
(enclosingElement, provider, targetRangeStart, targetRangeEnd);
979
UiaTextRange textRange =
new
(enclosingElement, provider, start, end);
990
UiaTextRange textRange =
new
(enclosingElement, provider, 3, 7);
1000
UiaTextRange textRange =
new
(enclosingElement, provider, 3, 7);
1023
UiaTextRange textRange =
new
(enclosingElement, provider, start, end);
1049
UiaTextRange textRange =
new
(enclosingElement, provider, start, end);
1059
UiaTextRange textRange =
new
(enclosingElement, provider, start: 0, end: 0);
1126
UiaTextRange textRange =
new
(enclosingElement, provider, 0, 0);
1140
UiaTextRange textRange =
new
(enclosingElement, provider, 0, 0);
1156
UiaTextRange textRange =
new
(enclosingElement, provider, 0, 0);
1203
UiaTextRange textRange =
new
(enclosingElement, provider, 5, 20);
1280
UiaTextRange textRange =
new
(enclosingElement, provider, 0, 0);
1297
UiaTextRange textRange =
new
(enclosingElement, provider, 0, 0);
1316
UiaTextRange textRange =
new
(enclosingElement, provider, start, end);