7 instantiations of SafeTextRangeHandle
UIAutomationClient (7)
MS\Internal\Automation\UiaCoreApi.cs (7)
555
hobj = new
SafeTextRangeHandle
();
909
result = new
SafeTextRangeHandle
();
922
result = new
SafeTextRangeHandle
();
935
result = new
SafeTextRangeHandle
();
955
result = new
SafeTextRangeHandle
();
987
result = new
SafeTextRangeHandle
();
1000
result = new
SafeTextRangeHandle
();
83 references to SafeTextRangeHandle
UIAutomationClient (83)
MS\Internal\Automation\UiaCoreApi.cs (71)
547
internal static
SafeTextRangeHandle
UiaHTextRangeFromVariant(object var)
549
SafeTextRangeHandle
hobj;
869
internal static
SafeTextRangeHandle
[] TextPattern_GetSelection(SafePatternHandle hobj)
875
return new
SafeTextRangeHandle
[] { };
877
SafeTextRangeHandle
[] result = new
SafeTextRangeHandle
[arr.Length];
885
internal static
SafeTextRangeHandle
[] TextPattern_GetVisibleRanges(SafePatternHandle hobj)
891
return new
SafeTextRangeHandle
[] { };
893
SafeTextRangeHandle
[] result = new
SafeTextRangeHandle
[arr.Length];
901
internal static
SafeTextRangeHandle
TextPattern_RangeFromChild(SafePatternHandle hobj, SafeNodeHandle childElement)
903
SafeTextRangeHandle
result;
914
internal static
SafeTextRangeHandle
TextPattern_RangeFromPoint(SafePatternHandle hobj, Point point)
916
SafeTextRangeHandle
result;
927
internal static
SafeTextRangeHandle
TextPattern_get_DocumentRange(SafePatternHandle hobj)
929
SafeTextRangeHandle
result;
947
internal static
SafeTextRangeHandle
TextRange_Clone(
SafeTextRangeHandle
hobj)
949
SafeTextRangeHandle
result;
960
internal static bool TextRange_Compare(
SafeTextRangeHandle
hobj,
SafeTextRangeHandle
range)
967
internal static int TextRange_CompareEndpoints(
SafeTextRangeHandle
hobj, TextPatternRangeEndpoint endpoint,
SafeTextRangeHandle
targetRange, TextPatternRangeEndpoint targetEndpoint)
974
internal static void TextRange_ExpandToEnclosingUnit(
SafeTextRangeHandle
hobj, TextUnit unit)
979
internal static
SafeTextRangeHandle
TextRange_FindAttribute(
SafeTextRangeHandle
hobj, int attributeId, object val, bool backward)
981
SafeTextRangeHandle
result;
992
internal static
SafeTextRangeHandle
TextRange_FindText(
SafeTextRangeHandle
hobj, string text, bool backward, bool ignoreCase)
994
SafeTextRangeHandle
result;
1005
internal static object TextRange_GetAttributeValue(
SafeTextRangeHandle
hobj, int attributeId)
1012
internal static Rect[] TextRange_GetBoundingRectangles(
SafeTextRangeHandle
hobj)
1042
internal static SafeNodeHandle TextRange_GetEnclosingElement(
SafeTextRangeHandle
hobj)
1055
internal static string TextRange_GetText(
SafeTextRangeHandle
hobj, int maxLength)
1062
internal static int TextRange_Move(
SafeTextRangeHandle
hobj, TextUnit unit, int count)
1069
internal static int TextRange_MoveEndpointByUnit(
SafeTextRangeHandle
hobj, TextPatternRangeEndpoint endpoint, TextUnit unit, int count)
1076
internal static void TextRange_MoveEndpointByRange(
SafeTextRangeHandle
hobj, TextPatternRangeEndpoint endpoint,
SafeTextRangeHandle
targetRange, TextPatternRangeEndpoint targetEndpoint)
1081
internal static void TextRange_Select(
SafeTextRangeHandle
hobj)
1086
internal static void TextRange_AddToSelection(
SafeTextRangeHandle
hobj)
1091
internal static void TextRange_RemoveFromSelection(
SafeTextRangeHandle
hobj)
1096
internal static void TextRange_ScrollIntoView(
SafeTextRangeHandle
hobj, bool alignToTop)
1101
internal static object[] TextRange_GetChildren(
SafeTextRangeHandle
hobj)
1262
private static extern int RawUiaHTextRangeFromVariant([MarshalAs(UnmanagedType.Struct)] ref object var, out
SafeTextRangeHandle
hnode);
1379
private static extern int RawTextPattern_RangeFromChild(SafePatternHandle hobj, SafeNodeHandle childElement, out
SafeTextRangeHandle
result);
1382
private static extern int RawTextPattern_RangeFromPoint(SafePatternHandle hobj, Point point, out
SafeTextRangeHandle
result);
1385
private static extern int RawTextPattern_get_DocumentRange(SafePatternHandle hobj, out
SafeTextRangeHandle
result);
1391
private static extern int RawTextRange_Clone(
SafeTextRangeHandle
hobj, out
SafeTextRangeHandle
result);
1394
private static extern int RawTextRange_Compare(
SafeTextRangeHandle
hobj,
SafeTextRangeHandle
range, out bool result);
1397
private static extern int RawTextRange_CompareEndpoints(
SafeTextRangeHandle
hobj, TextPatternRangeEndpoint endpoint,
SafeTextRangeHandle
targetRange, TextPatternRangeEndpoint targetEndpoint, out int result);
1400
private static extern int RawTextRange_ExpandToEnclosingUnit(
SafeTextRangeHandle
hobj, TextUnit unit);
1403
private static extern int RawTextRange_FindAttribute(
SafeTextRangeHandle
hobj, int attributeId, object val, bool backward, out
SafeTextRangeHandle
result);
1406
private static extern int RawTextRange_FindText(
SafeTextRangeHandle
hobj, [MarshalAs(UnmanagedType.BStr)] string text, bool backward, bool ignoreCase, out
SafeTextRangeHandle
result);
1409
private static extern int RawTextRange_GetAttributeValue(
SafeTextRangeHandle
hobj, int attributeId, out object result);
1412
private static extern int RawTextRange_GetBoundingRectangles(
SafeTextRangeHandle
hobj, [MarshalAs(UnmanagedType.SafeArray, SafeArraySubType = VarEnum.VT_R8)] out double[] result);
1415
private static extern int RawTextRange_GetEnclosingElement(
SafeTextRangeHandle
hobj, out SafeNodeHandle result);
1418
private static extern int RawTextRange_GetText(
SafeTextRangeHandle
hobj, int maxLength, [MarshalAs(UnmanagedType.BStr)] out string result);
1421
private static extern int RawTextRange_Move(
SafeTextRangeHandle
hobj, TextUnit unit, int count, out int result);
1424
private static extern int RawTextRange_MoveEndpointByUnit(
SafeTextRangeHandle
hobj, TextPatternRangeEndpoint endpoint, TextUnit unit, int count, out int result);
1427
private static extern int RawTextRange_MoveEndpointByRange(
SafeTextRangeHandle
hobj, TextPatternRangeEndpoint endpoint,
SafeTextRangeHandle
targetRange, TextPatternRangeEndpoint targetEndpoint);
1430
private static extern int RawTextRange_Select(
SafeTextRangeHandle
hobj);
1433
private static extern int RawTextRange_AddToSelection(
SafeTextRangeHandle
hobj);
1436
private static extern int RawTextRange_RemoveFromSelection(
SafeTextRangeHandle
hobj);
1439
private static extern int RawTextRange_ScrollIntoView(
SafeTextRangeHandle
hobj, bool alignToTop);
1442
private static extern int RawTextRange_GetChildren(
SafeTextRangeHandle
hobj, [MarshalAs(UnmanagedType.SafeArray, SafeArraySubType = VarEnum.VT_UNKNOWN)] out object[] result);
System\Windows\Automation\Text\TextRange.cs (7)
59
internal TextPatternRange(
SafeTextRangeHandle
hTextRange, TextPattern pattern)
68
internal static TextPatternRange Wrap(
SafeTextRangeHandle
hTextRange, TextPattern pattern)
77
internal static TextPatternRange [] Wrap(
SafeTextRangeHandle
[] hTextRanges, TextPattern pattern)
110
SafeTextRangeHandle
hResultTextRange = UiaCoreApi.TextRange_Clone(_hTextRange);
203
SafeTextRangeHandle
hResultTextRange = UiaCoreApi.TextRange_FindAttribute(_hTextRange, attribute.Id, value, backward);
223
SafeTextRangeHandle
hResultTextRange = UiaCoreApi.TextRange_FindText(_hTextRange, text, backward, ignoreCase);
482
SafeTextRangeHandle
_hTextRange;
System\Windows\Automation\TextPattern.cs (5)
175
SafeTextRangeHandle
[] hTextRanges = UiaCoreApi.TextPattern_GetSelection(_hPattern);
188
SafeTextRangeHandle
[] hTextRanges = UiaCoreApi.TextPattern_GetVisibleRanges(_hPattern);
202
SafeTextRangeHandle
hTextRange = UiaCoreApi.TextPattern_RangeFromChild(_hPattern, childElement.RawNode);
224
SafeTextRangeHandle
hTextRange = UiaCoreApi.TextPattern_RangeFromPoint(_hPattern, screenLocation);
246
SafeTextRangeHandle
hTextRange = UiaCoreApi.TextPattern_get_DocumentRange(_hPattern);