語言

IndentedTextWriter.CurrentIndentation 方法

定義

建立代表新行當前縮排層級的字串。

public virtual string CurrentIndentation();
abstract member CurrentIndentation : unit -> string
override this.CurrentIndentation : unit -> string
Public Overridable Function CurrentIndentation () As String

傳回

空字串,或包含 的字串。縮排等級的指定制表字串。

備註

它不會檢查 tab 是否正在等待中,只會回傳一個字串,這會用來替換嵌入 的換行字元。

適用於