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

UI Automation アクティビティ

最終更新日時 2026年4月28日

ドラッグ アンド ドロップ

ソース UI 要素からターゲット UI 要素へのドラッグ アンド ドロップ操作を実行します。

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

定義

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

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

オーバー ロード

オーバーロード説明
DragAndDrop(IElementDescriptor, DragAndDropOptions)オブジェクト リポジトリの要素の記述子によって識別される、指定された UI 要素をドラッグ アンド ドロップします。同時に、ドラッグ アンド ドロップ操作をカスタマイズします。
DragAndDrop(String, DragAndDropOptions)ドラッグ アンド ドロップ操作をカスタマイズする際に、オブジェクト リポジトリの文字列によって識別された指定の UI 要素をドラッグ アンド ドロップします。
DragAndDrop(IElementDescriptor, TargetAnchorableModel, NKeyModifiers, NMouseButton, CursorMotionType, Boolean, Double)オブジェクト リポジトリにある要素の記述子と TargetAnchorableModel オブジェクトによって識別される、指定した UI 要素をドラッグ アンド ドロップします。同時に、使用するキー修飾子、マウス ボタン、カーソルの動きの種類を指定します。
DragAndDrop(String, TargetAnchorableModel, NKeyModifiers, NMouseButton, CursorMotionType, Boolean, Double)オブジェクト リポジトリの文字列と TargetAnchorableModel オブジェクトによって識別された指定の UI 要素を、使用するキー修飾子、マウス ボタン、カーソルの動きの種類を指定してドラッグ アンド ドロップします。
DragAndDrop(TargetAnchorableModel, DragAndDropOptions)ドラッグ アンド ドロップ操作をカスタマイズする際に、TargetAnchorableModel オブジェクトによって識別された指定の UI 要素をドラッグ アンド ドロップします。
DragAndDrop(RuntimeTarget, DragAndDropOptions)ドラッグ アンド ドロップ操作をカスタマイズする際に、オブジェクト リポジトリ要素のランタイム インスタンスによって識別された指定の UI 要素をドラッグ アンド ドロップします。

DragAndDrop(IElementDescriptor, DragAndDropOptions)

ドラッグ アンド ドロップ操作をカスタマイズする際に、オブジェクト リポジトリの UI 要素の記述子によって識別された指定の UI 要素をドラッグ アンド ドロップします。

DragAndDrop(
    IElementDescriptor elementDescriptor,
    DragAndDropOptions dragAndDropOptions)
DragAndDrop(
    IElementDescriptor elementDescriptor,
    DragAndDropOptions dragAndDropOptions)

elementDescriptor IElementDescriptor : ドラッグ アンド ドロップする UI 要素です。オブジェクト リポジトリの UI 要素の記述子によって識別されます。

dragAndDropOptions DragAndDropOptions : ドラッグ アンド ドロップ操作をカスタマイズするための追加のオプションです。以下をカスタマイズできます。

* `TargetOptions`:
  + **Timeout** - Specifies the amount of time (in
    seconds) to wait for the API to run before the
    `SelectorNotFoundException` error is
    thrown. The default value is 30 seconds.
  + **DelayAfter** - Delay time (in seconds) after
    executing the API. The default amount of time is 0.3 seconds
    (300 milliseconds).
  + **DelayBefore** - Delay time (in seconds) before the
    API begins performing any operations. The default amount of
    time is 0.2 seconds (200 milliseconds).
* `TargetAnchorableModel` - The location where you
  want to drag and drop the UI element to.
* `NKeyModifiers` - Specify the key modifiers you want
  to use during the drag and drop operation. The following options are
  available: **None**, **Alt**, **Ctrl**, **Shift**, and
  **Win**.
* `NMouseButton` - Specify the mouse button you want to
  use during the drag and drop operation. The following options are
  available: **Left**, **Right**, and **Middle**.
* `CusorMotionType` - Specifies the type of motion
  performed by the mouse cursor. There are two available options:
  + **Instant** - The cursor jumps to the destination. By
    default, **Instant** is selected.
  + **Smooth** - The cursor moves gradually towards the
    destination.
* `UseSourceHover` - Determines whether to hover
  over the source before dragging.
