Freigeben über


VirtualSnapshotPoint-Konstruktor (ITextSnapshotLine, Int32)

Initialisiert eine neue Instanz von VirtualSnapshotPoint am angegebenen Offset der angegebenen Zeile platziert und bei Bedarf den Punkt im virtuellen Bereich.

Namespace:  Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)

Syntax

'Declaration
Public Sub New ( _
    line As ITextSnapshotLine, _
    offset As Integer _
)
public VirtualSnapshotPoint(
    ITextSnapshotLine line,
    int offset
)
public:
VirtualSnapshotPoint(
    ITextSnapshotLine^ line, 
    int offset
)
new : 
        line:ITextSnapshotLine * 
        offset:int -> VirtualSnapshotPoint
public function VirtualSnapshotPoint(
    line : ITextSnapshotLine, 
    offset : int
)

Parameter

  • offset
    Typ: Int32

    Die Zeile (nullbasiert) des Punkts.

Ausnahmen

Ausnahme Bedingung
ArgumentNullException

line ist nullein Nullverweis (Nothing in Visual Basic).

ArgumentOutOfRangeException

column ist negativ oder die Startposition und die Spalte ist kleiner als die Anfangsposition.

Hinweise

offset ist ein Zeichenoffset vom Anfang der Zeile. Es entspricht keiner Spaltenposition (z. B., wenn die Zeile aus einer einzelnen Registerkarte besteht und der Offset 2 ist, ist das resultierende VirtualSnapshotPoint“ ein „Leerzeichen nach dem Ende der Zeile).

.NET Framework-Sicherheit

Siehe auch

Referenz

VirtualSnapshotPoint Struktur

VirtualSnapshotPoint-Überladung

Microsoft.VisualStudio.Text-Namespace