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.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
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 IndentAfterEmptyLine property is and the previous line was blank.

Changes to this property will not

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

Exceptions

ArgumentOutOfRangeException The property was set to a value less than zero or greater than the maximum line length.

See Also