private static void AddRowBase( this CellCursor cursor, RowBase rowBase, ReportToWorkbookProjectionContext context, PassKind passKind) { if (passKind == PassKind.Formatting) { cursor.CanvassedRowRange.ApplyRowFormat(rowBase.Format); } for (var x = 0; x < rowBase.Cells.Count; x++) { if (x > 0) { cursor.MoveRight(rowBase.Cells[x - 1].ColumnsSpanned ?? 1); } if (passKind == PassKind.Formatting) { cursor.CanvassedRowRange.ApplyRowFormat(rowBase.Format); } cursor.AddCell(rowBase.Cells[x], context, passKind); } }