UiPath Documentation
activities
latest
false
重要 :
このコンテンツの一部は機械翻訳によって処理されており、完全な翻訳を保証するものではありません。 新しいコンテンツの翻訳は、およそ 1 ~ 2 週間で公開されます。

UI Automation アクティビティ

GetText

UI 要素からテキストを抽出してコピーします。

この API は Open または Attach の後に追加する必要があります。

定義

名前空間: UiPath.UIAutomationNext.API.Models

アセンブリ: UiPath.UIAutomationNext.API.Models (in UiPath.UIAutomationNext.API.Models dll)

オーバー ロード

オーバーロード説明
GetText(String)文字列として識別された UI 要素からテキストを抽出してコピーします。
GetText(String, GetTextOptions)抽出アクションをカスタマイズする際に、文字列として識別された UI 要素からテキストを抽出してコピーします。
GetText(TargetAnchorableModel, GetTextOptions)Target Anchorable Model オブジェクトとして識別される UI 要素からテキストを抽出してコピーします。同時に、抽出アクションをカスタマイズします。

GetText(String)

文字列として識別された UI 要素からテキストを抽出してコピーします。

GetText(
    string target)
GetText(
    string target)

target string : オブジェクト リポジトリでキャプチャされる、抽出する UI 要素を指定します。

GetText(String, GetTextOptions)

抽出アクションをカスタマイズする際に、文字列として識別された UI 要素からテキストを抽出してコピーします。

GetText(
    string target, 
    GetTextOptions getTextOptions)
GetText(
    string target, 
    GetTextOptions getTextOptions)

target string : オブジェクト リポジトリでキャプチャされる、抽出する UI 要素を指定します。

getTextOptions GetTextOptions : テキスト抽出プロセスをカスタマイズするための追加のオプションです。以下をカスタマイズできます。

* `ScrapingOptions
  NScrapingOptions`:
  + `Default`
  + `TextAttribute`
  + `Native` (enables you to **Allow
    formatting** and retrieve the screen coordinates of
    the words)
  + `FullText` (offers the option to
    **Ignore hidden text**)
* `ScrapingAPI NScrapingAPI`
  + `None`
  + `AllowFormatting`
  + `IgnoreHiddenText`
  + `GetWordCoordinates`
* `ScrapingOptions
  NScrapingOptions`:
  + `Default`
  + `TextAttribute`
  + `Native` (enables you to **Allow
    formatting** and retrieve the screen coordinates of
    the words)
  + `FullText` (offers the option to
    **Ignore hidden text**)
* `ScrapingAPI NScrapingAPI`
  + `None`
  + `AllowFormatting`
  + `IgnoreHiddenText`
  + `GetWordCoordinates`

GetText(TargetAnchorableModel, GetTextOptions)

Target Anchorable Model オブジェクトとして識別される UI 要素からテキストを抽出してコピーします。同時に、抽出アクションをカスタマイズします。

GetText(
    TargetAnchorableModel target, 
    GetTextOptions getTextOptions)
GetText(
    TargetAnchorableModel target, 
    GetTextOptions getTextOptions)

TargetAnchorableModel TargetAnchorableModel : 抽出する TargetAnchorableModel として識別された UI 要素を指定します。

getTextOptions GetTextOptions : テキスト抽出プロセスをカスタマイズするための追加のオプションです。以下をカスタマイズできます。

* `ScrapingOptions
  NScrapingOptions`:
  + `Default`
  + `TextAttribute`
  + `Native` (enables you to **Allow
    formatting** and retrieve the screen coordinates of
    the words)
  + `FullText` (offers the option to
    **Ignore hidden text**)
* `ScrapingAPI NScrapingAPI`
  + `None`
  + `AllowFormatting`
  + `IgnoreHiddenText`
  + `GetWordCoordinates`
* `ScrapingOptions
  NScrapingOptions`:
  + `Default`
  + `TextAttribute`
  + `Native` (enables you to **Allow
    formatting** and retrieve the screen coordinates of
    the words)
  + `FullText` (offers the option to
    **Ignore hidden text**)
* `ScrapingAPI NScrapingAPI`
  + `None`
  + `AllowFormatting`
  + `IgnoreHiddenText`
  + `GetWordCoordinates`

戻り値

指定した UI 要素からのテキストです。

このページは役に立ちましたか?

接続

ヘルプ リソース サポート

学習する UiPath アカデミー

質問する UiPath フォーラム

最新情報を取得