Skip to content

M_CommandLine_Text_TextWrapper_WrapAndIndentText

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

TextWrapper.WrapAndIndentText Method

Convenience method to wraps and indent a string in a single operation

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

Syntax

C#

publicstaticstringWrapAndIndentText(stringinput,intindentLevel,intcolumnWidth)

VB

PublicSharedFunctionWrapAndIndentText(inputAsString,indentLevelAsInteger,columnWidthAsInteger)AsString

C++

public:static String^ WrapAndIndentText( String^ input, int indentLevel, int columnWidth )

F#

static memberWrapAndIndentText:input :string * indentLevel : int * columnWidth : int -> string 

Parameters

input
Type: System.String
The string to operate on
indentLevel
Type: System.Int32
The number of spaces to indent by
columnWidth
Type: System.Int32
The width of the column used for wrapping

Return Value

Type: String
the processed string

Remarks

The string is wrapped then indented so the columnWidth is the width of the usable text block, and does NOT include the indentLevel.

See Also

Reference

TextWrapper Class
CommandLine.Text Namespace

Clone this wiki locally