* `DelayBetweenActions` - Delay (in seconds) between
  the actions necessary to perform the drag and drop operation.
* `TargetOptions`:
  + **Timeout** - Specifies the amount of time (in
    seconds) to wait for the API to run before the
    `SelectorNotFoundException` error is
    thrown. The default value is 30 seconds.
  + **DelayAfter** - Delay time (in seconds) after
    executing the API. The default amount of time is 0.3 seconds
    (300 milliseconds).
  + **DelayBefore** - Delay time (in seconds) before the
    API begins performing any operations. The default amount of
    time is 0.2 seconds (200 milliseconds).
* `TargetAnchorableModel` - The location where you
  want to drag and drop the UI element to.
* `NKeyModifiers` - Specify the key modifiers you want
  to use during the drag and drop operation. The following options are
  available: **None**, **Alt**, **Ctrl**, **Shift**, and
  **Win**.
* `NMouseButton` - Specify the mouse button you want to
  use during the drag and drop operation. The following options are
  available: **Left**, **Right**, and **Middle**.
* `CusorMotionType` - Specifies the type of motion
  performed by the mouse cursor. There are two available options:
  + **Instant** - The cursor jumps to the destination. By
    default, **Instant** is selected.
  + **Smooth** - The cursor moves gradually towards the
    destination.
* `UseSourceHover` - Determines whether to hover
  over the source before dragging.
* `DelayBetweenActions` - Delay (in seconds) between
  the actions necessary to perform the drag and drop operation.

DragAndDrop(String, DragAndDropOptions)

ドラッグ アンド ドロップ操作をカスタマイズする際に、オブジェクト リポジトリの文字列によって識別された指定の UI 要素をドラッグ アンド ドロップします。

DragAndDrop(
    string target,
    DragAndDropOptions dragAndDropOptions)
DragAndDrop(
    string target,
    DragAndDropOptions dragAndDropOptions)

target String : ドラッグ アンド ドロップする UI 要素です。オブジェクト リポジトリの文字列によって識別されます。

dragAndDropOptions DragAndDropOptions : ドラッグ アンド ドロップ操作をカスタマイズするための追加のオプションです。以下をカスタマイズできます。

* `TargetOptions`:
  + **Timeout** - Specifies the amount of time (in
    seconds) to wait for the API to run before the
    `SelectorNotFoundException` error is
    thrown. The default value is 30 seconds.
  + **DelayAfter** - Delay time (in seconds) after
    executing the API. The default amount of time is 0.3 seconds
    (300 milliseconds).
  + **DelayBefore** - Delay time (in seconds) before the
    API begins performing any operations. The default amount of
    time is 0.2 seconds (200 milliseconds).
* `TargetAnchorableModel` - The location where you want
  to drag and drop the UI element to.
* `NKeyModifiers` - Specify the key modifiers you want
  to use during the drag and drop operation. The following options are
  available: **None**, **Alt**, **Ctrl**, **Shift**, and
  **Win**.
* `NMouseButton` - Specify the mouse button you want to
  use during the drag and drop operation. The following options are
  available: **Left**, **Right**, and **Middle**.
* `CusorMotionType` - Specifies the type of motion
  performed by the mouse cursor. There are two available options:
  + **Instant** - The cursor jumps to the destination. By
    default, **Instant** is selected.
  + **Smooth** - The cursor moves gradually towards the
    destination.
* `UseSourceHover` - Determines whether to hover
  over the source before dragging.
* `DelayBetweenActions` - Delay (in seconds) between
  the actions necessary to perform the drag and drop operation.
* `TargetOptions`:
  + **Timeout** - Specifies the amount of time (in
    seconds) to wait for the API to run before the
    `SelectorNotFoundException` error is
    thrown. The default value is 30 seconds.
  + **DelayAfter** - Delay time (in seconds) after
    executing the API. The default amount of time is 0.3 seconds
    (300 milliseconds).
  + **DelayBefore** - Delay time (in seconds) before the
    API begins performing any operations. The default amount of
    time is 0.2 seconds (200 milliseconds).
* `TargetAnchorableModel` - The location where you want
  to drag and drop the UI element to.
