public override object PublishClone(AutomaticSubtotalContext context) { Cell cell = (Cell)base.PublishClone(context); cell.m_aggregates = new List <DataAggregateInfo>(); cell.m_postSortAggregates = new List <DataAggregateInfo>(); cell.m_runningValues = new List <RunningValueInfo>(); cell.m_dataScopeInfo = this.m_dataScopeInfo.PublishClone(context, cell.ID); context.AddAggregateHolder(cell); context.AddRunningValueHolder(cell); if (context.CurrentDataRegionClone != null) { cell.m_dataRegionDef = context.CurrentDataRegionClone; } return(cell); }