M_CommandLine_Text_TextWrapper_WrapAndIndentText - adutton/commandline GitHub Wiki
Convenience method to wraps and indent a string in a single operation
Namespace: CommandLine.Text
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0
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 StringC++
public:
static String^ WrapAndIndentText(
String^ input,
int indentLevel,
int columnWidth
)F#
static member WrapAndIndentText :
input : string *
indentLevel : int *
columnWidth : int -> string
- 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
Type: String
the processed string
The string is wrapped then indented so the columnWidth is the width of the usable text block, and does NOT include the indentLevel.