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

NameDescription
System_CAPS_pubpropertyTopBuffer

Gets the top text buffer in the buffer graph.

NameDescription
System_CAPS_pubmethodCreateMappingPoint(SnapshotPoint, PointTrackingMode)

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

System_CAPS_pubmethodCreateMappingSpan(SnapshotSpan, SpanTrackingMode)

Initializes a new instance of a IMappingSpan.

System_CAPS_pubmethodGetTextBuffers(Predicate(Of ITextBuffer))

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

System_CAPS_pubmethodMapDownToBuffer(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.

System_CAPS_pubmethodMapDownToBuffer(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.

System_CAPS_pubmethodMapDownToFirstMatch(SnapshotPoint, PointTrackingMode, Predicate(Of 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.

System_CAPS_pubmethodMapDownToFirstMatch(SnapshotSpan, SpanTrackingMode, Predicate(Of 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.

System_CAPS_pubmethodMapDownToInsertionPoint(SnapshotPoint, PointTrackingMode, Predicate(Of 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.

System_CAPS_pubmethodMapDownToSnapshot(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.

System_CAPS_pubmethodMapDownToSnapshot(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.

System_CAPS_pubmethodMapUpToBuffer(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.

System_CAPS_pubmethodMapUpToBuffer(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.

System_CAPS_pubmethodMapUpToFirstMatch(SnapshotPoint, PointTrackingMode, Predicate(Of 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.

System_CAPS_pubmethodMapUpToFirstMatch(SnapshotSpan, SpanTrackingMode, Predicate(Of 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.

System_CAPS_pubmethodMapUpToSnapshot(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.

System_CAPS_pubmethodMapUpToSnapshot(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.

NameDescription
System_CAPS_pubeventGraphBufferContentTypeChanged

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

System_CAPS_pubeventGraphBuffersChanged

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

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

Return to top
Show: