IProjectionBuffer.InsertSpans(Int32, IList<Object>) Méthode

Définition

Insère une liste d'objets ITrackingSpan et/ou de chaînes littérales dans la liste d'étendues de sources dans leur ordre d'affichage dans la liste.

public:
 Microsoft::VisualStudio::Text::Projection::IProjectionSnapshot ^ InsertSpans(int position, System::Collections::Generic::IList<System::Object ^> ^ spansToInsert);
public Microsoft.VisualStudio.Text.Projection.IProjectionSnapshot InsertSpans (int position, System.Collections.Generic.IList<object> spansToInsert);
abstract member InsertSpans : int * System.Collections.Generic.IList<obj> -> Microsoft.VisualStudio.Text.Projection.IProjectionSnapshot
Public Function InsertSpans (position As Integer, spansToInsert As IList(Of Object)) As IProjectionSnapshot

Paramètres

position
Int32

Position à laquelle insérer les étendues.

spansToInsert
IList<Object>

Liste des étendues à insérer.

Retours

IProjectionSnapshot

Élément IProjectionSnapshot.

Exceptions

position est inférieur à zéro ou supérieur à SpanCount.

spansToInsert est null ou une étendue dans cette liste est null.

L’ajout de l’une des mémoires tampons de texte contenant un des spansToInsert créerait un cycle parmi un ensemble de vuffers de projection en vertu de la relation SourceBuffer.

S’applique à