public override object PublishClone(AutomaticSubtotalContext context) { ScaleRange scaleRange = (ScaleRange)base.PublishClone(context); if (this.m_action != null) { scaleRange.m_action = (Action)this.m_action.PublishClone(context); } if (this.m_distanceFromScale != null) { scaleRange.m_distanceFromScale = (ExpressionInfo)this.m_distanceFromScale.PublishClone(context); } if (this.m_startValue != null) { scaleRange.m_startValue = (GaugeInputValue)this.m_startValue.PublishClone(context); } if (this.m_endValue != null) { scaleRange.m_endValue = (GaugeInputValue)this.m_endValue.PublishClone(context); } if (this.m_startWidth != null) { scaleRange.m_startWidth = (ExpressionInfo)this.m_startWidth.PublishClone(context); } if (this.m_endWidth != null) { scaleRange.m_endWidth = (ExpressionInfo)this.m_endWidth.PublishClone(context); } if (this.m_inRangeBarPointerColor != null) { scaleRange.m_inRangeBarPointerColor = (ExpressionInfo)this.m_inRangeBarPointerColor.PublishClone(context); } if (this.m_inRangeLabelColor != null) { scaleRange.m_inRangeLabelColor = (ExpressionInfo)this.m_inRangeLabelColor.PublishClone(context); } if (this.m_inRangeTickMarksColor != null) { scaleRange.m_inRangeTickMarksColor = (ExpressionInfo)this.m_inRangeTickMarksColor.PublishClone(context); } if (this.m_backgroundGradientType != null) { scaleRange.m_backgroundGradientType = (ExpressionInfo)this.m_backgroundGradientType.PublishClone(context); } if (this.m_placement != null) { scaleRange.m_placement = (ExpressionInfo)this.m_placement.PublishClone(context); } if (this.m_toolTip != null) { scaleRange.m_toolTip = (ExpressionInfo)this.m_toolTip.PublishClone(context); } if (this.m_hidden != null) { scaleRange.m_hidden = (ExpressionInfo)this.m_hidden.PublishClone(context); } return(scaleRange); }
public void SetExprHost(GaugeScaleExprHost exprHost, ObjectModelImpl reportObjectModel) { Global.Tracer.Assert(exprHost != null && reportObjectModel != null); base.SetExprHost(exprHost, reportObjectModel); this.m_exprHost = exprHost; IList <ScaleRangeExprHost> scaleRangesHostsRemotable = this.m_exprHost.ScaleRangesHostsRemotable; if (this.m_scaleRanges != null && scaleRangesHostsRemotable != null) { for (int i = 0; i < this.m_scaleRanges.Count; i++) { ScaleRange scaleRange = this.m_scaleRanges[i]; if (scaleRange != null && scaleRange.ExpressionHostID > -1) { scaleRange.SetExprHost(scaleRangesHostsRemotable[scaleRange.ExpressionHostID], reportObjectModel); } } } IList <CustomLabelExprHost> customLabelsHostsRemotable = this.m_exprHost.CustomLabelsHostsRemotable; if (this.m_customLabels != null && customLabelsHostsRemotable != null) { for (int j = 0; j < this.m_customLabels.Count; j++) { CustomLabel customLabel = this.m_customLabels[j]; if (customLabel != null && customLabel.ExpressionHostID > -1) { customLabel.SetExprHost(customLabelsHostsRemotable[customLabel.ExpressionHostID], reportObjectModel); } } } if (this.m_gaugeMajorTickMarks != null && this.m_exprHost.GaugeMajorTickMarksHost != null) { this.m_gaugeMajorTickMarks.SetExprHost(this.m_exprHost.GaugeMajorTickMarksHost, reportObjectModel); } if (this.m_gaugeMinorTickMarks != null && this.m_exprHost.GaugeMinorTickMarksHost != null) { this.m_gaugeMinorTickMarks.SetExprHost(this.m_exprHost.GaugeMinorTickMarksHost, reportObjectModel); } if (this.m_maximumPin != null && this.m_exprHost.MaximumPinHost != null) { this.m_maximumPin.SetExprHost(this.m_exprHost.MaximumPinHost, reportObjectModel); } if (this.m_minimumPin != null && this.m_exprHost.MinimumPinHost != null) { this.m_minimumPin.SetExprHost(this.m_exprHost.MinimumPinHost, reportObjectModel); } if (this.m_scaleLabels != null && this.m_exprHost.ScaleLabelsHost != null) { this.m_scaleLabels.SetExprHost(this.m_exprHost.ScaleLabelsHost, reportObjectModel); } if (this.m_action != null && exprHost.ActionInfoHost != null) { this.m_action.SetExprHost(exprHost.ActionInfoHost, reportObjectModel); } }
public ScaleRange this[string name] { get { for (int i = 0; i < this.Count; i++) { AspNetCore.ReportingServices.ReportIntermediateFormat.ScaleRange scaleRange = this.m_gaugeScale.GaugeScaleDef.ScaleRanges[i]; if (string.CompareOrdinal(name, scaleRange.Name) == 0) { return(base[i]); } } throw new RenderingObjectModelException(ProcessingErrorCode.rsNotInCollection, name); } }
public ScaleRange(AspNetCore.ReportingServices.ReportIntermediateFormat.ScaleRange defObject, GaugePanel gaugePanel) { this.m_defObject = defObject; this.m_gaugePanel = gaugePanel; }