public void SetExprHost(ChartLegendExprHost exprHost, ObjectModelImpl reportObjectModel) { Global.Tracer.Assert(exprHost != null && reportObjectModel != null, "(exprHost != null && reportObjectModel != null)"); base.SetExprHost(exprHost, reportObjectModel); this.m_exprHost = exprHost; if (this.m_chartLegendTitle != null && exprHost.TitleExprHost != null) { this.m_chartLegendTitle.SetExprHost(exprHost.TitleExprHost, reportObjectModel); } IList <ChartLegendCustomItemExprHost> chartLegendCustomItemsHostsRemotable = this.m_exprHost.ChartLegendCustomItemsHostsRemotable; if (this.m_chartLegendCustomItems != null && chartLegendCustomItemsHostsRemotable != null) { for (int i = 0; i < this.m_chartLegendCustomItems.Count; i++) { ChartLegendCustomItem chartLegendCustomItem = this.m_chartLegendCustomItems[i]; if (chartLegendCustomItem != null && chartLegendCustomItem.ExpressionHostID > -1) { chartLegendCustomItem.SetExprHost(chartLegendCustomItemsHostsRemotable[chartLegendCustomItem.ExpressionHostID], reportObjectModel); } } } IList <ChartLegendColumnExprHost> chartLegendColumnsHostsRemotable = this.m_exprHost.ChartLegendColumnsHostsRemotable; if (this.m_chartLegendColumns != null && chartLegendColumnsHostsRemotable != null) { for (int j = 0; j < this.m_chartLegendColumns.Count; j++) { ChartLegendColumn chartLegendColumn = this.m_chartLegendColumns[j]; if (chartLegendColumn != null && chartLegendColumn.ExpressionHostID > -1) { chartLegendColumn.SetExprHost(chartLegendColumnsHostsRemotable[chartLegendColumn.ExpressionHostID], reportObjectModel); } } } if (this.m_chartElementPosition != null && this.m_exprHost.ChartElementPositionHost != null) { this.m_chartElementPosition.SetExprHost(this.m_exprHost.ChartElementPositionHost, reportObjectModel); } }
public override object PublishClone(AutomaticSubtotalContext context) { ChartLegendCustomItem chartLegendCustomItem = (ChartLegendCustomItem)base.PublishClone(context); if (this.m_action != null) { chartLegendCustomItem.m_action = (Action)this.m_action.PublishClone(context); } if (this.m_marker != null) { chartLegendCustomItem.m_marker = (ChartMarker)this.m_marker.PublishClone(context); } if (this.m_separator != null) { chartLegendCustomItem.m_separator = (ExpressionInfo)this.m_separator.PublishClone(context); } if (this.m_separatorColor != null) { chartLegendCustomItem.m_separatorColor = (ExpressionInfo)this.m_separatorColor.PublishClone(context); } if (this.m_toolTip != null) { chartLegendCustomItem.m_toolTip = (ExpressionInfo)this.m_toolTip.PublishClone(context); } if (this.m_chartLegendCustomItemCells != null) { chartLegendCustomItem.m_chartLegendCustomItemCells = new List <ChartLegendCustomItemCell>(this.m_chartLegendCustomItemCells.Count); { foreach (ChartLegendCustomItemCell chartLegendCustomItemCell in this.m_chartLegendCustomItemCells) { chartLegendCustomItem.m_chartLegendCustomItemCells.Add((ChartLegendCustomItemCell)chartLegendCustomItemCell.PublishClone(context)); } return(chartLegendCustomItem); } } return(chartLegendCustomItem); }
public ChartLegendCustomItem(AspNetCore.ReportingServices.ReportIntermediateFormat.ChartLegendCustomItem chartLegendCustomItemDef, Chart chart) { this.m_chartLegendCustomItemDef = chartLegendCustomItemDef; this.m_chart = chart; }