다음을 통해 공유


IVsPackageDefinedTextMarkerType.GetBehaviorFlags Method

Controls how the marker tracks text when edits occur.

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

Syntax

‘선언
Function GetBehaviorFlags ( _
    <OutAttribute> ByRef pdwFlags As UInteger _
) As Integer
‘사용 방법
Dim instance As IVsPackageDefinedTextMarkerType
Dim pdwFlags As UInteger
Dim returnValue As Integer

returnValue = instance.GetBehaviorFlags(pdwFlags)
int GetBehaviorFlags(
    out uint pdwFlags
)
int GetBehaviorFlags(
    [OutAttribute] unsigned int% pdwFlags
)
abstract GetBehaviorFlags : 
        pdwFlags:uint32 byref -> int 
function GetBehaviorFlags(
    pdwFlags : uint
) : int

Parameters

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

Return Value

Type: System.Int32
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.

.NET Framework Security

See Also

Reference

IVsPackageDefinedTextMarkerType Interface

IVsPackageDefinedTextMarkerType Members

Microsoft.VisualStudio.TextManager.Interop Namespace