C# Class CommandLine.Text.MultilineTextAttribute

Provides base properties for creating an attribute, used to define multiple lines of text.
Inheritance: System.Attribute
Show file Open project: cosmo0/commandline

Protected Methods

Method Description
GetLastLineWithText ( string value ) : int

Returns the last line with text. Preserves blank lines if user intended by skipping a line.

MultilineTextAttribute ( string line1 ) : System

Initializes a new instance of the MultilineTextAttribute class. Used in derived type using one line of text.

MultilineTextAttribute ( string line1, string line2 ) : System

Initializes a new instance of the MultilineTextAttribute class. Used in type using two lines of text.

MultilineTextAttribute ( string line1, string line2, string line3 ) : System

Initializes a new instance of the MultilineTextAttribute class. Used in type using three lines of text.

MultilineTextAttribute ( string line1, string line2, string line3, string line4 ) : System

Initializes a new instance of the MultilineTextAttribute class. Used in type using four lines of text.

MultilineTextAttribute ( string line1, string line2, string line3, string line4, string line5 ) : System

Initializes a new instance of the MultilineTextAttribute class. Used in type using five lines of text.

Private Methods

Method Description
AddToHelpText ( HelpText helpText, HelpText>.Func func ) : HelpText
AddToHelpText ( HelpText helpText, bool before ) : HelpText

Method Details

GetLastLineWithText() protected method

Returns the last line with text. Preserves blank lines if user intended by skipping a line.
protected GetLastLineWithText ( string value ) : int
value string The string array to process.
return int

MultilineTextAttribute() protected method

Initializes a new instance of the MultilineTextAttribute class. Used in derived type using one line of text.
protected MultilineTextAttribute ( string line1 ) : System
line1 string The first line of text.
return System

MultilineTextAttribute() protected method

Initializes a new instance of the MultilineTextAttribute class. Used in type using two lines of text.
protected MultilineTextAttribute ( string line1, string line2 ) : System
line1 string The first line of text.
line2 string The second line of text.
return System

MultilineTextAttribute() protected method

Initializes a new instance of the MultilineTextAttribute class. Used in type using three lines of text.
protected MultilineTextAttribute ( string line1, string line2, string line3 ) : System
line1 string The first line of text.
line2 string The second line of text.
line3 string The third line of text.
return System

MultilineTextAttribute() protected method

Initializes a new instance of the MultilineTextAttribute class. Used in type using four lines of text.
protected MultilineTextAttribute ( string line1, string line2, string line3, string line4 ) : System
line1 string The first line of text.
line2 string The second line of text.
line3 string The third line of text.
line4 string The fourth line of text.
return System

MultilineTextAttribute() protected method

Initializes a new instance of the MultilineTextAttribute class. Used in type using five lines of text.
protected MultilineTextAttribute ( string line1, string line2, string line3, string line4, string line5 ) : System
line1 string The first line of text.
line2 string The second line of text.
line3 string The third line of text.
line4 string The fourth line of text.
line5 string The fifth line of text.
return System