Esempio n. 1
0
        //------------------------------------------------------
        private void AppliqueAxe(CChartAxis f, Axis ms)
        {
            CChartAxisStyle sf = f.Style;

            ms.ArrowStyle              = CConvertisseurChartEnumToMSEnum.GetMSAxisArrowStyle(sf.ArrowStyle);
            ms.Enabled                 = CConvertisseurChartEnumToMSEnum.GetMSAxisEnabled(f.Enabled);
            ms.InterlacedColor         = sf.InterlacedColor;
            ms.Interval                = f.Interval;
            ms.IntervalAutoMode        = CConvertisseurChartEnumToMSEnum.GetMSIntervalAutoMode(f.IntervalAutoMode);
            ms.IntervalOffset          = f.IntervalOffset;
            ms.IntervalOffsetType      = CConvertisseurChartEnumToMSEnum.GetMSDateTimeIntervalType(f.IntervalOffsetType);
            ms.IntervalType            = CConvertisseurChartEnumToMSEnum.GetMSDateTimeIntervalType(f.IntervalType);
            ms.IsInterlaced            = sf.IsInterlaced;
            ms.IsLabelAutoFit          = f.IsLabelAutoFit;
            ms.IsLogarithmic           = f.IsLogarithmic;
            ms.IsMarginVisible         = f.IsMarginVisible;
            ms.IsMarksNextToAxis       = sf.IsMarksNextToAxis;
            ms.IsReversed              = f.IsReversed;
            ms.IsStartedFromZero       = f.IsStartedFromZero;
            ms.LabelAutoFitMaxFontSize = f.LabelAutoFitMaxFontSize;
            ms.LabelAutoFitMinFontSize = f.LabelAutoFitMinFontSize;
            ms.LabelAutoFitStyle       = CConvertisseurChartEnumToMSEnum.GetMSLabelAutoFitStyles(f.LabelAutoFitStyle);
            AppliqueLabelStyle(f.LabelStyle, ms.LabelStyle);
            ms.LineColor     = sf.LineColor;
            ms.LineDashStyle = CConvertisseurChartEnumToMSEnum.GetMSChartDashStyle(sf.LineDashStyle);
            ms.LineWidth     = sf.LineWidth;
            ms.LogarithmBase = f.LogarithmBase;
            AppliqueGridStyle(f.MajorGridStyle, ms.MajorGrid);
            AppliqueTickMarkerStyle(f.MajorTickMark, ms.MajorTickMark);
            AppliqueGridStyle(f.MinorGridStyle, ms.MinorGrid);
            AppliqueTickMarkerStyle(f.MinorTickMark, ms.MinorTickMark);
            ms.TextOrientation = CConvertisseurChartEnumToMSEnum.GetMSTextOrientation(f.TitleOrientation);
            ms.Title           = f.Title;
            ms.TitleAlignment  = CConvertisseurChartEnumToMSEnum.GetMSStringAlignment(f.TitleAlignment);
            if (f.TitleFont != null)
            {
                ms.TitleFont = f.TitleFont;
            }
            ms.TitleForeColor = f.TitleForeColor;
            AppliqueScrollBar(f.ScrollBar, ms.ScrollBar);
        }