UiPath.Core.UiElement Class

# UiPath.Core.UiElement Class

## 注釈
UiPath.UiAutomation.Activities.dll[19.6.0.0～19.8.0.0、20.4.2、21.4.3]に含まれているメンバーのみの一覧。（機能内容は未調査）
上記バージョン間で追加、変更、削除のあったものは備考欄に記載しています。
アクセス修飾子が Publicなもののみ記載。
Implements IDisposable, IUiPosition分は省略。
（UiPath.Core.UiElementは UiPath.UiAutomation.Activities.dll[19.5.0.0]にはありません）

## コンストラクター
|メンバー| |
|:--|:--|
|UiElement()| |
|UiElement(other As UiElement)| |
|UiElement(selector As Selector)| |
|UiElement(selector As Selector, timeout As Integer)| |
|UiElement(strategy As SelectorStrategy)| |
|UiElement(window As Window)| |

## 定数
|メンバー| |
|:--|:--|
|E_UINODE_NO_ELEMENT_FOUND As Integer| -2147220974|
|MAX_ATTR_LENGTH As Integer| 64|

## プロパティ
|メンバー|備考|
|:--|:--|
|Activate() As Boolean| |
|Attributes() As String()| |
|ClippingRegion() As Region| |
|ClippingRegion_Normalized() As Region| |
|DisplayDpiScaleFactor() As Double| |
|ImageBase64() As String| |
|options() As SelectorOptions| |
|ScaleFactor() As Double| |
|Selector() As Selector| |
|SelectorStrategy() As SelectorStrategy| |
|Timeout() As Integer| |
|UseNonBlockingInput() As Boolean|19.7.0.0で追加|
|WaitForReadyLevel() As WaitForReady| |

## メソッド（Sub）
|メンバー| |
|:--|:--|
|BringToForeground()| |
|Click(clickType As ClickType, mouseButton As MouseButton, inputMethod As InputMethod)| |
|Click(offsetX As Integer, offsetY As Integer, clickType As ClickType, mouseButton As MouseButton, inputMethod As InputMethod, mousePlacement As Position)| |
|Click_Normalized(offsetX As Integer, offsetY As Integer, clickType As ClickType, mouseButton As MouseButton, inputMethod As InputMethod, mousePlacement As Position)| |
|Dispose()| |
|ExpandClippingRegion(direction As Direction)| |
|Highlight()| |
|Highlight(c As Color)| |
|Highlight(time As TimeSpan, color As Color)| |
|Hover(method As InputMethod, timeout As Integer)| |
|Hover(offsetX As Integer, offsetY As Integer, method As InputMethod, timeout As Integer, mousePlacement As Position)| |
|Hover_Normalized(offsetX As Integer, offsetY As Integer, method As InputMethod, timeout As Integer, mousePlacement As Position)| |
|Reset()| |
|Set(attribute As String, value As Object)| |
|SetFocus()| |
|<del>SetSelector(value As Selector, resolver As IVariableResolver)</del>|19.8.0.0で下記へ引数変更|
|<del>SetSelector(value As Selector, placeholderResolver As IPlaceholderResolver)</del>|19.8.0.0で追加<br>20.4.2の時点で適用範囲がFriendになっていました（引数も変更あり）|
|StartHighlight()| |
|StartHighlight(color As Color)| |
|StopHighlight()| |
|WaitDisappear()| |
|WriteText(text As String, method As InputMethod)| |
|WriteText(text As String, method As InputMethod, delayBetweenKeys As Integer)| |

## メソッド（Function）
|メンバー| |
|:--|:--|
|Clone() As UiElement| |
|ComputePartialSelector(parent As Selector) As Selector| |
|ComputePartialSelector(parentSelector As String) As Selector| |
|Equals(node As UiElement) As Boolean| |
|ExtractData(xmlMetaData As String) As String| |
|<del>FindAll(scope As FindScope, selector As Selector, resolver As IVariableResolver) As UiElement()</del>|19.8.0.0で下記へ引数変更|
|FindAll(scope As FindScope, selector As Selector, placeholderResolver As IPlaceholderResolver) As UiElement()|19.8.0.0で追加|
|<del>FindFirst(scope As FindScope, selector As Selector, resolver As IVariableResolver) As UiElement</del>|19.8.0.0で下記へ引数変更|
|FindFirst(scope As FindScope, selector As Selector, placeholderResolver As IPlaceholderResolver) As UiElement|19.8.0.0で追加|
|FindImage(criteria As ImageFindCriteria, Optional relativeToNode As Boolean=True) As Region| |
|FindString(text As String, occurence As Integer, scrapeOptions As ScrapeOptions) As Region| |
|FromDesktop() As Boolean| |
|FromFocus() As Boolean| |
|FromRelativePoint(offsetX As Integer, offsetY As Integer, position As Position) As UiElement| |
|FromRelativePoint_Normalized(offsetX As Integer, offsetY As Integer, position As Position) As UiElement| |
|FromScreenPoint(screenPoint As Point) As Boolean| |
|FromWindow(wnd As Window) As Boolean| |
|Get(attribute As String, Optional refresh As Boolean=False) As Object| |
|GetAbsolutePosition(Optional tryDesktop As Boolean=False) As Rectangle| |
|GetBrowser() As Browser| |
|GetFriendlyName(Optional shortName As Boolean=False) As String| |
|GetMonitorPosition() As Rectangle| |
|GetNodeAttributes(attrList As List(Of String), Optional skipEmpty As Boolean=False) As Dictionary(Of String, String)| |
|GetNodeAttributes(Optional skipEmpty As Boolean=True) As Dictionary(Of String, String)| |
|GetNormalizedPosition() As Rectangle| |
|GetPopupPoint() As Point| |
|GetPosition() As Region| |
|GetPositionWithMonitorBounds() As Rectangle| |
|GetSelectionPoint(Optional screenCoordinates As Boolean=False) As Point| |
|GetTopLevelWindow() As Window| |
|InjectAndRunJS(code As String, input As String) As String| |
|IntersectNode(parent As UiElement) As Region| |
|IsBrowser() As Boolean| |
|IsCoveredByAnotherWindow() As Boolean| |
|IsHtml() As Boolean| |
|IsRemoteDesktopTopLevel() As Boolean| |
|IsRemoteElement() As Boolean| |
|IsValid() As Boolean| |
|IsVisible() As Boolean| |
|IsWindow() As Boolean| |
|Parent() As UiElement| |
|Scrape(scrapeOptions As ScrapeOptions) As ScrapeResult| |
|Screenshot() As Image| |
|ScreenshotClipped() As Image| |
|Select(Optional selectionType As SelectionType=SelectionType.Node, Optional hidePreview As Boolean=False) As Boolean| |
|Select(Optional selectionType As SelectionType=SelectionType.Node, Optional hidePreview As Boolean=False, Optional showErrors As Boolean=True) As Boolean| |
|TopParent(Optional keepClippingRegion As Boolean=False) As UiElement| |
|WaitText(text As String, occurence As Integer, scrapeOptions As ScrapeOptions, timeoutMS As Integer, cancellationToken As CancellationToken) As Region| |

## 当記事の編集履歴
2019/07/18 ： 19.7.0.0バージョンについて追記しました。
2019/09/07 ： 19.8.0.0バージョンについて追記しました。
2021/04/25 ： 20.4.2.0と21.4.3バージョンについて検証しました（途中のバージョンが飛んでいますので注意）。21.4.3については記載を変更するべきものはありませんでした。
（文言の修正など軽微なものについては記載しません）