TextSnapshotToTextReader.ReadBlock(Char[], Int32, Int32) Method

Definition

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

C++/CX
public:
 override int ReadBlock(Platform::Array <char16> ^ buffer, int index, int count);

Parameters

buffer
Char[]

When this method returns, contains the specified character array from the current source.

index
Int32

The place in buffer at which to begin writing.

count
Int32

The maximum number of characters to read.

Returns

The number of characters that have been read. The number will be less than or equal to count, depending on whether the data is available within the stream. This method returns zero if called when no more characters are left to read.

Exceptions

index or count is negative, or the buffer length minus index is less than count.

buffer is null.

The reader is closed.

Applies to

Product Versions
Visual Studio SDK 2015, 2017, 2019, 2022