Exemple #1
0
        /// <summary>
        /// 输出子元素
        /// </summary>
        protected void OutputChildren()
        {
            if (_children.Count == 0)
            {
                return;
            }

            // 统一输出后才可统计占的行数,因输出过程位置在变
            foreach (RptTextInst inst in _children)
            {
                inst.Output();
            }

            // 统计行跨度
            int maxSpan = 0;

            foreach (RptTextInst inst in _children)
            {
                RptRegion region = inst.Region;
                int       span   = region.Row + region.RowSpan - _region.Row;
                if (span > maxSpan)
                {
                    maxSpan = span;
                }
            }
            _region.RowSpan = maxSpan;
        }
Exemple #2
0
 public RptRegion(RptRegion p_region)
 {
     Row     = p_region.Row;
     Col     = p_region.Col;
     RowSpan = p_region.RowSpan;
     ColSpan = p_region.ColSpan;
 }