SnapshotPoint.Subtraction Operator (SnapshotPoint, Int32)
Decrements the position of a snapshot point.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Dichiarazione
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 does not support overloaded operators.
Parameters
- point
Type: Microsoft.VisualStudio.Text.SnapshotPoint
The point from which to calculate the new position.
- offset
Type: System.Int32
The offset of the new point.
Return Value
Type: Microsoft.VisualStudio.Text.SnapshotPoint
An integer representing the position.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | The new point is less than zero or greater than Snapshot.Length. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.