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#

public static string WrapAndIndentText(
	string input,
	int indentLevel,
	int columnWidth
)

VB

Public Shared Function WrapAndIndentText ( 
	input As String,
	indentLevel As Integer,
	columnWidth As Integer
) As String

C++

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

F#

static member WrapAndIndentText : 
        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