Partager via


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

'Déclaration
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 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.)
Protected method Dispose(Boolean) Releases the unmanaged resources used by the TextReader and optionally releases the managed resources. (Inherited from TextReader.)
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetLifetimeService 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 Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected method MemberwiseClone() Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method MemberwiseClone(Boolean) Creates a shallow copy of the current MarshalByRefObject object. (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 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 ReadLine Reads a line of characters from the current stream and returns the data as a string. (Overrides TextReader.ReadLine().)
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 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