20 : this(line1, string.Empty, string.Empty, string.Empty, string.Empty) { }
29 : this(line1, line2, string.Empty, string.Empty, string.Empty) { }
39 : this(line1, line2, line3, string.Empty, string.Empty) { }
50 : this(line1, line2, line3, line4, string.Empty) { }
65 throw new ArgumentException(
"line1");
70 throw new ArgumentException(
"line2");
75 throw new ArgumentException(
"line3");
80 throw new ArgumentException(
"line4");
85 throw new ArgumentException(
"line5");
103 StringBuilder value =
new StringBuilder(
string.Empty);
108 value.AppendLine(strArray[i]);
111 return value.ToString();
145 .Aggregate(helpText, (current, line) => func(line));
166 int index = Array.FindLastIndex(value, str => !
string.IsNullOrEmpty(str));
HelpText AddPreOptionsLine(string value)
Adds a text line after copyright and before options usage strings.
HelpText AddPostOptionsLine(string value)
Adds a text line at the bottom, after options usage string.
Provides base properties for creating an attribute, used to define multiple lines of text.
HelpText AddToHelpText(HelpText helpText, bool before)
string Line4
Gets the fourth line of text.
string Line2
Gets the second line of text.
virtual string Value
Gets the all non-blank lines as string.
MultilineTextAttribute(string line1, string line2, string line3, string line4)
Initializes a new instance of the MultilineTextAttribute class. Used in type using four lines of text...
MultilineTextAttribute(string line1, string line2, string line3)
Initializes a new instance of the MultilineTextAttribute class. Used in type using three lines of tex...
virtual int GetLastLineWithText(string[] value)
Returns the last line with text. Preserves blank lines if user intended by skipping a line.
MultilineTextAttribute(string line1, string line2)
Initializes a new instance of the MultilineTextAttribute class. Used in type using two lines of text.
string Line1
Gets the first line of text.
string Line5
Gets the fifth line of text.
string Line3
Gets third line of text.
MultilineTextAttribute(string line1, string line2, string line3, string line4, string line5)
Initializes a new instance of the MultilineTextAttribute class. Used in type using five lines of text...
MultilineTextAttribute(string line1)
Initializes a new instance of the MultilineTextAttribute class. Used in derived type using one line o...
HelpText AddToHelpText(HelpText helpText, Func< string, HelpText > func)