internal override object PublishClone(AutomaticSubtotalContext context) { ReportItem reportItem = (ReportItem)base.PublishClone(context); reportItem.m_name = context.CreateUniqueReportItemName(m_name, m_isClone); if (m_styleClass != null) { reportItem.m_styleClass = (Style)m_styleClass.PublishClone(context); } if (m_top != null) { reportItem.m_top = (string)m_top.Clone(); } if (m_left != null) { reportItem.m_left = (string)m_left.Clone(); } if (m_height != null) { reportItem.m_height = (string)m_height.Clone(); } if (m_width != null) { reportItem.m_width = (string)m_width.Clone(); } if (m_toolTip != null) { reportItem.m_toolTip = (ExpressionInfo)m_toolTip.PublishClone(context); } if (m_visibility != null) { reportItem.m_visibility = (Visibility)m_visibility.PublishClone(context, isSubtotalMember: false); } reportItem.m_documentMapLabel = null; reportItem.m_bookmark = null; if (m_dataElementName != null) { reportItem.m_dataElementName = (string)m_dataElementName.Clone(); } if (m_repeatWith != null) { context.AddReportItemWithRepeatWithToUpdate(reportItem); reportItem.m_repeatWith = (string)m_repeatWith.Clone(); } if (m_customProperties != null) { reportItem.m_customProperties = new DataValueList(m_customProperties.Count); { foreach (DataValue customProperty in m_customProperties) { reportItem.m_customProperties.Add((DataValue)customProperty.PublishClone(context)); } return(reportItem); } } return(reportItem); }