SnapshotPoint::Difference Method (SnapshotPoint)
Visual Studio 2015
Calculates the offset between this snapshot point and another snapshot point.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Parameters
- other
-
Type:
Microsoft.VisualStudio.Text::SnapshotPoint
The second snapshot point.
Return Value
Type: System::Int32The offset between the two points, equivalent to other.Position - this.Position.
| Exception | Condition |
|---|---|
| ArgumentException | The two points do not belong to the same snapshot. |
Show: