IVsTextManager.GetMarkerTypeInterface(Int32, IVsTextMarkerType) Méthode

Définition

Mappe un ID numérique de type de marqueur à une interface qui peut être utilisée pour détecter des informations spécifiques.

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

Paramètres

iMarkerTypeID
Int32

[in] ID du type de marqueur, tel que dans GetType(Int32).

ppMarkerType
IVsTextMarkerType

à Pointeur vers l' IVsTextMarkerType interface, qui a été référencée avec AddReference.

Retours

Int32

Si la méthode réussit, retourne S_OK. En cas d'échec, retourne un code d'erreur.

Remarques

Signature COM

À partir de textmgr. idl :

HRESULT IVsTextManager::GetMarkerTypeInterface(  
   [in] long iMarkerTypeID,  
   [out] IVsTextMarkerType **ppMarkerType  
);  

Utilisez cette interface pour dessiner un glyphe de marqueur dans votre propre interface utilisateur.

S’applique à