public override object PublishClone(AutomaticSubtotalContext context)
        {
            TickMarkStyle tickMarkStyle = (TickMarkStyle)base.PublishClone(context);

            if (this.m_distanceFromScale != null)
            {
                tickMarkStyle.m_distanceFromScale = (ExpressionInfo)this.m_distanceFromScale.PublishClone(context);
            }
            if (this.m_placement != null)
            {
                tickMarkStyle.m_placement = (ExpressionInfo)this.m_placement.PublishClone(context);
            }
            if (this.m_enableGradient != null)
            {
                tickMarkStyle.m_enableGradient = (ExpressionInfo)this.m_enableGradient.PublishClone(context);
            }
            if (this.m_gradientDensity != null)
            {
                tickMarkStyle.m_gradientDensity = (ExpressionInfo)this.m_gradientDensity.PublishClone(context);
            }
            if (this.m_tickMarkImage != null)
            {
                tickMarkStyle.m_tickMarkImage = (TopImage)this.m_tickMarkImage.PublishClone(context);
            }
            if (this.m_length != null)
            {
                tickMarkStyle.m_length = (ExpressionInfo)this.m_length.PublishClone(context);
            }
            if (this.m_width != null)
            {
                tickMarkStyle.m_width = (ExpressionInfo)this.m_width.PublishClone(context);
            }
            if (this.m_shape != null)
            {
                tickMarkStyle.m_shape = (ExpressionInfo)this.m_shape.PublishClone(context);
            }
            if (this.m_hidden != null)
            {
                tickMarkStyle.m_hidden = (ExpressionInfo)this.m_hidden.PublishClone(context);
            }
            return(tickMarkStyle);
        }
Beispiel #2
0
 public TickMarkStyle(AspNetCore.ReportingServices.ReportIntermediateFormat.TickMarkStyle defObject, GaugePanel gaugePanel)
 {
     this.m_defObject  = defObject;
     this.m_gaugePanel = gaugePanel;
 }
Beispiel #3
0
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(CustomLabel.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Name:
                    this.m_name = reader.ReadString();
                    break;

                case MemberName.Text:
                    this.m_text = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.AllowUpsideDown:
                    this.m_allowUpsideDown = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.DistanceFromScale:
                    this.m_distanceFromScale = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.FontAngle:
                    this.m_fontAngle = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.Placement:
                    this.m_placement = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.RotateLabel:
                    this.m_rotateLabel = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.TickMarkStyle:
                    this.m_tickMarkStyle = (TickMarkStyle)reader.ReadRIFObject();
                    break;

                case MemberName.Value:
                    this.m_value = (ExpressionInfo)reader.ReadRIFObject();
                    break;

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

                case MemberName.UseFontPercent:
                    this.m_useFontPercent = (ExpressionInfo)reader.ReadRIFObject();
                    break;

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

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }