Example #1
0
 public void AddImage(
     string filePath      = null,
     BaseColor background = null,
     BaseColor foreground = null,
     SvnBorder border     = null)
 {
     this.Content = new SvnImage(this, filePath, background, foreground, border);
 }
Example #2
0
        internal SvnImage(SvnCell parent, string filePath, BaseColor background, BaseColor foreground, SvnBorder border)
        {
            base.Parent     = parent;
            base.Background = background;
            base.Foreground = foreground;
            base.Border     = border;

            this.FilePath = filePath;
        }
Example #3
0
 internal SvnCol(SvnCell parent, float relativeWidth, BaseColor background, BaseColor foreground, SvnBorder border)
 {
     base.Parent        = parent;
     base.AbsoluteWidth = () => base.Parent.AbsoluteWidth() * base.RelativeWidth / 100;
     base.RelativeWidth = relativeWidth;
     base.Background    = background;
     base.Foreground    = foreground;
     base.Border        = border;
 }
Example #4
0
 internal SvnRow(SvnCell parent, float relativeHeight, BaseColor background, BaseColor foreground, SvnBorder border)
 {
     base.Parent         = parent;
     base.AbsoluteHeight = () => base.Parent.AbsoluteHeight() * base.RelativeHeight / 100;
     base.RelativeHeight = relativeHeight;
     base.Background     = background;
     base.Foreground     = foreground;
     base.Border         = border;
 }
Example #5
0
 public SvnTable(SvnCell parent, float absoluteWidth, float absoluteHeight, BaseColor background, BaseColor foreground, SvnBorder border)
 {
     base.Parent         = parent;
     base.AbsoluteWidth  = () => absoluteWidth;
     base.AbsoluteHeight = () => absoluteHeight;
     base.Background     = background;
     base.Foreground     = foreground;
     base.Border         = border;
 }
Example #6
0
 public void AddText(
     string text          = "",
     float size           = 10,
     VAlign vAlign        = VAlign.Top,
     HAlign hAlign        = HAlign.Left,
     BaseColor background = null,
     BaseColor foreground = null,
     SvnBorder border     = null)
 {
     this.Content = new SvnText(this, text, size, vAlign, hAlign, background, foreground, border);
 }
Example #7
0
        public void AddTable(
            BaseColor background        = null,
            BaseColor foreground        = null,
            SvnBorder border            = null,
            Action <SvnTable> delegator = null)
        {
            var table = new SvnTable(this, base.AbsoluteWidth(), base.AbsoluteHeight(), background, foreground, border);

            this.Content = table;
            delegator?.Invoke(table);
        }