Share via


SnapshotSpan.Intersection, méthode (SnapshotSpan)

Calcule l'intersection avec SnapshotSpan donné.

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

Syntaxe

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

Paramètres

Valeur de retour

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

Exceptions

Exception Condition
ArgumentException

snapshotSpan ne fait pas référence au même instantané.

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 étendue, et qu'aucune des deux n'est vide.

Sécurité .NET Framework

Voir aussi

Référence

SnapshotSpan Structure

Intersection, surcharge

Microsoft.VisualStudio.Text, espace de noms