7 instantiations of SafeTextRangeHandle
UIAutomationClient (7)
MS\Internal\Automation\UiaCoreAPI.cs (7)
565
hobj = new
SafeTextRangeHandle
();
918
result = new
SafeTextRangeHandle
();
931
result = new
SafeTextRangeHandle
();
944
result = new
SafeTextRangeHandle
();
964
result = new
SafeTextRangeHandle
();
996
result = new
SafeTextRangeHandle
();
1009
result = new
SafeTextRangeHandle
();
83 references to SafeTextRangeHandle
UIAutomationClient (83)
MS\Internal\Automation\UiaCoreAPI.cs (71)
557
internal static
SafeTextRangeHandle
UiaHTextRangeFromVariant(object var)
559
SafeTextRangeHandle
hobj;
878
internal static
SafeTextRangeHandle
[] TextPattern_GetSelection(SafePatternHandle hobj)
884
return new
SafeTextRangeHandle
[] { };
886
SafeTextRangeHandle
[] result = new
SafeTextRangeHandle
[arr.Length];
894
internal static
SafeTextRangeHandle
[] TextPattern_GetVisibleRanges(SafePatternHandle hobj)
900
return new
SafeTextRangeHandle
[] { };
902
SafeTextRangeHandle
[] result = new
SafeTextRangeHandle
[arr.Length];
910
internal static
SafeTextRangeHandle
TextPattern_RangeFromChild(SafePatternHandle hobj, SafeNodeHandle childElement)
912
SafeTextRangeHandle
result;
923
internal static
SafeTextRangeHandle
TextPattern_RangeFromPoint(SafePatternHandle hobj, Point point)
925
SafeTextRangeHandle
result;
936
internal static
SafeTextRangeHandle
TextPattern_get_DocumentRange(SafePatternHandle hobj)
938
SafeTextRangeHandle
result;
956
internal static
SafeTextRangeHandle
TextRange_Clone(
SafeTextRangeHandle
hobj)
958
SafeTextRangeHandle
result;
969
internal static bool TextRange_Compare(
SafeTextRangeHandle
hobj,
SafeTextRangeHandle
range)
976
internal static int TextRange_CompareEndpoints(
SafeTextRangeHandle
hobj, TextPatternRangeEndpoint endpoint,
SafeTextRangeHandle
targetRange, TextPatternRangeEndpoint targetEndpoint)
983
internal static void TextRange_ExpandToEnclosingUnit(
SafeTextRangeHandle
hobj, TextUnit unit)
988
internal static
SafeTextRangeHandle
TextRange_FindAttribute(
SafeTextRangeHandle
hobj, int attributeId, object val, bool backward)
990
SafeTextRangeHandle
result;
1001
internal static
SafeTextRangeHandle
TextRange_FindText(
SafeTextRangeHandle
hobj, string text, bool backward, bool ignoreCase)
1003
SafeTextRangeHandle
result;
1014
internal static object TextRange_GetAttributeValue(
SafeTextRangeHandle
hobj, int attributeId)
1021
internal static Rect[] TextRange_GetBoundingRectangles(
SafeTextRangeHandle
hobj)
1051
internal static SafeNodeHandle TextRange_GetEnclosingElement(
SafeTextRangeHandle
hobj)
1064
internal static string TextRange_GetText(
SafeTextRangeHandle
hobj, int maxLength)
1071
internal static int TextRange_Move(
SafeTextRangeHandle
hobj, TextUnit unit, int count)
1078
internal static int TextRange_MoveEndpointByUnit(
SafeTextRangeHandle
hobj, TextPatternRangeEndpoint endpoint, TextUnit unit, int count)
1085
internal static void TextRange_MoveEndpointByRange(
SafeTextRangeHandle
hobj, TextPatternRangeEndpoint endpoint,
SafeTextRangeHandle
targetRange, TextPatternRangeEndpoint targetEndpoint)
1090
internal static void TextRange_Select(
SafeTextRangeHandle
hobj)
1095
internal static void TextRange_AddToSelection(
SafeTextRangeHandle
hobj)
1100
internal static void TextRange_RemoveFromSelection(
SafeTextRangeHandle
hobj)
1105
internal static void TextRange_ScrollIntoView(
SafeTextRangeHandle
hobj, bool alignToTop)
1110
internal static object[] TextRange_GetChildren(
SafeTextRangeHandle
hobj)
1271
private static extern int RawUiaHTextRangeFromVariant([MarshalAs(UnmanagedType.Struct)] ref object var, out
SafeTextRangeHandle
hnode);
1394
private static extern int RawTextPattern_RangeFromChild(SafePatternHandle hobj, SafeNodeHandle childElement, out
SafeTextRangeHandle
result);
1397
private static extern int RawTextPattern_RangeFromPoint(SafePatternHandle hobj, Point point, out
SafeTextRangeHandle
result);
1400
private static extern int RawTextPattern_get_DocumentRange(SafePatternHandle hobj, out
SafeTextRangeHandle
result);
1406
private static extern int RawTextRange_Clone(
SafeTextRangeHandle
hobj, out
SafeTextRangeHandle
result);
1409
private static extern int RawTextRange_Compare(
SafeTextRangeHandle
hobj,
SafeTextRangeHandle
range, out bool result);
1412
private static extern int RawTextRange_CompareEndpoints(
SafeTextRangeHandle
hobj, TextPatternRangeEndpoint endpoint,
SafeTextRangeHandle
targetRange, TextPatternRangeEndpoint targetEndpoint, out int result);
1415
private static extern int RawTextRange_ExpandToEnclosingUnit(
SafeTextRangeHandle
hobj, TextUnit unit);
1418
private static extern int RawTextRange_FindAttribute(
SafeTextRangeHandle
hobj, int attributeId, object val, bool backward, out
SafeTextRangeHandle
result);
1421
private static extern int RawTextRange_FindText(
SafeTextRangeHandle
hobj, [MarshalAs(UnmanagedType.BStr)] string text, bool backward, bool ignoreCase, out
SafeTextRangeHandle
result);
1424
private static extern int RawTextRange_GetAttributeValue(
SafeTextRangeHandle
hobj, int attributeId, out object result);
1427
private static extern int RawTextRange_GetBoundingRectangles(
SafeTextRangeHandle
hobj, [MarshalAs(UnmanagedType.SafeArray, SafeArraySubType = VarEnum.VT_R8)] out double[] result);
1430
private static extern int RawTextRange_GetEnclosingElement(
SafeTextRangeHandle
hobj, out SafeNodeHandle result);
1433
private static extern int RawTextRange_GetText(
SafeTextRangeHandle
hobj, int maxLength, [MarshalAs(UnmanagedType.BStr)] out string result);
1436
private static extern int RawTextRange_Move(
SafeTextRangeHandle
hobj, TextUnit unit, int count, out int result);
1439
private static extern int RawTextRange_MoveEndpointByUnit(
SafeTextRangeHandle
hobj, TextPatternRangeEndpoint endpoint, TextUnit unit, int count, out int result);
1442
private static extern int RawTextRange_MoveEndpointByRange(
SafeTextRangeHandle
hobj, TextPatternRangeEndpoint endpoint,
SafeTextRangeHandle
targetRange, TextPatternRangeEndpoint targetEndpoint);
1445
private static extern int RawTextRange_Select(
SafeTextRangeHandle
hobj);
1448
private static extern int RawTextRange_AddToSelection(
SafeTextRangeHandle
hobj);
1451
private static extern int RawTextRange_RemoveFromSelection(
SafeTextRangeHandle
hobj);
1454
private static extern int RawTextRange_ScrollIntoView(
SafeTextRangeHandle
hobj, bool alignToTop);
1457
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)
70
internal TextPatternRange(
SafeTextRangeHandle
hTextRange, TextPattern pattern)
79
internal static TextPatternRange Wrap(
SafeTextRangeHandle
hTextRange, TextPattern pattern)
88
internal static TextPatternRange [] Wrap(
SafeTextRangeHandle
[] hTextRanges, TextPattern pattern)
121
SafeTextRangeHandle
hResultTextRange = UiaCoreApi.TextRange_Clone(_hTextRange);
214
SafeTextRangeHandle
hResultTextRange = UiaCoreApi.TextRange_FindAttribute(_hTextRange, attribute.Id, value, backward);
234
SafeTextRangeHandle
hResultTextRange = UiaCoreApi.TextRange_FindText(_hTextRange, text, backward, ignoreCase);
494
SafeTextRangeHandle
_hTextRange;
System\Windows\Automation\TextPattern.cs (5)
186
SafeTextRangeHandle
[] hTextRanges = UiaCoreApi.TextPattern_GetSelection(_hPattern);
199
SafeTextRangeHandle
[] hTextRanges = UiaCoreApi.TextPattern_GetVisibleRanges(_hPattern);
216
SafeTextRangeHandle
hTextRange = UiaCoreApi.TextPattern_RangeFromChild(_hPattern, childElement.RawNode);
238
SafeTextRangeHandle
hTextRange = UiaCoreApi.TextPattern_RangeFromPoint(_hPattern, screenLocation);
260
SafeTextRangeHandle
hTextRange = UiaCoreApi.TextPattern_get_DocumentRange(_hPattern);