Esempio n. 1
0
        private ChartSeries GetChartSeries()
        {
            if (base.IsColumn || ChartMembers != null)
            {
                return(null);
            }
            ChartSeriesList chartSeriesCollection = ((Chart)m_dataRegionDef).ChartSeriesCollection;

            if (chartSeriesCollection.Count <= base.MemberCellIndex)
            {
                return(null);
            }
            return(chartSeriesCollection[base.MemberCellIndex]);
        }
Esempio n. 2
0
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.CategoryMembers:
                    m_categoryMembers = reader.ReadListOfRIFObjects <ChartMemberList>();
                    break;

                case MemberName.SeriesMembers:
                    m_seriesMembers = reader.ReadListOfRIFObjects <ChartMemberList>();
                    break;

                case MemberName.ChartSeriesCollection:
                    m_chartSeriesCollection = reader.ReadListOfRIFObjects <ChartSeriesList>();
                    break;

                case MemberName.ChartDerivedSeriesCollection:
                    m_chartDerivedSeriesCollection = reader.ReadGenericListOfRIFObjects <ChartDerivedSeries>();
                    break;

                case MemberName.Palette:
                    m_palette = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ChartLegends:
                    m_legends = reader.ReadGenericListOfRIFObjects <ChartLegend>();
                    break;

                case MemberName.ChartAreas:
                    m_chartAreas = reader.ReadGenericListOfRIFObjects <ChartArea>();
                    break;

                case MemberName.Titles:
                    m_titles = reader.ReadGenericListOfRIFObjects <ChartTitle>();
                    break;

                case MemberName.DynamicHeight:
                    m_dynamicHeight = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.DynamicWidth:
                    m_dynamicWidth = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.CodeParameters:
                    m_codeParameters = reader.ReadListOfRIFObjects <DataValueList>();
                    break;

                case MemberName.CustomPaletteColors:
                    m_customPaletteColors = reader.ReadGenericListOfRIFObjects <ChartCustomPaletteColor>();
                    break;

                case MemberName.NoDataMessage:
                    m_noDataMessage = (ChartNoDataMessage)reader.ReadRIFObject();
                    break;

                case MemberName.BorderSkin:
                    m_borderSkin = (ChartBorderSkin)reader.ReadRIFObject();
                    break;

                case MemberName.DataValueSequenceRendering:
                    m_dataValueSequenceRendering = reader.ReadBoolean();
                    break;

                case MemberName.PaletteHatchBehavior:
                    m_paletteHatchBehavior = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ColumnGroupingIsSwitched:
                    m_columnGroupingIsSwitched = reader.ReadBoolean();
                    break;

                case MemberName.EnableCategoryDrilldown:
                    m_enableCategoryDrilldown = reader.ReadBoolean();
                    break;

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