* `NKeyModifiers` - Specify the key modifiers you want
  to use during the drag and drop operation. The following options are
  available: **None**, **Alt**, **Ctrl**, **Shift**, and
  **Win**.
* `NMouseButton` - Specify the mouse button you want to
  use during the drag and drop operation. The following options are
  available: **Left**, **Right**, and **Middle**.
* `CusorMotionType` - Specifies the type of motion
  performed by the mouse cursor. There are two available options:
  + **Instant** - The cursor jumps to the destination. By
    default, **Instant** is selected.
  + **Smooth** - The cursor moves gradually towards the
    destination.
* `UseSourceHover` - Determines whether to hover
  over the source before dragging.
* `DelayBetweenActions` - Delay (in seconds) between
  the actions necessary to perform the drag and drop operation.

DragAndDrop(IElementDescriptor, TargetAnchorableModel, NKeyModifiers, NMouseButton, CursorMotionType, Boolean, Double)

オブジェクト リポジトリの要素の記述子と TargetAnchorableModel オブジェクトによって識別される指定の UI 要素を、使用するキー修飾子、マウス ボタン、カーソルの動きの種類を指定してドラッグ アンド ドロップします。

DragAndDrop(
    IElementDescriptor elementDescriptor,
    TargetAnchorableModel destinationTarget,
    [NKeyModifiers? keyModifiers],
    [NMouseButton? mouseButton],
    [CursorMotionType? cursorMotionType],
    [bool? useSourceHover],
    [double? delayBetweenActions])
DragAndDrop(
    IElementDescriptor elementDescriptor,
    TargetAnchorableModel destinationTarget,
    [NKeyModifiers? keyModifiers],
    [NMouseButton? mouseButton],
    [CursorMotionType? cursorMotionType],
    [bool? useSourceHover],
    [double? delayBetweenActions])

elementDescriptor IElementDescriptor : ドラッグ アンド ドロップする UI 要素です。オブジェクト リポジトリの要素の記述子によって識別されます。

destinationTarget TargetAnchorableModel : UI 要素のドラッグ アンド ドロップ先の場所です。

keyModifiers NKeyModifiers : ドラッグ アンド ドロップ操作時に使用するキー修飾子を指定します。使用できるオプションは、 なしAltCtrlShiftおよび Win です。

mouseButton NMouseButton : ドラッグ アンド ドロップ操作時に使用するマウス ボタンを指定します。使用できるオプションは、[左]、[]、[中央] です。

cursorMotionType CursorMotionType : マウスカーソルにより実行される動きの種類を指定します。次の 2 つの利用可能なオプションがあります。

* **Instant** - The cursor jumps to the destination. By default,
  **Instant** is selected.
* **Smooth** - The cursor moves gradually towards the
  destination.
* **Instant** - The cursor jumps to the destination. By default,
  **Instant** is selected.
* **Smooth** - The cursor moves gradually towards the
  destination.

useSourceHover Boolean : ドラッグする前にソース上でホバーするかどうかを決定します。

delayBetweenActions Double : ドラッグ アンド ドロップ操作を実行するために必要な、アクション間の待機時間 (秒単位) です。

DragAndDrop(String, TargetAnchorableModel, NKeyModifiers, NMouseButton, CursorMotionType, Boolean, Double)

オブジェクト リポジトリの文字列と TargetAnchorableModel オブジェクトによって識別された指定の UI 要素を、使用するキー修飾子、マウス ボタン、カーソルの動きの種類を指定してドラッグ アンド ドロップします。

DragAndDrop(
    string target,
    TargetAnchorableModel destinationTarget,
    [NKeyModifiers? keyModifiers],
    [NMouseButton? mouseButton],
    [CursorMotionType? cursorMotionType],
    [bool? useSourceHover],
    [double? delayBetweenActions])
DragAndDrop(
    string target,
    TargetAnchorableModel destinationTarget,
    [NKeyModifiers? keyModifiers],
    [NMouseButton? mouseButton],
    [CursorMotionType? cursorMotionType],
    [bool? useSourceHover],
    [double? delayBetweenActions])

target String : ドラッグ アンド ドロップする UI 要素です。オブジェクト リポジトリの文字列によって識別されます。

