Share via


Span.Intersection, méthode

Obtient l'intersection avec l'étendue donnée, ou null s'il n'y a aucune intersection.

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

Syntaxe

'Déclaration
Public Function Intersection ( _
    span As Span _
) As Nullable(Of Span)
public Nullable<Span> Intersection(
    Span span
)
public:
Nullable<Span> Intersection(
    Span span
)
member Intersection : 
        span:Span -> Nullable<Span> 
public function Intersection(
    span : Span
) : Nullable<Span>

Paramètres

Valeur de retour

Type : Nullable<Span>
L'intersection des étendues, ou nullune référence null (Nothing en Visual Basic) s'ils ne croisent pas.

Notes

Deux étendues se croisent si elles ont des positions en commun, ou si la fin d'une étendue coïncide avec le début de l'autre.

Sécurité .NET Framework

Voir aussi

Référence

Span Structure

Microsoft.VisualStudio.Text, espace de noms