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.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
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