コード例 #1
0
        public override object PublishClone(AutomaticSubtotalContext context)
        {
            ChartTitle chartTitle = (ChartTitle)base.PublishClone(context);

            if (this.m_position != null)
            {
                chartTitle.m_position = (ExpressionInfo)this.m_position.PublishClone(context);
            }
            if (this.m_hidden != null)
            {
                chartTitle.m_hidden = (ExpressionInfo)this.m_hidden.PublishClone(context);
            }
            if (this.m_docking != null)
            {
                chartTitle.m_docking = (ExpressionInfo)this.m_docking.PublishClone(context);
            }
            if (this.m_dockToChartArea != null)
            {
                chartTitle.m_dockToChartArea = (string)this.m_dockToChartArea.Clone();
            }
            if (this.m_dockOutsideChartArea != null)
            {
                chartTitle.m_dockOutsideChartArea = (ExpressionInfo)this.m_dockOutsideChartArea.PublishClone(context);
            }
            if (this.m_dockOffset != null)
            {
                chartTitle.m_dockOffset = (ExpressionInfo)this.m_dockOffset.PublishClone(context);
            }
            if (this.m_toolTip != null)
            {
                chartTitle.m_toolTip = (ExpressionInfo)this.m_toolTip.PublishClone(context);
            }
            if (this.m_action != null)
            {
                chartTitle.m_action = (Action)this.m_action.PublishClone(context);
            }
            if (this.m_textOrientation != null)
            {
                chartTitle.m_textOrientation = (ExpressionInfo)this.m_textOrientation.PublishClone(context);
            }
            if (this.m_chartElementPosition != null)
            {
                chartTitle.m_chartElementPosition = (ChartElementPosition)this.m_chartElementPosition.PublishClone(context);
            }
            return(chartTitle);
        }
コード例 #2
0
 public ChartTitle(AspNetCore.ReportingServices.ReportIntermediateFormat.ChartTitle chartTitleDef, Chart chart)
 {
     this.m_chart         = chart;
     this.m_chartTitleDef = chartTitleDef;
 }
コード例 #3
0
 public override void DataRegionContentsSetExprHost(ObjectModelImpl reportObjectModel, bool traverseDataRegions)
 {
     if (this.m_chartExprHost != null)
     {
         IList <ChartAreaExprHost> chartAreasHostsRemotable = this.m_chartExprHost.ChartAreasHostsRemotable;
         if (this.m_chartAreas != null && chartAreasHostsRemotable != null)
         {
             for (int i = 0; i < this.m_chartAreas.Count; i++)
             {
                 ChartArea chartArea = this.m_chartAreas[i];
                 if (chartArea != null && chartArea.ExpressionHostID > -1)
                 {
                     chartArea.SetExprHost(chartAreasHostsRemotable[chartArea.ExpressionHostID], reportObjectModel);
                 }
             }
         }
         IList <ChartTitleExprHost> titlesHostsRemotable = this.m_chartExprHost.TitlesHostsRemotable;
         if (this.m_titles != null && titlesHostsRemotable != null)
         {
             for (int j = 0; j < this.m_titles.Count; j++)
             {
                 ChartTitle chartTitle = this.m_titles[j];
                 if (chartTitle != null && chartTitle.ExpressionHostID > -1)
                 {
                     chartTitle.SetExprHost(titlesHostsRemotable[chartTitle.ExpressionHostID], reportObjectModel);
                 }
             }
         }
         IList <ChartLegendExprHost> legendsHostsRemotable = this.m_chartExprHost.LegendsHostsRemotable;
         if (this.m_legends != null && legendsHostsRemotable != null)
         {
             for (int k = 0; k < this.m_legends.Count; k++)
             {
                 ChartLegend chartLegend = this.m_legends[k];
                 if (chartLegend != null && chartLegend.ExpressionHostID > -1)
                 {
                     chartLegend.SetExprHost(legendsHostsRemotable[chartLegend.ExpressionHostID], reportObjectModel);
                 }
             }
         }
         IList <ChartCustomPaletteColorExprHost> customPaletteColorHostsRemotable = this.m_chartExprHost.CustomPaletteColorHostsRemotable;
         if (this.m_customPaletteColors != null && customPaletteColorHostsRemotable != null)
         {
             for (int l = 0; l < this.m_customPaletteColors.Count; l++)
             {
                 ChartCustomPaletteColor chartCustomPaletteColor = this.m_customPaletteColors[l];
                 if (chartCustomPaletteColor != null && chartCustomPaletteColor.ExpressionHostID > -1)
                 {
                     chartCustomPaletteColor.SetExprHost(customPaletteColorHostsRemotable[chartCustomPaletteColor.ExpressionHostID], reportObjectModel);
                 }
             }
         }
         if (this.m_codeParameters != null && this.m_chartExprHost.CodeParametersHostsRemotable != null)
         {
             this.m_codeParameters.SetExprHost(this.m_chartExprHost.CodeParametersHostsRemotable, reportObjectModel);
         }
         if (this.m_borderSkin != null && this.m_chartExprHost.BorderSkinHost != null)
         {
             this.m_borderSkin.SetExprHost(this.m_chartExprHost.BorderSkinHost, reportObjectModel);
         }
         if (this.m_noDataMessage != null && this.m_chartExprHost.NoDataMessageHost != null)
         {
             this.m_noDataMessage.SetExprHost(this.m_chartExprHost.NoDataMessageHost, reportObjectModel);
         }
         IList <ChartSeriesExprHost>    seriesCollectionHostsRemotable = this.m_chartExprHost.SeriesCollectionHostsRemotable;
         IList <ChartDataPointExprHost> cellHostsRemotable             = this.m_chartExprHost.CellHostsRemotable;
         Global.Tracer.Assert(this.m_chartSeriesCollection != null, "(m_chartSeriesCollection != null)");
         for (int m = 0; m < this.m_chartSeriesCollection.Count; m++)
         {
             ChartSeries chartSeries = this.m_chartSeriesCollection[m];
             Global.Tracer.Assert(null != chartSeries, "(null != series)");
             if (seriesCollectionHostsRemotable != null && chartSeries.ExpressionHostID > -1)
             {
                 chartSeries.SetExprHost(seriesCollectionHostsRemotable[chartSeries.ExpressionHostID], reportObjectModel);
             }
             if (cellHostsRemotable != null)
             {
                 Global.Tracer.Assert(null != chartSeries.DataPoints, "(null != series.DataPoints)");
                 for (int n = 0; n < chartSeries.DataPoints.Count; n++)
                 {
                     ChartDataPoint chartDataPoint = chartSeries.DataPoints[n];
                     Global.Tracer.Assert(null != chartDataPoint, "(null != dataPoint)");
                     if (chartDataPoint.ExpressionHostID > -1)
                     {
                         chartDataPoint.SetExprHost(cellHostsRemotable[chartDataPoint.ExpressionHostID], reportObjectModel);
                     }
                 }
             }
         }
     }
 }