LineWrappingTextWriterWrapping Property

Gets or sets a value which indicates how to wrap lines at the maximum line length.

Definition

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

Property Value

WrappingMode
One of the values of the WrappingMode enumeration. If no maximum line length is set, the value is always WrappingModeDisabled.

Remarks

When this property is changed to WrappingModeDisabled the buffer will be flushed synchronously if not empty.

When this property is changed from WrappingModeDisabled to another value, if the last character written was not a new line, the current line may not be correctly wrapped.

Changing this property resets indentation so the next write will not be indented.

This property cannot be changed if there is no maximum line length.

See Also