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

Member nameDescription
MB_DEFAULT

Default stream behavior.

MB_LEFTEDGE_LEFTTRACK

If edits occur on the left edge of the marker, then the marker tracks to the left.

MB_LINESPAN

Marker always adjusts itself to span only one line at a time.

MB_MULTILINESPAN

Marker can span multiple lines.

MB_RIGHTEDGE_RIGHTTRACK

If edits occur on the right edge of the marker, then the marker tracks to the right.

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.

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.

From textmgr.idl:

Return to top
Show: