362 references to ITextRangeProvider
System.Windows.Forms (70)
System\Windows\Forms\Accessibility\AccessibleObject.cs (13)
781
internal virtual
ITextRangeProvider
* DocumentRangeInternal
794
internal virtual HRESULT GetTextRangeFromChild(IRawElementProviderSimple* childElement,
ITextRangeProvider
** pRetVal) => HRESULT.E_NOTIMPL;
796
internal virtual HRESULT GetTextRangeFromPoint(UiaPoint screenLocation,
ITextRangeProvider
** pRetVal) => HRESULT.E_NOTIMPL;
807
internal virtual HRESULT GetTextCaretRange(BOOL* isActive,
ITextRangeProvider
** pRetVal) => HRESULT.E_NOTIMPL;
809
internal virtual HRESULT GetRangeFromAnnotation(IRawElementProviderSimple* annotationElement,
ITextRangeProvider
** pRetVal) => HRESULT.E_NOTIMPL;
1334
ITextRangeProvider
* ITextProvider.Interface.DocumentRange => DocumentRangeInternal;
1340
HRESULT ITextProvider.Interface.RangeFromChild(IRawElementProviderSimple* childElement,
ITextRangeProvider
** pRetVal)
1343
HRESULT ITextProvider.Interface.RangeFromPoint(UiaPoint point,
ITextRangeProvider
** pRetVal)
1348
ITextRangeProvider
* ITextProvider2.Interface.DocumentRange => DocumentRangeInternal;
1354
HRESULT ITextProvider2.Interface.RangeFromChild(IRawElementProviderSimple* childElement,
ITextRangeProvider
** pRetVal)
1357
HRESULT ITextProvider2.Interface.RangeFromPoint(UiaPoint point,
ITextRangeProvider
** pRetVal)
1362
HRESULT ITextProvider2.Interface.GetCaretRange(BOOL* isActive,
ITextRangeProvider
** pRetVal) => GetTextCaretRange(isActive, pRetVal);
1364
HRESULT ITextProvider2.Interface.RangeFromAnnotation(IRawElementProviderSimple* annotationElement,
ITextRangeProvider
** pRetVal)
System\Windows\Forms\Accessibility\LabelEditAccessibleObject.cs (5)
82
internal override
ITextRangeProvider
* DocumentRangeInternal
91
internal override HRESULT GetTextRangeFromChild(IRawElementProviderSimple* childElement,
ITextRangeProvider
** pRetVal)
94
internal override HRESULT GetTextRangeFromPoint(UiaPoint screenLocation,
ITextRangeProvider
** pRetVal)
100
internal override HRESULT GetTextCaretRange(BOOL* isActive,
ITextRangeProvider
** pRetVal)
103
internal override HRESULT GetRangeFromAnnotation(IRawElementProviderSimple* annotationElement,
ITextRangeProvider
** pRetVal)
System\Windows\Forms\Accessibility\LabelEditUiaTextProvider.cs (14)
39
public override
ITextRangeProvider
* DocumentRange
40
=> ComHelpers.GetComPointer<
ITextRangeProvider
>(
72
public override HRESULT GetCaretRange(BOOL* isActive,
ITextRangeProvider
** pRetVal)
91
*pRetVal = ComHelpers.GetComPointer<
ITextRangeProvider
>(new UiaTextRange(
165
ComSafeArrayScope<
ITextRangeProvider
> result = new(1);
167
using var selection = ComHelpers.GetComScope<
ITextRangeProvider
>(new UiaTextRange(_owningChildEditAccessibilityObject, this, start, end));
213
ComSafeArrayScope<
ITextRangeProvider
> result = new(1);
215
using var ranges = ComHelpers.GetComScope<
ITextRangeProvider
>(new UiaTextRange(_owningChildEditAccessibilityObject, this, start, end));
232
public override HRESULT RangeFromAnnotation(IRawElementProviderSimple* annotationElement,
ITextRangeProvider
** pRetVal)
239
*pRetVal = ComHelpers.GetComPointer<
ITextRangeProvider
>(
248
public override HRESULT RangeFromChild(IRawElementProviderSimple* childElement,
ITextRangeProvider
** pRetVal)
261
public override HRESULT RangeFromPoint(UiaPoint point,
ITextRangeProvider
** pRetVal)
274
*pRetVal = ComHelpers.GetComPointer<
ITextRangeProvider
>(
296
*pRetVal = ComHelpers.GetComPointer<
ITextRangeProvider
>(
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildEditUiaProvider.cs (5)
106
internal override unsafe
ITextRangeProvider
* DocumentRangeInternal
113
internal override unsafe HRESULT GetTextRangeFromChild(IRawElementProviderSimple* childElement,
ITextRangeProvider
** pRetVal)
116
internal override unsafe HRESULT GetTextRangeFromPoint(UiaPoint screenLocation,
ITextRangeProvider
** pRetVal)
121
internal override unsafe HRESULT GetTextCaretRange(BOOL* isActive,
ITextRangeProvider
** pRetVal)
124
internal override unsafe HRESULT GetRangeFromAnnotation(IRawElementProviderSimple* annotationElement,
ITextRangeProvider
** pRetVal)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxUiaTextProvider.cs (14)
45
public override
ITextRangeProvider
* DocumentRange
46
=> ComHelpers.GetComPointer<
ITextRangeProvider
>(
118
public override HRESULT GetCaretRange(BOOL* isActive,
ITextRangeProvider
** pRetVal)
136
*pRetVal = ComHelpers.GetComPointer<
ITextRangeProvider
>(
226
ComSafeArrayScope<
ITextRangeProvider
> result = new(1);
228
using var selection = ComHelpers.GetComScope<
ITextRangeProvider
>(new UiaTextRange(_owningComboBox.ChildEditAccessibleObject, this, start, end));
280
ComSafeArrayScope<
ITextRangeProvider
> result = new(1);
282
using var ranges = ComHelpers.GetComScope<
ITextRangeProvider
>(new UiaTextRange(_owningComboBox.ChildEditAccessibleObject, this, start, end));
299
public override HRESULT RangeFromAnnotation(IRawElementProviderSimple* annotationElement,
ITextRangeProvider
** pRetVal)
306
*pRetVal = ComHelpers.GetComPointer<
ITextRangeProvider
>(
315
public override HRESULT RangeFromChild(IRawElementProviderSimple* childElement,
ITextRangeProvider
** pRetVal)
328
public override HRESULT RangeFromPoint(UiaPoint point,
ITextRangeProvider
** pRetVal)
347
*pRetVal = ComHelpers.GetComPointer<
ITextRangeProvider
>(
369
*pRetVal = ComHelpers.GetComPointer<
ITextRangeProvider
>(
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseAccessibleObject.cs (5)
97
internal override
ITextRangeProvider
* DocumentRangeInternal
106
internal override HRESULT GetTextRangeFromChild(IRawElementProviderSimple* childElement,
ITextRangeProvider
** pRetVal)
109
internal override HRESULT GetTextRangeFromPoint(UiaPoint screenLocation,
ITextRangeProvider
** pRetVal)
115
internal override HRESULT GetTextCaretRange(BOOL* isActive,
ITextRangeProvider
** pRetVal)
118
internal override HRESULT GetRangeFromAnnotation(IRawElementProviderSimple* annotationElement,
ITextRangeProvider
** pRetVal)
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (14)
47
ComSafeArrayScope<
ITextRangeProvider
> result = new(1);
49
using var selection = ComHelpers.GetComScope<
ITextRangeProvider
>(new UiaTextRange(Owner.AccessibilityObject, this, start, end));
71
ComSafeArrayScope<
ITextRangeProvider
> result = new(1);
73
using var ranges = ComHelpers.GetComScope<
ITextRangeProvider
>(new UiaTextRange(Owner.AccessibilityObject, this, start, end));
80
public override HRESULT RangeFromChild(IRawElementProviderSimple* childElement,
ITextRangeProvider
** pRetVal)
93
public override HRESULT RangeFromPoint(UiaPoint point,
ITextRangeProvider
** pRetVal)
112
*pRetVal = ComHelpers.GetComPointer<
ITextRangeProvider
>(
134
*pRetVal = ComHelpers.GetComPointer<
ITextRangeProvider
>(
145
public override
ITextRangeProvider
* DocumentRange => Owner is not null
146
? ComHelpers.GetComPointer<
ITextRangeProvider
>(
156
public override HRESULT GetCaretRange(BOOL* isActive,
ITextRangeProvider
** pRetVal)
174
*pRetVal = ComHelpers.GetComPointer<
ITextRangeProvider
>(
185
public override HRESULT RangeFromAnnotation(IRawElementProviderSimple* annotationElement,
ITextRangeProvider
** pRetVal)
193
? ComHelpers.GetComPointer<
ITextRangeProvider
>(
System.Windows.Forms.Primitives (228)
System\Windows\Forms\Automation\UiaTextProvider.cs (5)
23
public abstract HRESULT RangeFromChild(IRawElementProviderSimple* childElement,
ITextRangeProvider
** pRetVal);
25
public abstract HRESULT RangeFromPoint(UiaPoint point,
ITextRangeProvider
** pRetVal);
27
public abstract
ITextRangeProvider
* DocumentRange { get; }
149
public abstract HRESULT RangeFromAnnotation(IRawElementProviderSimple* annotationElement,
ITextRangeProvider
** pRetVal);
151
public abstract HRESULT GetCaretRange(BOOL* isActive,
ITextRangeProvider
** pRetVal);
System\Windows\Forms\Automation\UiaTextRange.cs (28)
13
internal sealed unsafe class UiaTextRange :
ITextRangeProvider
.Interface, IManagedWrapper<
ITextRangeProvider
>
112
HRESULT
ITextRangeProvider
.Interface.Clone(
ITextRangeProvider
** pRetVal)
121
*pRetVal = ComHelpers.GetComPointer<
ITextRangeProvider
>(new UiaTextRange(_enclosingElement, _provider, Start, End));
128
HRESULT
ITextRangeProvider
.Interface.Compare(
ITextRangeProvider
* range, BOOL* pRetVal)
144
HRESULT
ITextRangeProvider
.Interface.CompareEndpoints(TextPatternRangeEndpoint endpoint,
ITextRangeProvider
* targetRange, TextPatternRangeEndpoint targetEndpoint, int* pRetVal)
169
HRESULT
ITextRangeProvider
.Interface.ExpandToEnclosingUnit(TextUnit unit)
270
HRESULT
ITextRangeProvider
.Interface.FindAttribute(UIA_TEXTATTRIBUTE_ID attributeId, VARIANT val, BOOL backward,
ITextRangeProvider
** pRetVal)
281
HRESULT
ITextRangeProvider
.Interface.FindText(BSTR text, BOOL backward, BOOL ignoreCase,
ITextRangeProvider
** pRetVal)
311
? ComHelpers.GetComPointer<
ITextRangeProvider
>(new UiaTextRange(_enclosingElement, _provider, Start + index, Start + index + text.Length))
316
HRESULT
ITextRangeProvider
.Interface.GetAttributeValue(UIA_TEXTATTRIBUTE_ID attributeId, VARIANT* pRetVal)
327
HRESULT
ITextRangeProvider
.Interface.GetBoundingRectangles(SAFEARRAY** pRetVal)
413
HRESULT
ITextRangeProvider
.Interface.GetEnclosingElement(IRawElementProviderSimple** pRetVal)
424
HRESULT
ITextRangeProvider
.Interface.GetText(int maxLength, BSTR* pRetVal)
446
HRESULT
ITextRangeProvider
.Interface.Move(TextUnit unit, int count, int* pRetVal)
504
HRESULT
ITextRangeProvider
.Interface.MoveEndpointByUnit(TextPatternRangeEndpoint endpoint, TextUnit unit, int count, int* pRetVal)
558
HRESULT
ITextRangeProvider
.Interface.MoveEndpointByRange(TextPatternRangeEndpoint endpoint,
ITextRangeProvider
* targetRange, TextPatternRangeEndpoint targetEndpoint)
581
HRESULT
ITextRangeProvider
.Interface.Select()
587
HRESULT
ITextRangeProvider
.Interface.AddToSelection() => HRESULT.S_OK;
589
HRESULT
ITextRangeProvider
.Interface.RemoveFromSelection() => HRESULT.S_OK;
591
HRESULT
ITextRangeProvider
.Interface.ScrollIntoView(BOOL alignToTop)
630
HRESULT
ITextRangeProvider
.Interface.GetChildren(SAFEARRAY** pRetVal)
Windows.Win32.ITextProvider.g.cs (20)
130
private static winmdroot.Foundation.HRESULT RangeFromChild(ITextProvider* pThis, winmdroot.UI.Accessibility.IRawElementProviderSimple* childElement, winmdroot.UI.Accessibility.
ITextRangeProvider
** pRetVal)
156
public unsafe winmdroot.UI.Accessibility.
ITextRangeProvider
* RangeFromChild(winmdroot.UI.Accessibility.IRawElementProviderSimple* childElement)
158
winmdroot.UI.Accessibility.
ITextRangeProvider
* __retVal = default(winmdroot.UI.Accessibility.
ITextRangeProvider
*);
159
((delegate *unmanaged [Stdcall]<ITextProvider*,winmdroot.UI.Accessibility.IRawElementProviderSimple* ,winmdroot.UI.Accessibility.
ITextRangeProvider
** ,winmdroot.Foundation.HRESULT>)lpVtbl[5])((ITextProvider*)Unsafe.AsPointer(ref this), childElement, &__retVal).ThrowOnFailure();
166
private static winmdroot.Foundation.HRESULT RangeFromPoint(ITextProvider* pThis, winmdroot.UI.Accessibility.UiaPoint point, winmdroot.UI.Accessibility.
ITextRangeProvider
** pRetVal)
196
public unsafe winmdroot.UI.Accessibility.
ITextRangeProvider
* RangeFromPoint(winmdroot.UI.Accessibility.UiaPoint point)
198
winmdroot.UI.Accessibility.
ITextRangeProvider
* __retVal = default(winmdroot.UI.Accessibility.
ITextRangeProvider
*);
199
((delegate *unmanaged [Stdcall]<ITextProvider*,winmdroot.UI.Accessibility.UiaPoint ,winmdroot.UI.Accessibility.
ITextRangeProvider
** ,winmdroot.Foundation.HRESULT>)lpVtbl[6])((ITextProvider*)Unsafe.AsPointer(ref this), point, &__retVal).ThrowOnFailure();
206
private static winmdroot.Foundation.HRESULT get_DocumentRange(ITextProvider* pThis, winmdroot.UI.Accessibility.
ITextRangeProvider
** pRetVal)
226
internal unsafe winmdroot.UI.Accessibility.
ITextRangeProvider
* DocumentRange
230
winmdroot.UI.Accessibility.
ITextRangeProvider
* __result;
231
((delegate *unmanaged [Stdcall]<ITextProvider*,winmdroot.UI.Accessibility.
ITextRangeProvider
** ,winmdroot.Foundation.HRESULT>)lpVtbl[7])((ITextProvider*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure();
303
internal delegate *unmanaged [Stdcall]<ITextProvider*,winmdroot.UI.Accessibility.IRawElementProviderSimple* ,winmdroot.UI.Accessibility.
ITextRangeProvider
** ,winmdroot.Foundation.HRESULT> RangeFromChild_6;
305
internal delegate *unmanaged [Stdcall]<ITextProvider*,winmdroot.UI.Accessibility.UiaPoint ,winmdroot.UI.Accessibility.
ITextRangeProvider
** ,winmdroot.Foundation.HRESULT> RangeFromPoint_7;
307
internal delegate *unmanaged [Stdcall]<ITextProvider*,winmdroot.UI.Accessibility.
ITextRangeProvider
** ,winmdroot.Foundation.HRESULT> get_DocumentRange_8;
347
unsafe winmdroot.Foundation.HRESULT RangeFromChild(winmdroot.UI.Accessibility.IRawElementProviderSimple* childElement, winmdroot.UI.Accessibility.
ITextRangeProvider
** pRetVal);
350
unsafe winmdroot.Foundation.HRESULT RangeFromPoint(winmdroot.UI.Accessibility.UiaPoint point, winmdroot.UI.Accessibility.
ITextRangeProvider
** pRetVal);
352
unsafe winmdroot.UI.Accessibility.
ITextRangeProvider
* DocumentRange
Windows.Win32.ITextProvider2.g.cs (36)
112
private static winmdroot.Foundation.HRESULT RangeFromChild(ITextProvider2* pThis, winmdroot.UI.Accessibility.IRawElementProviderSimple* childElement, winmdroot.UI.Accessibility.
ITextRangeProvider
** pRetVal)
129
public unsafe winmdroot.UI.Accessibility.
ITextRangeProvider
* RangeFromChild(winmdroot.UI.Accessibility.IRawElementProviderSimple* childElement)
131
winmdroot.UI.Accessibility.
ITextRangeProvider
* __retVal = default(winmdroot.UI.Accessibility.
ITextRangeProvider
*);
132
((delegate *unmanaged [Stdcall]<ITextProvider2*,winmdroot.UI.Accessibility.IRawElementProviderSimple* ,winmdroot.UI.Accessibility.
ITextRangeProvider
** ,winmdroot.Foundation.HRESULT>)lpVtbl[5])((ITextProvider2*)Unsafe.AsPointer(ref this), childElement, &__retVal).ThrowOnFailure();
139
private static winmdroot.Foundation.HRESULT RangeFromPoint(ITextProvider2* pThis, winmdroot.UI.Accessibility.UiaPoint point, winmdroot.UI.Accessibility.
ITextRangeProvider
** pRetVal)
156
public unsafe winmdroot.UI.Accessibility.
ITextRangeProvider
* RangeFromPoint(winmdroot.UI.Accessibility.UiaPoint point)
158
winmdroot.UI.Accessibility.
ITextRangeProvider
* __retVal = default(winmdroot.UI.Accessibility.
ITextRangeProvider
*);
159
((delegate *unmanaged [Stdcall]<ITextProvider2*,winmdroot.UI.Accessibility.UiaPoint ,winmdroot.UI.Accessibility.
ITextRangeProvider
** ,winmdroot.Foundation.HRESULT>)lpVtbl[6])((ITextProvider2*)Unsafe.AsPointer(ref this), point, &__retVal).ThrowOnFailure();
166
private static winmdroot.Foundation.HRESULT get_DocumentRange(ITextProvider2* pThis, winmdroot.UI.Accessibility.
ITextRangeProvider
** pRetVal)
184
internal unsafe winmdroot.UI.Accessibility.
ITextRangeProvider
* DocumentRange
188
winmdroot.UI.Accessibility.
ITextRangeProvider
* __result;
189
((delegate *unmanaged [Stdcall]<ITextProvider2*,winmdroot.UI.Accessibility.
ITextRangeProvider
** ,winmdroot.Foundation.HRESULT>)lpVtbl[7])((ITextProvider2*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure();
228
private static winmdroot.Foundation.HRESULT RangeFromAnnotation(ITextProvider2* pThis, winmdroot.UI.Accessibility.IRawElementProviderSimple* annotationElement, winmdroot.UI.Accessibility.
ITextRangeProvider
** pRetVal)
256
public unsafe winmdroot.UI.Accessibility.
ITextRangeProvider
* RangeFromAnnotation(winmdroot.UI.Accessibility.IRawElementProviderSimple* annotationElement)
258
winmdroot.UI.Accessibility.
ITextRangeProvider
* __retVal = default(winmdroot.UI.Accessibility.
ITextRangeProvider
*);
259
((delegate *unmanaged [Stdcall]<ITextProvider2*,winmdroot.UI.Accessibility.IRawElementProviderSimple* ,winmdroot.UI.Accessibility.
ITextRangeProvider
** ,winmdroot.Foundation.HRESULT>)lpVtbl[9])((ITextProvider2*)Unsafe.AsPointer(ref this), annotationElement, &__retVal).ThrowOnFailure();
264
internal unsafe winmdroot.UI.Accessibility.
ITextRangeProvider
* GetCaretRange(out winmdroot.Foundation.BOOL isActive)
268
winmdroot.UI.Accessibility.
ITextRangeProvider
* __result = this.GetCaretRange(isActiveLocal);
276
private static winmdroot.Foundation.HRESULT GetCaretRange(ITextProvider2* pThis, winmdroot.Foundation.BOOL* isActive, winmdroot.UI.Accessibility.
ITextRangeProvider
** pRetVal)
305
public unsafe winmdroot.UI.Accessibility.
ITextRangeProvider
* GetCaretRange(winmdroot.Foundation.BOOL* isActive)
307
winmdroot.UI.Accessibility.
ITextRangeProvider
* __retVal = default(winmdroot.UI.Accessibility.
ITextRangeProvider
*);
308
((delegate *unmanaged [Stdcall]<ITextProvider2*,winmdroot.Foundation.BOOL* ,winmdroot.UI.Accessibility.
ITextRangeProvider
** ,winmdroot.Foundation.HRESULT>)lpVtbl[10])((ITextProvider2*)Unsafe.AsPointer(ref this), isActive, &__retVal).ThrowOnFailure();
343
internal delegate *unmanaged [Stdcall]<ITextProvider2*,winmdroot.UI.Accessibility.IRawElementProviderSimple* ,winmdroot.UI.Accessibility.
ITextRangeProvider
** ,winmdroot.Foundation.HRESULT> RangeFromChild_6;
345
internal delegate *unmanaged [Stdcall]<ITextProvider2*,winmdroot.UI.Accessibility.UiaPoint ,winmdroot.UI.Accessibility.
ITextRangeProvider
** ,winmdroot.Foundation.HRESULT> RangeFromPoint_7;
347
internal delegate *unmanaged [Stdcall]<ITextProvider2*,winmdroot.UI.Accessibility.
ITextRangeProvider
** ,winmdroot.Foundation.HRESULT> get_DocumentRange_8;
351
internal delegate *unmanaged [Stdcall]<ITextProvider2*,winmdroot.UI.Accessibility.IRawElementProviderSimple* ,winmdroot.UI.Accessibility.
ITextRangeProvider
** ,winmdroot.Foundation.HRESULT> RangeFromAnnotation_10;
353
internal delegate *unmanaged [Stdcall]<ITextProvider2*,winmdroot.Foundation.BOOL* ,winmdroot.UI.Accessibility.
ITextRangeProvider
** ,winmdroot.Foundation.HRESULT> GetCaretRange_11;
393
unsafe new winmdroot.Foundation.HRESULT RangeFromChild(winmdroot.UI.Accessibility.IRawElementProviderSimple* childElement, winmdroot.UI.Accessibility.
ITextRangeProvider
** pRetVal);
396
unsafe new winmdroot.Foundation.HRESULT RangeFromPoint(winmdroot.UI.Accessibility.UiaPoint point, winmdroot.UI.Accessibility.
ITextRangeProvider
** pRetVal);
398
unsafe new winmdroot.UI.Accessibility.
ITextRangeProvider
* DocumentRange
409
unsafe winmdroot.Foundation.HRESULT RangeFromAnnotation(winmdroot.UI.Accessibility.IRawElementProviderSimple* annotationElement, winmdroot.UI.Accessibility.
ITextRangeProvider
** pRetVal);
412
unsafe winmdroot.Foundation.HRESULT GetCaretRange(winmdroot.Foundation.BOOL* isActive, winmdroot.UI.Accessibility.
ITextRangeProvider
** pRetVal);
Windows.Win32.ITextRangeProvider.g.cs (119)
26
:IVTable<
ITextRangeProvider
,
ITextRangeProvider
.Vtbl>,IComIID {
42
return ((delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT>)lpVtbl[0])((
ITextRangeProvider
*)Unsafe.AsPointer(ref this), riid, ppvObject);
47
return ((delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,uint>)lpVtbl[1])((
ITextRangeProvider
*)Unsafe.AsPointer(ref this));
52
return ((delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,uint>)lpVtbl[2])((
ITextRangeProvider
*)Unsafe.AsPointer(ref this));
58
private static winmdroot.Foundation.HRESULT Clone(
ITextRangeProvider
* pThis, winmdroot.UI.Accessibility.
ITextRangeProvider
** pRetVal)
80
public unsafe winmdroot.UI.Accessibility.
ITextRangeProvider
* Clone()
82
winmdroot.UI.Accessibility.
ITextRangeProvider
* __retVal = default(winmdroot.UI.Accessibility.
ITextRangeProvider
*);
83
((delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,winmdroot.UI.Accessibility.
ITextRangeProvider
** ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((
ITextRangeProvider
*)Unsafe.AsPointer(ref this), &__retVal).ThrowOnFailure();
90
private static winmdroot.Foundation.HRESULT Compare(
ITextRangeProvider
* pThis, winmdroot.UI.Accessibility.
ITextRangeProvider
* range, winmdroot.Foundation.BOOL* pRetVal)
116
public unsafe winmdroot.Foundation.BOOL Compare(winmdroot.UI.Accessibility.
ITextRangeProvider
* range)
119
((delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,winmdroot.UI.Accessibility.
ITextRangeProvider
* ,winmdroot.Foundation.BOOL* ,winmdroot.Foundation.HRESULT>)lpVtbl[4])((
ITextRangeProvider
*)Unsafe.AsPointer(ref this), range, &__retVal).ThrowOnFailure();
126
private static winmdroot.Foundation.HRESULT CompareEndpoints(
ITextRangeProvider
* pThis, winmdroot.UI.Accessibility.TextPatternRangeEndpoint endpoint, winmdroot.UI.Accessibility.
ITextRangeProvider
* targetRange, winmdroot.UI.Accessibility.TextPatternRangeEndpoint targetEndpoint, int* pRetVal)
157
public unsafe int CompareEndpoints(winmdroot.UI.Accessibility.TextPatternRangeEndpoint endpoint, winmdroot.UI.Accessibility.
ITextRangeProvider
* targetRange, winmdroot.UI.Accessibility.TextPatternRangeEndpoint targetEndpoint)
160
((delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,winmdroot.UI.Accessibility.TextPatternRangeEndpoint ,winmdroot.UI.Accessibility.
ITextRangeProvider
* ,winmdroot.UI.Accessibility.TextPatternRangeEndpoint ,int* ,winmdroot.Foundation.HRESULT>)lpVtbl[5])((
ITextRangeProvider
*)Unsafe.AsPointer(ref this), endpoint, targetRange, targetEndpoint, &__retVal).ThrowOnFailure();
167
private static winmdroot.Foundation.HRESULT ExpandToEnclosingUnit(
ITextRangeProvider
* pThis, winmdroot.UI.Accessibility.TextUnit unit)
200
((delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,winmdroot.UI.Accessibility.TextUnit ,winmdroot.Foundation.HRESULT>)lpVtbl[6])((
ITextRangeProvider
*)Unsafe.AsPointer(ref this), unit).ThrowOnFailure();
206
private static winmdroot.Foundation.HRESULT FindAttribute(
ITextRangeProvider
* pThis, winmdroot.UI.Accessibility.UIA_TEXTATTRIBUTE_ID attributeId, winmdroot.System.Variant.VARIANT val, winmdroot.Foundation.BOOL backward, winmdroot.UI.Accessibility.
ITextRangeProvider
** pRetVal)
240
public unsafe winmdroot.UI.Accessibility.
ITextRangeProvider
* FindAttribute(winmdroot.UI.Accessibility.UIA_TEXTATTRIBUTE_ID attributeId, winmdroot.System.Variant.VARIANT val, winmdroot.Foundation.BOOL backward)
242
winmdroot.UI.Accessibility.
ITextRangeProvider
* __retVal = default(winmdroot.UI.Accessibility.
ITextRangeProvider
*);
243
((delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,winmdroot.UI.Accessibility.UIA_TEXTATTRIBUTE_ID ,winmdroot.System.Variant.VARIANT ,winmdroot.Foundation.BOOL ,winmdroot.UI.Accessibility.
ITextRangeProvider
** ,winmdroot.Foundation.HRESULT>)lpVtbl[7])((
ITextRangeProvider
*)Unsafe.AsPointer(ref this), attributeId, val, backward, &__retVal).ThrowOnFailure();
250
private static winmdroot.Foundation.HRESULT FindText(
ITextRangeProvider
* pThis, winmdroot.Foundation.BSTR text, winmdroot.Foundation.BOOL backward, winmdroot.Foundation.BOOL ignoreCase, winmdroot.UI.Accessibility.
ITextRangeProvider
** pRetVal)
284
public unsafe winmdroot.UI.Accessibility.
ITextRangeProvider
* FindText(winmdroot.Foundation.BSTR text, winmdroot.Foundation.BOOL backward, winmdroot.Foundation.BOOL ignoreCase)
286
winmdroot.UI.Accessibility.
ITextRangeProvider
* __retVal = default(winmdroot.UI.Accessibility.
ITextRangeProvider
*);
287
((delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.BOOL ,winmdroot.Foundation.BOOL ,winmdroot.UI.Accessibility.
ITextRangeProvider
** ,winmdroot.Foundation.HRESULT>)lpVtbl[8])((
ITextRangeProvider
*)Unsafe.AsPointer(ref this), text, backward, ignoreCase, &__retVal).ThrowOnFailure();
294
private static winmdroot.Foundation.HRESULT GetAttributeValue(
ITextRangeProvider
* pThis, winmdroot.UI.Accessibility.UIA_TEXTATTRIBUTE_ID attributeId, winmdroot.System.Variant.VARIANT* pRetVal)
323
((delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,winmdroot.UI.Accessibility.UIA_TEXTATTRIBUTE_ID ,winmdroot.System.Variant.VARIANT* ,winmdroot.Foundation.HRESULT>)lpVtbl[9])((
ITextRangeProvider
*)Unsafe.AsPointer(ref this), attributeId, &__retVal).ThrowOnFailure();
330
private static winmdroot.Foundation.HRESULT GetBoundingRectangles(
ITextRangeProvider
* pThis, winmdroot.System.Com.SAFEARRAY** pRetVal)
357
((delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,winmdroot.System.Com.SAFEARRAY** ,winmdroot.Foundation.HRESULT>)lpVtbl[10])((
ITextRangeProvider
*)Unsafe.AsPointer(ref this), &__retVal).ThrowOnFailure();
364
private static winmdroot.Foundation.HRESULT GetEnclosingElement(
ITextRangeProvider
* pThis, winmdroot.UI.Accessibility.IRawElementProviderSimple** pRetVal)
389
((delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,winmdroot.UI.Accessibility.IRawElementProviderSimple** ,winmdroot.Foundation.HRESULT>)lpVtbl[11])((
ITextRangeProvider
*)Unsafe.AsPointer(ref this), &__retVal).ThrowOnFailure();
396
private static winmdroot.Foundation.HRESULT GetText(
ITextRangeProvider
* pThis, int maxLength, winmdroot.Foundation.BSTR* pRetVal)
428
((delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,int ,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[12])((
ITextRangeProvider
*)Unsafe.AsPointer(ref this), maxLength, &__retVal).ThrowOnFailure();
435
private static winmdroot.Foundation.HRESULT Move(
ITextRangeProvider
* pThis, winmdroot.UI.Accessibility.TextUnit unit, int count, int* pRetVal)
470
((delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,winmdroot.UI.Accessibility.TextUnit ,int ,int* ,winmdroot.Foundation.HRESULT>)lpVtbl[13])((
ITextRangeProvider
*)Unsafe.AsPointer(ref this), unit, count, &__retVal).ThrowOnFailure();
477
private static winmdroot.Foundation.HRESULT MoveEndpointByUnit(
ITextRangeProvider
* pThis, winmdroot.UI.Accessibility.TextPatternRangeEndpoint endpoint, winmdroot.UI.Accessibility.TextUnit unit, int count, int* pRetVal)
510
((delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,winmdroot.UI.Accessibility.TextPatternRangeEndpoint ,winmdroot.UI.Accessibility.TextUnit ,int ,int* ,winmdroot.Foundation.HRESULT>)lpVtbl[14])((
ITextRangeProvider
*)Unsafe.AsPointer(ref this), endpoint, unit, count, &__retVal).ThrowOnFailure();
517
private static winmdroot.Foundation.HRESULT MoveEndpointByRange(
ITextRangeProvider
* pThis, winmdroot.UI.Accessibility.TextPatternRangeEndpoint endpoint, winmdroot.UI.Accessibility.
ITextRangeProvider
* targetRange, winmdroot.UI.Accessibility.TextPatternRangeEndpoint targetEndpoint)
543
public unsafe void MoveEndpointByRange(winmdroot.UI.Accessibility.TextPatternRangeEndpoint endpoint, winmdroot.UI.Accessibility.
ITextRangeProvider
* targetRange, winmdroot.UI.Accessibility.TextPatternRangeEndpoint targetEndpoint)
545
((delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,winmdroot.UI.Accessibility.TextPatternRangeEndpoint ,winmdroot.UI.Accessibility.
ITextRangeProvider
* ,winmdroot.UI.Accessibility.TextPatternRangeEndpoint ,winmdroot.Foundation.HRESULT>)lpVtbl[15])((
ITextRangeProvider
*)Unsafe.AsPointer(ref this), endpoint, targetRange, targetEndpoint).ThrowOnFailure();
551
private static winmdroot.Foundation.HRESULT Select(
ITextRangeProvider
* pThis)
575
((delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,winmdroot.Foundation.HRESULT>)lpVtbl[16])((
ITextRangeProvider
*)Unsafe.AsPointer(ref this)).ThrowOnFailure();
581
private static winmdroot.Foundation.HRESULT AddToSelection(
ITextRangeProvider
* pThis)
609
((delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,winmdroot.Foundation.HRESULT>)lpVtbl[17])((
ITextRangeProvider
*)Unsafe.AsPointer(ref this)).ThrowOnFailure();
615
private static winmdroot.Foundation.HRESULT RemoveFromSelection(
ITextRangeProvider
* pThis)
643
((delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,winmdroot.Foundation.HRESULT>)lpVtbl[18])((
ITextRangeProvider
*)Unsafe.AsPointer(ref this)).ThrowOnFailure();
649
private static winmdroot.Foundation.HRESULT ScrollIntoView(
ITextRangeProvider
* pThis, winmdroot.Foundation.BOOL alignToTop)
680
((delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,winmdroot.Foundation.BOOL ,winmdroot.Foundation.HRESULT>)lpVtbl[19])((
ITextRangeProvider
*)Unsafe.AsPointer(ref this), alignToTop).ThrowOnFailure();
686
private static winmdroot.Foundation.HRESULT GetChildren(
ITextRangeProvider
* pThis, winmdroot.System.Com.SAFEARRAY** pRetVal)
711
((delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,winmdroot.System.Com.SAFEARRAY** ,winmdroot.Foundation.HRESULT>)lpVtbl[20])((
ITextRangeProvider
*)Unsafe.AsPointer(ref this), &__retVal).ThrowOnFailure();
736
internal delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT> QueryInterface_1;
738
internal delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,uint> AddRef_2;
740
internal delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,uint> Release_3;
742
internal delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,winmdroot.UI.Accessibility.
ITextRangeProvider
** ,winmdroot.Foundation.HRESULT> Clone_4;
744
internal delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,winmdroot.UI.Accessibility.
ITextRangeProvider
* ,winmdroot.Foundation.BOOL* ,winmdroot.Foundation.HRESULT> Compare_5;
746
internal delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,winmdroot.UI.Accessibility.TextPatternRangeEndpoint ,winmdroot.UI.Accessibility.
ITextRangeProvider
* ,winmdroot.UI.Accessibility.TextPatternRangeEndpoint ,int* ,winmdroot.Foundation.HRESULT> CompareEndpoints_6;
748
internal delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,winmdroot.UI.Accessibility.TextUnit ,winmdroot.Foundation.HRESULT> ExpandToEnclosingUnit_7;
750
internal delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,winmdroot.UI.Accessibility.UIA_TEXTATTRIBUTE_ID ,winmdroot.System.Variant.VARIANT ,winmdroot.Foundation.BOOL ,winmdroot.UI.Accessibility.
ITextRangeProvider
** ,winmdroot.Foundation.HRESULT> FindAttribute_8;
752
internal delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.BOOL ,winmdroot.Foundation.BOOL ,winmdroot.UI.Accessibility.
ITextRangeProvider
** ,winmdroot.Foundation.HRESULT> FindText_9;
754
internal delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,winmdroot.UI.Accessibility.UIA_TEXTATTRIBUTE_ID ,winmdroot.System.Variant.VARIANT* ,winmdroot.Foundation.HRESULT> GetAttributeValue_10;
756
internal delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,winmdroot.System.Com.SAFEARRAY** ,winmdroot.Foundation.HRESULT> GetBoundingRectangles_11;
758
internal delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,winmdroot.UI.Accessibility.IRawElementProviderSimple** ,winmdroot.Foundation.HRESULT> GetEnclosingElement_12;
760
internal delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,int ,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT> GetText_13;
762
internal delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,winmdroot.UI.Accessibility.TextUnit ,int ,int* ,winmdroot.Foundation.HRESULT> Move_14;
764
internal delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,winmdroot.UI.Accessibility.TextPatternRangeEndpoint ,winmdroot.UI.Accessibility.TextUnit ,int ,int* ,winmdroot.Foundation.HRESULT> MoveEndpointByUnit_15;
766
internal delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,winmdroot.UI.Accessibility.TextPatternRangeEndpoint ,winmdroot.UI.Accessibility.
ITextRangeProvider
* ,winmdroot.UI.Accessibility.TextPatternRangeEndpoint ,winmdroot.Foundation.HRESULT> MoveEndpointByRange_16;
768
internal delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,winmdroot.Foundation.HRESULT> Select_17;
770
internal delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,winmdroot.Foundation.HRESULT> AddToSelection_18;
772
internal delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,winmdroot.Foundation.HRESULT> RemoveFromSelection_19;
774
internal delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,winmdroot.Foundation.BOOL ,winmdroot.Foundation.HRESULT> ScrollIntoView_20;
776
internal delegate *unmanaged [Stdcall]<
ITextRangeProvider
*,winmdroot.System.Com.SAFEARRAY** ,winmdroot.Foundation.HRESULT> GetChildren_21;
820
unsafe winmdroot.Foundation.HRESULT Clone(winmdroot.UI.Accessibility.
ITextRangeProvider
** pRetVal);
823
unsafe winmdroot.Foundation.HRESULT Compare(winmdroot.UI.Accessibility.
ITextRangeProvider
* range, winmdroot.Foundation.BOOL* pRetVal);
826
unsafe winmdroot.Foundation.HRESULT CompareEndpoints(winmdroot.UI.Accessibility.TextPatternRangeEndpoint endpoint, winmdroot.UI.Accessibility.
ITextRangeProvider
* targetRange, winmdroot.UI.Accessibility.TextPatternRangeEndpoint targetEndpoint, int* pRetVal);
832
unsafe winmdroot.Foundation.HRESULT FindAttribute(winmdroot.UI.Accessibility.UIA_TEXTATTRIBUTE_ID attributeId, winmdroot.System.Variant.VARIANT val, winmdroot.Foundation.BOOL backward, winmdroot.UI.Accessibility.
ITextRangeProvider
** pRetVal);
835
unsafe winmdroot.Foundation.HRESULT FindText(winmdroot.Foundation.BSTR text, winmdroot.Foundation.BOOL backward, winmdroot.Foundation.BOOL ignoreCase, winmdroot.UI.Accessibility.
ITextRangeProvider
** pRetVal);
856
unsafe winmdroot.Foundation.HRESULT MoveEndpointByRange(winmdroot.UI.Accessibility.TextPatternRangeEndpoint endpoint, winmdroot.UI.Accessibility.
ITextRangeProvider
* targetRange, winmdroot.UI.Accessibility.TextPatternRangeEndpoint targetEndpoint);
Windows.Win32.UI_Accessibility_ITextProvider2_Extensions.g.cs (2)
43
/// <inheritdoc cref="winmdroot.UI.Accessibility.ITextProvider2.Interface.GetCaretRange(winmdroot.Foundation.BOOL*, winmdroot.UI.Accessibility.
ITextRangeProvider
**)"/>
44
internal static unsafe winmdroot.Foundation.HRESULT GetCaretRange(this winmdroot.UI.Accessibility.ITextProvider2.Interface @this, out winmdroot.Foundation.BOOL isActive, winmdroot.UI.Accessibility.
ITextRangeProvider
** pRetVal)
Windows.Win32.UI_Accessibility_ITextRangeProvider_Extensions.g.cs (18)
23
/// <inheritdoc cref="winmdroot.UI.Accessibility.
ITextRangeProvider
.Interface.Compare(winmdroot.UI.Accessibility.
ITextRangeProvider
*, winmdroot.Foundation.BOOL*)"/>
24
internal static unsafe winmdroot.Foundation.HRESULT Compare(this winmdroot.UI.Accessibility.
ITextRangeProvider
.Interface @this, winmdroot.UI.Accessibility.
ITextRangeProvider
* range, out winmdroot.Foundation.BOOL pRetVal)
33
/// <inheritdoc cref="winmdroot.UI.Accessibility.
ITextRangeProvider
.Interface.CompareEndpoints(winmdroot.UI.Accessibility.TextPatternRangeEndpoint, winmdroot.UI.Accessibility.
ITextRangeProvider
*, winmdroot.UI.Accessibility.TextPatternRangeEndpoint, int*)"/>
34
internal static unsafe winmdroot.Foundation.HRESULT CompareEndpoints(this winmdroot.UI.Accessibility.
ITextRangeProvider
.Interface @this, winmdroot.UI.Accessibility.TextPatternRangeEndpoint endpoint, winmdroot.UI.Accessibility.
ITextRangeProvider
* targetRange, winmdroot.UI.Accessibility.TextPatternRangeEndpoint targetEndpoint, out int pRetVal)
43
/// <inheritdoc cref="winmdroot.UI.Accessibility.
ITextRangeProvider
.Interface.GetAttributeValue(winmdroot.UI.Accessibility.UIA_TEXTATTRIBUTE_ID, winmdroot.System.Variant.VARIANT*)"/>
44
internal static unsafe winmdroot.Foundation.HRESULT GetAttributeValue(this winmdroot.UI.Accessibility.
ITextRangeProvider
.Interface @this, winmdroot.UI.Accessibility.UIA_TEXTATTRIBUTE_ID attributeId, out winmdroot.System.Variant.VARIANT pRetVal)
53
/// <inheritdoc cref="winmdroot.UI.Accessibility.
ITextRangeProvider
.Interface.GetBoundingRectangles(winmdroot.System.Com.SAFEARRAY**)"/>
54
internal static unsafe winmdroot.Foundation.HRESULT GetBoundingRectangles(this winmdroot.UI.Accessibility.
ITextRangeProvider
.Interface @this, out winmdroot.System.Com.SAFEARRAY* pRetVal)
63
/// <inheritdoc cref="winmdroot.UI.Accessibility.
ITextRangeProvider
.Interface.Move(winmdroot.UI.Accessibility.TextUnit, int, int*)"/>
64
internal static unsafe winmdroot.Foundation.HRESULT Move(this winmdroot.UI.Accessibility.
ITextRangeProvider
.Interface @this, winmdroot.UI.Accessibility.TextUnit unit, int count, out int pRetVal)
73
/// <inheritdoc cref="winmdroot.UI.Accessibility.
ITextRangeProvider
.Interface.MoveEndpointByUnit(winmdroot.UI.Accessibility.TextPatternRangeEndpoint, winmdroot.UI.Accessibility.TextUnit, int, int*)"/>
74
internal static unsafe winmdroot.Foundation.HRESULT MoveEndpointByUnit(this winmdroot.UI.Accessibility.
ITextRangeProvider
.Interface @this, winmdroot.UI.Accessibility.TextPatternRangeEndpoint endpoint, winmdroot.UI.Accessibility.TextUnit unit, int count, out int pRetVal)
83
/// <inheritdoc cref="winmdroot.UI.Accessibility.
ITextRangeProvider
.Interface.GetChildren(winmdroot.System.Com.SAFEARRAY**)"/>
84
internal static unsafe winmdroot.Foundation.HRESULT GetChildren(this winmdroot.UI.Accessibility.
ITextRangeProvider
.Interface @this, out winmdroot.System.Com.SAFEARRAY* pRetVal)
System.Windows.Forms.Primitives.Tests (37)
System\Windows\Forms\Automation\UiaTextRangeTests.cs (37)
32
Assert.True(((
ITextRangeProvider
.Interface)textRange).GetEnclosingElement(elementProviderScope).Succeeded);
229
using ComScope<
ITextRangeProvider
> rangeScope = new(null);
230
Assert.True(((
ITextRangeProvider
.Interface)textRange).Clone(rangeScope).Succeeded);
246
using var textRange2Scope = ComHelpers.GetComScope<
ITextRangeProvider
>(textRange2);
247
Assert.True(((
ITextRangeProvider
.Interface)textRange1).Compare(textRange2Scope, &actual).Succeeded);
276
using var textRangeScope = ComHelpers.GetComScope<
ITextRangeProvider
>(targetRange);
278
Assert.True(((
ITextRangeProvider
.Interface)textRange).CompareEndpoints((TextPatternRangeEndpoint)endpoint, textRangeScope, (TextPatternRangeEndpoint)targetEndpoint, &actual).Succeeded);
293
Assert.True(((
ITextRangeProvider
.Interface)textRange).ExpandToEnclosingUnit(TextUnit.TextUnit_Character).Succeeded);
311
Assert.True(((
ITextRangeProvider
.Interface)textRange).ExpandToEnclosingUnit(TextUnit.TextUnit_Word).Succeeded);
342
Assert.True(((
ITextRangeProvider
.Interface)textRange).ExpandToEnclosingUnit(TextUnit.TextUnit_Line).Succeeded);
363
Assert.True(((
ITextRangeProvider
.Interface)textRange).ExpandToEnclosingUnit(TextUnit.TextUnit_Paragraph).Succeeded);
388
Assert.True(((
ITextRangeProvider
.Interface)textRange).ExpandToEnclosingUnit(textUnit).Succeeded);
405
using ComScope<
ITextRangeProvider
> actual = new(null);
406
Assert.True(((
ITextRangeProvider
.Interface)textRange).FindAttribute(textAttributeIdentifier, VARIANT.Empty, backward, actual).Succeeded);
432
using ComScope<
ITextRangeProvider
> actual = new(null);
433
Assert.True(((
ITextRangeProvider
.Interface)textRange).FindText(bstrText, backward, ignoreCase, actual).Succeeded);
453
using ComScope<
ITextRangeProvider
> actual = new(null);
454
Assert.True(((
ITextRangeProvider
.Interface)textRange).FindText(default, BOOL.TRUE, BOOL.TRUE, actual).Failed);
538
Assert.True(((
ITextRangeProvider
.Interface)textRange).GetAttributeValue(attributeId, &actual).Succeeded);
565
Assert.True(((
ITextRangeProvider
.Interface)textRange).GetBoundingRectangles(actual).Succeeded);
595
Assert.True(((
ITextRangeProvider
.Interface)textRange).GetBoundingRectangles(actual).Succeeded);
624
Assert.True(((
ITextRangeProvider
.Interface)textRange).GetBoundingRectangles(safeArrayScope).Succeeded); // {X,Y,Width,Height}
665
Assert.True(((
ITextRangeProvider
.Interface)textRange).GetBoundingRectangles(actual).Succeeded);
748
Assert.True(((
ITextRangeProvider
.Interface)textRange).GetBoundingRectangles(actual).Succeeded);
830
Assert.True(((
ITextRangeProvider
.Interface)textRange).GetBoundingRectangles(actual).Succeeded);
845
Assert.True(((
ITextRangeProvider
.Interface)textRange).GetEnclosingElement(actual).Succeeded);
877
Assert.True(((
ITextRangeProvider
.Interface)textRange).GetText(maxLength, &actual).Succeeded);
908
Assert.True(((
ITextRangeProvider
.Interface)textRange).Move(unit, count, &result).Succeeded);
942
((
ITextRangeProvider
.Interface)textRange).MoveEndpointByUnit(endpoint, unit, count, &result);
963
using var targetRangeScope = ComHelpers.GetComScope<
ITextRangeProvider
>(targetRange);
964
Assert.True(((
ITextRangeProvider
.Interface)textRange).MoveEndpointByRange(endpoint, targetRangeScope, targetEndpoint).Succeeded);
980
Assert.True(((
ITextRangeProvider
.Interface)textRange).Select().Succeeded);
991
Assert.True(((
ITextRangeProvider
.Interface)textRange).AddToSelection().Succeeded);
1001
Assert.True(((
ITextRangeProvider
.Interface)textRange).RemoveFromSelection().Succeeded);
1024
Assert.True(((
ITextRangeProvider
.Interface)textRange).ScrollIntoView(BOOL.TRUE).Succeeded);
1050
Assert.True(((
ITextRangeProvider
.Interface)textRange).ScrollIntoView(BOOL.TRUE).Succeeded);
1061
Assert.True(((
ITextRangeProvider
.Interface)textRange).GetChildren(actual).Succeeded);
System.Windows.Forms.Tests (27)
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (13)
163
using ComScope<
ITextRangeProvider
> range = new(provider.DocumentRange);
211
ComScope<
ITextRangeProvider
> uiaTextRange = new(null);
230
using ComScope<
ITextRangeProvider
> uiaTextRange = new(null);
855
using ComSafeArrayScope<
ITextRangeProvider
> result = new(null);
874
using ComSafeArrayScope<
ITextRangeProvider
> result = new(null);
894
using ComScope<
ITextRangeProvider
> range = new(null);
918
using ComScope<
ITextRangeProvider
> range = new(null);
935
using ComScope<
ITextRangeProvider
> range = new(null);
958
using ComSafeArrayScope<
ITextRangeProvider
> selection = new(null);
960
using ComScope<
ITextRangeProvider
> range = new(selection[0]);
990
using ComSafeArrayScope<
ITextRangeProvider
> selection = new(null);
1019
using ComSafeArrayScope<
ITextRangeProvider
> selection = new(null);
1023
using ComScope<
ITextRangeProvider
> range = new(selection[0]);
System\Windows\Forms\TextBoxBase.TextBoxBaseUiaTextProviderTests.cs (14)
119
using ComScope<
ITextRangeProvider
> documentRange = new(provider.DocumentRange);
140
using ComScope<
ITextRangeProvider
> uiaTextRange = new(null);
152
using ComScope<
ITextRangeProvider
> uiaTextRange = new(null);
729
using ComSafeArrayScope<
ITextRangeProvider
> scope = new(null);
746
using ComSafeArrayScope<
ITextRangeProvider
> scope = new(null);
759
using ComScope<
ITextRangeProvider
> range = new(null);
774
using ComScope<
ITextRangeProvider
> range = new(null);
795
using ComScope<
ITextRangeProvider
> range = new(null);
809
using ComScope<
ITextRangeProvider
> range = new(null);
826
using ComSafeArrayScope<
ITextRangeProvider
> selection = new(null);
830
using ComScope<
ITextRangeProvider
> range = new(selection[0]);
850
using ComSafeArrayScope<
ITextRangeProvider
> selection = new(null);
868
using ComSafeArrayScope<
ITextRangeProvider
> selection = new(null);
872
using ComScope<
ITextRangeProvider
> range = new(selection[0]);