IElisionBuffer Interface

Definition

A restricted projection buffer that has exactly one source buffer. Spans from the source buffer must appear in the same order in the projection buffer as in the source buffer.

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

Remarks

The source spans of an elision buffer are all EdgeInclusive. Consequently, if all the contents of a source span are deleted, and later an insertion is made at the location of that span in the source buffer, the insertion will appear in the elision buffer.

Properties

CurrentSnapshot

Gets the current snapshot of this elision buffer.

Options

Gets the ElisionBufferOptions in effect for this IElisionBuffer.

SourceBuffer

Gets the source buffer of this elision buffer.

Methods

ElideSpans(NormalizedSpanCollection)

Hides the text designated in the specified spans.

ExpandSpans(NormalizedSpanCollection)

Expands the text specified by the specified spans.

ModifySpans(NormalizedSpanCollection, NormalizedSpanCollection)

Modifies the exposed text by hiding spansToElide and then expanding the specified spans in a single transaction.

Events

SourceSpansChanged

Occurs when there are changes to the set of hidden spans.

Applies to