destinationTarget TargetAnchorableModel : UI 要素のドラッグ アンド ドロップ先の場所です。

keyModifiers NKeyModifiers : ドラッグ アンド ドロップ操作時に使用するキー修飾子を指定します。使用できるオプションは、 なしAltCtrlShiftおよび Win です。

mouseButton NMouseButton : ドラッグ アンド ドロップ操作時に使用するマウス ボタンを指定します。使用できるオプションは、[左]、[]、[中央] です。

cursorMotionType CursorMotionType : マウスカーソルにより実行される動きの種類を指定します。次の 2 つの利用可能なオプションがあります。

* **Instant** - The cursor jumps to the destination. By default,
  **Instant** is selected.
* **Smooth** - The cursor moves gradually towards the
  destination.
* **Instant** - The cursor jumps to the destination. By default,
  **Instant** is selected.
* **Smooth** - The cursor moves gradually towards the
  destination.

useSourceHover Boolean : ドラッグする前にソース上でホバーするかどうかを決定します。

delayBetweenActions Double : ドラッグ アンド ドロップ操作を実行するために必要な、アクション間の待機時間 (秒単位) です。

DragAndDrop(TargetAnchorableModel, DragAndDropOptions)

ドラッグ アンド ドロップ操作をカスタマイズする際に、TargetAnchorableModel オブジェクトによって識別された指定の UI 要素をドラッグ アンド ドロップします。

DragAndDrop(
    TargetAnchorableModel target,
    DragAndDropOptions dragAndDropOptions)
DragAndDrop(
    TargetAnchorableModel target,
    DragAndDropOptions dragAndDropOptions)

target TargetAnchorableModel : ドラッグ アンド ドロップする UI 要素です。 TargetAnchorableModel オブジェクトによって識別されます。

dragAndDropOptions DragAndDropOptions : ドラッグ アンド ドロップ操作をカスタマイズするための追加のオプションです。以下をカスタマイズできます。

* `TargetOptions`:
  + **Timeout** - Specifies the amount of time (in
    seconds) to wait for the API to run before the
    `SelectorNotFoundException` error is
    thrown. The default value is 30 seconds.
  + **DelayAfter** - Delay time (in seconds) after
    executing the API. The default amount of time is 0.3 seconds
    (300 milliseconds).
  + **DelayBefore** - Delay time (in seconds) before the
    API begins performing any operations. The default amount of
    time is 0.2 seconds (200 milliseconds).
* `TargetAnchorableModel` - The location where you want
  to drag and drop the UI element to.
* `NKeyModifiers` - Specify the key modifiers you want
  to use during the drag and drop operation. The following options are
  available: **None**, **Alt**, **Ctrl**, **Shift**, and
  **Win**.
* `NMouseButton` - Specify the mouse button you want to
  use during the drag and drop operation. The following options are
  available: **Left**, **Right**, and **Middle**.
* `CusorMotionType` - Specifies the type of motion
  performed by the mouse cursor. There are two available options:
  + **Instant** - The cursor jumps to the destination. By
    default, **Instant** is selected.
  + **Smooth** - The cursor moves gradually towards the
    destination.
* `UseSourceHover` - Determines whether to hover
  over the source before dragging.
* `DelayBetweenActions` - Delay (in seconds) between
  the actions necessary to perform the drag and drop operation.
* `TargetOptions`:
  + **Timeout** - Specifies the amount of time (in
    seconds) to wait for the API to run before the
    `SelectorNotFoundException` error is
    thrown. The default value is 30 seconds.
  + **DelayAfter** - Delay time (in seconds) after
    executing the API. The default amount of time is 0.3 seconds
    (300 milliseconds).
  + **DelayBefore** - Delay time (in seconds) before the
    API begins performing any operations. The default amount of
    time is 0.2 seconds (200 milliseconds).
* `TargetAnchorableModel` - The location where you want
  to drag and drop the UI element to.
* `NKeyModifiers` - Specify the key modifiers you want
  to use during the drag and drop operation. The following options are
  available: **None**, **Alt**, **Ctrl**, **Shift**, and
  **Win**.
* `NMouseButton` - Specify the mouse button you want to
  use during the drag and drop operation. The following options are
  available: **Left**, **Right**, and **Middle**.
