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