IndentedTextWriter.Write 方法

定义

将指定的字符串写入文本流。

重载

Write(String, Object, Object)

使用与指定语义相同的语义写出已格式化的字符串。

Write(Char[], Int32, Int32)

将字符的子数组写入文本流。

Write(String, Object[])

使用与指定语义相同的语义写出已格式化的字符串。

Write(String, Object)

使用与指定语义相同的语义写出已格式化的字符串。

Write(String)

将指定的字符串写入文本流。

Write(Single)

将 Single 的文本表示形式写入文本流。

Write(Boolean)

将 Boolean 值的文本表示形式写入文本流。

Write(Int64)

将 8 字节整数的文本表示形式写入文本流。

Write(Int32)

将整数的文本表示形式写入文本流。

Write(Double)

将 Double 的文本表示形式写入文本流。

Write(Char[])

将字符数组写入文本流。

Write(Char)

将字符写入文本流。

Write(Object)

将对象的文本表示形式写入文本流。

Write(String, Object, Object)

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

使用与指定语义相同的语义写出已格式化的字符串。

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

参数

format
String

要使用的格式化字符串。

arg0
Object

第一个要写入已格式化字符串的对象。

arg1
Object

第二个要写入已格式化字符串的对象。

适用于

Write(Char[], Int32, Int32)

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

将字符的子数组写入文本流。

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

参数

buffer
Char[]

要从中写出数据的字符数组。

index
Int32

在缓冲区中开始索引。

count
Int32

要写入的字符数。

适用于

Write(String, Object[])

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

使用与指定语义相同的语义写出已格式化的字符串。

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

参数

format
String

要使用的格式化字符串。

arg
Object[]

要输出的参数数组。

适用于

Write(String, Object)

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

使用与指定语义相同的语义写出已格式化的字符串。

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

参数

format
String

格式设置字符串。

arg0
Object

要写入已格式化字符串的对象。

适用于

Write(String)

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

将指定的字符串写入文本流。

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

参数

s
String

要写入的字符串。

适用于

Write(Single)

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

将 Single 的文本表示形式写入文本流。

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

参数

value
Single

要写入的 single

适用于

Write(Boolean)

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

将 Boolean 值的文本表示形式写入文本流。

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

参数

value
Boolean

要写入的 Boolean 值。

适用于

Write(Int64)

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

将 8 字节整数的文本表示形式写入文本流。

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

参数

value
Int64

要写入的 8 字节整数。

适用于

Write(Int32)

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

将整数的文本表示形式写入文本流。

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

参数

value
Int32

要写入的整数。

适用于

Write(Double)

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

将 Double 的文本表示形式写入文本流。

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

参数

value
Double

要写入的 double

适用于

Write(Char[])

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

将字符数组写入文本流。

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

参数

buffer
Char[]

要写入的字符数组。

适用于

Write(Char)

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

将字符写入文本流。

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

参数

value
Char

要写入的字符。

适用于

Write(Object)

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

将对象的文本表示形式写入文本流。

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

参数

value
Object

要写入的对象。

适用于