ITextSnapshot Methods

Include Protected Members
Include Inherited Members

The ITextSnapshot type exposes the following members.

Methods

  Name Description
Public method CopyTo Copies a range of text to a character array.
Public method CreateTrackingPoint(Int32, PointTrackingMode) Creates a ITrackingPoint in this snapshot.
Public method CreateTrackingPoint(Int32, PointTrackingMode, TrackingFidelityMode) Creates a ITrackingPoint in this snapshot.
Public method CreateTrackingSpan(Span, SpanTrackingMode) Creates a ITrackingSpan in this snapshot.
Public method CreateTrackingSpan(Int32, Int32, SpanTrackingMode) Creates a ITrackingSpan in this snapshot.
Public method CreateTrackingSpan(Span, SpanTrackingMode, TrackingFidelityMode) Creates a ITrackingSpan in this snapshot.
Public method CreateTrackingSpan(Int32, Int32, SpanTrackingMode, TrackingFidelityMode) Creates a ITrackingSpan in this snapshot.
Public method GetLineFromLineNumber Gets an ITextSnapshotLine for the given line number.
Public method GetLineFromPosition Gets an ITextSnapshotLine for a line at the given position.
Public method GetLineNumberFromPosition Gets the number of the line that contains the character at the specified position.
Public method GetText() Gets all the text in the snapshot.
Public method 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.
Public method GetText(Int32, Int32) Gets text from the snapshot starting at startIndex and having a length equal to length.
Public method ToCharArray Converts a range of text to a character array.
Public method Write(TextWriter) Writes the contents of the snapshot.
Public method Write(TextWriter, Span) Writes a substring of the contents of the snapshot.

Top

See Also

Reference

ITextSnapshot Interface

Microsoft.VisualStudio.Text Namespace