예제 #1
0
        internal override object PublishClone(AutomaticSubtotalContext context)
        {
            ChartDataPoint chartDataPoint = (ChartDataPoint)base.PublishClone(context);

            if (m_action != null)
            {
                chartDataPoint.m_action = (Action)m_action.PublishClone(context);
            }
            if (m_styleClass != null)
            {
                chartDataPoint.m_styleClass = (Style)m_styleClass.PublishClone(context);
            }
            if (m_customProperties != null)
            {
                chartDataPoint.m_customProperties = new DataValueList(m_customProperties.Count);
                foreach (DataValue customProperty in m_customProperties)
                {
                    chartDataPoint.m_customProperties.Add((DataValue)customProperty.PublishClone(context));
                }
            }
            if (m_marker != null)
            {
                chartDataPoint.m_marker = (ChartMarker)m_marker.PublishClone(context);
            }
            if (m_dataPointValues != null)
            {
                chartDataPoint.m_dataPointValues           = (ChartDataPointValues)m_dataPointValues.PublishClone(context);
                chartDataPoint.m_dataPointValues.DataPoint = chartDataPoint;
            }
            if (m_dataLabel != null)
            {
                chartDataPoint.m_dataLabel = (ChartDataLabel)m_dataLabel.PublishClone(context);
            }
            if (m_axisLabel != null)
            {
                chartDataPoint.m_axisLabel = (ExpressionInfo)m_axisLabel.PublishClone(context);
            }
            if (m_itemInLegend != null)
            {
                chartDataPoint.m_itemInLegend = (ChartItemInLegend)m_itemInLegend.PublishClone(context);
            }
            if (m_toolTip != null)
            {
                chartDataPoint.m_toolTip = (ExpressionInfo)m_toolTip.PublishClone(context);
            }
            return(chartDataPoint);
        }
예제 #2
0
        internal override object PublishClone(AutomaticSubtotalContext context)
        {
            ChartSeries chartSeries = (ChartSeries)base.PublishClone(context);

            chartSeries.m_chart = (Chart)context.CurrentDataRegionClone;
            if (m_dataPoints != null)
            {
                chartSeries.m_dataPoints = new ChartDataPointList(m_dataPoints.Count);
                foreach (ChartDataPoint dataPoint in m_dataPoints)
                {
                    chartSeries.m_dataPoints.Add((ChartDataPoint)dataPoint.PublishClone(context));
                }
            }
            if (m_customProperties != null)
            {
                chartSeries.m_customProperties = new DataValueList(m_customProperties.Count);
                foreach (DataValue customProperty in m_customProperties)
                {
                    chartSeries.m_customProperties.Add((DataValue)customProperty.PublishClone(context));
                }
            }
            if (m_styleClass != null)
            {
                chartSeries.m_styleClass = (Style)m_styleClass.PublishClone(context);
            }
            if (m_action != null)
            {
                chartSeries.m_action = (Action)m_action.PublishClone(context);
            }
            if (m_type != null)
            {
                chartSeries.m_type = (ExpressionInfo)m_type.PublishClone(context);
            }
            if (m_subtype != null)
            {
                chartSeries.m_subtype = (ExpressionInfo)m_subtype.PublishClone(context);
            }
            if (m_emptyPoints != null)
            {
                chartSeries.m_emptyPoints = (ChartEmptyPoints)m_emptyPoints.PublishClone(context);
            }
            if (m_legendName != null)
            {
                chartSeries.m_legendName = (ExpressionInfo)m_legendName.PublishClone(context);
            }
            if (m_legendText != null)
            {
                chartSeries.m_legendText = (ExpressionInfo)m_legendText.PublishClone(context);
            }
            if (m_chartAreaName != null)
            {
                chartSeries.m_chartAreaName = (ExpressionInfo)m_chartAreaName.PublishClone(context);
            }
            if (m_valueAxisName != null)
            {
                chartSeries.m_valueAxisName = (ExpressionInfo)m_valueAxisName.PublishClone(context);
            }
            if (m_categoryAxisName != null)
            {
                chartSeries.m_categoryAxisName = (ExpressionInfo)m_categoryAxisName.PublishClone(context);
            }
            if (m_hidden != null)
            {
                chartSeries.m_hidden = (ExpressionInfo)m_hidden.PublishClone(context);
            }
            if (m_hideInLegend != null)
            {
                chartSeries.m_hideInLegend = (ExpressionInfo)m_hideInLegend.PublishClone(context);
            }
            if (m_chartSmartLabel != null)
            {
                chartSeries.m_chartSmartLabel = (ChartSmartLabel)m_chartSmartLabel.PublishClone(context);
            }
            if (m_dataLabel != null)
            {
                chartSeries.m_dataLabel = (ChartDataLabel)m_dataLabel.PublishClone(context);
            }
            if (m_marker != null)
            {
                chartSeries.m_marker = (ChartMarker)m_marker.PublishClone(context);
            }
            if (m_toolTip != null)
            {
                chartSeries.m_toolTip = (ExpressionInfo)m_toolTip.PublishClone(context);
            }
            if (m_chartItemInLegend != null)
            {
                chartSeries.m_chartItemInLegend = (ChartItemInLegend)m_chartItemInLegend.PublishClone(context);
            }
            return(chartSeries);
        }