Partager via


SnapshotPoint.Subtract(Int32) Method

Definition

Creates a new snapshot point at the specified negative offset from this point.

public:
 Microsoft::VisualStudio::Text::SnapshotPoint Subtract(int offset);
public Microsoft.VisualStudio.Text.SnapshotPoint Subtract (int offset);
member this.Subtract : int -> Microsoft.VisualStudio.Text.SnapshotPoint
Public Function Subtract (offset As Integer) As SnapshotPoint

Parameters

offset
Int32

The offset of the new point.

Returns

The snapshot point.

Exceptions

The new point is less than zero or greater than Snapshot.Length.

Applies to