internal SLChartOptions(List <System.Drawing.Color> ThemeColors, bool IsStylish = false)
 {
     this.BarDirection               = C.BarDirectionValues.Bar;
     this.BarGrouping                = C.BarGroupingValues.Standard;
     this.VaryColors                 = null;
     this.GapWidth                   = 150;
     this.GapDepth                   = 150;
     this.Overlap                    = 0;
     this.Shape                      = C.ShapeValues.Box;
     this.Grouping                   = C.GroupingValues.Standard;
     this.ShowMarker                 = true;
     this.Smooth                     = false;
     this.FirstSliceAngle            = 0;
     this.HoleSize                   = 10;
     this.HasSplit                   = false;
     this.SplitType                  = C.SplitValues.Position;
     this.SplitPosition              = 0;
     this.SecondPiePoints            = new List <int>();
     this.SecondPieSize              = 75;
     this.SeriesLinesShapeProperties = new SLA.SLShapeProperties(ThemeColors);
     this.ScatterStyle               = C.ScatterStyleValues.Line;
     this.bWireframe                 = null;
     this.RadarStyle                 = C.RadarStyleValues.Standard;
     this.Bubble3D                   = true;
     this.BubbleScale                = 100;
     this.ShowNegativeBubbles        = true;
     this.SizeRepresents             = C.SizeRepresentsValues.Area;
     this.HasDropLines               = false;
     this.DropLines                  = new SLDropLines(ThemeColors, IsStylish);
     this.HasHighLowLines            = false;
     this.HighLowLines               = new SLHighLowLines(ThemeColors, IsStylish);
     this.HasUpDownBars              = false;
     this.UpDownBars                 = new SLUpDownBars(ThemeColors, IsStylish);
 }
Ejemplo n.º 2
0
 internal SLBackWall(List <System.Drawing.Color> ThemeColors, bool IsStylish = false)
 {
     this.Thickness       = 0;
     this.ShapeProperties = new SLA.SLShapeProperties(ThemeColors);
     if (IsStylish)
     {
         this.ShapeProperties.Fill.SetNoFill();
         this.ShapeProperties.Outline.SetNoLine();
     }
 }
Ejemplo n.º 3
0
 private void Initialize(List <System.Drawing.Color> ThemeColors)
 {
     this.VaryColors       = true;
     this.iFirstSliceAngle = 0;
     this.byHoleSize       = 10;
     this.iGapWidth        = 150;
     this.HasSplit         = false;
     this.SplitType        = C.SplitValues.Position;
     this.SplitPosition    = 0;
     this.SecondPiePoints  = new List <int>();
     this.iSecondPieSize   = 75;
     this.ShapeProperties  = new SLA.SLShapeProperties(ThemeColors);
 }
Ejemplo n.º 4
0
        internal SLTitle(List <System.Drawing.Color> ThemeColors, bool IsStylish = false)
        {
            // just put in the theme colors, even though it's probably not needed.
            // Memory optimisations? Take it out.
            this.rst             = new SLRstType(SLConstants.OfficeThemeMajorLatinFont, SLConstants.OfficeThemeMinorLatinFont, ThemeColors, new List <System.Drawing.Color>());
            this.Overlay         = false;
            this.ShapeProperties = new SLA.SLShapeProperties(ThemeColors);

            if (IsStylish)
            {
                this.ShapeProperties.Fill.SetNoFill();
                this.ShapeProperties.Outline.SetNoLine();
            }

            this.RemoveTextAlignment();
        }
Ejemplo n.º 5
0
        internal SLLegend(List <System.Drawing.Color> ThemeColors, bool IsStylish = false)
        {
            this.LegendPosition  = IsStylish ? C.LegendPositionValues.Bottom : C.LegendPositionValues.Right;
            this.Overlay         = false;
            this.ShapeProperties = new SLA.SLShapeProperties(ThemeColors);

            if (IsStylish)
            {
                this.ShapeProperties.Fill.SetNoFill();
                this.ShapeProperties.Outline.SetNoLine();
            }
            else
            {
                this.ShapeProperties.Fill.BlipDpi             = 0;
                this.ShapeProperties.Fill.BlipRotateWithShape = true;
            }
        }
        internal SLShapeProperties Clone()
        {
            SLShapeProperties sp = new SLShapeProperties(this.listThemeColors);

            sp.HasBlackWhiteMode = this.HasBlackWhiteMode;
            sp.vBlackWhiteMode   = this.vBlackWhiteMode;
            sp.HasTransform2D    = this.HasTransform2D;
            sp.Transform2D       = this.Transform2D.Clone();
            sp.HasPresetGeometry = this.HasPresetGeometry;
            sp.vPresetGeometry   = this.vPresetGeometry;
            sp.Fill       = this.Fill.Clone();
            sp.Outline    = this.Outline.Clone();
            sp.EffectList = this.EffectList.Clone();
            sp.Rotation3D = this.Rotation3D.Clone();
            sp.Format3D   = this.Format3D.Clone();

            return(sp);
        }
