TextSnapshotToTextReader Class

Provides a TextReader facade over a text snapshot.

Inheritance Hierarchy

System.Object
  System.MarshalByRefObject
    System.IO.TextReader
      Microsoft.VisualStudio.Text.TextSnapshotToTextReader

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

Syntax

'Declaration
Public NotInheritable Class TextSnapshotToTextReader _
    Inherits TextReader
public sealed class TextSnapshotToTextReader : TextReader
public ref class TextSnapshotToTextReader sealed : public TextReader
[<Sealed>]
type TextSnapshotToTextReader =  
    class 
        inherit TextReader 
    end
public final class TextSnapshotToTextReader extends TextReader

The TextSnapshotToTextReader type exposes the following members.

Constructors

  Name Description
Public method TextSnapshotToTextReader Initializes a new instance of TextSnapshotToTextReader with the specified text snapshot.

Top

Methods

  Name Description
Public method Close Closes the reader and releases associated resources. (Overrides TextReader.Close().)
Public method CreateObjRef Security Critical. Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public method Dispose Releases all resources used by the TextReader object. (Inherited from TextReader.)
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetLifetimeService Security Critical. Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method InitializeLifetimeService Security Critical. Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method Peek Returns the next character without changing the state of the reader or the character source. (Overrides TextReader.Peek().)
Public method Read() Reads the next character from the input stream and advances the character position by one character. (Overrides TextReader.Read().)
Public method Read(array<Char[], Int32, Int32) Reads the specified number of characters from the current stream and writes the data to the buffer, beginning at the specified location. (Overrides TextReader.Read(array<Char[], Int32, Int32).)
Public method ReadAsync Reads a specified maximum number of characters from the current text reader asynchronously and writes the data to a buffer, beginning at the specified index. (Inherited from TextReader.)
Public method ReadBlock Reads a maximum of count characters from the current stream and writes the data to the buffer, beginning at index. (Overrides TextReader.ReadBlock(array<Char[], Int32, Int32).)
Public method ReadBlockAsync Reads a specified maximum number of characters from the current text reader asynchronously and writes the data to a buffer, beginning at the specified index. (Inherited from TextReader.)
Public method ReadLine Reads a line of characters from the current stream and returns the data as a string. (Overrides TextReader.ReadLine().)
Public method ReadLineAsync Reads a line of characters asynchronously and returns the data as a string. (Inherited from TextReader.)
Public method ReadToEnd Reads all the characters from the current position to the end of the reader and returns them as a string. (Overrides TextReader.ReadToEnd().)
Public method ReadToEndAsync Reads all characters from the current position to the end of the text reader asynchronously and returns them as one string. (Inherited from TextReader.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Text Namespace