IProjectionBuffer Interface

Definition

A text buffer that contains projections of other text buffers, composed of a list of tracking spans of those buffers. The buffers that contribute to the projection buffer are called source buffers, and the tracking spans that describe the contributed regions are called source spans.

public interface IProjectionBuffer : Microsoft.VisualStudio.Text.Projection.IProjectionBufferBase, Microsoft.VisualStudio.Utilities.IPropertyOwner
Implements

Remarks

For more information about projection, see the section "Projection" in Inside the Editor.

Methods

DeleteSpans(Int32, Int32)

Deletes a sequence of source spans from the projection buffer.

InsertSpan(Int32, ITrackingSpan)

Inserts a tracking span into the list of source spans.

InsertSpan(Int32, String)

Inserts a literal string into the list of source spans.

InsertSpans(Int32, IList<Object>)

Inserts a list of ITrackingSpan objects and/or literal strings into the list of source spans in the order in which they appear in the list.

ReplaceSpans(Int32, Int32, IList<Object>, EditOptions, Object)

Replaces a sequence of source spans with a new list of ITrackingSpan objects and/or literal strings.

Events

SourceBuffersChanged

Raised when source buffers are added or deleted by virtue of the addition or deletion of source spans. This event is raised before the SourceSpansChanged event is raised.

SourceSpansChanged

Raised when source spans are added or deleted.

Applies to