Freigeben über


SnapshotPoint.Add-Methode

Erstellt einen neuen Momentaufnahmepunkt am angegebenen Offset von diesem Punkt.

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

Parameter

  • offset
    Typ: Int32

    Der Offset des neuen Punkts.

Rückgabewert

Typ: Microsoft.VisualStudio.Text.SnapshotPoint
Der neue Momentaufnahmepunkt.

Ausnahmen

Ausnahme Bedingung
ArgumentOutOfRangeException

Der neue Punkt ist kleiner als Null oder größer als Snapshot.Length.

Hinweise

Der SnapshotPoint.

.NET Framework-Sicherheit

Siehe auch

Referenz

SnapshotPoint Struktur

Microsoft.VisualStudio.Text-Namespace