다음을 통해 공유


IVsToolbox.DataUsed Method

Called by a designer to inform the Toolbox that the item has been pasted onto the form.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

‘선언
Function DataUsed As Integer
‘사용 방법
Dim instance As IVsToolbox
Dim returnValue As Integer

returnValue = instance.DataUsed()
int DataUsed()
int DataUsed()
abstract DataUsed : unit -> int 
function DataUsed() : int

Return Value

Type: System.Int32

Remarks

When a user selects a Toolbox item with the mouse and then moves the mouse over a form, the form needs to call the Toolbox to tell it to change the cursor to the drop cursor for the item using SetCursor. If the user clicks the form, then the form should get the current data for the Toolbox item, as it would for a drop operation. The form should then call DataUsed to inform the Toolbox that it should select the pointer item, rather than the Toolbox item that was currently selected. If sticky-state mode is specified (that is, the user has selected multiple Toolbox items using the CTRL key), then the Toolbox does not select the pointer item.

.NET Framework Security

See Also

Reference

IVsToolbox Interface

IVsToolbox Members

Microsoft.VisualStudio.Shell.Interop Namespace