แก้ไข

แชร์ผ่าน


IndentedTextWriter.WriteLine Method

Definition

Writes the specified string, followed by a line terminator, to the text stream.

Overloads

WriteLine(String, Object, Object)

Writes out a formatted string, followed by a line terminator, using the same semantics as specified.

WriteLine(Char[], Int32, Int32)

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

WriteLine(String, ReadOnlySpan<Object>)

Writes out a formatted string, followed by a line terminator, using the same semantics as specified.

WriteLine(String, Object[])

Writes out a formatted string, followed by a line terminator, using the same semantics as specified.

WriteLine(String, Object)

Writes out a formatted string, followed by a line terminator, using the same semantics as specified.

WriteLine(String)

Writes the specified string, followed by a line terminator, to the text stream.

WriteLine(Single)

Writes the text representation of a Single, followed by a line terminator, to the text stream.

WriteLine(UInt32)

Writes the text representation of a UInt32, followed by a line terminator, to the text stream.

WriteLine(Int64)

Writes the text representation of an 8-byte integer, followed by a line terminator, to the text stream.

WriteLine(Int32)

Writes the text representation of an integer, followed by a line terminator, to the text stream.

WriteLine(Double)

Writes the text representation of a Double, followed by a line terminator, to the text stream.

WriteLine(Char[])

Writes a character array, followed by a line terminator, to the text stream.

WriteLine(Char)

Writes a character, followed by a line terminator, to the text stream.

WriteLine(Boolean)

Writes the text representation of a Boolean, followed by a line terminator, to the text stream.

WriteLine()

Writes a line terminator.

WriteLine(Object)

Writes the text representation of an object, followed by a line terminator, to the text stream.

WriteLine(String, Object, Object)

Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs

Writes out a formatted string, followed by a line terminator, using the same semantics as specified.

public:
 override void WriteLine(System::String ^ format, System::Object ^ arg0, System::Object ^ arg1);
public override void WriteLine (string format, object? arg0, object? arg1);
public override void WriteLine (string format, object arg0, object arg1);
override this.WriteLine : string * obj * obj -> unit
Public Overrides Sub WriteLine (format As String, arg0 As Object, arg1 As Object)

Parameters

format
String

The formatting string to use.

arg0
Object

The first object to write into the formatted string.

arg1
Object

The second object to write into the formatted string.

Applies to

WriteLine(Char[], Int32, Int32)

Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs

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

public:
 override void WriteLine(cli::array <char> ^ buffer, int index, int count);
public override void WriteLine (char[] buffer, int index, int count);
override this.WriteLine : char[] * int * int -> unit
Public Overrides Sub WriteLine (buffer As Char(), index As Integer, count As Integer)

Parameters

buffer
Char[]

The character array to write data from.

index
Int32

Starting index in the buffer.

count
Int32

The number of characters to write.

Applies to

WriteLine(String, ReadOnlySpan<Object>)

Writes out a formatted string, followed by a line terminator, using the same semantics as specified.

public:
 override void WriteLine(System::String ^ format, ReadOnlySpan<System::Object ^> arg);
public override void WriteLine (string format, scoped ReadOnlySpan<object?> arg);
override this.WriteLine : string * ReadOnlySpan<obj> -> unit
Public Overrides Sub WriteLine (format As String, arg As ReadOnlySpan(Of Object))

Parameters

format
String

The formatting string to use.

arg
ReadOnlySpan<Object>

The argument span to output.

Applies to

WriteLine(String, Object[])

Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs

Writes out a formatted string, followed by a line terminator, using the same semantics as specified.

public:
 override void WriteLine(System::String ^ format, ... cli::array <System::Object ^> ^ arg);
public override void WriteLine (string format, params object?[] arg);
public override void WriteLine (string format, params object[] arg);
override this.WriteLine : string * obj[] -> unit
Public Overrides Sub WriteLine (format As String, ParamArray arg As Object())

Parameters

format
String

The formatting string to use.

arg
Object[]

The argument array to output.

Applies to

WriteLine(String, Object)

Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs

