語言

IndentedTextWriter.WriteLine 方法

定義

多載

名稱 Description
WriteLine(Char[], Int32, Int32)

將字元的子陣列,後面接著行終止符寫入文字數據流。

WriteLine(String)

將指定的字串,後面接著行終止符寫入文字數據流。

WriteLine(String, Object[])

使用與指定相同的語意,寫出格式化字串,後面接著行終止符。

WriteLine(String, Object)

使用與指定相同的語意,寫出格式化字串,後面接著行終止符。

WriteLine(UInt32)

將 UInt32 的文字表示,後面接著行終止符寫入文字數據流。

WriteLine(Single)

將Single的文字表示,後面接著行終止符寫入文字數據流。

WriteLine(Object)

將 物件的文字表示,後面接著行終止符寫入文字數據流。

WriteLine(Double)

將 Double 的文字表示,後面接著行終止符寫入文字數據流。

WriteLine(Int32)

將整數的文字表示,後面接著行終止符寫入文字數據流。

WriteLine(Char[])

將字元陣列,後面接著行終止符寫入文字數據流。

WriteLine(Char)

將字元,後面接著行終止符寫入文字數據流。

WriteLine(Boolean)

將布爾值的文字表示,後面接著行終止符寫入文字數據流。

WriteLine()

寫入行終止符。

WriteLine(String, Object, Object)

使用與指定相同的語意,寫出格式化字串,後面接著行終止符。

WriteLine(Int64)

將8位元組整數的文字表示,後面接著行終止符寫入文字數據流。

WriteLine(Char[], Int32, Int32)

將字元的子陣列,後面接著行終止符寫入文字數據流。

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)

參數

buffer
Char[]

要從中寫入數據的字元陣列。

index
Int32

緩衝區的起始索引。

count
Int32

要寫入的字元數。

適用於

WriteLine(String)

將指定的字串,後面接著行終止符寫入文字數據流。

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

參數

svalue
String

要寫入的字串。

適用於

WriteLine(String, Object[])

使用與指定相同的語意,寫出格式化字串,後面接著行終止符。

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())

參數

format
String

格式字串要用。

arg
Object[]

將參數陣列輸出。

適用於

WriteLine(String, Object)

使用與指定相同的語意,寫出格式化字串,後面接著行終止符。

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

參數

format
String

格式字串。

arg0
Object

要寫入格式化字串的物件。

適用於

WriteLine(UInt32)

重要

此 API 不符合 CLS 規範。

將 UInt32 的文字表示,後面接著行終止符寫入文字數據流。

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

參數

value
UInt32

輸出一個 UInt32。

屬性

適用於

WriteLine(Single)

將Single的文字表示,後面接著行終止符寫入文字數據流。

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

參數

value
Single

那是要寫的單曲。

適用於

WriteLine(Object)

將 物件的文字表示,後面接著行終止符寫入文字數據流。

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

參數

value
Object

要寫入的物件。

適用於

WriteLine(Double)

將 Double 的文字表示,後面接著行終止符寫入文字數據流。

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

參數

value
Double

替身要寫。

適用於

WriteLine(Int32)

將整數的文字表示,後面接著行終止符寫入文字數據流。

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

參數

value
Int32

整數要寫。

適用於

WriteLine(Char[])

將字元陣列,後面接著行終止符寫入文字數據流。

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

參數

buffer
Char[]

要寫字元陣列。

適用於

WriteLine(Char)

將字元,後面接著行終止符寫入文字數據流。

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

參數

value
Char

要寫的角色。

適用於

WriteLine(Boolean)

將布爾值的文字表示,後面接著行終止符寫入文字數據流。

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

參數

value
Boolean

布林值要寫。

適用於

WriteLine()

寫入行終止符。

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

適用於

WriteLine(String, Object, Object)

使用與指定相同的語意,寫出格式化字串,後面接著行終止符。

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)

參數

format
String

格式字串要用。

arg0
Object

第一個寫入格式化字串的物件。

arg1
Object

第二個要寫入格式化字串的物件。

適用於

WriteLine(Int64)

將8位元組整數的文字表示,後面接著行終止符寫入文字數據流。

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

參數

value
Int64

要寫入的 8 位元組整數。

適用於