Partager via


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

  • offset
    Type : Int32

    Dé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

Voir aussi

Référence

SnapshotPoint Structure

Subtraction, surcharge

Microsoft.VisualStudio.Text, espace de noms