다음을 통해 공유


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)

Syntax

‘선언
<InterfaceTypeAttribute()> _
<GuidAttribute("1E220776-3C20-46E9-A691-DE549C295E26")> _
Public Interface IVsTextMarkerGlyphDropHandler
[InterfaceTypeAttribute()]
[GuidAttribute("1E220776-3C20-46E9-A691-DE549C295E26")]
public interface IVsTextMarkerGlyphDropHandler
[InterfaceTypeAttribute()]
[GuidAttribute(L"1E220776-3C20-46E9-A691-DE549C295E26")]
public interface class IVsTextMarkerGlyphDropHandler
[<InterfaceTypeAttribute()>]
[<GuidAttribute("1E220776-3C20-46E9-A691-DE549C295E26")>]
type IVsTextMarkerGlyphDropHandler =  interface end
public interface IVsTextMarkerGlyphDropHandler

The IVsTextMarkerGlyphDropHandler type exposes the following members.

Methods

  Name Description
Public method DrawCandidateOutlineGlyph Draws a shadow of the glyph in the widget margin at a potential destination line.
Public method DropAtLocation Tells the client to handle the glyph being dropped at the given location.
Public method QueryDropLocation Used to determine whether a given location is a valid drop destination.

Top

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.

See Also

Reference

Microsoft.VisualStudio.TextManager.Interop Namespace