DragUIOverride 類別

定義

提供拖放作業期間所拖曳資料的視覺標記法,包括來自置放目標的意見反應。

public ref class DragUIOverride sealed
/// [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 DragUIOverride final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class DragUIOverride final
[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 DragUIOverride
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class DragUIOverride
Public NotInheritable Class DragUIOverride
繼承
Object Platform::Object IInspectable DragUIOverride
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

這個類別的實例會傳遞至DragEventArgs.DragUIOverride屬性中的DragEventHandler委派。

屬性

Caption

取得或設定重迭拖曳視覺效果的標題文字。 文字通常會描述拖放動作。

IsCaptionVisible

取得或設定值,這個值表示是否顯示標題文字。

IsContentVisible

取得或設定值,這個值表示是否顯示拖曳視覺效果的內容。

IsGlyphVisible

取得或設定值,這個值表示是否顯示圖像。

方法

Clear()

清除拖曳視覺效果的內容、標題和圖像。

SetContentFromBitmapImage(BitmapImage)

從提供的 BitmapImage 建立視覺化專案,以代表拖放作業中的拖曳資料。

SetContentFromBitmapImage(BitmapImage, Point)

從提供的 BitmapImage 建立視覺化專案,以代表拖放作業中的拖曳資料,並從指標設定視覺效果的相對位置。

SetContentFromSoftwareBitmap(SoftwareBitmap)

從提供的 SoftwareBitmap 建立視覺化專案,以代表拖放作業中的拖曳資料。

SetContentFromSoftwareBitmap(SoftwareBitmap, Point)

從提供的 SoftwareBitmap 建立視覺化專案,以代表拖放作業中的拖曳資料,並從指標設定視覺效果的相對位置。

適用於

另請參閱