Compartilhar via


MARKERVISUAL Enum

Definition

Determines the visual style of the marker.

public enum class MARKERVISUAL
public enum class MARKERVISUAL
enum MARKERVISUAL
public enum MARKERVISUAL
type MARKERVISUAL = 
Public Enum MARKERVISUAL
Inheritance
MARKERVISUAL

Fields

Name Value Description
MV_GLYPH 1

Can show a glyph in the widget margin. This indicates that you want to draw a margin glyph. Draw the glyph using DrawGlyphWithColors(IntPtr, RECT[], Int32, IVsTextMarkerColorSet, UInt32, Int32). If the widget margin does not exist, depending on the window and on the user's preferences, then the glyph is not visible.

MV_COLOR_ALWAYS 2

Indicates that the marked text should always be colored inline. This option is exclusive of the MV_COLOR_LINE_IF_NO_MARGIN option.

MV_COLOR_LINE_IF_NO_MARGIN 4

Indicates that the marked text should be colored only if the widget margin is hidden. This option is exclusive of the MV_COLOR_ALWAYS option.

MV_LINE 8

Marker is only a line adornment and does not otherwise affect coloring. Thus, the marker is some form of underline style. Currently, the only supported form of this is a wavy line.

MV_TIP_FOR_BODY 16

Determines whether a tip should be shown for the body of the marker text. The MV_TIP_FOR_BODY and MV_TIP_FOR_GLYPH options are dependant on one another. If this value is set, marked text will trigger a tool tip over the body or glyph. However, as the marker type provider, you are not allowed to specify what text shows up. This is handled by the GetTipText(IVsTextMarker, String[])handler of whoever created the given marker instance.

MV_TIP_FOR_GLYPH 32

Determines whether a tip should be shown in the widget margin.

MV_SEL_MARGIN_GLYPH 64

Similar to MV_GLYPH, but indicates that the glyph lives in the selection margin, not the normal widget margin.

MV_FORCE_INVISIBLE 128

Forces the marker to be invisible. Use this setting to toggle a marker between being visible and invisible, which is faster than using SetType(Int32).

MV_BORDER 256

Indicates that a box is drawn around the marked text. The border is not necessarily a square in the case of a multi-line marker. You can specify either a solid or dashed line. For more information, refer to the GetDefaultLineStyle(COLORINDEX[], LINESTYLE[]) method.

MV_GLYPH_HOVER_CURSOR 512

Indicates that the client has requested a callback (via their client interface) to set the mouse cursor when the user hovers the mouse over the glyph.

MV_DRAGGABLE_GLYPH 1024

Indicates that a glyph can take part in drag and drop operations. In addition to MV_DRAGGABLE_GLYPH, a marker that allows dragging should also specify MV_GLYPH_HOVER_CURSOR, so that the editor knows to provide a custom cursor for the mouse when it passes over the glyph. These visual styles can either be set for the marker type (if all markers of the given type have the same behavior) or for a given marker instance. The text view negotiates the hover cursor and drag initiation by calling QueryInterface on the marker client provided (IVsTextMarkerClient). The client object should implement IVsMouseCursorProvider to handle mouse cursor updates for MV_GLYPH_HOVER_CURSOR and IVsTextMarkerGlyphDropHandler to handle drop negotiation.

MV_MULTILINE_GLYPH 2048

Indicates that a glyph spans multiple lines. This enables the drawing of multi-line glyphs. If you specify this flag, your IDrawGlyphWithColors(IntPtr, RECT[], Int32, IVsTextMarkerColorSet, UInt32, Int32) handler is called with the GDF_MULTILINE flag, and often with GDF_BOTTOMEDGE, depending on the scenario.

MV_CONTEXT_CONTRIBUTION_FOR_BODY 4096

Indicates that the body of a marker wants to contribute context, and thus its client can be queried for IVsUserContextUpdate.

MV_COLOR_SPAN_IF_ZERO_LENGTH 8192

Indicates that a marker should paint as a solid bar if the text span is of zero length. This setting should not be used for markers such as wavy lines, because the line will appear only as a solid bar.

Remarks

COM Signature

From textmgr.idl:

Applies to