Share via


IVsTextMarkerType.GetPriorityIndex, méthode

Retourne l'index de priorité pour le type de marqueur personnalisé, avec la valeur la plus élevée recevant le positionnement le plus élevé.

Espace de noms :  Microsoft.VisualStudio.TextManager.Interop
Assembly :  Microsoft.VisualStudio.TextManager.Interop (dans Microsoft.VisualStudio.TextManager.Interop.dll)

Syntaxe

'Déclaration
Function GetPriorityIndex ( _
    <OutAttribute> ByRef piPriorityIndex As Integer _
) As Integer
int GetPriorityIndex(
    out int piPriorityIndex
)
int GetPriorityIndex(
    [OutAttribute] int% piPriorityIndex
)
abstract GetPriorityIndex : 
        piPriorityIndex:int byref -> int
function GetPriorityIndex(
    piPriorityIndex : int
) : int

Paramètres

  • piPriorityIndex
    Type : Int32%

    [out] pointeur à l'index de priorité pour le type de marqueur de texte. Pour une liste de valeurs d'piPriorityIndex, consultez l'MARKERTYPE.

Valeur de retour

Type : Int32
Si la méthode réussit, elle retourne S_OK.En cas d'échec, un code d'erreur est retourné.

Notes

Signature de COM

De textmgr.idl :

HRESULT IVsTextMarkerType::GetPriorityIndex(
   [out] long *piPriorityIndex
);

Utilisez cette méthode pour déterminer un niveau de priorité pour votre type de marqueur personnalisé. Tous les types de marqueur instrumentés d'éditeur de texte du cœur de Visual Studio ont des priorités par défaut associées avec elles. La priorité d'un type de marqueur est utilisée pour déterminer comment le type de marqueur est géré pour des commandes, et ainsi de suite.

Sécurité .NET Framework

Voir aussi

Référence

IVsTextMarkerType Interface

Microsoft.VisualStudio.TextManager.Interop, espace de noms