Share via


ITextStructureNavigator.GetSpanOfFirstChild, méthode

Obtient l'étendue du premier élément syntaxique enfant 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 GetSpanOfFirstChild ( _
    activeSpan As SnapshotSpan _
) As SnapshotSpan
SnapshotSpan GetSpanOfFirstChild(
    SnapshotSpan activeSpan
)
SnapshotSpan GetSpanOfFirstChild(
    SnapshotSpan activeSpan
)
abstract GetSpanOfFirstChild : 
        activeSpan:SnapshotSpan -> SnapshotSpan
function GetSpanOfFirstChild(
    activeSpan : SnapshotSpan
) : SnapshotSpan

Paramètres

Valeur de retour

Type : Microsoft.VisualStudio.Text.SnapshotSpan
SnapshotSpan qui représente le premier élément syntaxique enfant.

Notes

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

Si l'étendue d'instantanés spécifiée couvre plusieurs éléments syntaxiques, cette méthode retourne l'étendue de l'ancêtre commun le moins répandu des éléments. Si l'étendue d'instantanés spécifiée couvre l'élément enfant, 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