コード例 #1
0
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(MapSubItem.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.MapLocation:
                    this.m_mapLocation = (MapLocation)reader.ReadRIFObject();
                    break;

                case MemberName.MapSize:
                    this.m_mapSize = (MapSize)reader.ReadRIFObject();
                    break;

                case MemberName.LeftMargin:
                    this.m_leftMargin = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.RightMargin:
                    this.m_rightMargin = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.TopMargin:
                    this.m_topMargin = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.BottomMargin:
                    this.m_bottomMargin = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ZIndex:
                    this.m_zIndex = (ExpressionInfo)reader.ReadRIFObject();
                    break;

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

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }
コード例 #2
0
        public object PublishClone(AutomaticSubtotalContext context)
        {
            MapSize mapSize = (MapSize)base.MemberwiseClone();

            mapSize.m_map = context.CurrentMapClone;
            if (this.m_width != null)
            {
                mapSize.m_width = (ExpressionInfo)this.m_width.PublishClone(context);
            }
            if (this.m_height != null)
            {
                mapSize.m_height = (ExpressionInfo)this.m_height.PublishClone(context);
            }
            if (this.m_unit != null)
            {
                mapSize.m_unit = (ExpressionInfo)this.m_unit.PublishClone(context);
            }
            return(mapSize);
        }
コード例 #3
0
 public MapSize(AspNetCore.ReportingServices.ReportIntermediateFormat.MapSize defObject, Map map)
 {
     this.m_defObject = defObject;
     this.m_map       = map;
 }