SnapshotPoint.Subtraction, opérateur (SnapshotPoint, Int32)
Décrémente la position d'un 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 - ( _
point As SnapshotPoint, _
offset As Integer _
) As SnapshotPoint
public static SnapshotPoint operator -(
SnapshotPoint point,
int offset
)
public:
static SnapshotPoint operator -(
SnapshotPoint point,
int offset
)
static let inline(-)
point:SnapshotPoint *
offset:int : SnapshotPoint
JScript ne prend pas en charge les opérateurs surchargés.
Paramètres
point
Type : Microsoft.VisualStudio.Text.SnapshotPointPoint à partir duquel calculer la nouvelle position.
offset
Type : Int32Décalage du nouveau point.
Valeur de retour
Type : Microsoft.VisualStudio.Text.SnapshotPoint
Entier représentant la position.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | Le nouveau point est inférieur à zéro ou plus supérieur qu'Snapshot.Length. |
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.