IVsTextLines.FindMarkerByLineIndex, méthode
Localise une marque d'un type donné selon un index de ligne.
Espace de noms : Microsoft.VisualStudio.TextManager.Interop
Assembly : Microsoft.VisualStudio.TextManager.Interop (dans Microsoft.VisualStudio.TextManager.Interop.dll)
Syntaxe
'Déclaration
Function FindMarkerByLineIndex ( _
iMarkerType As Integer, _
iStartingLine As Integer, _
iStartingIndex As Integer, _
dwFlags As UInteger, _
<OutAttribute> ByRef ppMarker As IVsTextLineMarker _
) As Integer
int FindMarkerByLineIndex(
int iMarkerType,
int iStartingLine,
int iStartingIndex,
uint dwFlags,
out IVsTextLineMarker ppMarker
)
int FindMarkerByLineIndex(
[InAttribute] int iMarkerType,
[InAttribute] int iStartingLine,
[InAttribute] int iStartingIndex,
[InAttribute] unsigned int dwFlags,
[OutAttribute] IVsTextLineMarker^% ppMarker
)
abstract FindMarkerByLineIndex :
iMarkerType:int *
iStartingLine:int *
iStartingIndex:int *
dwFlags:uint32 *
ppMarker:IVsTextLineMarker byref -> int
function FindMarkerByLineIndex(
iMarkerType : int,
iStartingLine : int,
iStartingIndex : int,
dwFlags : uint,
ppMarker : IVsTextLineMarker
) : int
Paramètres
iMarkerType
Type : Int32[in] spécifie le type de marque pour le rechercher.
iStartingLine
Type : Int32[in] à partir de la ligne.
iStartingIndex
Type : Int32[in] démarrant l'index de caractère dans la ligne. Doit être inférieur ou égal à la longueur de la ligne.
dwFlags
Type : UInt32[in] spécifie la direction pour rechercher la marque. Pour une liste de valeurs d'dwFlags, consultez l'FINDMARKERFLAGS.
ppMarker
Type : Microsoft.VisualStudio.TextManager.Interop.IVsTextLineMarker%[out] pointeur à l'interface d'IVsTextLineMarker (autrement dit, le marqueur de texte).
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::FindMarkerByLineIndex(
[in] long iMarkerType,
[in] long iStartingLine,
[in] CharIndex iStartingIndex,
[in] DWORD dwFlags,
[out] IVsTextLineMarker **ppMarker
);
Recherches de cette méthode pour des marques soumis aux contraintes spécifiées à l'aide de les paramètres d'dwFlags et d'iMarkerType.
Sécurité .NET Framework
- Confiance totale accordée à l'appelant immédiat. Ce membre ne peut pas être utilisé par du code d'un niveau de confiance partiel. Pour plus d'informations, voir Utilisation de bibliothèques à partir de code d'un niveau de confiance partiel.