IVsTextLines.EnumMarkers, méthode

Énumère un jeu défini des marques de ligne de texte, selon les critères spécifiés.

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

Syntaxe

'Déclaration
Function EnumMarkers ( _
    iStartLine As Integer, _
    iStartIndex As Integer, _
    iEndLine As Integer, _
    iEndIndex As Integer, _
    iMarkerType As Integer, _
    dwFlags As UInteger, _
    <OutAttribute> ByRef ppEnum As IVsEnumLineMarkers _
) As Integer
int EnumMarkers(
    int iStartLine,
    int iStartIndex,
    int iEndLine,
    int iEndIndex,
    int iMarkerType,
    uint dwFlags,
    out IVsEnumLineMarkers ppEnum
)
int EnumMarkers(
    [InAttribute] int iStartLine, 
    [InAttribute] int iStartIndex, 
    [InAttribute] int iEndLine, 
    [InAttribute] int iEndIndex, 
    [InAttribute] int iMarkerType, 
    [InAttribute] unsigned int dwFlags, 
    [OutAttribute] IVsEnumLineMarkers^% ppEnum
)
abstract EnumMarkers : 
        iStartLine:int * 
        iStartIndex:int * 
        iEndLine:int * 
        iEndIndex:int * 
        iMarkerType:int * 
        dwFlags:uint32 * 
        ppEnum:IVsEnumLineMarkers byref -> int
function EnumMarkers(
    iStartLine : int, 
    iStartIndex : int, 
    iEndLine : int, 
    iEndIndex : int, 
    iMarkerType : int, 
    dwFlags : uint, 
    ppEnum : IVsEnumLineMarkers
) : int

Paramètres

  • iStartLine
    Type : Int32

    [in] à partir de la ligne.

  • iStartIndex
    Type : Int32

    [in] démarrant l'index de caractère dans la ligne. Doit être inférieur ou égal à la longueur de la ligne.

  • iEndLine
    Type : Int32

    [in] terminant la ligne.

  • iEndIndex
    Type : Int32

    [in] index de caractère de fin dans la ligne. Doit être inférieur ou égal à la longueur de la ligne.

  • iMarkerType
    Type : Int32

    [in] ce paramètre est ignoré si une valeur d'EM_ALLTYPES est spécifiée pour le paramètre d'dwFlags. Sinon, ce paramètre indique le type de marqueur pour le rechercher.

  • dwFlags
    Type : UInt32

    [in] options d'énumération. Pour une liste de valeurs d'dwFlags, consultez l'ENUMMARKERFLAGS.

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 IVsTextLines::EnumMarkers(
   [in] long iStartLine,
   [in] CharIndex iStartIndex,
   [in] long iEndLine,
   [in] CharIndex iEndIndex,
   [in] long iMarkerType,
   [in] DWORD dwFlags,
   [out] IVsEnumLineMarkers ** ppEnum
);

Cette méthode énumère les marques sur d'une zone donnée, en fonction de la valeur du paramètre d'dwFlags. IVsTextLines.EnumMarkers énumère toutes les marques, mais obtient leur interface d'IVsTextLineMarker par l'intermédiaire de l'interface d'IVsEnumLineMarkers.

Sécurité .NET Framework

Voir aussi

Référence

IVsTextLines Interface

Microsoft.VisualStudio.TextManager.Interop, espace de noms