StringWriter.WriteLine 方法

定义

重载

WriteLine(ReadOnlySpan<Char>)

将字符范围的文本表示形式写入字符串,后跟行终止符。

WriteLine(StringBuilder)

将字符串生成器的文本表示形式写入字符串,后跟行终止符。

WriteLine(ReadOnlySpan<Char>)

Source:
StringWriter.cs
Source:
StringWriter.cs
Source:
StringWriter.cs

将字符范围的文本表示形式写入字符串,后跟行终止符。

public:
 override void WriteLine(ReadOnlySpan<char> buffer);
public override void WriteLine (ReadOnlySpan<char> buffer);
override this.WriteLine : ReadOnlySpan<char> -> unit
Public Overrides Sub WriteLine (buffer As ReadOnlySpan(Of Char))

参数

buffer
ReadOnlySpan<Char>

要写入字符串中的字符范围。

适用于

WriteLine(StringBuilder)

Source:
StringWriter.cs
Source:
StringWriter.cs
Source:
StringWriter.cs

将字符串生成器的文本表示形式写入字符串,后跟行终止符。

public:
 override void WriteLine(System::Text::StringBuilder ^ value);
public override void WriteLine (System.Text.StringBuilder? value);
override this.WriteLine : System.Text.StringBuilder -> unit
Public Overrides Sub WriteLine (value As StringBuilder)

参数

value
StringBuilder

要作为字符串生成器写入字符串的字符串。

适用于