1 implementation of Interface
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Automation\UiaTextRange.cs (1)
13internal sealed unsafe class UiaTextRange : ITextRangeProvider.Interface, IManagedWrapper<ITextRangeProvider>
80 references to Interface
System.Windows.Forms.Primitives (50)
System\Windows\Forms\Automation\UiaTextRange.cs (18)
112HRESULT ITextRangeProvider.Interface.Clone(ITextRangeProvider** pRetVal) 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) 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.ITextRangeProvider.g.cs (18)
62 winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object); 94 winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object); 130 winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object); 171 winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object); 210 winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object); 254 winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object); 298 winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object); 334 winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object); 368 winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object); 400 winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object); 439 winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object); 481 winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object); 521 winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object); 555 winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object); 585 winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object); 619 winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object); 653 winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object); 690 winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
Windows.Win32.UI_Accessibility_ITextRangeProvider_Extensions.g.cs (14)
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 (30)
System\Windows\Forms\Automation\UiaTextRangeTests.cs (30)
32Assert.True(((ITextRangeProvider.Interface)textRange).GetEnclosingElement(elementProviderScope).Succeeded); 230Assert.True(((ITextRangeProvider.Interface)textRange).Clone(rangeScope).Succeeded); 247Assert.True(((ITextRangeProvider.Interface)textRange1).Compare(textRange2Scope, &actual).Succeeded); 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); 406Assert.True(((ITextRangeProvider.Interface)textRange).FindAttribute(textAttributeIdentifier, VARIANT.Empty, backward, actual).Succeeded); 433Assert.True(((ITextRangeProvider.Interface)textRange).FindText(bstrText, backward, ignoreCase, actual).Succeeded); 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); 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);