共用方式為


IndentedTextWriter.CurrentIndentation 方法

定義

建置字串,代表新行的目前縮排層級。

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

傳回

空字串,或包含 的字串。縮排層級的指定索引標籤字串。

備註

不會檢查索引標籤目前是否擱置中,只會傳回字串,以取代內嵌 分行符號很有用。

適用於