예제 #1
0
 public static void WriteBorderRow(BorderConf bconf, LengthCollection lconf)
 {
     Write("" + bconf.CharLeft + ("".PadLeft(TableCellPadding, bconf.CharBody)));
     for (int i = 0; i < lconf.Count; i++)
     {
         Write("".PadLeft(lconf.BorderedLength.Items[i].Length + TableCellPadding, bconf.CharBody));
         if (i < lconf.Count - 1)
         {
             Write("" + bconf.CharCorner + ("".PadLeft(TableCellPadding, bconf.CharBody)));
         }
     }
     Write("" + bconf.CharRight);
     WriteLine();
 }
예제 #2
0
        public BorderConf Clone()
        {
            var c = new BorderConf()
            {
                CellLeftTop               = this.CellLeftTop,
                CellRightTop              = this.CellRightTop,
                CellLeftBottom            = this.CellLeftBottom,
                CellRightBottom           = this.CellRightBottom,
                CellHorizontalJointTop    = this.CellHorizontalJointTop,
                CellHorizontalJointbottom = this.CellHorizontalJointbottom,
                CellHorizontalLine        = this.CellHorizontalLine,
                CellTJoint             = this.CellTJoint,
                CellVerticalJointLeft  = this.CellVerticalJointLeft,
                CellVerticalJointRight = this.CellVerticalJointRight,
                CellVerticalLine       = this.CellVerticalLine,
                Enabled            = this.Enabled,
                RowMode            = this.RowMode,
                HorizontalLineBody = this.HorizontalLineBody
            };

            return(c);
        }