ITextStructureNavigator.GetSpanOfNextSibling, méthode

Obtient l'étendue de l'élément syntaxique frère suivant de l'étendue d'instantanés spécifiée.

Espace de noms :  Microsoft.VisualStudio.Text.Operations
Assembly :  Microsoft.VisualStudio.Text.Logic (dans Microsoft.VisualStudio.Text.Logic.dll)

Syntaxe

'Déclaration
Function GetSpanOfNextSibling ( _
    activeSpan As SnapshotSpan _
) As SnapshotSpan
SnapshotSpan GetSpanOfNextSibling(
    SnapshotSpan activeSpan
)
SnapshotSpan GetSpanOfNextSibling(
    SnapshotSpan activeSpan
)
abstract GetSpanOfNextSibling : 
        activeSpan:SnapshotSpan -> SnapshotSpan
function GetSpanOfNextSibling(
    activeSpan : SnapshotSpan
) : SnapshotSpan

Paramètres

Valeur de retour

Type : Microsoft.VisualStudio.Text.SnapshotSpan
SnapshotSpan qui représente l'élément syntaxique frère suivant.

Notes

Si l'étendue d'instantanés a une longueur nulle, le comportement est identique à celui de GetSpanOfEnclosing.

Si l'étendue active spécifiée couvre plusieurs éléments syntaxiques, cette méthode retourne l'étendue de l'élément frère suivant.

Si l'étendue d'instantanés spécifiée couvre un élément syntaxique qui n'a pas d'élément frère, le comportement est identique à celui de GetSpanOfEnclosing.

Sécurité .NET Framework

Voir aussi

Référence

ITextStructureNavigator Interface

Microsoft.VisualStudio.Text.Operations, espace de noms