Share via


IVsTextManager.GetMarkerTypeInterface(Int32, IVsTextMarkerType) Method

Definition

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

public:
 int GetMarkerTypeInterface(int iMarkerTypeID, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsTextMarkerType ^ % ppMarkerType);
public:
 int GetMarkerTypeInterface(int iMarkerTypeID, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsTextMarkerType ^ &  ppMarkerType);
int GetMarkerTypeInterface(int iMarkerTypeID, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsTextMarkerType const & & ppMarkerType);
public int GetMarkerTypeInterface (int iMarkerTypeID, out Microsoft.VisualStudio.TextManager.Interop.IVsTextMarkerType ppMarkerType);
abstract member GetMarkerTypeInterface : int * IVsTextMarkerType -> int
Public Function GetMarkerTypeInterface (iMarkerTypeID As Integer, ByRef ppMarkerType As IVsTextMarkerType) As Integer

Parameters

iMarkerTypeID
Int32

[in] The marker type ID, such as from GetType(Int32).

ppMarkerType
IVsTextMarkerType

[out] Pointer to the IVsTextMarkerType interface, which has been referenced with AddReference.

Returns

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.

Applies to