public void AddText( float relativeWidth = 100, string text = "", float size = 10, VAlign vAlign = VAlign.Top, HAlign hAlign = HAlign.Left, BaseColor background = null, BaseColor foreground = null, SvnBorder border = null) { this.AddCol( relativeWidth: relativeWidth, background: background, foreground: foreground, delegator: col => { col.AddText( text: text, size: size, vAlign: vAlign, hAlign: hAlign, background: background, foreground: foreground, border: border); }); }
public void AddImage( float relativeHeight = 100, string filePath = null, BaseColor background = null, BaseColor foreground = null, SvnBorder border = null) { this.AddRow( relativeHeight: relativeHeight, background: background, foreground: foreground, delegator: row => { row.AddCol( relativeWidth: 100, background: background, foreground: foreground, delegator: col => { col.AddImage( filePath: filePath, background: background, foreground: foreground, border: border); }); }); }
public void AddImage( string filePath = null, BaseColor background = null, BaseColor foreground = null, SvnBorder border = null) { this.Content = new SvnImage(this, filePath, background, foreground, border); }
public void AddEmpty( BaseColor background = null, BaseColor foreground = null, SvnBorder border = null) { this.AddText( background: background, foreground: foreground, border: border); }
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); }
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); }
public void AddCol( float relativeWidth = 100, BaseColor background = null, BaseColor foreground = null, SvnBorder border = null, Action <SvnCol> delegator = null) { var col = new SvnCol(this, relativeWidth, background, foreground, border); this.Cols.Add(col); delegator(col); }
public void AddEmpty( float relativeWidth = 100, BaseColor background = null, BaseColor foreground = null, SvnBorder border = null) { this.AddText( relativeWidth: relativeWidth, background: background, foreground: foreground, border: border); }
public void AddRow( float relativeHeight = 100, BaseColor background = null, BaseColor foreground = null, SvnBorder border = null, Action <SvnRow> delegator = null) { var row = new SvnRow(this, relativeHeight, background, foreground, border); this.Rows.Add(row); delegator?.Invoke(row); }
public void AddTable( float relativeWidth = 100, BaseColor background = null, BaseColor foreground = null, SvnBorder border = null, Action <SvnTable> delegator = null) { this.AddCol( relativeWidth: relativeWidth, background: background, foreground: foreground, delegator: col => { col.AddTable( background: background, foreground: foreground, border: border, delegator: delegator); }); }
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; }
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; }
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; }
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; }