共用方式為


DragOperation 類別

定義

管理整體拖放作業。

public ref class DragOperation sealed : IClosable
/// [Windows.Foundation.Metadata.Activatable(65540, "Microsoft.Foundation.WindowsAppSDKContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65540)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class DragOperation final : IClosable
[Windows.Foundation.Metadata.Activatable(65540, "Microsoft.Foundation.WindowsAppSDKContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65540)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class DragOperation : System.IDisposable
function DragOperation()
Public NotInheritable Class DragOperation
Implements IDisposable
繼承
Object Platform::Object IInspectable DragOperation
屬性
實作

建構函式

DragOperation()

初始化 DragOperation 類別的新執行個體。

屬性

AllowedOperations

取得或設定要對要拖曳之內容執行的零個或多個動作的位元組合。

Data

取得拖放作業中要交換的內容。

DragUIContentMode

取得或設定在拖曳物件時如何提供 UI 視覺效果。

方法

Close()

釋放 所使用的 DragOperation 系統資源。

Dispose()

執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。

SetDragUIContentFromSoftwareBitmap(SoftwareBitmap)

指定在拖放作業期間,指定的點陣圖影像應該當做自訂拖曳視覺效果使用。

SetDragUIContentFromSoftwareBitmap(SoftwareBitmap, Point)

指定在拖放作業期間,指定的點陣圖影像應該當做自訂拖曳視覺效果 (顯示在輸入指標的指定位移) 。

StartAsync(DragDropManager, PointerPoint)

使用指定的輸入指標,啟動指定 DragDropManager 之 的拖放作業。

適用於