SnapshotPoint.GreaterThan, opérateur
Détermine si la position d'un point d'instantané est supérieure à la position d'un deuxième point d'instantané.
Espace de noms : Microsoft.VisualStudio.Text
Assembly : Microsoft.VisualStudio.Text.Data (dans Microsoft.VisualStudio.Text.Data.dll)
Syntaxe
'Déclaration
Public Shared Operator > ( _
left As SnapshotPoint, _
right As SnapshotPoint _
) As Boolean
public static bool operator >(
SnapshotPoint left,
SnapshotPoint right
)
public:
static bool operator >(
SnapshotPoint left,
SnapshotPoint right
)
static let inline(>)
left:SnapshotPoint *
right:SnapshotPoint : bool
JScript ne prend pas en charge les opérateurs surchargés.
Paramètres
left
Type : Microsoft.VisualStudio.Text.SnapshotPointPoint d'instantané gauche.
right
Type : Microsoft.VisualStudio.Text.SnapshotPointPoint d'instantané droit.
Valeur de retour
Type : Boolean
true si la première position est supérieure à la seconde ; sinon, false.
Exceptions
Exception | Condition |
---|---|
ArgumentException | Les deux points n'appartiennent pas au même instantané. |
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.