300 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 (230)
_generated\254\Windows.Win32.ITextProvider.g.cs (20)
132 private static winmdroot.Foundation.HRESULT RangeFromChild(ITextProvider* pThis, winmdroot.UI.Accessibility.IRawElementProviderSimple* childElement, winmdroot.UI.Accessibility.ITextRangeProvider** pRetVal) 158 public unsafe winmdroot.UI.Accessibility.ITextRangeProvider* RangeFromChild(winmdroot.UI.Accessibility.IRawElementProviderSimple* childElement) 160 winmdroot.UI.Accessibility.ITextRangeProvider* __retVal = default(winmdroot.UI.Accessibility.ITextRangeProvider*); 161 ((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(); 168 private static winmdroot.Foundation.HRESULT RangeFromPoint(ITextProvider* pThis, winmdroot.UI.Accessibility.UiaPoint point, winmdroot.UI.Accessibility.ITextRangeProvider** pRetVal) 198 public unsafe winmdroot.UI.Accessibility.ITextRangeProvider* RangeFromPoint(winmdroot.UI.Accessibility.UiaPoint point) 200 winmdroot.UI.Accessibility.ITextRangeProvider* __retVal = default(winmdroot.UI.Accessibility.ITextRangeProvider*); 201 ((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(); 208 private static winmdroot.Foundation.HRESULT get_DocumentRange(ITextProvider* pThis, winmdroot.UI.Accessibility.ITextRangeProvider** pRetVal) 228 internal unsafe winmdroot.UI.Accessibility.ITextRangeProvider* DocumentRange 232 winmdroot.UI.Accessibility.ITextRangeProvider* __result; 233 ((delegate *unmanaged [Stdcall]<ITextProvider*,winmdroot.UI.Accessibility.ITextRangeProvider** ,winmdroot.Foundation.HRESULT>)lpVtbl[7])((ITextProvider*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); 307 internal delegate *unmanaged [Stdcall]<ITextProvider*,winmdroot.UI.Accessibility.IRawElementProviderSimple* ,winmdroot.UI.Accessibility.ITextRangeProvider** ,winmdroot.Foundation.HRESULT> RangeFromChild_6; 309 internal delegate *unmanaged [Stdcall]<ITextProvider*,winmdroot.UI.Accessibility.UiaPoint ,winmdroot.UI.Accessibility.ITextRangeProvider** ,winmdroot.Foundation.HRESULT> RangeFromPoint_7; 311 internal delegate *unmanaged [Stdcall]<ITextProvider*,winmdroot.UI.Accessibility.ITextRangeProvider** ,winmdroot.Foundation.HRESULT> get_DocumentRange_8; 351 unsafe winmdroot.Foundation.HRESULT RangeFromChild(winmdroot.UI.Accessibility.IRawElementProviderSimple* childElement, winmdroot.UI.Accessibility.ITextRangeProvider** pRetVal); 354 unsafe winmdroot.Foundation.HRESULT RangeFromPoint(winmdroot.UI.Accessibility.UiaPoint point, winmdroot.UI.Accessibility.ITextRangeProvider** pRetVal); 356 unsafe winmdroot.UI.Accessibility.ITextRangeProvider* DocumentRange
_generated\255\Windows.Win32.ITextProvider2.g.cs (36)
114 private static winmdroot.Foundation.HRESULT RangeFromChild(ITextProvider2* pThis, winmdroot.UI.Accessibility.IRawElementProviderSimple* childElement, winmdroot.UI.Accessibility.ITextRangeProvider** pRetVal) 131 public unsafe winmdroot.UI.Accessibility.ITextRangeProvider* RangeFromChild(winmdroot.UI.Accessibility.IRawElementProviderSimple* childElement) 133 winmdroot.UI.Accessibility.ITextRangeProvider* __retVal = default(winmdroot.UI.Accessibility.ITextRangeProvider*); 134 ((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(); 141 private static winmdroot.Foundation.HRESULT RangeFromPoint(ITextProvider2* pThis, winmdroot.UI.Accessibility.UiaPoint point, winmdroot.UI.Accessibility.ITextRangeProvider** pRetVal) 158 public unsafe winmdroot.UI.Accessibility.ITextRangeProvider* RangeFromPoint(winmdroot.UI.Accessibility.UiaPoint point) 160 winmdroot.UI.Accessibility.ITextRangeProvider* __retVal = default(winmdroot.UI.Accessibility.ITextRangeProvider*); 161 ((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(); 168 private static winmdroot.Foundation.HRESULT get_DocumentRange(ITextProvider2* pThis, winmdroot.UI.Accessibility.ITextRangeProvider** pRetVal) 186 internal unsafe winmdroot.UI.Accessibility.ITextRangeProvider* DocumentRange 190 winmdroot.UI.Accessibility.ITextRangeProvider* __result; 191 ((delegate *unmanaged [Stdcall]<ITextProvider2*,winmdroot.UI.Accessibility.ITextRangeProvider** ,winmdroot.Foundation.HRESULT>)lpVtbl[7])((ITextProvider2*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); 230 private static winmdroot.Foundation.HRESULT RangeFromAnnotation(ITextProvider2* pThis, winmdroot.UI.Accessibility.IRawElementProviderSimple* annotationElement, winmdroot.UI.Accessibility.ITextRangeProvider** pRetVal) 258 public unsafe winmdroot.UI.Accessibility.ITextRangeProvider* RangeFromAnnotation(winmdroot.UI.Accessibility.IRawElementProviderSimple* annotationElement) 260 winmdroot.UI.Accessibility.ITextRangeProvider* __retVal = default(winmdroot.UI.Accessibility.ITextRangeProvider*); 261 ((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(); 267 internal unsafe winmdroot.UI.Accessibility.ITextRangeProvider* GetCaretRange(out winmdroot.Foundation.BOOL isActive) 271 winmdroot.UI.Accessibility.ITextRangeProvider* __result = this.GetCaretRange(isActiveLocal); 279 private static winmdroot.Foundation.HRESULT GetCaretRange(ITextProvider2* pThis, winmdroot.Foundation.BOOL* isActive, winmdroot.UI.Accessibility.ITextRangeProvider** pRetVal) 308 public unsafe winmdroot.UI.Accessibility.ITextRangeProvider* GetCaretRange(winmdroot.Foundation.BOOL* isActive) 310 winmdroot.UI.Accessibility.ITextRangeProvider* __retVal = default(winmdroot.UI.Accessibility.ITextRangeProvider*); 311 ((delegate *unmanaged [Stdcall]<ITextProvider2*,winmdroot.Foundation.BOOL* ,winmdroot.UI.Accessibility.ITextRangeProvider** ,winmdroot.Foundation.HRESULT>)lpVtbl[10])((ITextProvider2*)Unsafe.AsPointer(ref this), isActive, &__retVal).ThrowOnFailure(); 348 internal delegate *unmanaged [Stdcall]<ITextProvider2*,winmdroot.UI.Accessibility.IRawElementProviderSimple* ,winmdroot.UI.Accessibility.ITextRangeProvider** ,winmdroot.Foundation.HRESULT> RangeFromChild_6; 350 internal delegate *unmanaged [Stdcall]<ITextProvider2*,winmdroot.UI.Accessibility.UiaPoint ,winmdroot.UI.Accessibility.ITextRangeProvider** ,winmdroot.Foundation.HRESULT> RangeFromPoint_7; 352 internal delegate *unmanaged [Stdcall]<ITextProvider2*,winmdroot.UI.Accessibility.ITextRangeProvider** ,winmdroot.Foundation.HRESULT> get_DocumentRange_8; 356 internal delegate *unmanaged [Stdcall]<ITextProvider2*,winmdroot.UI.Accessibility.IRawElementProviderSimple* ,winmdroot.UI.Accessibility.ITextRangeProvider** ,winmdroot.Foundation.HRESULT> RangeFromAnnotation_10; 358 internal delegate *unmanaged [Stdcall]<ITextProvider2*,winmdroot.Foundation.BOOL* ,winmdroot.UI.Accessibility.ITextRangeProvider** ,winmdroot.Foundation.HRESULT> GetCaretRange_11; 398 unsafe new winmdroot.Foundation.HRESULT RangeFromChild(winmdroot.UI.Accessibility.IRawElementProviderSimple* childElement, winmdroot.UI.Accessibility.ITextRangeProvider** pRetVal); 401 unsafe new winmdroot.Foundation.HRESULT RangeFromPoint(winmdroot.UI.Accessibility.UiaPoint point, winmdroot.UI.Accessibility.ITextRangeProvider** pRetVal); 403 unsafe new winmdroot.UI.Accessibility.ITextRangeProvider* DocumentRange 414 unsafe winmdroot.Foundation.HRESULT RangeFromAnnotation(winmdroot.UI.Accessibility.IRawElementProviderSimple* annotationElement, winmdroot.UI.Accessibility.ITextRangeProvider** pRetVal); 417 unsafe winmdroot.Foundation.HRESULT GetCaretRange(winmdroot.Foundation.BOOL* isActive, winmdroot.UI.Accessibility.ITextRangeProvider** pRetVal);
_generated\257\Windows.Win32.ITextRangeProvider.g.cs (119)
27 :winmdroot.IVTable<ITextRangeProvider,ITextRangeProvider.Vtbl>,IComIID { 44 return ((delegate *unmanaged [Stdcall]<ITextRangeProvider*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT>)lpVtbl[0])((ITextRangeProvider*)Unsafe.AsPointer(ref this), riid, ppvObject); 49 return ((delegate *unmanaged [Stdcall]<ITextRangeProvider*,uint>)lpVtbl[1])((ITextRangeProvider*)Unsafe.AsPointer(ref this)); 54 return ((delegate *unmanaged [Stdcall]<ITextRangeProvider*,uint>)lpVtbl[2])((ITextRangeProvider*)Unsafe.AsPointer(ref this)); 60 private static winmdroot.Foundation.HRESULT Clone(ITextRangeProvider* pThis, winmdroot.UI.Accessibility.ITextRangeProvider** pRetVal) 82 public unsafe winmdroot.UI.Accessibility.ITextRangeProvider* Clone() 84 winmdroot.UI.Accessibility.ITextRangeProvider* __retVal = default(winmdroot.UI.Accessibility.ITextRangeProvider*); 85 ((delegate *unmanaged [Stdcall]<ITextRangeProvider*,winmdroot.UI.Accessibility.ITextRangeProvider** ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((ITextRangeProvider*)Unsafe.AsPointer(ref this), &__retVal).ThrowOnFailure(); 92 private static winmdroot.Foundation.HRESULT Compare(ITextRangeProvider* pThis, winmdroot.UI.Accessibility.ITextRangeProvider* range, winmdroot.Foundation.BOOL* pRetVal) 118 public unsafe winmdroot.Foundation.BOOL Compare(winmdroot.UI.Accessibility.ITextRangeProvider* range) 121 ((delegate *unmanaged [Stdcall]<ITextRangeProvider*,winmdroot.UI.Accessibility.ITextRangeProvider* ,winmdroot.Foundation.BOOL* ,winmdroot.Foundation.HRESULT>)lpVtbl[4])((ITextRangeProvider*)Unsafe.AsPointer(ref this), range, &__retVal).ThrowOnFailure(); 128 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) 159 public unsafe int CompareEndpoints(winmdroot.UI.Accessibility.TextPatternRangeEndpoint endpoint, winmdroot.UI.Accessibility.ITextRangeProvider* targetRange, winmdroot.UI.Accessibility.TextPatternRangeEndpoint targetEndpoint) 162 ((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(); 169 private static winmdroot.Foundation.HRESULT ExpandToEnclosingUnit(ITextRangeProvider* pThis, winmdroot.UI.Accessibility.TextUnit unit) 202 ((delegate *unmanaged [Stdcall]<ITextRangeProvider*,winmdroot.UI.Accessibility.TextUnit ,winmdroot.Foundation.HRESULT>)lpVtbl[6])((ITextRangeProvider*)Unsafe.AsPointer(ref this), unit).ThrowOnFailure(); 208 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) 242 public unsafe winmdroot.UI.Accessibility.ITextRangeProvider* FindAttribute(winmdroot.UI.Accessibility.UIA_TEXTATTRIBUTE_ID attributeId, winmdroot.System.Variant.VARIANT val, winmdroot.Foundation.BOOL backward) 244 winmdroot.UI.Accessibility.ITextRangeProvider* __retVal = default(winmdroot.UI.Accessibility.ITextRangeProvider*); 245 ((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(); 252 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) 286 public unsafe winmdroot.UI.Accessibility.ITextRangeProvider* FindText(winmdroot.Foundation.BSTR text, winmdroot.Foundation.BOOL backward, winmdroot.Foundation.BOOL ignoreCase) 288 winmdroot.UI.Accessibility.ITextRangeProvider* __retVal = default(winmdroot.UI.Accessibility.ITextRangeProvider*); 289 ((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(); 296 private static winmdroot.Foundation.HRESULT GetAttributeValue(ITextRangeProvider* pThis, winmdroot.UI.Accessibility.UIA_TEXTATTRIBUTE_ID attributeId, winmdroot.System.Variant.VARIANT* pRetVal) 325 ((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(); 332 private static winmdroot.Foundation.HRESULT GetBoundingRectangles(ITextRangeProvider* pThis, winmdroot.System.Com.SAFEARRAY** pRetVal) 359 ((delegate *unmanaged [Stdcall]<ITextRangeProvider*,winmdroot.System.Com.SAFEARRAY** ,winmdroot.Foundation.HRESULT>)lpVtbl[10])((ITextRangeProvider*)Unsafe.AsPointer(ref this), &__retVal).ThrowOnFailure(); 366 private static winmdroot.Foundation.HRESULT GetEnclosingElement(ITextRangeProvider* pThis, winmdroot.UI.Accessibility.IRawElementProviderSimple** pRetVal) 391 ((delegate *unmanaged [Stdcall]<ITextRangeProvider*,winmdroot.UI.Accessibility.IRawElementProviderSimple** ,winmdroot.Foundation.HRESULT>)lpVtbl[11])((ITextRangeProvider*)Unsafe.AsPointer(ref this), &__retVal).ThrowOnFailure(); 398 private static winmdroot.Foundation.HRESULT GetText(ITextRangeProvider* pThis, int maxLength, winmdroot.Foundation.BSTR* pRetVal) 430 ((delegate *unmanaged [Stdcall]<ITextRangeProvider*,int ,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[12])((ITextRangeProvider*)Unsafe.AsPointer(ref this), maxLength, &__retVal).ThrowOnFailure(); 437 private static winmdroot.Foundation.HRESULT Move(ITextRangeProvider* pThis, winmdroot.UI.Accessibility.TextUnit unit, int count, int* pRetVal) 472 ((delegate *unmanaged [Stdcall]<ITextRangeProvider*,winmdroot.UI.Accessibility.TextUnit ,int ,int* ,winmdroot.Foundation.HRESULT>)lpVtbl[13])((ITextRangeProvider*)Unsafe.AsPointer(ref this), unit, count, &__retVal).ThrowOnFailure(); 479 private static winmdroot.Foundation.HRESULT MoveEndpointByUnit(ITextRangeProvider* pThis, winmdroot.UI.Accessibility.TextPatternRangeEndpoint endpoint, winmdroot.UI.Accessibility.TextUnit unit, int count, int* pRetVal) 512 ((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(); 519 private static winmdroot.Foundation.HRESULT MoveEndpointByRange(ITextRangeProvider* pThis, winmdroot.UI.Accessibility.TextPatternRangeEndpoint endpoint, winmdroot.UI.Accessibility.ITextRangeProvider* targetRange, winmdroot.UI.Accessibility.TextPatternRangeEndpoint targetEndpoint) 545 public unsafe void MoveEndpointByRange(winmdroot.UI.Accessibility.TextPatternRangeEndpoint endpoint, winmdroot.UI.Accessibility.ITextRangeProvider* targetRange, winmdroot.UI.Accessibility.TextPatternRangeEndpoint targetEndpoint) 547 ((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(); 553 private static winmdroot.Foundation.HRESULT Select(ITextRangeProvider* pThis) 577 ((delegate *unmanaged [Stdcall]<ITextRangeProvider*,winmdroot.Foundation.HRESULT>)lpVtbl[16])((ITextRangeProvider*)Unsafe.AsPointer(ref this)).ThrowOnFailure(); 583 private static winmdroot.Foundation.HRESULT AddToSelection(ITextRangeProvider* pThis) 611 ((delegate *unmanaged [Stdcall]<ITextRangeProvider*,winmdroot.Foundation.HRESULT>)lpVtbl[17])((ITextRangeProvider*)Unsafe.AsPointer(ref this)).ThrowOnFailure(); 617 private static winmdroot.Foundation.HRESULT RemoveFromSelection(ITextRangeProvider* pThis) 645 ((delegate *unmanaged [Stdcall]<ITextRangeProvider*,winmdroot.Foundation.HRESULT>)lpVtbl[18])((ITextRangeProvider*)Unsafe.AsPointer(ref this)).ThrowOnFailure(); 651 private static winmdroot.Foundation.HRESULT ScrollIntoView(ITextRangeProvider* pThis, winmdroot.Foundation.BOOL alignToTop) 682 ((delegate *unmanaged [Stdcall]<ITextRangeProvider*,winmdroot.Foundation.BOOL ,winmdroot.Foundation.HRESULT>)lpVtbl[19])((ITextRangeProvider*)Unsafe.AsPointer(ref this), alignToTop).ThrowOnFailure(); 688 private static winmdroot.Foundation.HRESULT GetChildren(ITextRangeProvider* pThis, winmdroot.System.Com.SAFEARRAY** pRetVal) 713 ((delegate *unmanaged [Stdcall]<ITextRangeProvider*,winmdroot.System.Com.SAFEARRAY** ,winmdroot.Foundation.HRESULT>)lpVtbl[20])((ITextRangeProvider*)Unsafe.AsPointer(ref this), &__retVal).ThrowOnFailure(); 740 internal delegate *unmanaged [Stdcall]<ITextRangeProvider*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT> QueryInterface_1; 742 internal delegate *unmanaged [Stdcall]<ITextRangeProvider*,uint> AddRef_2; 744 internal delegate *unmanaged [Stdcall]<ITextRangeProvider*,uint> Release_3; 746 internal delegate *unmanaged [Stdcall]<ITextRangeProvider*,winmdroot.UI.Accessibility.ITextRangeProvider** ,winmdroot.Foundation.HRESULT> Clone_4; 748 internal delegate *unmanaged [Stdcall]<ITextRangeProvider*,winmdroot.UI.Accessibility.ITextRangeProvider* ,winmdroot.Foundation.BOOL* ,winmdroot.Foundation.HRESULT> Compare_5; 750 internal delegate *unmanaged [Stdcall]<ITextRangeProvider*,winmdroot.UI.Accessibility.TextPatternRangeEndpoint ,winmdroot.UI.Accessibility.ITextRangeProvider* ,winmdroot.UI.Accessibility.TextPatternRangeEndpoint ,int* ,winmdroot.Foundation.HRESULT> CompareEndpoints_6; 752 internal delegate *unmanaged [Stdcall]<ITextRangeProvider*,winmdroot.UI.Accessibility.TextUnit ,winmdroot.Foundation.HRESULT> ExpandToEnclosingUnit_7; 754 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; 756 internal delegate *unmanaged [Stdcall]<ITextRangeProvider*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.BOOL ,winmdroot.Foundation.BOOL ,winmdroot.UI.Accessibility.ITextRangeProvider** ,winmdroot.Foundation.HRESULT> FindText_9; 758 internal delegate *unmanaged [Stdcall]<ITextRangeProvider*,winmdroot.UI.Accessibility.UIA_TEXTATTRIBUTE_ID ,winmdroot.System.Variant.VARIANT* ,winmdroot.Foundation.HRESULT> GetAttributeValue_10; 760 internal delegate *unmanaged [Stdcall]<ITextRangeProvider*,winmdroot.System.Com.SAFEARRAY** ,winmdroot.Foundation.HRESULT> GetBoundingRectangles_11; 762 internal delegate *unmanaged [Stdcall]<ITextRangeProvider*,winmdroot.UI.Accessibility.IRawElementProviderSimple** ,winmdroot.Foundation.HRESULT> GetEnclosingElement_12; 764 internal delegate *unmanaged [Stdcall]<ITextRangeProvider*,int ,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT> GetText_13; 766 internal delegate *unmanaged [Stdcall]<ITextRangeProvider*,winmdroot.UI.Accessibility.TextUnit ,int ,int* ,winmdroot.Foundation.HRESULT> Move_14; 768 internal delegate *unmanaged [Stdcall]<ITextRangeProvider*,winmdroot.UI.Accessibility.TextPatternRangeEndpoint ,winmdroot.UI.Accessibility.TextUnit ,int ,int* ,winmdroot.Foundation.HRESULT> MoveEndpointByUnit_15; 770 internal delegate *unmanaged [Stdcall]<ITextRangeProvider*,winmdroot.UI.Accessibility.TextPatternRangeEndpoint ,winmdroot.UI.Accessibility.ITextRangeProvider* ,winmdroot.UI.Accessibility.TextPatternRangeEndpoint ,winmdroot.Foundation.HRESULT> MoveEndpointByRange_16; 772 internal delegate *unmanaged [Stdcall]<ITextRangeProvider*,winmdroot.Foundation.HRESULT> Select_17; 774 internal delegate *unmanaged [Stdcall]<ITextRangeProvider*,winmdroot.Foundation.HRESULT> AddToSelection_18; 776 internal delegate *unmanaged [Stdcall]<ITextRangeProvider*,winmdroot.Foundation.HRESULT> RemoveFromSelection_19; 778 internal delegate *unmanaged [Stdcall]<ITextRangeProvider*,winmdroot.Foundation.BOOL ,winmdroot.Foundation.HRESULT> ScrollIntoView_20; 780 internal delegate *unmanaged [Stdcall]<ITextRangeProvider*,winmdroot.System.Com.SAFEARRAY** ,winmdroot.Foundation.HRESULT> GetChildren_21; 824 unsafe winmdroot.Foundation.HRESULT Clone(winmdroot.UI.Accessibility.ITextRangeProvider** pRetVal); 827 unsafe winmdroot.Foundation.HRESULT Compare(winmdroot.UI.Accessibility.ITextRangeProvider* range, winmdroot.Foundation.BOOL* pRetVal); 830 unsafe winmdroot.Foundation.HRESULT CompareEndpoints(winmdroot.UI.Accessibility.TextPatternRangeEndpoint endpoint, winmdroot.UI.Accessibility.ITextRangeProvider* targetRange, winmdroot.UI.Accessibility.TextPatternRangeEndpoint targetEndpoint, int* pRetVal); 836 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); 839 unsafe winmdroot.Foundation.HRESULT FindText(winmdroot.Foundation.BSTR text, winmdroot.Foundation.BOOL backward, winmdroot.Foundation.BOOL ignoreCase, winmdroot.UI.Accessibility.ITextRangeProvider** pRetVal); 860 unsafe winmdroot.Foundation.HRESULT MoveEndpointByRange(winmdroot.UI.Accessibility.TextPatternRangeEndpoint endpoint, winmdroot.UI.Accessibility.ITextRangeProvider* targetRange, winmdroot.UI.Accessibility.TextPatternRangeEndpoint targetEndpoint);
_generated\578\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)
_generated\580\Windows.Win32.UI_Accessibility_ITextRangeProvider_Extensions.g.cs (20)
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.GetText(int, winmdroot.Foundation.BSTR*)"/> 64 internal static unsafe winmdroot.Foundation.HRESULT GetText(this winmdroot.UI.Accessibility.ITextRangeProvider.Interface @this, int maxLength, out winmdroot.Foundation.BSTR pRetVal) 73 /// <inheritdoc cref="winmdroot.UI.Accessibility.ITextRangeProvider.Interface.Move(winmdroot.UI.Accessibility.TextUnit, int, int*)"/> 74 internal static unsafe winmdroot.Foundation.HRESULT Move(this winmdroot.UI.Accessibility.ITextRangeProvider.Interface @this, winmdroot.UI.Accessibility.TextUnit unit, int count, out int pRetVal) 83 /// <inheritdoc cref="winmdroot.UI.Accessibility.ITextRangeProvider.Interface.MoveEndpointByUnit(winmdroot.UI.Accessibility.TextPatternRangeEndpoint, winmdroot.UI.Accessibility.TextUnit, int, int*)"/> 84 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) 93 /// <inheritdoc cref="winmdroot.UI.Accessibility.ITextRangeProvider.Interface.GetChildren(winmdroot.System.Com.SAFEARRAY**)"/> 94 internal static unsafe winmdroot.Foundation.HRESULT GetChildren(this winmdroot.UI.Accessibility.ITextRangeProvider.Interface @this, out winmdroot.System.Com.SAFEARRAY* pRetVal)
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)