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

            if (this.m_interval != null)
            {
                scaleLabels.m_interval = (ExpressionInfo)this.m_interval.PublishClone(context);
            }
            if (this.m_intervalOffset != null)
            {
                scaleLabels.m_intervalOffset = (ExpressionInfo)this.m_intervalOffset.PublishClone(context);
            }
            if (this.m_allowUpsideDown != null)
            {
                scaleLabels.m_allowUpsideDown = (ExpressionInfo)this.m_allowUpsideDown.PublishClone(context);
            }
            if (this.m_distanceFromScale != null)
            {
                scaleLabels.m_distanceFromScale = (ExpressionInfo)this.m_distanceFromScale.PublishClone(context);
            }
            if (this.m_fontAngle != null)
            {
                scaleLabels.m_fontAngle = (ExpressionInfo)this.m_fontAngle.PublishClone(context);
            }
            if (this.m_placement != null)
            {
                scaleLabels.m_placement = (ExpressionInfo)this.m_placement.PublishClone(context);
            }
            if (this.m_rotateLabels != null)
            {
                scaleLabels.m_rotateLabels = (ExpressionInfo)this.m_rotateLabels.PublishClone(context);
            }
            if (this.m_showEndLabels != null)
            {
                scaleLabels.m_showEndLabels = (ExpressionInfo)this.m_showEndLabels.PublishClone(context);
            }
            if (this.m_hidden != null)
            {
                scaleLabels.m_hidden = (ExpressionInfo)this.m_hidden.PublishClone(context);
            }
            if (this.m_useFontPercent != null)
            {
                scaleLabels.m_useFontPercent = (ExpressionInfo)this.m_useFontPercent.PublishClone(context);
            }
            return(scaleLabels);
        }
コード例 #2
0
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(GaugeScale.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Action:
                    this.m_action = (Action)reader.ReadRIFObject();
                    break;

                case MemberName.Name:
                    this.m_name = reader.ReadString();
                    break;

                case MemberName.ScaleRanges:
                    this.m_scaleRanges = reader.ReadGenericListOfRIFObjects <ScaleRange>();
                    break;

                case MemberName.CustomLabels:
                    this.m_customLabels = reader.ReadGenericListOfRIFObjects <CustomLabel>();
                    break;

                case MemberName.Interval:
                    this.m_interval = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.IntervalOffset:
                    this.m_intervalOffset = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.Logarithmic:
                    this.m_logarithmic = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.LogarithmicBase:
                    this.m_logarithmicBase = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.MaximumValue:
                    this.m_maximumValue = (GaugeInputValue)reader.ReadRIFObject();
                    break;

                case MemberName.MinimumValue:
                    this.m_minimumValue = (GaugeInputValue)reader.ReadRIFObject();
                    break;

                case MemberName.Multiplier:
                    this.m_multiplier = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.Reversed:
                    this.m_reversed = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.GaugeMajorTickMarks:
                    this.m_gaugeMajorTickMarks = (GaugeTickMarks)reader.ReadRIFObject();
                    break;

                case MemberName.GaugeMinorTickMarks:
                    this.m_gaugeMinorTickMarks = (GaugeTickMarks)reader.ReadRIFObject();
                    break;

                case MemberName.MaximumPin:
                    this.m_maximumPin = (ScalePin)reader.ReadRIFObject();
                    break;

                case MemberName.MinimumPin:
                    this.m_minimumPin = (ScalePin)reader.ReadRIFObject();
                    break;

                case MemberName.ScaleLabels:
                    this.m_scaleLabels = (ScaleLabels)reader.ReadRIFObject();
                    break;

                case MemberName.TickMarksOnTop:
                    this.m_tickMarksOnTop = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ToolTip:
                    this.m_toolTip = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.Hidden:
                    this.m_hidden = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.Width:
                    this.m_width = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ExprHostID:
                    this.m_exprHostID = reader.ReadInt32();
                    break;

                case MemberName.ID:
                    this.m_id = reader.ReadInt32();
                    break;

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }
コード例 #3
0
 public ScaleLabels(AspNetCore.ReportingServices.ReportIntermediateFormat.ScaleLabels defObject, GaugePanel gaugePanel)
 {
     this.m_defObject  = defObject;
     this.m_gaugePanel = gaugePanel;
 }