Share via


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 class IElisionBuffer : Microsoft::VisualStudio::Text::Projection::IProjectionBufferBase, Microsoft::VisualStudio::Utilities::IPropertyOwner
public interface class IElisionBuffer : Microsoft::VisualStudio::Text::Projection::IProjectionBufferBase, Microsoft::VisualStudio::Utilities::IPropertyOwner
__interface IElisionBuffer : Microsoft::VisualStudio::Text::Projection::IProjectionBufferBase, Microsoft::VisualStudio::Utilities::IPropertyOwner
public interface IElisionBuffer : Microsoft.VisualStudio.Text.Projection.IProjectionBufferBase, Microsoft.VisualStudio.Utilities.IPropertyOwner
type IElisionBuffer = interface
    interface IProjectionBufferBase
    interface ITextBuffer
    interface IPropertyOwner
Public Interface IElisionBuffer
Implements IProjectionBufferBase, IPropertyOwner
Implements

Remarks

The source spans of an elision buffer are all EdgeInclusive. Consequently, if all of 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

ContentType

Gets the content type of the text in the buffer.

(Inherited from ITextBuffer)
CurrentSnapshot

Gets the current snapshot of this elision buffer.

EditInProgress

Determines whether an edit operation is currently in progress on the ITextBuffer.

(Inherited from ITextBuffer)
Options

Gets the ElisionBufferOptions in effect for this IElisionBuffer.

Properties

The collection of properties controlled by the property owner.

(Inherited from IPropertyOwner)
SourceBuffer

Gets the source buffer of this elision buffer.

SourceBuffers

The set of ITextBuffer objects that directly contribute to the projection buffer.

(Inherited from IProjectionBufferBase)

Methods

ChangeContentType(IContentType, Object)

Changes the IContentType for this ITextBuffer.

(Inherited from ITextBuffer)
CheckEditAccess()

Determines whether edit operations on this text buffer are permitted on the calling thread. If TakeThreadOwnership() has previously been called, edit operations are permitted only from the same thread that made that call.

(Inherited from ITextBuffer)
CreateEdit()

Creates an ITextEdit object that handles compound edit operations on this buffer.

(Inherited from ITextBuffer)
CreateEdit(EditOptions, Nullable<Int32>, Object)

Creates an ITextEdit object that handles compound edit operations on this buffer.

(Inherited from ITextBuffer)
CreateReadOnlyRegionEdit()

Creates an IReadOnlyRegionEdit object that handles adding or removing read-only regions from this buffer.

(Inherited from ITextBuffer)
Delete(Span)

Deletes a span of characters from the buffer.

(Inherited from IProjectionBufferBase)
ElideSpans(NormalizedSpanCollection)

Hides the text designated by spansToElide.

ExpandSpans(NormalizedSpanCollection)

Expands the text specified by spansToExpand.

GetReadOnlyExtents(Span)

Gets a list of read-only regions that overlap the given span.

(Inherited from ITextBuffer)
Insert(Int32, String)

Inserts the given text at the specified position in the ITextBuffer.

(Inherited from IProjectionBufferBase)
IsReadOnly(Int32, Boolean)

Determines whether a text insertion would be prohibited at position due to an IReadOnlyRegion.

(Inherited from ITextBuffer)
IsReadOnly(Int32)

Determines whether a text insertion would be prohibited at position due to an IReadOnlyRegion.

(Inherited from ITextBuffer)
IsReadOnly(Span, Boolean)

Determines whether a text modification or deletion would be prohibited at span due to an IReadOnlyRegion

(Inherited from ITextBuffer)
IsReadOnly(Span)

Determines whether a text modification or deletion would be prohibited at span due to an IReadOnlyRegion

(Inherited from ITextBuffer)
ModifySpans(NormalizedSpanCollection, NormalizedSpanCollection)

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

Replace(Span, String)

Replaces a span of characters with different text. This is equivalent to first deleting the text to be replaced and then inserting the new text.

(Inherited from IProjectionBufferBase)
TakeThreadOwnership()

Claims ownership of this buffer for the current thread. All subsequent modifications of this ITextBuffer must be made from the current thread, or else an InvalidOperationException will be raised.

(Inherited from ITextBuffer)

Events

Changed

Occurs when a non-empty ITextEdit is successfully applied.

(Inherited from ITextBuffer)
ChangedHighPriority

Occurs when a non-empty ITextEdit is successfully applied.

(Inherited from ITextBuffer)
ChangedLowPriority

Occurs when a non-empty ITextEdit is successfully applied.

(Inherited from ITextBuffer)
Changing

Occurs just before a non-empty ITextEdit is applied.

(Inherited from ITextBuffer)
ContentTypeChanged

Occurs whenever the IContentType has been changed.

(Inherited from ITextBuffer)
PostChanged

Occurs after the Changed event and any resulting edits.

(Inherited from ITextBuffer)
ReadOnlyRegionsChanged

Occurs when an IReadOnlyRegionEdit has created or removed read-only regions.

(Inherited from ITextBuffer)
SourceSpansChanged

Occurs when the set of hidden spans changes.

Applies to