public void ShouldConvertColorToString() { var color = new ReportItemColor(10, 20, 30, 0.2f); var result = color.ToRgba(); result.ShouldBeEquivalentTo("rgba(10, 20, 30, 0.2)"); }
public LabelReportBlock() { Color = new ReportItemColor(0, 0, 0); // black FontStyle = new LabelFontStyle(14); HorizontalAlign = LabelHorizontalAlign.Left; VerticalAlign = LabelVerticalalign.Top; }
public ChartColumn() { BackgroundColor = new ReportItemColor(0.3f); BorderWidth = 2; Fill = true; LineColor = new ReportItemColor(BackgroundColor.Red, BackgroundColor.Green, BackgroundColor.Blue); }