Aracılığıyla paylaş


SnapshotPoint.Difference(SnapshotPoint) Method

Definition

Computes the offset between this snapshot point and another snapshot point.

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

Parameters

other
SnapshotPoint

The point from which to compute the offset.

Returns

The offset between the two points, equivalent to other.Position - this.Position.

Exceptions

The two points do not belong to the same snapshot.

Applies to