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); }
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); }
internal SLLegend(List<System.Drawing.Color> ThemeColors) { this.LegendPosition = C.LegendPositionValues.Right; this.Overlay = false; this.ShapeProperties = new SLA.SLShapeProperties(ThemeColors); this.ShapeProperties.Fill.BlipDpi = 0; this.ShapeProperties.Fill.BlipRotateWithShape = true; }
internal SLDataTable(List<System.Drawing.Color> ThemeColors) { this.ShowHorizontalBorder = true; this.ShowVerticalBorder = true; this.ShowOutlineBorder = true; this.ShowLegendKeys = true; this.ShapeProperties = new SLA.SLShapeProperties(ThemeColors); this.Font = null; }
internal SLBackWall(List <System.Drawing.Color> ThemeColors, bool IsStylish, bool ThrowExceptionsIfAny) { this.Thickness = 0; this.ShapeProperties = new SLA.SLShapeProperties(ThemeColors, ThrowExceptionsIfAny); if (IsStylish) { this.ShapeProperties.Fill.SetNoFill(); this.ShapeProperties.Outline.SetNoLine(); } }
internal SLSideWall(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(); } }
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(); } }
internal SLTitle(List<System.Drawing.Color> ThemeColors) { // 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); this.RemoveTextAlignment(); }
private void Initialize(List <System.Drawing.Color> ThemeColors, bool ThrowExceptionsIfAny) { 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, ThrowExceptionsIfAny); }
internal SLTitle(List <System.Drawing.Color> ThemeColors, bool IsStylish, bool ThrowExceptionsIfAny) { // 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, ThrowExceptionsIfAny); if (IsStylish) { this.ShapeProperties.Fill.SetNoFill(); this.ShapeProperties.Outline.SetNoLine(); } this.RemoveTextAlignment(); }
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 SLLegend(List <System.Drawing.Color> ThemeColors, bool IsStylish, bool ThrowExceptionsIfAny) { this.LegendPosition = IsStylish ? C.LegendPositionValues.Bottom : C.LegendPositionValues.Right; this.Overlay = false; this.ShapeProperties = new SLA.SLShapeProperties(ThemeColors, ThrowExceptionsIfAny); if (IsStylish) { this.ShapeProperties.Fill.SetNoFill(); this.ShapeProperties.Outline.SetNoLine(); } else { this.ShapeProperties.Fill.BlipDpi = 0; this.ShapeProperties.Fill.BlipRotateWithShape = true; } }
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; } }
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; } }
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); }
internal EGAxShared(List <System.Drawing.Color> ThemeColors, bool IsStylish, bool ThrowExceptionsIfAny) { 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, ThrowExceptionsIfAny); this.ShowMinorGridlines = false; this.MinorGridlines = new SLMinorGridlines(ThemeColors, IsStylish, ThrowExceptionsIfAny); this.ShowTitle = false; this.Title = new SLTitle(ThemeColors, IsStylish, ThrowExceptionsIfAny); 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, ThrowExceptionsIfAny); 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 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(); }
internal SLDataTable(List <System.Drawing.Color> ThemeColors, bool IsStylish, bool ThrowExceptionsIfAny) { this.ShowHorizontalBorder = true; this.ShowVerticalBorder = true; this.ShowOutlineBorder = true; this.ShowLegendKeys = true; this.ShapeProperties = new SLA.SLShapeProperties(ThemeColors, ThrowExceptionsIfAny); 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; }
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; }
internal SLShapeProperties Clone() { SLShapeProperties sp = new SLShapeProperties(this.listThemeColors); sp.HasTransform2D = this.HasTransform2D; sp.Transform2D = this.Transform2D.Clone(); sp.HasGeometry = this.HasGeometry; 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; }
/// <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, this.ShapeProperties.ThrowExceptionsIfAny); }
private void Initialize(List<System.Drawing.Color> ThemeColors, bool IsStylish) { this.iGapWidth = 150; this.byOverlap = 0; this.ShapeProperties = new SLA.SLShapeProperties(ThemeColors); this.HasDropLines = false; this.DropLines = new SLDropLines(ThemeColors, IsStylish); this.HasHighLowLines = true; this.HighLowLines = new SLHighLowLines(ThemeColors, IsStylish); this.HasUpDownBars = true; this.UpDownBars = new SLUpDownBars(ThemeColors, IsStylish); }
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); }
/// <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); }
private void Initialize(List<System.Drawing.Color> ThemeColors) { this.ShapeProperties = new SLA.SLShapeProperties(ThemeColors); this.InvertIfNegative = null; this.Marker = new SLMarker(ThemeColors); this.iExplosion = null; this.bBubble3D = null; this.Smooth = false; this.vShape = null; }
internal SLBackWall(List<System.Drawing.Color> ThemeColors) { this.Thickness = 0; this.ShapeProperties = new SLA.SLShapeProperties(ThemeColors); }
private void InitialisePicture() { // should be true once we get *everyone* to stop using those confoundedly // hard to understand EMUs and absolute positionings... UseEasyPositioning = false; TopPosition = 0; LeftPosition = 0; UseRelativePositioning = true; AnchorRowIndex = 1; AnchorColumnIndex = 1; OffsetX = 0; OffsetY = 0; WidthInEMU = 0; HeightInEMU = 0; WidthInPixels = 0; HeightInPixels = 0; fHorizontalResolutionRatio = 1; fVerticalResolutionRatio = 1; this.bLockWithSheet = true; this.bPrintWithSheet = true; this.vCompressionState = A.BlipCompressionValues.Print; this.decBrightness = 0; this.decContrast = 0; //this.decRotationAngle = 0; this.ShapeProperties = new SLShapeProperties(new List<System.Drawing.Color>()); this.HasUri = false; this.HyperlinkUri = string.Empty; this.HyperlinkUriKind = UriKind.Absolute; this.IsHyperlinkExternal = true; this.DataIsInFile = true; this.PictureFileName = string.Empty; this.PictureByteData = new byte[1]; this.PictureImagePartType = ImagePartType.Bmp; }