Share via


IVsTextMarkerGlyphDropHandler Interface

Definition

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

public interface class IVsTextMarkerGlyphDropHandler
public interface class IVsTextMarkerGlyphDropHandler
__interface IVsTextMarkerGlyphDropHandler
[System.Runtime.InteropServices.ComConversionLoss]
[System.Runtime.InteropServices.Guid("1E220776-3C20-46E9-A691-DE549C295E26")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsTextMarkerGlyphDropHandler
[System.Runtime.InteropServices.ComConversionLoss]
[System.Runtime.InteropServices.Guid("1E220776-3C20-46E9-A691-DE549C295E26")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsTextMarkerGlyphDropHandler
[<System.Runtime.InteropServices.ComConversionLoss>]
[<System.Runtime.InteropServices.Guid("1E220776-3C20-46E9-A691-DE549C295E26")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsTextMarkerGlyphDropHandler = interface
[<System.Runtime.InteropServices.ComConversionLoss>]
[<System.Runtime.InteropServices.Guid("1E220776-3C20-46E9-A691-DE549C295E26")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsTextMarkerGlyphDropHandler = interface
Public Interface IVsTextMarkerGlyphDropHandler
Attributes

Remarks

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.

Methods

DrawCandidateOutlineGlyph(UInt32, IntPtr, RECT[], UInt32)

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

DropAtLocation(UInt32, IVsTextView, IVsTextLines, Int32, Int32, UInt32)

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

QueryDropLocation(UInt32, IVsTextView, IVsTextLines, Int32, Int32, UInt32)

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

Applies to