Provides a TextReader facade over a text snapshot.
Inheritance Hierarchy
Object
  MarshalByRefObject
    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 | |
|---|---|---|
![]()  | 
TextSnapshotToTextReader | Initializes a new instance of TextSnapshotToTextReader with the specified text snapshot. | 
Top
Methods
| Name | Description | |
|---|---|---|
![]()  | 
Close | Closes the reader and releases associated resources. (Overrides TextReader.Close.) | 
![]()  | 
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.) | 
![]()  | 
Dispose | Releases all resources used by the TextReader object. (Inherited from TextReader.) | 
![]()  | 
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | 
![]()  | 
GetHashCode | Serves as the default hash function. (Inherited from Object.) | 
![]()  | 
GetLifetimeService | Security Critical. Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | 
![]()  | 
GetType | Gets the Type of the current instance. (Inherited from Object.) | 
![]()  | 
InitializeLifetimeService | Security Critical. Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | 
![]()  | 
Peek | Returns the next character without changing the state of the reader or the character source. (Overrides TextReader.Peek.) | 
![]()  | 
Read() | Reads the next character from the input stream and advances the character position by one character. (Overrides TextReader.Read.) | 
![]()  | 
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(Char, Int32, Int32).) | 
![]()  | 
ReadBlock | Reads a maximum of count characters from the current stream and writes the data to the buffer, beginning at index. (Overrides TextReader.ReadBlock(Char, Int32, Int32).) | 
![]()  | 
ReadLine | Reads a line of characters from the current stream and returns the data as a string. (Overrides TextReader.ReadLine.) | 
![]()  | 
ReadToEnd | Reads all the characters from the current position to the end of the reader and returns them as a string. (Overrides TextReader.ReadToEnd.) | 
![]()  | 
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.
.gif)