コード例 #1
0
 /// <summary>
 /// Retrieves the innermost element that encloses this range.
 /// </summary>
 /// <returns>An element.  Usually this element will be the one that supplied this range.
 /// However, if the text provider supports child elements such as tables or hyperlinks, then the
 /// enclosing element could be a descendant element of the text provider.
 /// </returns>
 public AutomationElement GetEnclosingElement()
 {
     return(AutomationElement.Wrap(UiaCoreApi.TextRange_GetEnclosingElement(_hTextRange)));
 }