Share via


IndentedTextWriter.CurrentIndentation Method

Definition

Builds a string representing the current indentation level for a new line.

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

Returns

An empty string, or a string that contains .Indent level's worth of specified tab-string.

Remarks

Does NOT check if tabs are currently pending, just returns a string that would be useful in replacing embedded newline characters.

Applies to