Share via


TextSnapshotToTextReader.Peek Method

Definition

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

public:
 override int Peek();
public:
 override int Peek();
 override int Peek();
public override int Peek ();
override this.Peek : unit -> int
Public Overrides Function Peek () As Integer

Returns

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

Exceptions

The reader is closed.

Applies to