Compartilhar via


MARKERBEHAVIORFLAGS Enumeration

Provides flags that specify marker behavior.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

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

Syntax

'Declaração
<FlagsAttribute> _
Public Enumeration MARKERBEHAVIORFLAGS
[FlagsAttribute]
public enum MARKERBEHAVIORFLAGS
[FlagsAttribute]
public enum class MARKERBEHAVIORFLAGS
[<FlagsAttribute>]
type MARKERBEHAVIORFLAGS
public enum MARKERBEHAVIORFLAGS

Members

Member name Description
MB_DEFAULT Default stream behavior.
MB_LINESPAN Marker always adjusts itself to span only one line at a time.
MB_LEFTEDGE_LEFTTRACK If edits occur on the left edge of the marker, then the marker tracks to the left.
MB_RIGHTEDGE_RIGHTTRACK If edits occur on the right edge of the marker, then the marker tracks to the right.
MB_MULTILINESPAN Marker can span multiple lines.
MB_TRACK_EDIT_ON_RELOAD Forces the marker to track every edit as a replace, ignoring any reload semantics. Do not use this value unless you have markers that need to guarantee that they are tracking in response to OnChangeLineText.

Remarks

When ReloadLines is called, the environment does not send event notification (OnChangeLineText) to inform markers of changes to the underlying text. Generally, markers are only notified of text changes when ReplaceLines is called. However, if a value of MB_TRACK_EDIT_ON_RELOAD is specified, then the environment notifies the marker that the text underneath the marker has changed.

COM Signature

From textmgr.idl:

See Also

Reference

Microsoft.VisualStudio.TextManager.Interop Namespace