public Task ResetIndentAsync(
CancellationToken cancellationToken = default
)
Public Function ResetIndentAsync (
Optional cancellationToken As CancellationToken = Nothing
) As Task
Dim instance As LineWrappingTextWriter
Dim cancellationToken As CancellationToken
Dim returnValue As Task
returnValue = instance.ResetIndentAsync(cancellationToken)
public:
Task^ ResetIndentAsync(
CancellationToken cancellationToken = CancellationToken()
)
The ResetIndentAsync(CancellationToken) method will reset the output position to the beginning of the current line. It does not modify the Indent property, so the text will be indented again the next time a line break is written to the output.
If the current line buffer is not empty, it will be flushed to the BaseWriter, followed by a new line before the indentation is reset. If the current line buffer is empty (a line containing only indentation is considered empty), the output position is simply reset to the beginning of the line without writing anything to the base writer.