Condividi tramite


IBufferGraph Interface

Definition

Represents a graph of ITextBuffer objects. The top level text buffer might or might not be a IProjectionBuffer.

public interface class IBufferGraph
public interface class IBufferGraph
__interface IBufferGraph
public interface IBufferGraph
type IBufferGraph = interface
Public Interface IBufferGraph

Remarks

For more information about buffer graphs, see Inside the Editor.

Properties

TopBuffer

Gets the top text buffer in the buffer graph.

Methods

CreateMappingPoint(SnapshotPoint, PointTrackingMode)

Creates a new IMappingPoint with the specified snapshot point and tracking mode.

CreateMappingSpan(SnapshotSpan, SpanTrackingMode)

Initializes a new instance of a IMappingSpan.

GetTextBuffers(Predicate<ITextBuffer>)

Finds all the ITextBuffer objects in the graph that match the specified predicate.

MapDownToBuffer(SnapshotPoint, PointTrackingMode, ITextBuffer, PositionAffinity)

Maps a position in the graph to the corresponding position in a buffer lower in the graph. Source buffers are considered to be lower than the projection buffers that consume them.

MapDownToBuffer(SnapshotSpan, SpanTrackingMode, ITextBuffer)

Maps a snapshot span in some buffer in the graph to a sequence of zero or more spans in a buffer that is lower in the graph. Source buffers are considered to be lower than the projection buffers that consume them.

MapDownToFirstMatch(SnapshotPoint, PointTrackingMode, Predicate<ITextSnapshot>, PositionAffinity)

Maps a position in the graph to a position in a matching buffer that is lower in the graph. Source buffers are considered to be lower than the projection buffers that consume them.

MapDownToFirstMatch(SnapshotSpan, SpanTrackingMode, Predicate<ITextSnapshot>)

Maps a snapshot span in some buffer in the graph to a sequence of zero or more spans in some source snapshot selected by a predicate.

MapDownToInsertionPoint(SnapshotPoint, PointTrackingMode, Predicate<ITextSnapshot>)

Maps a position in some buffer in the graph to a position in a matching buffer that is lower in the graph and to which an insertion would be routed. Source buffers are considered to be lower than the projection buffers that consume them.

MapDownToSnapshot(SnapshotPoint, PointTrackingMode, ITextSnapshot, PositionAffinity)

Maps a position in the graph to the corresponding position in a snapshot lower in the graph. Source buffers are considered to be lower than the projection buffers that consume them.

MapDownToSnapshot(SnapshotSpan, SpanTrackingMode, ITextSnapshot)

Maps a snapshot span in some buffer in the graph to a sequence of zero or more spans in a buffer that is lower in the graph. Source buffers are considered to be lower than the projection buffers that consume them.

MapUpToBuffer(SnapshotPoint, PointTrackingMode, PositionAffinity, ITextBuffer)

Maps a position in the current snapshot of some buffer that is a member of the buffer graph to a snapshot of some buffer.

MapUpToBuffer(SnapshotSpan, SpanTrackingMode, ITextBuffer)

Maps a span in the current snapshot of some buffer that is a member of the buffer graph to a sequence of spans in a snapshot of a designated buffer.

MapUpToFirstMatch(SnapshotPoint, PointTrackingMode, Predicate<ITextSnapshot>, PositionAffinity)

Maps a position in the current snapshot of some buffer that is a member of the buffer graph to a snapshot of some buffer that is selected by a predicate.

MapUpToFirstMatch(SnapshotSpan, SpanTrackingMode, Predicate<ITextSnapshot>)

Maps a span in the current snapshot of some buffer that is a member of the buffer graph up to a sequence of spans in a snapshot of some buffer that is selected by a predicate.

MapUpToSnapshot(SnapshotPoint, PointTrackingMode, PositionAffinity, ITextSnapshot)

Maps a position in the current snapshot of some buffer that is a member of the buffer graph to specified snapshot.

MapUpToSnapshot(SnapshotSpan, SpanTrackingMode, ITextSnapshot)

Maps a span in the current snapshot of some buffer that is a member of the buffer graph to a sequence of spans in a snapshot of a designated buffer.

Events

GraphBufferContentTypeChanged

Occurs when the IContentType of any ITextBuffer in the buffer graph changes.

GraphBuffersChanged

Occurs when the set of ITextBuffer objects in the buffer graph changes.

Applies to