次の方法で共有


IVsTextManager.GetMarkerTypeInterface Method

Maps a numeric marker type ID to an interface that can be used to probe for specific information.

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

Syntax

'宣言
Function GetMarkerTypeInterface ( _
    iMarkerTypeID As Integer, _
    <OutAttribute> ByRef ppMarkerType As IVsTextMarkerType _
) As Integer
'使用
Dim instance As IVsTextManager
Dim iMarkerTypeID As Integer
Dim ppMarkerType As IVsTextMarkerType
Dim returnValue As Integer

returnValue = instance.GetMarkerTypeInterface(iMarkerTypeID, _
    ppMarkerType)
int GetMarkerTypeInterface(
    int iMarkerTypeID,
    out IVsTextMarkerType ppMarkerType
)
int GetMarkerTypeInterface(
    [InAttribute] int iMarkerTypeID, 
    [OutAttribute] IVsTextMarkerType^% ppMarkerType
)
function GetMarkerTypeInterface(
    iMarkerTypeID : int, 
    ppMarkerType : IVsTextMarkerType
) : int

Parameters

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 IVsTextManager::GetMarkerTypeInterface(
   [in] long iMarkerTypeID,
   [out] IVsTextMarkerType **ppMarkerType
);

Use this interface to draw a marker glyph in your own user interface.

Permissions

See Also

Reference

IVsTextManager Interface

IVsTextManager Members

Microsoft.VisualStudio.TextManager.Interop Namespace