C# Class NuDeploy.CommandLine.UserInterface.ConsoleTextManipulation

Inheritance: IConsoleTextManipulation
Mostra file Open project: andreaskoch/NuDeploy

Public Methods

Method Description
IndentText ( string text, int windowWidth, int marginLeft ) : string
WrapLongTextWithHangingIndentation ( string text, int maxWidth, int indentation ) : string
WrapText ( string text, int maxWidth ) : string

Private Methods

Method Description
GetLineBreakPosition ( string text, int startPosition, int maxLineLength ) : int
GetWrappedLines ( string text, int maxLineWidth ) : List

Method Details

IndentText() public method

public IndentText ( string text, int windowWidth, int marginLeft ) : string
text string
windowWidth int
marginLeft int
return string

WrapLongTextWithHangingIndentation() public method

public WrapLongTextWithHangingIndentation ( string text, int maxWidth, int indentation ) : string
text string
maxWidth int
indentation int
return string

WrapText() public method

public WrapText ( string text, int maxWidth ) : string
text string
maxWidth int
return string