コード例 #1
0
ファイル: SvnCol.cs プロジェクト: karadevelopment/SVN.Pdf
 public void AddImage(
     string filePath      = null,
     BaseColor background = null,
     BaseColor foreground = null,
     SvnBorder border     = null)
 {
     this.Content = new SvnImage(this, filePath, background, foreground, border);
 }
コード例 #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;
        }
コード例 #3
0
ファイル: SvnCol.cs プロジェクト: karadevelopment/SVN.Pdf
 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;
 }
コード例 #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;
 }
コード例 #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;
 }
コード例 #6
0
ファイル: SvnCol.cs プロジェクト: karadevelopment/SVN.Pdf
 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);
 }
コード例 #7
0
ファイル: SvnCol.cs プロジェクト: karadevelopment/SVN.Pdf
        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);
        }