Writes out a formatted string, followed by a line terminator, using the same semantics as specified.

public:
 override void WriteLine(System::String ^ format, System::Object ^ arg0);
public override void WriteLine (string format, object? arg0);
public override void WriteLine (string format, object arg0);
override this.WriteLine : string * obj -> unit
Public Overrides Sub WriteLine (format As String, arg0 As Object)

Parameters

format
String

The formatting string.

arg0
Object

The object to write into the formatted string.

Applies to

WriteLine(String)

Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs

Writes the specified string, followed by a line terminator, to the text stream.

public:
 override void WriteLine(System::String ^ s);
public override void WriteLine (string? s);
public override void WriteLine (string s);
override this.WriteLine : string -> unit
Public Overrides Sub WriteLine (s As String)

Parameters

s
String

The string to write.

Applies to

WriteLine(Single)

Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs

Writes the text representation of a Single, followed by a line terminator, to the text stream.

public:
 override void WriteLine(float value);
public override void WriteLine (float value);
override this.WriteLine : single -> unit
Public Overrides Sub WriteLine (value As Single)

Parameters

value
Single

The single to write.

Applies to

WriteLine(UInt32)

Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs

Important

This API is not CLS-compliant.

Writes the text representation of a UInt32, followed by a line terminator, to the text stream.

public:
 override void WriteLine(System::UInt32 value);
[System.CLSCompliant(false)]
public override void WriteLine (uint value);
[<System.CLSCompliant(false)>]
override this.WriteLine : uint32 -> unit
Public Overrides Sub WriteLine (value As UInteger)

Parameters

value
UInt32

A UInt32 to output.

Attributes

Applies to

WriteLine(Int64)

Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs

Writes the text representation of an 8-byte integer, followed by a line terminator, to the text stream.

public:
 override void WriteLine(long value);
public override void WriteLine (long value);
override this.WriteLine : int64 -> unit
Public Overrides Sub WriteLine (value As Long)

Parameters

value
Int64

The 8-byte integer to write.

Applies to

WriteLine(Int32)

Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs

Writes the text representation of an integer, followed by a line terminator, to the text stream.

public:
 override void WriteLine(int value);
public override void WriteLine (int value);
override this.WriteLine : int -> unit
Public Overrides Sub WriteLine (value As Integer)

Parameters

value
Int32

The integer to write.

Applies to

WriteLine(Double)

Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs

Writes the text representation of a Double, followed by a line terminator, to the text stream.

public:
 override void WriteLine(double value);
public override void WriteLine (double value);
override this.WriteLine : double -> unit
Public Overrides Sub WriteLine (value As Double)

Parameters

value
Double

The double to write.

Applies to

WriteLine(Char[])

Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs

Writes a character array, followed by a line terminator, to the text stream.

public:
 override void WriteLine(cli::array <char> ^ buffer);
public override void WriteLine (char[]? buffer);
public override void WriteLine (char[] buffer);
override this.WriteLine : char[] -> unit
Public Overrides Sub WriteLine (buffer As Char())

Parameters

buffer
Char[]

The character array to write.

Applies to

WriteLine(Char)

Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs

Writes a character, followed by a line terminator, to the text stream.

public:
 override void WriteLine(char value);
public override void WriteLine (char value);
override this.WriteLine : char -> unit
Public Overrides Sub WriteLine (value As Char)

Parameters

value
Char

The character to write.

Applies to

WriteLine(Boolean)

Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs

Writes the text representation of a Boolean, followed by a line terminator, to the text stream.

public:
 override void WriteLine(bool value);
public override void WriteLine (bool value);
override this.WriteLine : bool -> unit
Public Overrides Sub WriteLine (value As Boolean)

Parameters

value
Boolean

The Boolean to write.

Applies to

WriteLine()

Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs

Writes a line terminator.

public:
 override void WriteLine();
public override void WriteLine ();
override this.WriteLine : unit -> unit
Public Overrides Sub WriteLine ()

Applies to

WriteLine(Object)

Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs

Writes the text representation of an object, followed by a line terminator, to the text stream.

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

Parameters

value
Object

The object to write.

Applies to