IProjectionSnapshot2 Interface
Provides more methods for projection snapshots.
Namespace: Microsoft.VisualStudio.Text.Projection
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Declaration
Public Interface IProjectionSnapshot2 _
Inherits IProjectionSnapshot, ITextSnapshot
public interface IProjectionSnapshot2 : IProjectionSnapshot,
ITextSnapshot
public interface class IProjectionSnapshot2 : IProjectionSnapshot,
ITextSnapshot
type IProjectionSnapshot2 =
interface
interface IProjectionSnapshot
interface ITextSnapshot
end
public interface IProjectionSnapshot2 extends IProjectionSnapshot, ITextSnapshot
The IProjectionSnapshot2 type exposes the following members.
Properties
Name | Description | |
---|---|---|
ContentType | Gets the IContentType of the TextBuffer when this snapshot was current. (Inherited from ITextSnapshot.) | |
Item | Gets one character at the specified position. (Inherited from ITextSnapshot.) | |
Length | Gets the number of UTF-16 characters in the snapshot. (Inherited from ITextSnapshot.) | |
LineCount | Gets the number of lines in the snapshot. (Inherited from ITextSnapshot.) | |
Lines | Gets an enumerator for the set of lines in the snapshot. (Inherited from ITextSnapshot.) | |
SourceSnapshots | Gets the set of one or more text snapshots that contribute source spans to this projection snapshot. (Inherited from IProjectionSnapshot.) | |
SpanCount | Gets the number of source spans in the projection snapshot. (Inherited from IProjectionSnapshot.) | |
TextBuffer | Gets the IProjectionBufferBase of which this is a snapshot. (Inherited from IProjectionSnapshot.) | |
Version | The version of the ITextBuffer that this ITextSnapshot represents. (Inherited from ITextSnapshot.) |
Top
Methods
Name | Description | |
---|---|---|
CopyTo | Copies a range of text to a character array. (Inherited from ITextSnapshot.) | |
CreateTrackingPoint(Int32, PointTrackingMode) | Creates a ITrackingPoint in this snapshot. (Inherited from ITextSnapshot.) | |
CreateTrackingPoint(Int32, PointTrackingMode, TrackingFidelityMode) | Creates a ITrackingPoint in this snapshot. (Inherited from ITextSnapshot.) | |
CreateTrackingSpan(Span, SpanTrackingMode) | Creates a ITrackingSpan in this snapshot. (Inherited from ITextSnapshot.) | |
CreateTrackingSpan(Int32, Int32, SpanTrackingMode) | Creates a ITrackingSpan in this snapshot. (Inherited from ITextSnapshot.) | |
CreateTrackingSpan(Span, SpanTrackingMode, TrackingFidelityMode) | Creates a ITrackingSpan in this snapshot. (Inherited from ITextSnapshot.) | |
CreateTrackingSpan(Int32, Int32, SpanTrackingMode, TrackingFidelityMode) | Creates a ITrackingSpan in this snapshot. (Inherited from ITextSnapshot.) | |
GetLineFromLineNumber | Gets an ITextSnapshotLine for the given line number. (Inherited from ITextSnapshot.) | |
GetLineFromPosition | Gets an ITextSnapshotLine for a line at the given position. (Inherited from ITextSnapshot.) | |
GetLineNumberFromPosition | Gets the number of the line that contains the character at the specified position. (Inherited from ITextSnapshot.) | |
GetMatchingSnapshot | Gets the snapshot of the specified text buffer that corresponds to this snapshot. (Inherited from IProjectionSnapshot.) | |
GetMatchingSnapshotInClosure(ITextBuffer) | Computes the snapshot of the targetBuffer that is a contributor to this snapshot. If targetBuffer is not in the source closure of this snapshot, return null. | |
GetMatchingSnapshotInClosure(Predicate<ITextBuffer>) | For each snapshot in the source closure of this snapshot, call the match predicate on the corresponding text buffer, and return the first source snapshot for which it returns true. The order in which the source snapshots are visited is undefined. | |
GetSourceSpans() | Gets all the source spans for the projection snapshot. (Inherited from IProjectionSnapshot.) | |
GetSourceSpans(Int32, Int32) | Gets a read-only collection of source snapshot spans starting at the specified location of the span. (Inherited from IProjectionSnapshot.) | |
GetText() | Gets all the text in the snapshot. (Inherited from ITextSnapshot.) | |
GetText(Span) | Gets text from the snapshot starting at the beginning of the span and having a length equal to the length of the span. (Inherited from ITextSnapshot.) | |
GetText(Int32, Int32) | Gets text from the snapshot starting at startIndex and having a length equal to length. (Inherited from ITextSnapshot.) | |
MapFromSourceSnapshot(SnapshotSpan) | Maps a snapshot span of a source buffer to a list of spans of the projection snapshot. (Inherited from IProjectionSnapshot.) | |
MapFromSourceSnapshot(SnapshotPoint, PositionAffinity) | Maps from a snapshot point in one of the source snapshots to the corresponding position in the projection snapshot. (Inherited from IProjectionSnapshot.) | |
MapToSourceSnapshot(Int32) | Maps a position in the projection snapshot to the corresponding position in a source snapshot. (Inherited from IProjectionSnapshot.) | |
MapToSourceSnapshot(Int32, PositionAffinity) | Maps a position in the projection snapshot to the corresponding position in a source snapshot. (Inherited from IProjectionSnapshot.) | |
MapToSourceSnapshots(Int32) | Maps a position in the projection snapshot to the corresponding position in one or more source snapshots. (Inherited from IProjectionSnapshot.) | |
MapToSourceSnapshots(Span) | Maps a span of the current projection snapshot to a list of snapshot spans belonging to source snapshots. The resulting spans will be ordered by the order of their appearance in the projection. (Inherited from IProjectionSnapshot.) | |
ToCharArray | Converts a range of text to a character array. (Inherited from ITextSnapshot.) | |
Write(TextWriter) | Writes the contents of the snapshot. (Inherited from ITextSnapshot.) | |
Write(TextWriter, Span) | Writes a substring of the contents of the snapshot. (Inherited from ITextSnapshot.) |
Top