* `CusorMotionType` - Specifies the type of motion
  performed by the mouse cursor. There are two available options:
  + **Instant** - The cursor jumps to the destination. By
    default, **Instant** is selected.
  + **Smooth** - The cursor moves gradually towards the
    destination.
* `UseSourceHover` - Determines whether to hover
  over the source before dragging.
* `DelayBetweenActions` - Delay (in seconds) between
  the actions necessary to perform the drag and drop operation.

DragAndDrop(RuntimeTarget, DragAndDropOptions)

ドラッグ アンド ドロップ操作をカスタマイズする際に、オブジェクト リポジトリ要素のランタイム インスタンスによって識別された指定の UI 要素をドラッグ アンド ドロップします。

DragAndDrop(
    RuntimeTarget target,
    DragAndDropOptions dragAndDropOptions)
DragAndDrop(
    RuntimeTarget target,
    DragAndDropOptions dragAndDropOptions)

target RuntimeTarget : ドラッグ アンド ドロップする UI 要素です。オブジェクト リポジトリ要素のランタイム インスタンスによって識別されます。

dragAndDropOptions DragAndDropOptions : ドラッグ アンド ドロップ操作をカスタマイズするための追加のオプションです。以下をカスタマイズできます。

* `TargetOptions`:
  + **Timeout** - Specifies the amount of time (in
    seconds) to wait for the API to run before the
    `SelectorNotFoundException` error is
    thrown. The default value is 30 seconds.
  + **DelayAfter** - Delay time (in seconds) after
    executing the API. The default amount of time is 0.3 seconds
    (300 milliseconds).
  + **DelayBefore** - Delay time (in seconds) before the
    API begins performing any operations. The default amount of
    time is 0.2 seconds (200 milliseconds).
* `TargetAnchorableModel` - The location where you want
  to drag and drop the UI element to.
* `NKeyModifiers` - Specify the key modifiers you want
  to use during the drag and drop operation. The following options are
  available: **None**, **Alt**, **Ctrl**, **Shift**, and
  **Win**.
* `NMouseButton` - Specify the mouse button you want to
  use during the drag and drop operation. The following options are
  available: **Left**, **Right**, and **Middle**.
* `CusorMotionType` - Specifies the type of motion
  performed by the mouse cursor. There are two available options:
  + **Instant** - The cursor jumps to the destination. By
    default, **Instant** is selected.
  + **Smooth** - The cursor moves gradually towards the
    destination.
* `UseSourceHover` - Determines whether to hover
  over the source before dragging.
* `DelayBetweenActions` - Delay (in seconds) between
  the actions necessary to perform the drag and drop operation.
* `TargetOptions`:
  + **Timeout** - Specifies the amount of time (in
    seconds) to wait for the API to run before the
    `SelectorNotFoundException` error is
    thrown. The default value is 30 seconds.
  + **DelayAfter** - Delay time (in seconds) after
    executing the API. The default amount of time is 0.3 seconds
    (300 milliseconds).
  + **DelayBefore** - Delay time (in seconds) before the
    API begins performing any operations. The default amount of
    time is 0.2 seconds (200 milliseconds).
* `TargetAnchorableModel` - The location where you want
  to drag and drop the UI element to.
* `NKeyModifiers` - Specify the key modifiers you want
  to use during the drag and drop operation. The following options are
  available: **None**, **Alt**, **Ctrl**, **Shift**, and
  **Win**.
* `NMouseButton` - Specify the mouse button you want to
  use during the drag and drop operation. The following options are
  available: **Left**, **Right**, and **Middle**.
* `CusorMotionType` - Specifies the type of motion
  performed by the mouse cursor. There are two available options:
  + **Instant** - The cursor jumps to the destination. By
    default, **Instant** is selected.
  + **Smooth** - The cursor moves gradually towards the
    destination.
* `UseSourceHover` - Determines whether to hover
  over the source before dragging.
* `DelayBetweenActions` - Delay (in seconds) between
  the actions necessary to perform the drag and drop operation.

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

接続

ヘルプ リソース サポート

学習する UiPath アカデミー

質問する UiPath フォーラム

最新情報を取得