IVsPackageDefinedTextMarkerType.GetBehaviorFlags(UInt32) Method

Definition

Controls how the marker tracks text when edits occur.

public:
 int GetBehaviorFlags([Runtime::InteropServices::Out] System::UInt32 % pdwFlags);
int GetBehaviorFlags([Runtime::InteropServices::Out] unsigned int & pdwFlags);
public int GetBehaviorFlags (out uint pdwFlags);
abstract member GetBehaviorFlags : uint32 -> int
Public Function GetBehaviorFlags (ByRef pdwFlags As UInteger) As Integer

Parameters

pdwFlags
UInt32

[out] Pointer to flags specifying how the marker tracks text when edits occur. For a list of pdwFlags values, see MARKERBEHAVIORFLAGS.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsPackageDefinedTextMarkerType::GetBehaviorFlags(  
  [out] DWORD *pdwFlags  
);  

In general, specify a value of MB_DEFAULT for the pdwFlags parameter. If you want your marker to always snap to the current line, you can specify a value of MB_LINESPAN. MB_LINESPAN is an entirely perpendicular setting to MV_LINE, which controls visual appearance.

Applies to