Freigeben über


IProjectionBuffer.DeleteSpans-Methode

Löscht eine Sequenz von Quellspannen aus dem Projektionspuffer.

Namespace:  Microsoft.VisualStudio.Text.Projection
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Syntax

'Declaration
Function DeleteSpans ( _
    position As Integer, _
    spansToDelete As Integer _
) As IProjectionSnapshot
IProjectionSnapshot DeleteSpans(
    int position,
    int spansToDelete
)
IProjectionSnapshot^ DeleteSpans(
    int position, 
    int spansToDelete
)
abstract DeleteSpans : 
        position:int * 
        spansToDelete:int -> IProjectionSnapshot
function DeleteSpans(
    position : int, 
    spansToDelete : int
) : IProjectionSnapshot

Parameter

  • position
    Typ: Int32

    Die Position, an der mit dem Löschen der Spannen begonnen werden soll.

  • spansToDelete
    Typ: Int32

    Die Anzahl der zu löschenden Spannen.

Rückgabewert

Typ: Microsoft.VisualStudio.Text.Projection.IProjectionSnapshot
Ein IProjectionSnapshot.

Ausnahmen

Ausnahme Bedingung
ArgumentOutOfRangeException

position ist kleiner als Null oder größer als die Anzahl der Spannen oder -

spansToDelete ist kleiner als Null oder position + spansToDelete größer als die Anzahl von Spannen ist.

.NET Framework-Sicherheit

Siehe auch

Referenz

IProjectionBuffer Schnittstelle

Microsoft.VisualStudio.Text.Projection-Namespace