Condividi tramite


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

'Dichiarazione
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

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

See Also

Reference

SnapshotPoint Structure

Microsoft.VisualStudio.Text Namespace