7 instantiations of SafeTextRangeHandle
UIAutomationClient (7)
MS\Internal\Automation\UiaCoreApi.cs (7)
552hobj = new SafeTextRangeHandle(); 906result = new SafeTextRangeHandle(); 919result = new SafeTextRangeHandle(); 932result = new SafeTextRangeHandle(); 952result = new SafeTextRangeHandle(); 984result = new SafeTextRangeHandle(); 997result = new SafeTextRangeHandle();
83 references to SafeTextRangeHandle
UIAutomationClient (83)
MS\Internal\Automation\UiaCoreApi.cs (71)
544internal static SafeTextRangeHandle UiaHTextRangeFromVariant(object var) 546SafeTextRangeHandle hobj; 866internal static SafeTextRangeHandle [] TextPattern_GetSelection(SafePatternHandle hobj) 872return new SafeTextRangeHandle[] { }; 874SafeTextRangeHandle[] result = new SafeTextRangeHandle[arr.Length]; 882internal static SafeTextRangeHandle[] TextPattern_GetVisibleRanges(SafePatternHandle hobj) 888return new SafeTextRangeHandle[] { }; 890SafeTextRangeHandle[] result = new SafeTextRangeHandle[arr.Length]; 898internal static SafeTextRangeHandle TextPattern_RangeFromChild(SafePatternHandle hobj, SafeNodeHandle childElement) 900SafeTextRangeHandle result; 911internal static SafeTextRangeHandle TextPattern_RangeFromPoint(SafePatternHandle hobj, Point point) 913SafeTextRangeHandle result; 924internal static SafeTextRangeHandle TextPattern_get_DocumentRange(SafePatternHandle hobj) 926SafeTextRangeHandle result; 944internal static SafeTextRangeHandle TextRange_Clone(SafeTextRangeHandle hobj) 946SafeTextRangeHandle result; 957internal static bool TextRange_Compare(SafeTextRangeHandle hobj, SafeTextRangeHandle range) 964internal static int TextRange_CompareEndpoints(SafeTextRangeHandle hobj, TextPatternRangeEndpoint endpoint, SafeTextRangeHandle targetRange, TextPatternRangeEndpoint targetEndpoint) 971internal static void TextRange_ExpandToEnclosingUnit(SafeTextRangeHandle hobj, TextUnit unit) 976internal static SafeTextRangeHandle TextRange_FindAttribute(SafeTextRangeHandle hobj, int attributeId, object val, bool backward) 978SafeTextRangeHandle result; 989internal static SafeTextRangeHandle TextRange_FindText(SafeTextRangeHandle hobj, string text, bool backward, bool ignoreCase) 991SafeTextRangeHandle result; 1002internal static object TextRange_GetAttributeValue(SafeTextRangeHandle hobj, int attributeId) 1009internal static Rect[] TextRange_GetBoundingRectangles(SafeTextRangeHandle hobj) 1039internal static SafeNodeHandle TextRange_GetEnclosingElement(SafeTextRangeHandle hobj) 1052internal static string TextRange_GetText(SafeTextRangeHandle hobj, int maxLength) 1059internal static int TextRange_Move(SafeTextRangeHandle hobj, TextUnit unit, int count) 1066internal static int TextRange_MoveEndpointByUnit(SafeTextRangeHandle hobj, TextPatternRangeEndpoint endpoint, TextUnit unit, int count) 1073internal static void TextRange_MoveEndpointByRange(SafeTextRangeHandle hobj, TextPatternRangeEndpoint endpoint, SafeTextRangeHandle targetRange, TextPatternRangeEndpoint targetEndpoint) 1078internal static void TextRange_Select(SafeTextRangeHandle hobj) 1083internal static void TextRange_AddToSelection(SafeTextRangeHandle hobj) 1088internal static void TextRange_RemoveFromSelection(SafeTextRangeHandle hobj) 1093internal static void TextRange_ScrollIntoView(SafeTextRangeHandle hobj, bool alignToTop) 1098internal static object[] TextRange_GetChildren(SafeTextRangeHandle hobj) 1259private static extern int RawUiaHTextRangeFromVariant([MarshalAs(UnmanagedType.Struct)] ref object var, out SafeTextRangeHandle hnode); 1376private static extern int RawTextPattern_RangeFromChild(SafePatternHandle hobj, SafeNodeHandle childElement, out SafeTextRangeHandle result); 1379private static extern int RawTextPattern_RangeFromPoint(SafePatternHandle hobj, Point point, out SafeTextRangeHandle result); 1382private static extern int RawTextPattern_get_DocumentRange(SafePatternHandle hobj, out SafeTextRangeHandle result); 1388private static extern int RawTextRange_Clone(SafeTextRangeHandle hobj, out SafeTextRangeHandle result); 1391private static extern int RawTextRange_Compare(SafeTextRangeHandle hobj, SafeTextRangeHandle range, out bool result); 1394private static extern int RawTextRange_CompareEndpoints(SafeTextRangeHandle hobj, TextPatternRangeEndpoint endpoint, SafeTextRangeHandle targetRange, TextPatternRangeEndpoint targetEndpoint, out int result); 1397private static extern int RawTextRange_ExpandToEnclosingUnit(SafeTextRangeHandle hobj, TextUnit unit); 1400private static extern int RawTextRange_FindAttribute(SafeTextRangeHandle hobj, int attributeId, object val, bool backward, out SafeTextRangeHandle result); 1403private static extern int RawTextRange_FindText(SafeTextRangeHandle hobj, [MarshalAs(UnmanagedType.BStr)] string text, bool backward, bool ignoreCase, out SafeTextRangeHandle result); 1406private static extern int RawTextRange_GetAttributeValue(SafeTextRangeHandle hobj, int attributeId, out object result); 1409private static extern int RawTextRange_GetBoundingRectangles(SafeTextRangeHandle hobj, [MarshalAs(UnmanagedType.SafeArray, SafeArraySubType = VarEnum.VT_R8)] out double[] result); 1412private static extern int RawTextRange_GetEnclosingElement(SafeTextRangeHandle hobj, out SafeNodeHandle result); 1415private static extern int RawTextRange_GetText(SafeTextRangeHandle hobj, int maxLength, [MarshalAs(UnmanagedType.BStr)] out string result); 1418private static extern int RawTextRange_Move(SafeTextRangeHandle hobj, TextUnit unit, int count, out int result); 1421private static extern int RawTextRange_MoveEndpointByUnit(SafeTextRangeHandle hobj, TextPatternRangeEndpoint endpoint, TextUnit unit, int count, out int result); 1424private static extern int RawTextRange_MoveEndpointByRange(SafeTextRangeHandle hobj, TextPatternRangeEndpoint endpoint, SafeTextRangeHandle targetRange, TextPatternRangeEndpoint targetEndpoint); 1427private static extern int RawTextRange_Select(SafeTextRangeHandle hobj); 1430private static extern int RawTextRange_AddToSelection(SafeTextRangeHandle hobj); 1433private static extern int RawTextRange_RemoveFromSelection(SafeTextRangeHandle hobj); 1436private static extern int RawTextRange_ScrollIntoView(SafeTextRangeHandle hobj, bool alignToTop); 1439private static extern int RawTextRange_GetChildren(SafeTextRangeHandle hobj, [MarshalAs(UnmanagedType.SafeArray, SafeArraySubType = VarEnum.VT_UNKNOWN)] out object[] result);
System\Windows\Automation\Text\TextRange.cs (7)
56internal TextPatternRange(SafeTextRangeHandle hTextRange, TextPattern pattern) 65internal static TextPatternRange Wrap(SafeTextRangeHandle hTextRange, TextPattern pattern) 74internal static TextPatternRange [] Wrap(SafeTextRangeHandle [] hTextRanges, TextPattern pattern) 107SafeTextRangeHandle hResultTextRange = UiaCoreApi.TextRange_Clone(_hTextRange); 200SafeTextRangeHandle hResultTextRange = UiaCoreApi.TextRange_FindAttribute(_hTextRange, attribute.Id, value, backward); 220SafeTextRangeHandle hResultTextRange = UiaCoreApi.TextRange_FindText(_hTextRange, text, backward, ignoreCase); 479SafeTextRangeHandle _hTextRange;
System\Windows\Automation\TextPattern.cs (5)
175SafeTextRangeHandle [] hTextRanges = UiaCoreApi.TextPattern_GetSelection(_hPattern); 188SafeTextRangeHandle [] hTextRanges = UiaCoreApi.TextPattern_GetVisibleRanges(_hPattern); 202SafeTextRangeHandle hTextRange = UiaCoreApi.TextPattern_RangeFromChild(_hPattern, childElement.RawNode); 224SafeTextRangeHandle hTextRange = UiaCoreApi.TextPattern_RangeFromPoint(_hPattern, screenLocation); 246SafeTextRangeHandle hTextRange = UiaCoreApi.TextPattern_get_DocumentRange(_hPattern);