Share via


WriteLine Method (Char[], Int32, Int32)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Writes a subarray of characters followed by a line terminator to the text string or stream.

Namespace:  System.IO
Assembly:  System.IO (in System.IO.dll)

Syntax

'Declaration
Public Overridable Sub WriteLine ( _
    buffer As Char(), _
    index As Integer, _
    count As Integer _
)
public virtual void WriteLine(
    char[] buffer,
    int index,
    int count
)
public:
virtual void WriteLine(
    array<wchar_t>^ buffer, 
    int index, 
    int count
)
abstract WriteLine : 
        buffer:char[] * 
        index:int * 
        count:int -> unit 
override WriteLine : 
        buffer:char[] * 
        index:int * 
        count:int -> unit 
public function WriteLine(
    buffer : char[], 
    index : int, 
    count : int
)

Parameters

Remarks

This method will write count characters of data into this TextWriter from the buffer character array starting at position index.

This overload is equivalent to calling the Write(array<Char>[]()[][]) method followed by WriteLine for each character in buffer between index and (index + count).

The line terminator is defined by the CoreNewLine field.

.NET Framework Security

See Also

Reference

TextWriter Class

WriteLine Overload

System.IO Namespace