SnapshotPoint::Add Method (Int32)

 

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)

public:
SnapshotPoint Add(
	int offset
)

Parameters

offset
Type: System::Int32

The offset of the new point.

Return Value

Type: Microsoft.VisualStudio.Text::SnapshotPoint

The new snapshot point.

Exception Condition
ArgumentOutOfRangeException

The new point is less than zero or greater than Snapshot.Length.

Return to top
Show: