예제 #1
0
        internal SLValueAxis Clone()
        {
            var va = new SLValueAxis(ShapeProperties.listThemeColors);

            va.Rotation     = Rotation;
            va.Vertical     = Vertical;
            va.Anchor       = Anchor;
            va.AnchorCenter = AnchorCenter;
            va.AxisId       = AxisId;
            va.fLogBase     = fLogBase;
            va.Orientation  = Orientation;
            va.MaxAxisValue = MaxAxisValue;
            va.MinAxisValue = MinAxisValue;
            va.OtherAxisIsInReverseOrder = OtherAxisIsInReverseOrder;
            va.OtherAxisCrossedAtMaximum = OtherAxisCrossedAtMaximum;
            va.Delete             = Delete;
            va.ForceAxisPosition  = ForceAxisPosition;
            va.AxisPosition       = AxisPosition;
            va.ShowMajorGridlines = ShowMajorGridlines;
            va.MajorGridlines     = MajorGridlines.Clone();
            va.ShowMinorGridlines = ShowMinorGridlines;
            va.MinorGridlines     = MinorGridlines.Clone();
            va.ShowTitle          = ShowTitle;
            va.Title = Title.Clone();
            va.HasNumberingFormat = HasNumberingFormat;
            va.sFormatCode        = sFormatCode;
            va.bSourceLinked      = bSourceLinked;
            va.MajorTickMark      = MajorTickMark;
            va.MinorTickMark      = MinorTickMark;
            va.TickLabelPosition  = TickLabelPosition;
            va.ShapeProperties    = ShapeProperties.Clone();
            va.CrossingAxis       = CrossingAxis;
            va.IsCrosses          = IsCrosses;
            va.Crosses            = Crosses;
            va.CrossesAt          = CrossesAt;
            va.OtherAxisIsCrosses = OtherAxisIsCrosses;
            va.OtherAxisCrosses   = OtherAxisCrosses;
            va.OtherAxisCrossesAt = OtherAxisCrossesAt;

            va.CrossBetween          = CrossBetween;
            va.MajorUnit             = MajorUnit;
            va.MinorUnit             = MinorUnit;
            va.BuiltInUnitValues     = BuiltInUnitValues;
            va.ShowDisplayUnitsLabel = ShowDisplayUnitsLabel;

            return(va);
        }
        internal SLPlotArea(List <Color> ThemeColors, bool Date1904, bool IsStylish = false)
        {
            InternalChartType = SLInternalChartType.Bar;

            var NumberOfChartTypes = Enum.GetNames(typeof(SLDataSeriesChartType)).Length;

            UsedChartTypes   = new bool[NumberOfChartTypes];
            UsedChartOptions = new SLChartOptions[NumberOfChartTypes];
            for (var i = 0; i < NumberOfChartTypes; ++i)
            {
                UsedChartTypes[i]   = false;
                UsedChartOptions[i] = new SLChartOptions(ThemeColors);
            }
            DataSeries = new List <SLDataSeries>();

            Layout = new SLLayout();

            PrimaryTextAxis    = new SLTextAxis(ThemeColors, Date1904, IsStylish);
            PrimaryValueAxis   = new SLValueAxis(ThemeColors, IsStylish);
            DepthAxis          = new SLSeriesAxis(ThemeColors, IsStylish);
            SecondaryTextAxis  = new SLTextAxis(ThemeColors, Date1904, IsStylish);
            SecondaryValueAxis = new SLValueAxis(ThemeColors, IsStylish);

            HasPrimaryAxes   = false;
            HasDepthAxis     = false;
            HasSecondaryAxes = false;

            ShowDataTable = false;
            DataTable     = new SLDataTable(ThemeColors, IsStylish);

            ShapeProperties = new SLShapeProperties(ThemeColors);
            if (IsStylish)
            {
                ShapeProperties.Fill.SetNoFill();
                ShapeProperties.Outline.SetNoLine();
            }
        }