public NumericIndicator this[string name] { get { for (int i = 0; i < Count; i++) { Microsoft.ReportingServices.ReportIntermediateFormat.NumericIndicator numericIndicator = m_gaugePanel.GaugePanelDef.NumericIndicators[i]; if (string.CompareOrdinal(name, numericIndicator.Name) == 0) { return(base[i]); } } throw new RenderingObjectModelException(ProcessingErrorCode.rsNotInCollection, name); } }
internal NumericIndicator(Microsoft.ReportingServices.ReportIntermediateFormat.NumericIndicator defObject, GaugePanel gaugePanel) : base(defObject, gaugePanel) { }
internal override void DataRegionContentsSetExprHost(ObjectModelImpl reportObjectModel, bool traverseDataRegions) { if (m_exprHost == null) { return; } IList <LinearGaugeExprHost> linearGaugesHostsRemotable = m_exprHost.LinearGaugesHostsRemotable; if (m_linearGauges != null && linearGaugesHostsRemotable != null) { for (int i = 0; i < m_linearGauges.Count; i++) { LinearGauge linearGauge = m_linearGauges[i]; if (linearGauge != null && linearGauge.ExpressionHostID > -1) { linearGauge.SetExprHost(linearGaugesHostsRemotable[linearGauge.ExpressionHostID], reportObjectModel); } } } IList <RadialGaugeExprHost> radialGaugesHostsRemotable = m_exprHost.RadialGaugesHostsRemotable; if (m_radialGauges != null && radialGaugesHostsRemotable != null) { for (int j = 0; j < m_radialGauges.Count; j++) { RadialGauge radialGauge = m_radialGauges[j]; if (radialGauge != null && radialGauge.ExpressionHostID > -1) { radialGauge.SetExprHost(radialGaugesHostsRemotable[radialGauge.ExpressionHostID], reportObjectModel); } } } IList <NumericIndicatorExprHost> numericIndicatorsHostsRemotable = m_exprHost.NumericIndicatorsHostsRemotable; if (m_numericIndicators != null && numericIndicatorsHostsRemotable != null) { for (int k = 0; k < m_numericIndicators.Count; k++) { NumericIndicator numericIndicator = m_numericIndicators[k]; if (numericIndicator != null && numericIndicator.ExpressionHostID > -1) { numericIndicator.SetExprHost(numericIndicatorsHostsRemotable[numericIndicator.ExpressionHostID], reportObjectModel); } } } IList <StateIndicatorExprHost> stateIndicatorsHostsRemotable = m_exprHost.StateIndicatorsHostsRemotable; if (m_stateIndicators != null && stateIndicatorsHostsRemotable != null) { for (int l = 0; l < m_stateIndicators.Count; l++) { StateIndicator stateIndicator = m_stateIndicators[l]; if (stateIndicator != null && stateIndicator.ExpressionHostID > -1) { stateIndicator.SetExprHost(stateIndicatorsHostsRemotable[stateIndicator.ExpressionHostID], reportObjectModel); } } } IList <GaugeImageExprHost> gaugeImagesHostsRemotable = m_exprHost.GaugeImagesHostsRemotable; if (m_gaugeImages != null && gaugeImagesHostsRemotable != null) { for (int m = 0; m < m_gaugeImages.Count; m++) { GaugeImage gaugeImage = m_gaugeImages[m]; if (gaugeImage != null && gaugeImage.ExpressionHostID > -1) { gaugeImage.SetExprHost(gaugeImagesHostsRemotable[gaugeImage.ExpressionHostID], reportObjectModel); } } } IList <GaugeLabelExprHost> gaugeLabelsHostsRemotable = m_exprHost.GaugeLabelsHostsRemotable; if (m_gaugeLabels != null && gaugeLabelsHostsRemotable != null) { for (int n = 0; n < m_gaugeLabels.Count; n++) { GaugeLabel gaugeLabel = m_gaugeLabels[n]; if (gaugeLabel != null && gaugeLabel.ExpressionHostID > -1) { gaugeLabel.SetExprHost(gaugeLabelsHostsRemotable[gaugeLabel.ExpressionHostID], reportObjectModel); } } } if (m_backFrame != null && m_exprHost.BackFrameHost != null) { m_backFrame.SetExprHost(m_exprHost.BackFrameHost, reportObjectModel); } if (m_topImage != null && m_exprHost.TopImageHost != null) { m_topImage.SetExprHost(m_exprHost.TopImageHost, reportObjectModel); } IList <GaugeCellExprHost> cellHostsRemotable = m_exprHost.CellHostsRemotable; if (cellHostsRemotable != null && GaugeRow != null && cellHostsRemotable.Count > 0 && GaugeRow.GaugeCell != null) { GaugeRow.GaugeCell.SetExprHost(cellHostsRemotable[0], reportObjectModel); } }
internal override object PublishClone(AutomaticSubtotalContext context) { NumericIndicator numericIndicator = (NumericIndicator)base.PublishClone(context); if (m_gaugeInputValue != null) { numericIndicator.m_gaugeInputValue = (GaugeInputValue)m_gaugeInputValue.PublishClone(context); } if (m_numericIndicatorRanges != null) { numericIndicator.m_numericIndicatorRanges = new List <NumericIndicatorRange>(m_numericIndicatorRanges.Count); foreach (NumericIndicatorRange numericIndicatorRange in m_numericIndicatorRanges) { numericIndicator.m_numericIndicatorRanges.Add((NumericIndicatorRange)numericIndicatorRange.PublishClone(context)); } } if (m_decimalDigitColor != null) { numericIndicator.m_decimalDigitColor = (ExpressionInfo)m_decimalDigitColor.PublishClone(context); } if (m_digitColor != null) { numericIndicator.m_digitColor = (ExpressionInfo)m_digitColor.PublishClone(context); } if (m_useFontPercent != null) { numericIndicator.m_useFontPercent = (ExpressionInfo)m_useFontPercent.PublishClone(context); } if (m_decimalDigits != null) { numericIndicator.m_decimalDigits = (ExpressionInfo)m_decimalDigits.PublishClone(context); } if (m_digits != null) { numericIndicator.m_digits = (ExpressionInfo)m_digits.PublishClone(context); } if (m_minimumValue != null) { numericIndicator.m_minimumValue = (GaugeInputValue)m_minimumValue.PublishClone(context); } if (m_maximumValue != null) { numericIndicator.m_maximumValue = (GaugeInputValue)m_maximumValue.PublishClone(context); } if (m_multiplier != null) { numericIndicator.m_multiplier = (ExpressionInfo)m_multiplier.PublishClone(context); } if (m_nonNumericString != null) { numericIndicator.m_nonNumericString = (ExpressionInfo)m_nonNumericString.PublishClone(context); } if (m_outOfRangeString != null) { numericIndicator.m_outOfRangeString = (ExpressionInfo)m_outOfRangeString.PublishClone(context); } if (m_resizeMode != null) { numericIndicator.m_resizeMode = (ExpressionInfo)m_resizeMode.PublishClone(context); } if (m_showDecimalPoint != null) { numericIndicator.m_showDecimalPoint = (ExpressionInfo)m_showDecimalPoint.PublishClone(context); } if (m_showLeadingZeros != null) { numericIndicator.m_showLeadingZeros = (ExpressionInfo)m_showLeadingZeros.PublishClone(context); } if (m_indicatorStyle != null) { numericIndicator.m_indicatorStyle = (ExpressionInfo)m_indicatorStyle.PublishClone(context); } if (m_showSign != null) { numericIndicator.m_showSign = (ExpressionInfo)m_showSign.PublishClone(context); } if (m_snappingEnabled != null) { numericIndicator.m_snappingEnabled = (ExpressionInfo)m_snappingEnabled.PublishClone(context); } if (m_snappingInterval != null) { numericIndicator.m_snappingInterval = (ExpressionInfo)m_snappingInterval.PublishClone(context); } if (m_ledDimColor != null) { numericIndicator.m_ledDimColor = (ExpressionInfo)m_ledDimColor.PublishClone(context); } if (m_separatorWidth != null) { numericIndicator.m_separatorWidth = (ExpressionInfo)m_separatorWidth.PublishClone(context); } if (m_separatorColor != null) { numericIndicator.m_separatorColor = (ExpressionInfo)m_separatorColor.PublishClone(context); } return(numericIndicator); }