コード例 #1
0
 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);
     });
 }
コード例 #2
0
 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);
         });
     });
 }
コード例 #3
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);
 }
コード例 #4
0
ファイル: SvnCol.cs プロジェクト: karadevelopment/SVN.Pdf
 public void AddEmpty(
     BaseColor background = null,
     BaseColor foreground = null,
     SvnBorder border     = null)
 {
     this.AddText(
         background: background,
         foreground: foreground,
         border: border);
 }
コード例 #5
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);
 }
コード例 #6
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);
        }
コード例 #7
0
        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);
        }
コード例 #8
0
 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);
 }
コード例 #9
0
        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);
        }
コード例 #10
0
 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);
     });
 }
コード例 #11
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;
        }
コード例 #12
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;
 }
コード例 #13
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;
 }
コード例 #14
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;
 }