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