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." );
// 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.")

适用于