語言

IndentedTextWriter.WriteLineNoTabs(String) 方法

定義

將指定的字串寫入沒有索引標籤的行。

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

參數

s
String

要寫入的字串。

範例

以下程式碼範例示範如何寫出不使用制表字串縮排的行。

// Outputs a string using the WriteLineNoTabs method.
indentWriter.WriteLineNoTabs("This is a test phrase written with the IndentTextWriter.WriteLineNoTabs method.");
' Output a string using the WriteLineNoTabs method.
indentWriter.WriteLineNoTabs("This is a test phrase written with the IndentTextWriter.WriteLineNoTabs method.")

適用於