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