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