public void AddPhoto(PhotoLayout photoLayout, TextLayout captionLayout) { TableCellLayout outer = new TableCellLayout(_generator, _trackingInfo.LineNumber, _trackingInfo.LinePosition, null); _photoRow.AddSubLayout(outer); outer.AddSubLayout(photoLayout); outer = new TableCellLayout(_generator, _trackingInfo.LineNumber, _trackingInfo.LinePosition, null); _captionRow.AddSubLayout(outer); outer.AddSubLayout(captionLayout); ++_numPhotos; }