Example #1
0
 public TextParameters SetColor(TextColorFunction color, TextColorFunction border)
 {
     if (color != null)
     {
         Color = color;
     }
     if (border != null)
     {
         Border = border;
     }
     return(this);
 }
Example #2
0
 public void Format(FormatCode code)
 {
     if (code is FormatCodeColor color)
     {
         if (color.Color != null)
         {
             Color = color.Color;
         }
         if (color.Border != null)
         {
             Border = color.Border;
         }
     }
 }
Example #3
0
 public TextParameters SetColor(TextColorFunction color, TextColorFunction border)
 {
     Color  = color;
     Border = border;
     return(this);
 }
Example #4
0
 public TextParameters SetColor(Color color, Color border)
 {
     Color  = (index) => color;
     Border = (index) => border;
     return(this);
 }
Example #5
0
 public FormatCodeColor(TextColorFunction color, TextColorFunction border) : base(0)
 {
     Color  = color;
     Border = border;
 }