SnapshotPoint.Subtract Method
Creates a new snapshot point at the specified negative offset from this point.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
‘선언
Public Function Subtract ( _
offset As Integer _
) As SnapshotPoint
public SnapshotPoint Subtract(
int offset
)
public:
SnapshotPoint Subtract(
int offset
)
member Subtract :
offset:int -> SnapshotPoint
public function Subtract(
offset : int
) : SnapshotPoint
Parameters
- offset
Type: System.Int32
The offset of the new point.
Return Value
Type: Microsoft.VisualStudio.Text.SnapshotPoint
The snapshot point.
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.