362 references to ITextRangeProvider
System.Windows.Forms (70)
System\Windows\Forms\Accessibility\AccessibleObject.cs (13)
781internal virtual ITextRangeProvider* DocumentRangeInternal 794internal virtual HRESULT GetTextRangeFromChild(IRawElementProviderSimple* childElement, ITextRangeProvider** pRetVal) => HRESULT.E_NOTIMPL; 796internal virtual HRESULT GetTextRangeFromPoint(UiaPoint screenLocation, ITextRangeProvider** pRetVal) => HRESULT.E_NOTIMPL; 807internal virtual HRESULT GetTextCaretRange(BOOL* isActive, ITextRangeProvider** pRetVal) => HRESULT.E_NOTIMPL; 809internal virtual HRESULT GetRangeFromAnnotation(IRawElementProviderSimple* annotationElement, ITextRangeProvider** pRetVal) => HRESULT.E_NOTIMPL; 1334ITextRangeProvider* ITextProvider.Interface.DocumentRange => DocumentRangeInternal; 1340HRESULT ITextProvider.Interface.RangeFromChild(IRawElementProviderSimple* childElement, ITextRangeProvider** pRetVal) 1343HRESULT ITextProvider.Interface.RangeFromPoint(UiaPoint point, ITextRangeProvider** pRetVal) 1348ITextRangeProvider* ITextProvider2.Interface.DocumentRange => DocumentRangeInternal; 1354HRESULT ITextProvider2.Interface.RangeFromChild(IRawElementProviderSimple* childElement, ITextRangeProvider** pRetVal) 1357HRESULT ITextProvider2.Interface.RangeFromPoint(UiaPoint point, ITextRangeProvider** pRetVal) 1362HRESULT ITextProvider2.Interface.GetCaretRange(BOOL* isActive, ITextRangeProvider** pRetVal) => GetTextCaretRange(isActive, pRetVal); 1364HRESULT ITextProvider2.Interface.RangeFromAnnotation(IRawElementProviderSimple* annotationElement, ITextRangeProvider** pRetVal)
System\Windows\Forms\Accessibility\LabelEditAccessibleObject.cs (5)
82internal override ITextRangeProvider* DocumentRangeInternal 91internal override HRESULT GetTextRangeFromChild(IRawElementProviderSimple* childElement, ITextRangeProvider** pRetVal) 94internal override HRESULT GetTextRangeFromPoint(UiaPoint screenLocation, ITextRangeProvider** pRetVal) 100internal override HRESULT GetTextCaretRange(BOOL* isActive, ITextRangeProvider** pRetVal) 103internal override HRESULT GetRangeFromAnnotation(IRawElementProviderSimple* annotationElement, ITextRangeProvider** pRetVal)
System\Windows\Forms\Accessibility\LabelEditUiaTextProvider.cs (14)
39public override ITextRangeProvider* DocumentRange 40=> ComHelpers.GetComPointer<ITextRangeProvider>( 72public override HRESULT GetCaretRange(BOOL* isActive, ITextRangeProvider** pRetVal) 91*pRetVal = ComHelpers.GetComPointer<ITextRangeProvider>(new UiaTextRange( 165ComSafeArrayScope<ITextRangeProvider> result = new(1); 167using var selection = ComHelpers.GetComScope<ITextRangeProvider>(new UiaTextRange(_owningChildEditAccessibilityObject, this, start, end)); 213ComSafeArrayScope<ITextRangeProvider> result = new(1); 215using var ranges = ComHelpers.GetComScope<ITextRangeProvider>(new UiaTextRange(_owningChildEditAccessibilityObject, this, start, end)); 232public override HRESULT RangeFromAnnotation(IRawElementProviderSimple* annotationElement, ITextRangeProvider** pRetVal) 239*pRetVal = ComHelpers.GetComPointer<ITextRangeProvider>( 248public override HRESULT RangeFromChild(IRawElementProviderSimple* childElement, ITextRangeProvider** pRetVal) 261public 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)
106internal override unsafe ITextRangeProvider* DocumentRangeInternal 113internal override unsafe HRESULT GetTextRangeFromChild(IRawElementProviderSimple* childElement, ITextRangeProvider** pRetVal) 116internal override unsafe HRESULT GetTextRangeFromPoint(UiaPoint screenLocation, ITextRangeProvider** pRetVal) 121internal override unsafe HRESULT GetTextCaretRange(BOOL* isActive, ITextRangeProvider** pRetVal) 124internal override unsafe HRESULT GetRangeFromAnnotation(IRawElementProviderSimple* annotationElement, ITextRangeProvider** pRetVal)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxUiaTextProvider.cs (14)
45public override ITextRangeProvider* DocumentRange 46=> ComHelpers.GetComPointer<ITextRangeProvider>( 118public override HRESULT GetCaretRange(BOOL* isActive, ITextRangeProvider** pRetVal) 136*pRetVal = ComHelpers.GetComPointer<ITextRangeProvider>( 226ComSafeArrayScope<ITextRangeProvider> result = new(1); 228using var selection = ComHelpers.GetComScope<ITextRangeProvider>(new UiaTextRange(_owningComboBox.ChildEditAccessibleObject, this, start, end)); 280ComSafeArrayScope<ITextRangeProvider> result = new(1); 282using var ranges = ComHelpers.GetComScope<ITextRangeProvider>(new UiaTextRange(_owningComboBox.ChildEditAccessibleObject, this, start, end)); 299public override HRESULT RangeFromAnnotation(IRawElementProviderSimple* annotationElement, ITextRangeProvider** pRetVal) 306*pRetVal = ComHelpers.GetComPointer<ITextRangeProvider>( 315public override HRESULT RangeFromChild(IRawElementProviderSimple* childElement, ITextRangeProvider** pRetVal) 328public 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)
97internal override ITextRangeProvider* DocumentRangeInternal 106internal override HRESULT GetTextRangeFromChild(IRawElementProviderSimple* childElement, ITextRangeProvider** pRetVal) 109internal override HRESULT GetTextRangeFromPoint(UiaPoint screenLocation, ITextRangeProvider** pRetVal) 115internal override HRESULT GetTextCaretRange(BOOL* isActive, ITextRangeProvider** pRetVal) 118internal override HRESULT GetRangeFromAnnotation(IRawElementProviderSimple* annotationElement, ITextRangeProvider** pRetVal)
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (14)
47ComSafeArrayScope<ITextRangeProvider> result = new(1); 49using var selection = ComHelpers.GetComScope<ITextRangeProvider>(new UiaTextRange(Owner.AccessibilityObject, this, start, end)); 71ComSafeArrayScope<ITextRangeProvider> result = new(1); 73using var ranges = ComHelpers.GetComScope<ITextRangeProvider>(new UiaTextRange(Owner.AccessibilityObject, this, start, end)); 80public override HRESULT RangeFromChild(IRawElementProviderSimple* childElement, ITextRangeProvider** pRetVal) 93public override HRESULT RangeFromPoint(UiaPoint point, ITextRangeProvider** pRetVal) 112*pRetVal = ComHelpers.GetComPointer<ITextRangeProvider>( 134*pRetVal = ComHelpers.GetComPointer<ITextRangeProvider>( 145public override ITextRangeProvider* DocumentRange => Owner is not null 146? ComHelpers.GetComPointer<ITextRangeProvider>( 156public override HRESULT GetCaretRange(BOOL* isActive, ITextRangeProvider** pRetVal) 174*pRetVal = ComHelpers.GetComPointer<ITextRangeProvider>( 185public override HRESULT RangeFromAnnotation(IRawElementProviderSimple* annotationElement, ITextRangeProvider** pRetVal) 193? ComHelpers.GetComPointer<ITextRangeProvider>(
System.Windows.Forms.Primitives (228)
System\Windows\Forms\Automation\UiaTextProvider.cs (5)
23public abstract HRESULT RangeFromChild(IRawElementProviderSimple* childElement, ITextRangeProvider** pRetVal); 25public abstract HRESULT RangeFromPoint(UiaPoint point, ITextRangeProvider** pRetVal); 27public abstract ITextRangeProvider* DocumentRange { get; } 149public abstract HRESULT RangeFromAnnotation(IRawElementProviderSimple* annotationElement, ITextRangeProvider** pRetVal); 151public abstract HRESULT GetCaretRange(BOOL* isActive, ITextRangeProvider** pRetVal);
System\Windows\Forms\Automation\UiaTextRange.cs (28)
13internal sealed unsafe class UiaTextRange : ITextRangeProvider.Interface, IManagedWrapper<ITextRangeProvider> 112HRESULT ITextRangeProvider.Interface.Clone(ITextRangeProvider** pRetVal) 121*pRetVal = ComHelpers.GetComPointer<ITextRangeProvider>(new UiaTextRange(_enclosingElement, _provider, Start, End)); 128HRESULT ITextRangeProvider.Interface.Compare(ITextRangeProvider* range, BOOL* pRetVal) 144HRESULT ITextRangeProvider.Interface.CompareEndpoints(TextPatternRangeEndpoint endpoint, ITextRangeProvider* targetRange, TextPatternRangeEndpoint targetEndpoint, int* pRetVal) 169HRESULT ITextRangeProvider.Interface.ExpandToEnclosingUnit(TextUnit unit) 270HRESULT ITextRangeProvider.Interface.FindAttribute(UIA_TEXTATTRIBUTE_ID attributeId, VARIANT val, BOOL backward, ITextRangeProvider** pRetVal) 281HRESULT 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)) 316HRESULT ITextRangeProvider.Interface.GetAttributeValue(UIA_TEXTATTRIBUTE_ID attributeId, VARIANT* pRetVal) 327HRESULT ITextRangeProvider.Interface.GetBoundingRectangles(SAFEARRAY** pRetVal) 413HRESULT ITextRangeProvider.Interface.GetEnclosingElement(IRawElementProviderSimple** pRetVal) 424HRESULT ITextRangeProvider.Interface.GetText(int maxLength, BSTR* pRetVal) 446HRESULT ITextRangeProvider.Interface.Move(TextUnit unit, int count, int* pRetVal) 504HRESULT ITextRangeProvider.Interface.MoveEndpointByUnit(TextPatternRangeEndpoint endpoint, TextUnit unit, int count, int* pRetVal) 558HRESULT ITextRangeProvider.Interface.MoveEndpointByRange(TextPatternRangeEndpoint endpoint, ITextRangeProvider* targetRange, TextPatternRangeEndpoint targetEndpoint) 581HRESULT ITextRangeProvider.Interface.Select() 587HRESULT ITextRangeProvider.Interface.AddToSelection() => HRESULT.S_OK; 589HRESULT ITextRangeProvider.Interface.RemoveFromSelection() => HRESULT.S_OK; 591HRESULT ITextRangeProvider.Interface.ScrollIntoView(BOOL alignToTop) 630HRESULT 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)
32Assert.True(((ITextRangeProvider.Interface)textRange).GetEnclosingElement(elementProviderScope).Succeeded); 229using ComScope<ITextRangeProvider> rangeScope = new(null); 230Assert.True(((ITextRangeProvider.Interface)textRange).Clone(rangeScope).Succeeded); 246using var textRange2Scope = ComHelpers.GetComScope<ITextRangeProvider>(textRange2); 247Assert.True(((ITextRangeProvider.Interface)textRange1).Compare(textRange2Scope, &actual).Succeeded); 276using var textRangeScope = ComHelpers.GetComScope<ITextRangeProvider>(targetRange); 278Assert.True(((ITextRangeProvider.Interface)textRange).CompareEndpoints((TextPatternRangeEndpoint)endpoint, textRangeScope, (TextPatternRangeEndpoint)targetEndpoint, &actual).Succeeded); 293Assert.True(((ITextRangeProvider.Interface)textRange).ExpandToEnclosingUnit(TextUnit.TextUnit_Character).Succeeded); 311Assert.True(((ITextRangeProvider.Interface)textRange).ExpandToEnclosingUnit(TextUnit.TextUnit_Word).Succeeded); 342Assert.True(((ITextRangeProvider.Interface)textRange).ExpandToEnclosingUnit(TextUnit.TextUnit_Line).Succeeded); 363Assert.True(((ITextRangeProvider.Interface)textRange).ExpandToEnclosingUnit(TextUnit.TextUnit_Paragraph).Succeeded); 388Assert.True(((ITextRangeProvider.Interface)textRange).ExpandToEnclosingUnit(textUnit).Succeeded); 405using ComScope<ITextRangeProvider> actual = new(null); 406Assert.True(((ITextRangeProvider.Interface)textRange).FindAttribute(textAttributeIdentifier, VARIANT.Empty, backward, actual).Succeeded); 432using ComScope<ITextRangeProvider> actual = new(null); 433Assert.True(((ITextRangeProvider.Interface)textRange).FindText(bstrText, backward, ignoreCase, actual).Succeeded); 453using ComScope<ITextRangeProvider> actual = new(null); 454Assert.True(((ITextRangeProvider.Interface)textRange).FindText(default, BOOL.TRUE, BOOL.TRUE, actual).Failed); 538Assert.True(((ITextRangeProvider.Interface)textRange).GetAttributeValue(attributeId, &actual).Succeeded); 565Assert.True(((ITextRangeProvider.Interface)textRange).GetBoundingRectangles(actual).Succeeded); 595Assert.True(((ITextRangeProvider.Interface)textRange).GetBoundingRectangles(actual).Succeeded); 624Assert.True(((ITextRangeProvider.Interface)textRange).GetBoundingRectangles(safeArrayScope).Succeeded); // {X,Y,Width,Height} 665Assert.True(((ITextRangeProvider.Interface)textRange).GetBoundingRectangles(actual).Succeeded); 748Assert.True(((ITextRangeProvider.Interface)textRange).GetBoundingRectangles(actual).Succeeded); 830Assert.True(((ITextRangeProvider.Interface)textRange).GetBoundingRectangles(actual).Succeeded); 845Assert.True(((ITextRangeProvider.Interface)textRange).GetEnclosingElement(actual).Succeeded); 877Assert.True(((ITextRangeProvider.Interface)textRange).GetText(maxLength, &actual).Succeeded); 908Assert.True(((ITextRangeProvider.Interface)textRange).Move(unit, count, &result).Succeeded); 942((ITextRangeProvider.Interface)textRange).MoveEndpointByUnit(endpoint, unit, count, &result); 963using var targetRangeScope = ComHelpers.GetComScope<ITextRangeProvider>(targetRange); 964Assert.True(((ITextRangeProvider.Interface)textRange).MoveEndpointByRange(endpoint, targetRangeScope, targetEndpoint).Succeeded); 980Assert.True(((ITextRangeProvider.Interface)textRange).Select().Succeeded); 991Assert.True(((ITextRangeProvider.Interface)textRange).AddToSelection().Succeeded); 1001Assert.True(((ITextRangeProvider.Interface)textRange).RemoveFromSelection().Succeeded); 1024Assert.True(((ITextRangeProvider.Interface)textRange).ScrollIntoView(BOOL.TRUE).Succeeded); 1050Assert.True(((ITextRangeProvider.Interface)textRange).ScrollIntoView(BOOL.TRUE).Succeeded); 1061Assert.True(((ITextRangeProvider.Interface)textRange).GetChildren(actual).Succeeded);
System.Windows.Forms.Tests (27)
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (13)
163using ComScope<ITextRangeProvider> range = new(provider.DocumentRange); 211ComScope<ITextRangeProvider> uiaTextRange = new(null); 230using ComScope<ITextRangeProvider> uiaTextRange = new(null); 855using ComSafeArrayScope<ITextRangeProvider> result = new(null); 874using ComSafeArrayScope<ITextRangeProvider> result = new(null); 894using ComScope<ITextRangeProvider> range = new(null); 918using ComScope<ITextRangeProvider> range = new(null); 935using ComScope<ITextRangeProvider> range = new(null); 958using ComSafeArrayScope<ITextRangeProvider> selection = new(null); 960using ComScope<ITextRangeProvider> range = new(selection[0]); 990using ComSafeArrayScope<ITextRangeProvider> selection = new(null); 1019using ComSafeArrayScope<ITextRangeProvider> selection = new(null); 1023using ComScope<ITextRangeProvider> range = new(selection[0]);
System\Windows\Forms\TextBoxBase.TextBoxBaseUiaTextProviderTests.cs (14)
119using ComScope<ITextRangeProvider> documentRange = new(provider.DocumentRange); 140using ComScope<ITextRangeProvider> uiaTextRange = new(null); 152using ComScope<ITextRangeProvider> uiaTextRange = new(null); 729using ComSafeArrayScope<ITextRangeProvider> scope = new(null); 746using ComSafeArrayScope<ITextRangeProvider> scope = new(null); 759using ComScope<ITextRangeProvider> range = new(null); 774using ComScope<ITextRangeProvider> range = new(null); 795using ComScope<ITextRangeProvider> range = new(null); 809using ComScope<ITextRangeProvider> range = new(null); 826using ComSafeArrayScope<ITextRangeProvider> selection = new(null); 830using ComScope<ITextRangeProvider> range = new(selection[0]); 850using ComSafeArrayScope<ITextRangeProvider> selection = new(null); 868using ComSafeArrayScope<ITextRangeProvider> selection = new(null); 872using ComScope<ITextRangeProvider> range = new(selection[0]);