Ejemplo n.º 7
0
 internal SLFloor(List <System.Drawing.Color> ThemeColors, bool IsStylish = false)
 {
     this.Thickness       = 0;
     this.ShapeProperties = new SLA.SLShapeProperties(ThemeColors);
     if (IsStylish)
     {
         this.ShapeProperties.Fill.SetNoFill();
         this.ShapeProperties.Outline.Width            = 0.75m;
         this.ShapeProperties.Outline.CapType          = A.LineCapValues.Flat;
         this.ShapeProperties.Outline.CompoundLineType = A.CompoundLineValues.Single;
         this.ShapeProperties.Outline.Alignment        = A.PenAlignmentValues.Center;
         this.ShapeProperties.Outline.SetSolidLine(A.SchemeColorValues.Text1, 0.85m, 0);
         this.ShapeProperties.Outline.JoinType      = SLA.SLLineJoinValues.Round;
         this.ShapeProperties.Format3D.ContourWidth = 0.75m;
         this.ShapeProperties.Format3D.clrContourColor.SetColor(A.SchemeColorValues.Text1, 0.85m, 0);
         this.ShapeProperties.Format3D.HasContourColor = true;
     }
 }
Ejemplo n.º 8
0
        internal EGAxShared(List <System.Drawing.Color> ThemeColors, bool IsStylish = false)
        {
            this.AxisId      = 0;
            this.LogBase     = null;
            this.Orientation = C.OrientationValues.MinMax;

            this.OtherAxisIsInReverseOrder = false;
            this.OtherAxisCrossedAtMaximum = false;

            this.MaxAxisValue      = null;
            this.MinAxisValue      = null;
            this.Delete            = false;
            this.ForceAxisPosition = false;
            this.AxisPosition      = C.AxisPositionValues.Bottom;

            this.ShowMajorGridlines = false;
            this.MajorGridlines     = new SLMajorGridlines(ThemeColors, IsStylish);
            this.ShowMinorGridlines = false;
            this.MinorGridlines     = new SLMinorGridlines(ThemeColors, IsStylish);

            this.ShowTitle = false;
            this.Title     = new SLTitle(ThemeColors, IsStylish);

            this.sFormatCode        = SLConstants.NumberFormatGeneral;
            this.bSourceLinked      = true;
            this.HasNumberingFormat = false;

            this.MajorTickMark     = C.TickMarkValues.Outside;
            this.MinorTickMark     = C.TickMarkValues.None;
            this.TickLabelPosition = C.TickLabelPositionValues.NextTo; // default

            this.ShapeProperties = new SLA.SLShapeProperties(ThemeColors);

            this.CrossingAxis = 0;
            this.IsCrosses    = null;
            this.Crosses      = C.CrossesValues.AutoZero;
            this.CrossesAt    = 0.0;

            this.OtherAxisIsCrosses = null;
            this.OtherAxisCrosses   = C.CrossesValues.AutoZero;
            this.OtherAxisCrossesAt = 0.0;
        }
        internal void MergeOptions(SLPieChartOptions pco)
        {
            this.VaryColors      = pco.VaryColors;
            this.FirstSliceAngle = pco.FirstSliceAngle;
            this.HoleSize        = pco.HoleSize;
            this.GapWidth        = pco.GapWidth;
            this.HasSplit        = pco.HasSplit;
            this.SplitType       = pco.SplitType;
            this.SplitPosition   = pco.SplitPosition;

            this.SecondPiePoints.Clear();
            foreach (int i in pco.SecondPiePoints)
            {
                this.SecondPiePoints.Add(i);
            }
            this.SecondPiePoints.Sort();

            this.SecondPieSize = pco.SecondPieSize;

            this.SeriesLinesShapeProperties = pco.ShapeProperties.Clone();
        }
Ejemplo n.º 10
0
        internal SLDataTable(List <System.Drawing.Color> ThemeColors, bool IsStylish = false)
        {
            this.ShowHorizontalBorder = true;
            this.ShowVerticalBorder   = true;
            this.ShowOutlineBorder    = true;
            this.ShowLegendKeys       = true;
            this.ShapeProperties      = new SLA.SLShapeProperties(ThemeColors);

            if (IsStylish)
            {
                this.ShapeProperties.Fill.SetNoFill();
                this.ShapeProperties.Outline.Width            = 0.75m;
                this.ShapeProperties.Outline.CapType          = A.LineCapValues.Flat;
                this.ShapeProperties.Outline.CompoundLineType = A.CompoundLineValues.Single;
                this.ShapeProperties.Outline.Alignment        = A.PenAlignmentValues.Center;
                this.ShapeProperties.Outline.SetSolidLine(A.SchemeColorValues.Text1, 0.85m, 0);
                this.ShapeProperties.Outline.JoinType = SLA.SLLineJoinValues.Round;
            }

            this.Font = null;
        }
Ejemplo n.º 11
0
 /// <summary>
 /// Clear all styling shape properties. Use this if you want to start styling from a clean slate.
 /// </summary>
 public void ClearShapeProperties()
 {
     this.ShapeProperties = new SLA.SLShapeProperties(this.ShapeProperties.listThemeColors);
 }