TextSnapshotToTextReader::Peek Method ()

 

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

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

public:
virtual int Peek() override

Return Value

Type: System::Int32

The next character to be read, or -1 if no more characters are available, or if the stream does not support seeking.

Exception Condition
ObjectDisposedException

The reader is closed.

Return to top
Show: