MARKERBEHAVIORFLAGS Enumeration
TOC
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

MARKERBEHAVIORFLAGS Enumeration

Provides flags that specify marker behavior.

Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in microsoft.visualstudio.textmanager.interop.dll)

[FlagsAttribute] 
public enum MARKERBEHAVIORFLAGS
/** @attribute FlagsAttribute() */ 
public enum MARKERBEHAVIORFLAGS
FlagsAttribute 
public enum MARKERBEHAVIORFLAGS

 Member nameDescription
MB_DEFAULTDefault stream behavior. 
MB_LEFTEDGE_LEFTTRACKIf edits occur on the left edge of the marker, then the marker tracks to the left. 
MB_LINESPANMarker always adjusts itself to span only one line at a time. 
MB_MULTILINESPANMarker can span multiple lines. 
MB_RIGHTEDGE_RIGHTTRACKIf edits occur on the right edge of the marker, then the marker tracks to the right. 
MB_TRACK_EDIT_ON_RELOADForces 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

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:

Show:
© 2016 Microsoft