IVsTextMarkerGlyphDropHandler Interface
TOC
Collapse the table of content
Expand the table of content

IVsTextMarkerGlyphDropHandler Interface

 

A handler provided for markers whose glyphs (an icon indicating the position of a marker) support drag and drop.

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

[InterfaceTypeAttribute(1)]
[GuidAttribute("1E220776-3C20-46E9-A691-DE549C295E26")]
public interface IVsTextMarkerGlyphDropHandler

NameDescription
System_CAPS_pubmethodDrawCandidateOutlineGlyph(UInt32, IntPtr, RECT[], UInt32)

Draws a shadow of the glyph in the widget margin at a potential destination line.

System_CAPS_pubmethodDropAtLocation(UInt32, IVsTextView, IVsTextLines, Int32, Int32, UInt32)

Tells the client to handle the glyph being dropped at the given location.

System_CAPS_pubmethodQueryDropLocation(UInt32, IVsTextView, IVsTextLines, Int32, Int32, UInt32)

Used to determine whether a given location is a valid drop destination.

A text view calls QueryInterface on a text marker's IVsTextMarkerClient interface for those interfaces needed to handle mouse cursor and drag and drop operations.

To handle drag and drop operations, the environment performs calls QueryInterface on IVsTextMarkerClientto obtain the underlying object's IVsTextMarkerGlyphDropHandler interface.

The object implementing IVsTextMarkerClient should also implement IVsMouseCursorProvider to handle mouse cursor updates.

Notes to Implementers:

Implement on the class implementing IVsTextMarkerClient: text marker client object. When MV_DRAGGABLE_GLYPH is specified, the environment will call QueryInterface on the text marker client for the IVsTextMarkerGlyphDropHandler interface when a drag and drop is underway.

Return to top
Show:
© 2016 Microsoft