internal SLChartOptions(List <Color> ThemeColors, bool IsStylish = false) { BarDirection = C.BarDirectionValues.Bar; BarGrouping = C.BarGroupingValues.Standard; VaryColors = null; GapWidth = 150; GapDepth = 150; Overlap = 0; Shape = C.ShapeValues.Box; Grouping = C.GroupingValues.Standard; ShowMarker = true; Smooth = false; FirstSliceAngle = 0; HoleSize = 10; HasSplit = false; SplitType = C.SplitValues.Position; SplitPosition = 0; SecondPiePoints = new List <int>(); SecondPieSize = 75; SeriesLinesShapeProperties = new SLShapeProperties(ThemeColors); ScatterStyle = C.ScatterStyleValues.Line; bWireframe = null; RadarStyle = C.RadarStyleValues.Standard; Bubble3D = true; BubbleScale = 100; ShowNegativeBubbles = true; SizeRepresents = C.SizeRepresentsValues.Area; HasDropLines = false; DropLines = new SLDropLines(ThemeColors, IsStylish); HasHighLowLines = false; HighLowLines = new SLHighLowLines(ThemeColors, IsStylish); HasUpDownBars = false; UpDownBars = new SLUpDownBars(ThemeColors, IsStylish); }
// pictureoptions? internal SLDataPointOptions(List <Color> ThemeColors) { ShapeProperties = new SLShapeProperties(ThemeColors); InvertIfNegative = null; Marker = new SLMarker(ThemeColors); iExplosion = null; bBubble3D = null; }
internal SLBackWall(List <Color> ThemeColors, bool IsStylish = false) { Thickness = 0; ShapeProperties = new SLShapeProperties(ThemeColors); if (IsStylish) { ShapeProperties.Fill.SetNoFill(); ShapeProperties.Outline.SetNoLine(); } }
internal SLUpBars(List <Color> ThemeColors, bool IsStylish = false) { ShapeProperties = new SLShapeProperties(ThemeColors); if (IsStylish) { ShapeProperties.Fill.SetSolidFill(A.SchemeColorValues.Light1, 0, 0); ShapeProperties.Outline.Width = 0.75m; ShapeProperties.Outline.SetSolidLine(A.SchemeColorValues.Text1, 0.85m, 0); } }
private void Initialize(List <Color> ThemeColors) { ShapeProperties = new SLShapeProperties(ThemeColors); InvertIfNegative = null; Marker = new SLMarker(ThemeColors); iExplosion = null; bBubble3D = null; Smooth = false; vShape = null; }
private void Initialize(List <Color> ThemeColors, bool IsStylish) { iGapWidth = 150; byOverlap = 0; ShapeProperties = new SLShapeProperties(ThemeColors); HasDropLines = false; DropLines = new SLDropLines(ThemeColors, IsStylish); HasHighLowLines = true; HighLowLines = new SLHighLowLines(ThemeColors, IsStylish); HasUpDownBars = true; UpDownBars = new SLUpDownBars(ThemeColors, IsStylish); }
internal SLHighLowLines(List <Color> ThemeColors, bool IsStylish = false) { ShapeProperties = new SLShapeProperties(ThemeColors); if (IsStylish) { ShapeProperties.Outline.Width = 0.75m; ShapeProperties.Outline.CapType = A.LineCapValues.Flat; ShapeProperties.Outline.CompoundLineType = A.CompoundLineValues.Single; ShapeProperties.Outline.Alignment = A.PenAlignmentValues.Center; ShapeProperties.Outline.SetSolidLine(A.SchemeColorValues.Text1, 0.25m, 0); ShapeProperties.Outline.JoinType = SLLineJoinValues.Round; } }
private void Initialize(List <Color> ThemeColors) { VaryColors = true; iFirstSliceAngle = 0; byHoleSize = 10; iGapWidth = 150; HasSplit = false; SplitType = C.SplitValues.Position; SplitPosition = 0; SecondPiePoints = new List <int>(); iSecondPieSize = 75; ShapeProperties = new SLShapeProperties(ThemeColors); }
internal EGDLblShared(List <Color> ThemeColors) { sFormatCode = SLConstants.NumberFormatGeneral; bSourceLinked = true; HasNumberingFormat = false; vLabelPosition = null; ShapeProperties = new SLShapeProperties(ThemeColors); ShowLegendKey = false; ShowValue = false; ShowCategoryName = false; ShowSeriesName = false; ShowPercentage = false; ShowBubbleSize = false; Separator = string.Empty; }
internal SLLegend(List <Color> ThemeColors, bool IsStylish = false) { LegendPosition = IsStylish ? C.LegendPositionValues.Bottom : C.LegendPositionValues.Right; Overlay = false; ShapeProperties = new SLShapeProperties(ThemeColors); if (IsStylish) { ShapeProperties.Fill.SetNoFill(); ShapeProperties.Outline.SetNoLine(); } else { ShapeProperties.Fill.BlipDpi = 0; ShapeProperties.Fill.BlipRotateWithShape = true; } }
internal SLTitle(List <Color> ThemeColors, bool IsStylish = false) { // just put in the theme colors, even though it's probably not needed. // Memory optimisations? Take it out. rst = new SLRstType(SLConstants.OfficeThemeMajorLatinFont, SLConstants.OfficeThemeMinorLatinFont, ThemeColors, new List <Color>()); Overlay = false; ShapeProperties = new SLShapeProperties(ThemeColors); if (IsStylish) { ShapeProperties.Fill.SetNoFill(); ShapeProperties.Outline.SetNoLine(); } RemoveTextAlignment(); }
internal SLFloor(List <Color> ThemeColors, bool IsStylish = false) { Thickness = 0; ShapeProperties = new SLShapeProperties(ThemeColors); if (IsStylish) { ShapeProperties.Fill.SetNoFill(); ShapeProperties.Outline.Width = 0.75m; ShapeProperties.Outline.CapType = A.LineCapValues.Flat; ShapeProperties.Outline.CompoundLineType = A.CompoundLineValues.Single; ShapeProperties.Outline.Alignment = A.PenAlignmentValues.Center; ShapeProperties.Outline.SetSolidLine(A.SchemeColorValues.Text1, 0.85m, 0); ShapeProperties.Outline.JoinType = SLLineJoinValues.Round; ShapeProperties.Format3D.ContourWidth = 0.75m; ShapeProperties.Format3D.clrContourColor.SetColor(A.SchemeColorValues.Text1, 0.85m, 0); ShapeProperties.Format3D.HasContourColor = true; } }
internal EGAxShared(List <Color> ThemeColors, bool IsStylish = false) { AxisId = 0; LogBase = null; Orientation = C.OrientationValues.MinMax; OtherAxisIsInReverseOrder = false; OtherAxisCrossedAtMaximum = false; MaxAxisValue = null; MinAxisValue = null; Delete = false; ForceAxisPosition = false; AxisPosition = C.AxisPositionValues.Bottom; ShowMajorGridlines = false; MajorGridlines = new SLMajorGridlines(ThemeColors, IsStylish); ShowMinorGridlines = false; MinorGridlines = new SLMinorGridlines(ThemeColors, IsStylish); ShowTitle = false; Title = new SLTitle(ThemeColors, IsStylish); sFormatCode = SLConstants.NumberFormatGeneral; bSourceLinked = true; HasNumberingFormat = false; MajorTickMark = C.TickMarkValues.Outside; MinorTickMark = C.TickMarkValues.None; TickLabelPosition = C.TickLabelPositionValues.NextTo; // default ShapeProperties = new SLShapeProperties(ThemeColors); CrossingAxis = 0; IsCrosses = null; Crosses = C.CrossesValues.AutoZero; CrossesAt = 0.0; OtherAxisIsCrosses = null; OtherAxisCrosses = C.CrossesValues.AutoZero; OtherAxisCrossesAt = 0.0; }
internal void MergeOptions(SLPieChartOptions pco) { VaryColors = pco.VaryColors; FirstSliceAngle = pco.FirstSliceAngle; HoleSize = pco.HoleSize; GapWidth = pco.GapWidth; HasSplit = pco.HasSplit; SplitType = pco.SplitType; SplitPosition = pco.SplitPosition; SecondPiePoints.Clear(); foreach (var i in pco.SecondPiePoints) { SecondPiePoints.Add(i); } SecondPiePoints.Sort(); SecondPieSize = pco.SecondPieSize; SeriesLinesShapeProperties = pco.ShapeProperties.Clone(); }
internal SLDataTable(List <Color> ThemeColors, bool IsStylish = false) { ShowHorizontalBorder = true; ShowVerticalBorder = true; ShowOutlineBorder = true; ShowLegendKeys = true; ShapeProperties = new SLShapeProperties(ThemeColors); if (IsStylish) { ShapeProperties.Fill.SetNoFill(); ShapeProperties.Outline.Width = 0.75m; ShapeProperties.Outline.CapType = A.LineCapValues.Flat; ShapeProperties.Outline.CompoundLineType = A.CompoundLineValues.Single; ShapeProperties.Outline.Alignment = A.PenAlignmentValues.Center; ShapeProperties.Outline.SetSolidLine(A.SchemeColorValues.Text1, 0.85m, 0); ShapeProperties.Outline.JoinType = SLLineJoinValues.Round; } Font = null; }
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(); } }
internal SLMarker(List <Color> ThemeColors) { vSymbol = null; bySize = null; ShapeProperties = new SLShapeProperties(ThemeColors); }
/// <summary> /// Clear all styling shape properties. Use this if you want to start styling from a clean slate. /// </summary> public void ClearShapeProperties() { ShapeProperties = new SLShapeProperties(ShapeProperties.listThemeColors); }