Example #1
0
 /// <summary>
 /// Creates a console writer that performs no styling.
 /// </summary>
 /// <param name="textCollection">A collection of text to be printed.</param>
 /// <exception cref="ArgumentNullException"><paramref name="textCollection"/> is <c>null</c>.</exception>
 public UnstyledConsoleWriter(FabulousTextCollection textCollection)
 {
     TextCollection = textCollection ?? throw new ArgumentNullException(nameof(textCollection));
 }
Example #2
0
 /// <summary>
 /// Creates an ANSI string builder that is styled with 256 colors for a collection of styled text.
 /// </summary>
 /// <param name="textCollection">A collection of text to be styled.</param>
 /// <exception cref="ArgumentNullException"><paramref name="textCollection"/> is <c>null</c>.</exception>
 public AnsiEnhancedStringBuilder(FabulousTextCollection textCollection)
 {
     TextCollection = textCollection ?? throw new ArgumentNullException(nameof(textCollection));
 }