IVsTextMarkerType Interface


Provides a uniform mechanism for obtaining information about a given text marker type, whether predefined by the editor or registered by a package.

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

public interface IVsTextMarkerType

System_CAPS_pubmethodDrawGlyph(IntPtr, RECT[])

Determines where a custom marker glyph can be drawn in the widget margin.

System_CAPS_pubmethodDrawGlyphEx(UInt32, IntPtr, RECT[], Int32)

Draws a glyph in the widget margin given a display device context and a bounding rectangle.


Returns marker behavior flags, which define the default marker behavior.

System_CAPS_pubmethodGetDefaultColors(COLORINDEX[], COLORINDEX[])

Returns the default foreground and background colors for a marker.

System_CAPS_pubmethodGetDefaultLineStyle(COLORINDEX[], LINESTYLE[])

Returns the default line attributes for a custom marker type.


Returns the display name of the custom marker type.


Returns the priority index for the custom marker type, with the highest priority value receiving the topmost placement.


Returns the appearance, location, and coloring of a custom marker type.

Implement IVsTextMarkerType to provide information about the behavior for a custom marker type.

Notes to Implementers:

Implemented by a VSPackage to provide a custom marker type.

Return to top