CoreDragUIOverride.SetContentFromSoftwareBitmap 方法

定義

多載

SetContentFromSoftwareBitmap(SoftwareBitmap)

使用軟體點陣圖設定自訂拖曳 UI 內容。

SetContentFromSoftwareBitmap(SoftwareBitmap, Point)

使用軟體點陣圖設定自訂拖曳 UI 內容。

SetContentFromSoftwareBitmap(SoftwareBitmap)

使用軟體點陣圖設定自訂拖曳 UI 內容。

public:
 virtual void SetContentFromSoftwareBitmap(SoftwareBitmap ^ softwareBitmap) = SetContentFromSoftwareBitmap;
/// [Windows.Foundation.Metadata.Overload("SetContentFromSoftwareBitmap")]
void SetContentFromSoftwareBitmap(SoftwareBitmap const& softwareBitmap);
[Windows.Foundation.Metadata.Overload("SetContentFromSoftwareBitmap")]
public void SetContentFromSoftwareBitmap(SoftwareBitmap softwareBitmap);
function setContentFromSoftwareBitmap(softwareBitmap)
Public Sub SetContentFromSoftwareBitmap (softwareBitmap As SoftwareBitmap)

參數

softwareBitmap
SoftwareBitmap

自訂拖曳 UI 內容。

屬性

另請參閱

適用於

SetContentFromSoftwareBitmap(SoftwareBitmap, Point)

使用軟體點陣圖設定自訂拖曳 UI 內容。

public:
 virtual void SetContentFromSoftwareBitmap(SoftwareBitmap ^ softwareBitmap, Point anchorPoint) = SetContentFromSoftwareBitmap;
/// [Windows.Foundation.Metadata.Overload("SetContentFromSoftwareBitmapWithAnchorPoint")]
void SetContentFromSoftwareBitmap(SoftwareBitmap const& softwareBitmap, Point const& anchorPoint);
[Windows.Foundation.Metadata.Overload("SetContentFromSoftwareBitmapWithAnchorPoint")]
public void SetContentFromSoftwareBitmap(SoftwareBitmap softwareBitmap, Point anchorPoint);
function setContentFromSoftwareBitmap(softwareBitmap, anchorPoint)
Public Sub SetContentFromSoftwareBitmap (softwareBitmap As SoftwareBitmap, anchorPoint As Point)

參數

softwareBitmap
SoftwareBitmap

自訂 UI 拖曳內容。

anchorPoint
Point

從指標拖曳視覺效果的相對位置。 錨點不能不在內容之外。 例如,如果錨點 (50、50) 且指標的位置是 (x、y) ,視覺效果的左上角將會 (x - 50、y - 50) 。

屬性

另請參閱

適用於