次の方法で共有


IVsLanguageDragDropOps.DragCleanup(IVsTextLines) Method

Definition

Cleans up any state that was cached in the call to DragSetup(IDataObject, IVsTextLines, Int32).

public:
 int DragCleanup(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pBuffer);
public:
 int DragCleanup(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pBuffer);
int DragCleanup(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines const & pBuffer);
public int DragCleanup (Microsoft.VisualStudio.TextManager.Interop.IVsTextLines pBuffer);
abstract member DragCleanup : Microsoft.VisualStudio.TextManager.Interop.IVsTextLines -> int
Public Function DragCleanup (pBuffer As IVsTextLines) As Integer

Parameters

pBuffer
IVsTextLines

The text buffer.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

If DragSetup was called, then this method must be called when the drag operation is completed, in other words, when the user performs a drop, the user cancels the Drag/Drop operation, or the mouse leaves the text editor window.

Applies to