AvalonEdit
Read Method (buffer, index, count)
NamespacesICSharpCode.AvalonEdit.UtilsRopeTextReaderRead(array<Char>[]()[][], Int32, Int32)
Reads a maximum of count characters from the current stream and writes the data to buffer, beginning at index.
Declaration Syntax
C#Visual BasicVisual C++
public override int Read(
	char[] buffer,
	int index,
	int count
)
Public Overrides Function Read ( _
	buffer As Char(), _
	index As Integer, _
	count As Integer _
) As Integer
public:
virtual int Read(
	array<wchar_t>^ buffer, 
	int index, 
	int count
) override
Parameters
buffer (array<Char>[]()[][])
When this method returns, contains the specified character array with the values between index and (index + count - 1) replaced by the characters read from the current source.
index (Int32)
The place in buffer at which to begin writing.
count (Int32)
The maximum number of characters to read. If the end of the stream is reached before count of characters is read into buffer, the current method returns.
Return Value
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
ExceptionCondition
ArgumentNullExceptionbuffer is null.
ArgumentExceptionThe buffer length minus index is less than count.
ArgumentOutOfRangeExceptionindex or count is negative.
ObjectDisposedExceptionThe TextReader is closed.
IOExceptionAn I/O error occurs.

Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238