SnapshotPoint.Add Method
Creates a new snapshot point at the specified offset from this point.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Declaration
Public Function Add ( _
offset As Integer _
) As SnapshotPoint
public SnapshotPoint Add(
int offset
)
public:
SnapshotPoint Add(
int offset
)
member Add :
offset:int -> SnapshotPoint
public function Add(
offset : int
) : SnapshotPoint
Parameters
offset
Type: Int32The offset of the new point.
Return Value
Type: Microsoft.VisualStudio.Text.SnapshotPoint
The new snapshot point.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | The new point is less than zero or greater than Snapshot.Length. |
Remarks
The SnapshotPoint.
.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.