Export (0) Print
Expand All

IBufferGraph Interface

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

Namespace:  Microsoft.VisualStudio.Text.Projection
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

public interface IBufferGraph

The IBufferGraph type exposes the following members.

  NameDescription
Public propertyTopBufferGets the top text buffer in the buffer graph.
Top

  NameDescription
Public methodCreateMappingPointCreates a new IMappingPoint with the specified snapshot point and tracking mode.
Public methodCreateMappingSpanInitializes a new instance of a IMappingSpan.
Public methodGetTextBuffersFinds all the ITextBuffer objects in the graph that match the specified predicate.
Public methodMapDownToBuffer(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.
Public methodMapDownToBuffer(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.
Public methodMapDownToFirstMatch(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.
Public methodMapDownToFirstMatch(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.
Public methodMapDownToInsertionPointMaps 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.
Public methodMapDownToSnapshot(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.
Public methodMapDownToSnapshot(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.
Public methodMapUpToBuffer(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.
Public methodMapUpToBuffer(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.
Public methodMapUpToFirstMatch(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.
Public methodMapUpToFirstMatch(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.
Public methodMapUpToSnapshot(SnapshotSpan, SpanTrackingMode, ITextSnapshot)Maps a span in the current snapshot of a buffer that is a member of the buffer graph to a sequence of spans in a snapshot of a designated buffer.
Public methodMapUpToSnapshot(SnapshotPoint, PointTrackingMode, PositionAffinity, ITextSnapshot)Maps a position in the current snapshot of a buffer that is a member of the buffer graph to the specified snapshot.
Top

  NameDescription
Public eventGraphBufferContentTypeChangedOccurs when the IContentType of any ITextBuffer in the buffer graph changes.
Public eventGraphBuffersChangedOccurs when the set of ITextBuffer objects in the buffer graph changes.
Top

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

Show:
© 2014 Microsoft