IndentedTextWriter.WriteLineNoTabs(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將指定的字串寫入沒有索引標籤的行。
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.")