SnapshotPoint.Difference(SnapshotPoint) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.