Partager via


IVsTextLineMarker.GetMarkerCommandInfo, méthode

Retourne les informations d'ordre de marqueur de texte.

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

Syntaxe

'Déclaration
Function GetMarkerCommandInfo ( _
    iItem As Integer, _
    <OutAttribute> pbstrText As String(), _
    <OutAttribute> pcmdf As UInteger() _
) As Integer
int GetMarkerCommandInfo(
    int iItem,
    string[] pbstrText,
    uint[] pcmdf
)
int GetMarkerCommandInfo(
    [InAttribute] int iItem, 
    [OutAttribute] array<String^>^ pbstrText, 
    [OutAttribute] array<unsigned int>^ pcmdf
)
abstract GetMarkerCommandInfo : 
        iItem:int * 
        pbstrText:string[] byref * 
        pcmdf:uint32[] byref -> int
function GetMarkerCommandInfo(
    iItem : int, 
    pbstrText : String[], 
    pcmdf : uint[]
) : int

Paramètres

  • iItem
    Type : Int32

    [in] entier identifiant le numéro d'élément pour la commande de menu contextuel d'un type de marqueur. Les valeurs sont comprises en général de 0 à 9, mais le type de marqueur peut également prendre en charge les valeurs de commande 101 à 103. Pour plus d'informations sur ces valeurs de commande, consultez l'MarkerCommandValues.

  • pbstrText
    Type : array<String[]

    [out] pointeur à une chaîne identifiant le texte de la commande de type de marqueur pour le menu contextuel.

  • pcmdf
    Type : array<UInt32[]

    [] spécifie des balises de commande.

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 IVsTextLineMarker::GetMarkerCommandInfo(
   [in] long iItem,
   [out, custom(uuid_IVsTextMarker, "optional")] BSTR * pbstrText,
   [out] DWORD* pcmdf
);

Utilisez cette méthode pour retourner les informations de commande associées avec un type de marqueur donné. Utilisez ExecMarkerCommand pour exécuter la commande sur le type de marqueur.

Sécurité .NET Framework

Voir aussi

Référence

IVsTextLineMarker Interface

Microsoft.VisualStudio.TextManager.Interop, espace de noms