コード例 #1
0
 /// <summary>Returns a <see cref="ColorToken"/> with background color set to Magenta</summary>
 public static ColorToken OnMagenta(this ColorToken token)
 {
     return(token.On(ConsoleColor.Magenta));
 }
コード例 #2
0
 /// <summary>Returns a <see cref="ColorToken"/> with background color set to Red</summary>
 public static ColorToken OnRed(this ColorToken token)
 {
     return(token.On(ConsoleColor.Red));
 }
コード例 #3
0
 /// <summary>Returns a <see cref="ColorToken"/> with background color set to DarkYellow</summary>
 public static ColorToken OnDarkYellow(this ColorToken token)
 {
     return(token.On(ConsoleColor.DarkYellow));
 }
コード例 #4
0
 /// <summary>Returns a <see cref="ColorToken"/> with background color set to Green</summary>
 public static ColorToken OnGreen(this ColorToken token)
 {
     return(token.On(ConsoleColor.Green));
 }
コード例 #5
0
 /// <summary>Returns a <see cref="ColorToken"/> with background color set to DarkGray</summary>
 public static ColorToken OnDarkGray(this ColorToken token)
 {
     return(token.On(ConsoleColor.DarkGray));
 }
コード例 #6
0
 /// <summary>Returns a <see cref="ColorToken"/> with background color set to DarkBlue</summary>
 public static ColorToken OnDarkBlue(this ColorToken token)
 {
     return(token.On(ConsoleColor.DarkBlue));
 }
コード例 #7
0
 /// <summary>Returns a <see cref="ColorToken"/> with background color set to Cyan</summary>
 public static ColorToken OnCyan(this ColorToken token)
 {
     return(token.On(ConsoleColor.Cyan));
 }
コード例 #8
0
 /// <summary>Returns a <see cref="ColorToken"/> with background color set to Black</summary>
 public static ColorToken OnBlack(this ColorToken token)
 {
     return(token.On(ConsoleColor.Black));
 }
コード例 #9
0
 /// <summary>Returns a <see cref="ColorToken"/> with background color set to White</summary>
 public static ColorToken OnWhite(this ColorToken token)
 {
     return(token.On(ConsoleColor.White));
 }