Compartir a través de


TextSnapshotToTextReader Class

Definition

Provides a TextReader facade over a text snapshot.

public ref class TextSnapshotToTextReader sealed : System::IO::TextReader
public sealed class TextSnapshotToTextReader : System.IO.TextReader
type TextSnapshotToTextReader = class
    inherit TextReader
Public NotInheritable Class TextSnapshotToTextReader
Inherits TextReader
Inheritance
TextSnapshotToTextReader

Constructors

TextSnapshotToTextReader(ITextSnapshot)

Initializes a new instance of TextSnapshotToTextReader with the specified text snapshot.

Methods

Close()

Closes the reader and releases any associated system resources.

Peek()

Returns the next character without changing the state of the reader or the character source.

Read()

Reads the next character from the input stream and advances the character position by one character.

Read(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.

ReadBlock(Char[], Int32, Int32)

Reads a maximum of count characters from the current stream and writes the data to buffer, beginning at index.

ReadLine()

Reads a line of characters from the current stream and returns the data as a string.

ReadToEnd()

Reads all the characters from the current position to the end of the reader and returns them as a string.

Applies to