CoreDragOperation 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
處理拖放作業。
public ref class CoreDragOperation sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class CoreDragOperation final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class CoreDragOperation final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class CoreDragOperation
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class CoreDragOperation
Public NotInheritable Class CoreDragOperation
- 繼承
- 屬性
Windows 需求
裝置系列 |
Windows 10 (已於 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox 引進)
|
API contract |
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)
|
備註
版本歷程記錄
Windows 版本 | SDK 版本 | 新增值 |
---|---|---|
1511 | 10586 | AllowedOperations |
建構函式
CoreDragOperation() |
初始化 CoreDragOperation 類別的新實例。 |
屬性
AllowedOperations |
取得或設定拖放作業的允許 DataPackageOperations (無、移動、複製和/或連結) 。 |
Data |
取得拖放作業的 DataPackage 。 |
DragUIContentMode |
取得或設定拖曳 UI 的內容模式。 |
方法
SetDragUIContentFromSoftwareBitmap(SoftwareBitmap, Point) |
使用軟體點陣圖設定自訂拖曳 UI 內容。 |
SetDragUIContentFromSoftwareBitmap(SoftwareBitmap) |
使用軟體點陣圖設定自訂拖曳 UI 內容。 |
SetPointerId(UInt32) |
設定指標識別碼。 |
StartAsync() |
啟動拖放作業。 |