1 implementation of Interface
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Automation\UiaTextRange.cs (1)
13
internal sealed unsafe class UiaTextRange : ITextRangeProvider.
Interface
, IManagedWrapper<ITextRangeProvider>
80 references to Interface
System.Windows.Forms.Primitives (50)
System\Windows\Forms\Automation\UiaTextRange.cs (18)
112
HRESULT ITextRangeProvider.
Interface
.Clone(ITextRangeProvider** pRetVal)
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)
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.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)
32
Assert.True(((ITextRangeProvider.
Interface
)textRange).GetEnclosingElement(elementProviderScope).Succeeded);
230
Assert.True(((ITextRangeProvider.
Interface
)textRange).Clone(rangeScope).Succeeded);
247
Assert.True(((ITextRangeProvider.
Interface
)textRange1).Compare(textRange2Scope, &actual).Succeeded);
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);
406
Assert.True(((ITextRangeProvider.
Interface
)textRange).FindAttribute(textAttributeIdentifier, VARIANT.Empty, backward, actual).Succeeded);
433
Assert.True(((ITextRangeProvider.
Interface
)textRange).FindText(bstrText, backward, ignoreCase, actual).Succeeded);
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);
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);