Skip to content

M_CommandLine_Text_TextWrapper_WordWrap

Moh.Hassan edited this page Oct 10, 2019 · 1 revision

TextWrapper.WordWrap Method

Splits a string into a words and performs wrapping while also preserving line-breaks and sub-indentation

Namespace: CommandLine.Text
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0

Syntax

C#

public TextWrapper WordWrap(
	int columnWidth
)

VB

Public Function WordWrap ( 
	columnWidth As Integer
) As TextWrapper

C++

public:
TextWrapper^ WordWrap(
	int columnWidth
)

F#

member WordWrap : 
        columnWidth : int -> TextWrapper 

Parameters

 

columnWidth
Type: System.Int32
The number of characters we can use for text

Return Value

Type: TextWrapper
this

Remarks

This method attempts to wrap text without breaking words For example, if columnWidth is 10 , the input "a string for wrapping 01234567890123" would return "a string "for "wrapping "0123456789 "0123"

See Also

Reference

TextWrapper Class
CommandLine.Text Namespace

Clone this wiki locally