LineWrappingTextWriterIndent Property

Gets or sets the amount of characters to indent all but the first line.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
C#
public int Indent { get; set; }

Property Value

Int32
The amount of characters to indent all but the first line of text.

Remarks

Whenever a line break is encountered (either because of wrapping or because a line break was written to the LineWrappingTextWriter), the next line is indented by the number of characters specified by this property, unless the previous line was blank.

The output position can be reset to the start of the line after a line break by calling the ResetIndent method.

See Also