public IEnumerator <IBuilderContent> GetEnumerator()
            {
                float xpos = this._initrowBounds.Left;

                foreach (RTFCellDefinition item in this._cellDefinitions)
                {
                    float      cellwidth      = (item.CellWidthRaw) / 100F * this._initrowBounds.Width;
                    RectangleF initCellBounds = new RectangleF(new PointF(this._initrowBounds.Left + xpos, this._initrowBounds.Top),
                                                               new SizeF(cellwidth, this._initrowBounds.Height));
                    xpos += cellwidth;
                    this.Builder.Manager.CurrentPage = this.Pages[0];
                    using (GDFCell cell = new GDFCell(this, initCellBounds))
                    {
                        yield return(cell);
                    }
                }
            }
Beispiel #2
0
 public IEnumerator <IBuilderContent> GetEnumerator()
 {
     float xpos = this._initrowBounds.Left;
     foreach (RTFCellDefinition item in this._cellDefinitions)
     {
         float cellwidth = (item.CellWidthRaw) / 100F * this._initrowBounds.Width;
         RectangleF initCellBounds = new RectangleF(new PointF(this._initrowBounds.Left + xpos, this._initrowBounds.Top),
                                                    new SizeF(cellwidth, this._initrowBounds.Height));
         xpos += cellwidth;
         this.Builder.Manager.CurrentPage = this.Pages[0];
         using (GDFCell cell = new GDFCell(this, initCellBounds))
         {
             yield return cell;
         }
     }
 }
Beispiel #3
0
 public IEnumerator<IBuilderContent> GetEnumerator()
 {
     var xpos = _initrowBounds.Left;
     foreach (var item in _cellDefinitions)
     {
         var cellwidth = (item.CellWidthRaw)/100F*_initrowBounds.Width;
         var initCellBounds = new RectangleF(new PointF(_initrowBounds.Left + xpos, _initrowBounds.Top),
                                             new SizeF(cellwidth, _initrowBounds.Height));
         xpos += cellwidth;
         Builder.Manager.CurrentPage = Pages[0];
         using (var cell = new GDFCell(this, initCellBounds))
         {
             yield return cell;
         }
     }
 }