ImagePlaceholder.cs 485 B

1234567891011121314151617181920
  1. using QuestPDF.Fluent;
  2. using QuestPDF.Helpers;
  3. using QuestPDF.Infrastructure;
  4. namespace QuestPDF.ReportSample.Layouts
  5. {
  6. public class ImagePlaceholder : IComponent
  7. {
  8. public static bool Solid { get; set; } = false;
  9. public void Compose(IContainer container)
  10. {
  11. if (Solid)
  12. container.Background(Placeholders.Color());
  13. else
  14. container.Image(Placeholders.Image);
  15. }
  16. }
  17. }