// Generates content of drawingsPart8. private void GenerateDrawingsPart8Content(DrawingsPart drawingsPart8) { Xdr.WorksheetDrawing worksheetDrawing8 = new Xdr.WorksheetDrawing(); worksheetDrawing8.AddNamespaceDeclaration("xdr", "http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"); worksheetDrawing8.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); Xdr.TwoCellAnchor twoCellAnchor29 = new Xdr.TwoCellAnchor(); Xdr.FromMarker fromMarker29 = new Xdr.FromMarker(); Xdr.ColumnId columnId57 = new Xdr.ColumnId(); columnId57.Text = "2"; Xdr.ColumnOffset columnOffset57 = new Xdr.ColumnOffset(); columnOffset57.Text = "185737"; Xdr.RowId rowId57 = new Xdr.RowId(); rowId57.Text = "0"; Xdr.RowOffset rowOffset57 = new Xdr.RowOffset(); rowOffset57.Text = "0"; fromMarker29.Append(columnId57); fromMarker29.Append(columnOffset57); fromMarker29.Append(rowId57); fromMarker29.Append(rowOffset57); Xdr.ToMarker toMarker29 = new Xdr.ToMarker(); Xdr.ColumnId columnId58 = new Xdr.ColumnId(); columnId58.Text = "9"; Xdr.ColumnOffset columnOffset58 = new Xdr.ColumnOffset(); columnOffset58.Text = "90487"; Xdr.RowId rowId58 = new Xdr.RowId(); rowId58.Text = "14"; Xdr.RowOffset rowOffset58 = new Xdr.RowOffset(); rowOffset58.Text = "76200"; toMarker29.Append(columnId58); toMarker29.Append(columnOffset58); toMarker29.Append(rowId58); toMarker29.Append(rowOffset58); Xdr.GraphicFrame graphicFrame29 = new Xdr.GraphicFrame(){ Macro = "" }; Xdr.NonVisualGraphicFrameProperties nonVisualGraphicFrameProperties29 = new Xdr.NonVisualGraphicFrameProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties43 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)2U, Name = "Chart 1" }; Xdr.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties29 = new Xdr.NonVisualGraphicFrameDrawingProperties(); nonVisualGraphicFrameProperties29.Append(nonVisualDrawingProperties43); nonVisualGraphicFrameProperties29.Append(nonVisualGraphicFrameDrawingProperties29); Xdr.Transform transform29 = new Xdr.Transform(); A.Offset offset43 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents43 = new A.Extents(){ Cx = 0L, Cy = 0L }; transform29.Append(offset43); transform29.Append(extents43); A.Graphic graphic29 = new A.Graphic(); A.GraphicData graphicData29 = new A.GraphicData(){ Uri = "http://schemas.openxmlformats.org/drawingml/2006/chart" }; C.ChartReference chartReference15 = new C.ChartReference(){ Id = "rId1" }; chartReference15.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart"); chartReference15.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); graphicData29.Append(chartReference15); graphic29.Append(graphicData29); graphicFrame29.Append(nonVisualGraphicFrameProperties29); graphicFrame29.Append(transform29); graphicFrame29.Append(graphic29); Xdr.ClientData clientData29 = new Xdr.ClientData(); twoCellAnchor29.Append(fromMarker29); twoCellAnchor29.Append(toMarker29); twoCellAnchor29.Append(graphicFrame29); twoCellAnchor29.Append(clientData29); Xdr.TwoCellAnchor twoCellAnchor30 = new Xdr.TwoCellAnchor(); Xdr.FromMarker fromMarker30 = new Xdr.FromMarker(); Xdr.ColumnId columnId59 = new Xdr.ColumnId(); columnId59.Text = "2"; Xdr.ColumnOffset columnOffset59 = new Xdr.ColumnOffset(); columnOffset59.Text = "200025"; Xdr.RowId rowId59 = new Xdr.RowId(); rowId59.Text = "14"; Xdr.RowOffset rowOffset59 = new Xdr.RowOffset(); rowOffset59.Text = "147637"; fromMarker30.Append(columnId59); fromMarker30.Append(columnOffset59); fromMarker30.Append(rowId59); fromMarker30.Append(rowOffset59); Xdr.ToMarker toMarker30 = new Xdr.ToMarker(); Xdr.ColumnId columnId60 = new Xdr.ColumnId(); columnId60.Text = "7"; Xdr.ColumnOffset columnOffset60 = new Xdr.ColumnOffset(); columnOffset60.Text = "476250"; Xdr.RowId rowId60 = new Xdr.RowId(); rowId60.Text = "29"; Xdr.RowOffset rowOffset60 = new Xdr.RowOffset(); rowOffset60.Text = "33337"; toMarker30.Append(columnId60); toMarker30.Append(columnOffset60); toMarker30.Append(rowId60); toMarker30.Append(rowOffset60); Xdr.GraphicFrame graphicFrame30 = new Xdr.GraphicFrame(){ Macro = "" }; Xdr.NonVisualGraphicFrameProperties nonVisualGraphicFrameProperties30 = new Xdr.NonVisualGraphicFrameProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties44 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)3U, Name = "グラフ 2" }; Xdr.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties30 = new Xdr.NonVisualGraphicFrameDrawingProperties(); nonVisualGraphicFrameProperties30.Append(nonVisualDrawingProperties44); nonVisualGraphicFrameProperties30.Append(nonVisualGraphicFrameDrawingProperties30); Xdr.Transform transform30 = new Xdr.Transform(); A.Offset offset44 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents44 = new A.Extents(){ Cx = 0L, Cy = 0L }; transform30.Append(offset44); transform30.Append(extents44); A.Graphic graphic30 = new A.Graphic(); A.GraphicData graphicData30 = new A.GraphicData(){ Uri = "http://schemas.openxmlformats.org/drawingml/2006/chart" }; C.ChartReference chartReference16 = new C.ChartReference(){ Id = "rId2" }; chartReference16.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart"); chartReference16.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); graphicData30.Append(chartReference16); graphic30.Append(graphicData30); graphicFrame30.Append(nonVisualGraphicFrameProperties30); graphicFrame30.Append(transform30); graphicFrame30.Append(graphic30); Xdr.ClientData clientData30 = new Xdr.ClientData(); twoCellAnchor30.Append(fromMarker30); twoCellAnchor30.Append(toMarker30); twoCellAnchor30.Append(graphicFrame30); twoCellAnchor30.Append(clientData30); Xdr.TwoCellAnchor twoCellAnchor31 = new Xdr.TwoCellAnchor(){ EditAs = Xdr.EditAsValues.OneCell }; Xdr.FromMarker fromMarker31 = new Xdr.FromMarker(); Xdr.ColumnId columnId61 = new Xdr.ColumnId(); columnId61.Text = "10"; Xdr.ColumnOffset columnOffset61 = new Xdr.ColumnOffset(); columnOffset61.Text = "28575"; Xdr.RowId rowId61 = new Xdr.RowId(); rowId61.Text = "0"; Xdr.RowOffset rowOffset61 = new Xdr.RowOffset(); rowOffset61.Text = "38100"; fromMarker31.Append(columnId61); fromMarker31.Append(columnOffset61); fromMarker31.Append(rowId61); fromMarker31.Append(rowOffset61); Xdr.ToMarker toMarker31 = new Xdr.ToMarker(); Xdr.ColumnId columnId62 = new Xdr.ColumnId(); columnId62.Text = "13"; Xdr.ColumnOffset columnOffset62 = new Xdr.ColumnOffset(); columnOffset62.Text = "762000"; Xdr.RowId rowId62 = new Xdr.RowId(); rowId62.Text = "6"; Xdr.RowOffset rowOffset62 = new Xdr.RowOffset(); rowOffset62.Text = "85725"; toMarker31.Append(columnId62); toMarker31.Append(columnOffset62); toMarker31.Append(rowId62); toMarker31.Append(rowOffset62); AlternateContent alternateContent30 = new AlternateContent(); alternateContent30.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); alternateContent30.AddNamespaceDeclaration("a15", "http://schemas.microsoft.com/office/drawing/2012/main"); AlternateContentChoice alternateContentChoice30 = new AlternateContentChoice(){ Requires = "a15" }; Xdr.GraphicFrame graphicFrame31 = new Xdr.GraphicFrame(){ Macro = "" }; Xdr.NonVisualGraphicFrameProperties nonVisualGraphicFrameProperties31 = new Xdr.NonVisualGraphicFrameProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties45 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)5U, Name = "DeliveryDate" }; Xdr.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties31 = new Xdr.NonVisualGraphicFrameDrawingProperties(); nonVisualGraphicFrameProperties31.Append(nonVisualDrawingProperties45); nonVisualGraphicFrameProperties31.Append(nonVisualGraphicFrameDrawingProperties31); Xdr.Transform transform31 = new Xdr.Transform(); A.Offset offset45 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents45 = new A.Extents(){ Cx = 0L, Cy = 0L }; transform31.Append(offset45); transform31.Append(extents45); A.Graphic graphic31 = new A.Graphic(); A.GraphicData graphicData31 = new A.GraphicData(){ Uri = "http://schemas.microsoft.com/office/drawing/2012/timeslicer" }; Tsle.TimeSlicer timeSlicer15 = new Tsle.TimeSlicer(){ Name = "DeliveryDate" }; timeSlicer15.AddNamespaceDeclaration("tsle", "http://schemas.microsoft.com/office/drawing/2012/timeslicer"); graphicData31.Append(timeSlicer15); graphic31.Append(graphicData31); graphicFrame31.Append(nonVisualGraphicFrameProperties31); graphicFrame31.Append(transform31); graphicFrame31.Append(graphic31); alternateContentChoice30.Append(graphicFrame31); AlternateContentFallback alternateContentFallback29 = new AlternateContentFallback(); alternateContentFallback29.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); alternateContentFallback29.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart"); Xdr.Shape shape15 = new Xdr.Shape(){ Macro = "", TextLink = "" }; Xdr.NonVisualShapeProperties nonVisualShapeProperties15 = new Xdr.NonVisualShapeProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties46 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)0U, Name = "" }; Xdr.NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties15 = new Xdr.NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks15 = new A.ShapeLocks(){ NoTextEdit = true }; nonVisualShapeDrawingProperties15.Append(shapeLocks15); nonVisualShapeProperties15.Append(nonVisualDrawingProperties46); nonVisualShapeProperties15.Append(nonVisualShapeDrawingProperties15); Xdr.ShapeProperties shapeProperties62 = new Xdr.ShapeProperties(); A.Transform2D transform2D15 = new A.Transform2D(); A.Offset offset46 = new A.Offset(){ X = 8629650L, Y = 38100L }; A.Extents extents46 = new A.Extents(){ Cx = 3333750L, Cy = 1190625L }; transform2D15.Append(offset46); transform2D15.Append(extents46); A.PresetGeometry presetGeometry15 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList15 = new A.AdjustValueList(); presetGeometry15.Append(adjustValueList15); A.SolidFill solidFill117 = new A.SolidFill(); A.PresetColor presetColor29 = new A.PresetColor(){ Val = A.PresetColorValues.White }; solidFill117.Append(presetColor29); A.Outline outline95 = new A.Outline(){ Width = 1 }; A.SolidFill solidFill118 = new A.SolidFill(); A.PresetColor presetColor30 = new A.PresetColor(){ Val = A.PresetColorValues.Green }; solidFill118.Append(presetColor30); outline95.Append(solidFill118); shapeProperties62.Append(transform2D15); shapeProperties62.Append(presetGeometry15); shapeProperties62.Append(solidFill117); shapeProperties62.Append(outline95); Xdr.TextBody textBody15 = new Xdr.TextBody(); A.BodyProperties bodyProperties39 = new A.BodyProperties(){ VerticalOverflow = A.TextVerticalOverflowValues.Clip, HorizontalOverflow = A.TextHorizontalOverflowValues.Clip }; A.ListStyle listStyle39 = new A.ListStyle(); A.Paragraph paragraph39 = new A.Paragraph(); A.Run run15 = new A.Run(); A.RunProperties runProperties15 = new A.RunProperties(){ Language = "en-US", FontSize = 1100 }; A.Text text53 = new A.Text(); text53.Text = "Timeline: Works in Excel 15 or higher. Do not move or resize."; run15.Append(runProperties15); run15.Append(text53); paragraph39.Append(run15); textBody15.Append(bodyProperties39); textBody15.Append(listStyle39); textBody15.Append(paragraph39); shape15.Append(nonVisualShapeProperties15); shape15.Append(shapeProperties62); shape15.Append(textBody15); alternateContentFallback29.Append(shape15); alternateContent30.Append(alternateContentChoice30); alternateContent30.Append(alternateContentFallback29); Xdr.ClientData clientData31 = new Xdr.ClientData(); twoCellAnchor31.Append(fromMarker31); twoCellAnchor31.Append(toMarker31); twoCellAnchor31.Append(alternateContent30); twoCellAnchor31.Append(clientData31); Xdr.TwoCellAnchor twoCellAnchor32 = new Xdr.TwoCellAnchor(){ EditAs = Xdr.EditAsValues.OneCell }; Xdr.FromMarker fromMarker32 = new Xdr.FromMarker(); Xdr.ColumnId columnId63 = new Xdr.ColumnId(); columnId63.Text = "9"; Xdr.ColumnOffset columnOffset63 = new Xdr.ColumnOffset(); columnOffset63.Text = "857250"; Xdr.RowId rowId63 = new Xdr.RowId(); rowId63.Text = "8"; Xdr.RowOffset rowOffset63 = new Xdr.RowOffset(); rowOffset63.Text = "19050"; fromMarker32.Append(columnId63); fromMarker32.Append(columnOffset63); fromMarker32.Append(rowId63); fromMarker32.Append(rowOffset63); Xdr.ToMarker toMarker32 = new Xdr.ToMarker(); Xdr.ColumnId columnId64 = new Xdr.ColumnId(); columnId64.Text = "13"; Xdr.ColumnOffset columnOffset64 = new Xdr.ColumnOffset(); columnOffset64.Text = "723900"; Xdr.RowId rowId64 = new Xdr.RowId(); rowId64.Text = "14"; Xdr.RowOffset rowOffset64 = new Xdr.RowOffset(); rowOffset64.Text = "66675"; toMarker32.Append(columnId64); toMarker32.Append(columnOffset64); toMarker32.Append(rowId64); toMarker32.Append(rowOffset64); AlternateContent alternateContent31 = new AlternateContent(); alternateContent31.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); alternateContent31.AddNamespaceDeclaration("a15", "http://schemas.microsoft.com/office/drawing/2012/main"); AlternateContentChoice alternateContentChoice31 = new AlternateContentChoice(){ Requires = "a15" }; Xdr.GraphicFrame graphicFrame32 = new Xdr.GraphicFrame(){ Macro = "" }; Xdr.NonVisualGraphicFrameProperties nonVisualGraphicFrameProperties32 = new Xdr.NonVisualGraphicFrameProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties47 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)6U, Name = "DeliveryDate 1" }; Xdr.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties32 = new Xdr.NonVisualGraphicFrameDrawingProperties(); nonVisualGraphicFrameProperties32.Append(nonVisualDrawingProperties47); nonVisualGraphicFrameProperties32.Append(nonVisualGraphicFrameDrawingProperties32); Xdr.Transform transform32 = new Xdr.Transform(); A.Offset offset47 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents47 = new A.Extents(){ Cx = 0L, Cy = 0L }; transform32.Append(offset47); transform32.Append(extents47); A.Graphic graphic32 = new A.Graphic(); A.GraphicData graphicData32 = new A.GraphicData(){ Uri = "http://schemas.microsoft.com/office/drawing/2012/timeslicer" }; Tsle.TimeSlicer timeSlicer16 = new Tsle.TimeSlicer(){ Name = "DeliveryDate 1" }; timeSlicer16.AddNamespaceDeclaration("tsle", "http://schemas.microsoft.com/office/drawing/2012/timeslicer"); graphicData32.Append(timeSlicer16); graphic32.Append(graphicData32); graphicFrame32.Append(nonVisualGraphicFrameProperties32); graphicFrame32.Append(transform32); graphicFrame32.Append(graphic32); alternateContentChoice31.Append(graphicFrame32); AlternateContentFallback alternateContentFallback30 = new AlternateContentFallback(); alternateContentFallback30.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); alternateContentFallback30.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart"); Xdr.Shape shape16 = new Xdr.Shape(){ Macro = "", TextLink = "" }; Xdr.NonVisualShapeProperties nonVisualShapeProperties16 = new Xdr.NonVisualShapeProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties48 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)0U, Name = "" }; Xdr.NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties16 = new Xdr.NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks16 = new A.ShapeLocks(){ NoTextEdit = true }; nonVisualShapeDrawingProperties16.Append(shapeLocks16); nonVisualShapeProperties16.Append(nonVisualDrawingProperties48); nonVisualShapeProperties16.Append(nonVisualShapeDrawingProperties16); Xdr.ShapeProperties shapeProperties63 = new Xdr.ShapeProperties(); A.Transform2D transform2D16 = new A.Transform2D(); A.Offset offset48 = new A.Offset(){ X = 8591550L, Y = 1543050L }; A.Extents extents48 = new A.Extents(){ Cx = 3333750L, Cy = 1190625L }; transform2D16.Append(offset48); transform2D16.Append(extents48); A.PresetGeometry presetGeometry16 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList16 = new A.AdjustValueList(); presetGeometry16.Append(adjustValueList16); A.SolidFill solidFill119 = new A.SolidFill(); A.PresetColor presetColor31 = new A.PresetColor(){ Val = A.PresetColorValues.White }; solidFill119.Append(presetColor31); A.Outline outline96 = new A.Outline(){ Width = 1 }; A.SolidFill solidFill120 = new A.SolidFill(); A.PresetColor presetColor32 = new A.PresetColor(){ Val = A.PresetColorValues.Green }; solidFill120.Append(presetColor32); outline96.Append(solidFill120); shapeProperties63.Append(transform2D16); shapeProperties63.Append(presetGeometry16); shapeProperties63.Append(solidFill119); shapeProperties63.Append(outline96); Xdr.TextBody textBody16 = new Xdr.TextBody(); A.BodyProperties bodyProperties40 = new A.BodyProperties(){ VerticalOverflow = A.TextVerticalOverflowValues.Clip, HorizontalOverflow = A.TextHorizontalOverflowValues.Clip }; A.ListStyle listStyle40 = new A.ListStyle(); A.Paragraph paragraph40 = new A.Paragraph(); A.Run run16 = new A.Run(); A.RunProperties runProperties16 = new A.RunProperties(){ Language = "en-US", FontSize = 1100 }; A.Text text54 = new A.Text(); text54.Text = "Timeline: Works in Excel 15 or higher. Do not move or resize."; run16.Append(runProperties16); run16.Append(text54); paragraph40.Append(run16); textBody16.Append(bodyProperties40); textBody16.Append(listStyle40); textBody16.Append(paragraph40); shape16.Append(nonVisualShapeProperties16); shape16.Append(shapeProperties63); shape16.Append(textBody16); alternateContentFallback30.Append(shape16); alternateContent31.Append(alternateContentChoice31); alternateContent31.Append(alternateContentFallback30); Xdr.ClientData clientData32 = new Xdr.ClientData(); twoCellAnchor32.Append(fromMarker32); twoCellAnchor32.Append(toMarker32); twoCellAnchor32.Append(alternateContent31); twoCellAnchor32.Append(clientData32); Xdr.TwoCellAnchor twoCellAnchor33 = new Xdr.TwoCellAnchor(){ EditAs = Xdr.EditAsValues.OneCell }; Xdr.FromMarker fromMarker33 = new Xdr.FromMarker(); Xdr.ColumnId columnId65 = new Xdr.ColumnId(); columnId65.Text = "10"; Xdr.ColumnOffset columnOffset65 = new Xdr.ColumnOffset(); columnOffset65.Text = "9525"; Xdr.RowId rowId65 = new Xdr.RowId(); rowId65.Text = "16"; Xdr.RowOffset rowOffset65 = new Xdr.RowOffset(); rowOffset65.Text = "0"; fromMarker33.Append(columnId65); fromMarker33.Append(columnOffset65); fromMarker33.Append(rowId65); fromMarker33.Append(rowOffset65); Xdr.ToMarker toMarker33 = new Xdr.ToMarker(); Xdr.ColumnId columnId66 = new Xdr.ColumnId(); columnId66.Text = "13"; Xdr.ColumnOffset columnOffset66 = new Xdr.ColumnOffset(); columnOffset66.Text = "742950"; Xdr.RowId rowId66 = new Xdr.RowId(); rowId66.Text = "22"; Xdr.RowOffset rowOffset66 = new Xdr.RowOffset(); rowOffset66.Text = "47625"; toMarker33.Append(columnId66); toMarker33.Append(columnOffset66); toMarker33.Append(rowId66); toMarker33.Append(rowOffset66); AlternateContent alternateContent32 = new AlternateContent(); alternateContent32.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); alternateContent32.AddNamespaceDeclaration("a15", "http://schemas.microsoft.com/office/drawing/2012/main"); AlternateContentChoice alternateContentChoice32 = new AlternateContentChoice(){ Requires = "a15" }; Xdr.GraphicFrame graphicFrame33 = new Xdr.GraphicFrame(){ Macro = "" }; Xdr.NonVisualGraphicFrameProperties nonVisualGraphicFrameProperties33 = new Xdr.NonVisualGraphicFrameProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties49 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)7U, Name = "DeliveryDate 2" }; Xdr.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties33 = new Xdr.NonVisualGraphicFrameDrawingProperties(); nonVisualGraphicFrameProperties33.Append(nonVisualDrawingProperties49); nonVisualGraphicFrameProperties33.Append(nonVisualGraphicFrameDrawingProperties33); Xdr.Transform transform33 = new Xdr.Transform(); A.Offset offset49 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents49 = new A.Extents(){ Cx = 0L, Cy = 0L }; transform33.Append(offset49); transform33.Append(extents49); A.Graphic graphic33 = new A.Graphic(); A.GraphicData graphicData33 = new A.GraphicData(){ Uri = "http://schemas.microsoft.com/office/drawing/2012/timeslicer" }; Tsle.TimeSlicer timeSlicer17 = new Tsle.TimeSlicer(){ Name = "DeliveryDate 2" }; timeSlicer17.AddNamespaceDeclaration("tsle", "http://schemas.microsoft.com/office/drawing/2012/timeslicer"); graphicData33.Append(timeSlicer17); graphic33.Append(graphicData33); graphicFrame33.Append(nonVisualGraphicFrameProperties33); graphicFrame33.Append(transform33); graphicFrame33.Append(graphic33); alternateContentChoice32.Append(graphicFrame33); AlternateContentFallback alternateContentFallback31 = new AlternateContentFallback(); alternateContentFallback31.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); alternateContentFallback31.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart"); Xdr.Shape shape17 = new Xdr.Shape(){ Macro = "", TextLink = "" }; Xdr.NonVisualShapeProperties nonVisualShapeProperties17 = new Xdr.NonVisualShapeProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties50 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)0U, Name = "" }; Xdr.NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties17 = new Xdr.NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks17 = new A.ShapeLocks(){ NoTextEdit = true }; nonVisualShapeDrawingProperties17.Append(shapeLocks17); nonVisualShapeProperties17.Append(nonVisualDrawingProperties50); nonVisualShapeProperties17.Append(nonVisualShapeDrawingProperties17); Xdr.ShapeProperties shapeProperties64 = new Xdr.ShapeProperties(); A.Transform2D transform2D17 = new A.Transform2D(); A.Offset offset50 = new A.Offset(){ X = 8610600L, Y = 3048000L }; A.Extents extents50 = new A.Extents(){ Cx = 3333750L, Cy = 1190625L }; transform2D17.Append(offset50); transform2D17.Append(extents50); A.PresetGeometry presetGeometry17 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList17 = new A.AdjustValueList(); presetGeometry17.Append(adjustValueList17); A.SolidFill solidFill121 = new A.SolidFill(); A.PresetColor presetColor33 = new A.PresetColor(){ Val = A.PresetColorValues.White }; solidFill121.Append(presetColor33); A.Outline outline97 = new A.Outline(){ Width = 1 }; A.SolidFill solidFill122 = new A.SolidFill(); A.PresetColor presetColor34 = new A.PresetColor(){ Val = A.PresetColorValues.Green }; solidFill122.Append(presetColor34); outline97.Append(solidFill122); shapeProperties64.Append(transform2D17); shapeProperties64.Append(presetGeometry17); shapeProperties64.Append(solidFill121); shapeProperties64.Append(outline97); Xdr.TextBody textBody17 = new Xdr.TextBody(); A.BodyProperties bodyProperties41 = new A.BodyProperties(){ VerticalOverflow = A.TextVerticalOverflowValues.Clip, HorizontalOverflow = A.TextHorizontalOverflowValues.Clip }; A.ListStyle listStyle41 = new A.ListStyle(); A.Paragraph paragraph41 = new A.Paragraph(); A.Run run17 = new A.Run(); A.RunProperties runProperties17 = new A.RunProperties(){ Language = "en-US", FontSize = 1100 }; A.Text text55 = new A.Text(); text55.Text = "Timeline: Works in Excel 15 or higher. Do not move or resize."; run17.Append(runProperties17); run17.Append(text55); paragraph41.Append(run17); textBody17.Append(bodyProperties41); textBody17.Append(listStyle41); textBody17.Append(paragraph41); shape17.Append(nonVisualShapeProperties17); shape17.Append(shapeProperties64); shape17.Append(textBody17); alternateContentFallback31.Append(shape17); alternateContent32.Append(alternateContentChoice32); alternateContent32.Append(alternateContentFallback31); Xdr.ClientData clientData33 = new Xdr.ClientData(); twoCellAnchor33.Append(fromMarker33); twoCellAnchor33.Append(toMarker33); twoCellAnchor33.Append(alternateContent32); twoCellAnchor33.Append(clientData33); Xdr.TwoCellAnchor twoCellAnchor34 = new Xdr.TwoCellAnchor(){ EditAs = Xdr.EditAsValues.OneCell }; Xdr.FromMarker fromMarker34 = new Xdr.FromMarker(); Xdr.ColumnId columnId67 = new Xdr.ColumnId(); columnId67.Text = "10"; Xdr.ColumnOffset columnOffset67 = new Xdr.ColumnOffset(); columnOffset67.Text = "0"; Xdr.RowId rowId67 = new Xdr.RowId(); rowId67.Text = "23"; Xdr.RowOffset rowOffset67 = new Xdr.RowOffset(); rowOffset67.Text = "85725"; fromMarker34.Append(columnId67); fromMarker34.Append(columnOffset67); fromMarker34.Append(rowId67); fromMarker34.Append(rowOffset67); Xdr.ToMarker toMarker34 = new Xdr.ToMarker(); Xdr.ColumnId columnId68 = new Xdr.ColumnId(); columnId68.Text = "13"; Xdr.ColumnOffset columnOffset68 = new Xdr.ColumnOffset(); columnOffset68.Text = "733425"; Xdr.RowId rowId68 = new Xdr.RowId(); rowId68.Text = "29"; Xdr.RowOffset rowOffset68 = new Xdr.RowOffset(); rowOffset68.Text = "133350"; toMarker34.Append(columnId68); toMarker34.Append(columnOffset68); toMarker34.Append(rowId68); toMarker34.Append(rowOffset68); AlternateContent alternateContent33 = new AlternateContent(); alternateContent33.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); alternateContent33.AddNamespaceDeclaration("a15", "http://schemas.microsoft.com/office/drawing/2012/main"); AlternateContentChoice alternateContentChoice33 = new AlternateContentChoice(){ Requires = "a15" }; Xdr.GraphicFrame graphicFrame34 = new Xdr.GraphicFrame(){ Macro = "" }; Xdr.NonVisualGraphicFrameProperties nonVisualGraphicFrameProperties34 = new Xdr.NonVisualGraphicFrameProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties51 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)8U, Name = "DeliveryDate 3" }; Xdr.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties34 = new Xdr.NonVisualGraphicFrameDrawingProperties(); nonVisualGraphicFrameProperties34.Append(nonVisualDrawingProperties51); nonVisualGraphicFrameProperties34.Append(nonVisualGraphicFrameDrawingProperties34); Xdr.Transform transform34 = new Xdr.Transform(); A.Offset offset51 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents51 = new A.Extents(){ Cx = 0L, Cy = 0L }; transform34.Append(offset51); transform34.Append(extents51); A.Graphic graphic34 = new A.Graphic(); A.GraphicData graphicData34 = new A.GraphicData(){ Uri = "http://schemas.microsoft.com/office/drawing/2012/timeslicer" }; Tsle.TimeSlicer timeSlicer18 = new Tsle.TimeSlicer(){ Name = "DeliveryDate 3" }; timeSlicer18.AddNamespaceDeclaration("tsle", "http://schemas.microsoft.com/office/drawing/2012/timeslicer"); graphicData34.Append(timeSlicer18); graphic34.Append(graphicData34); graphicFrame34.Append(nonVisualGraphicFrameProperties34); graphicFrame34.Append(transform34); graphicFrame34.Append(graphic34); alternateContentChoice33.Append(graphicFrame34); AlternateContentFallback alternateContentFallback32 = new AlternateContentFallback(); alternateContentFallback32.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); alternateContentFallback32.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart"); Xdr.Shape shape18 = new Xdr.Shape(){ Macro = "", TextLink = "" }; Xdr.NonVisualShapeProperties nonVisualShapeProperties18 = new Xdr.NonVisualShapeProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties52 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)0U, Name = "" }; Xdr.NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties18 = new Xdr.NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks18 = new A.ShapeLocks(){ NoTextEdit = true }; nonVisualShapeDrawingProperties18.Append(shapeLocks18); nonVisualShapeProperties18.Append(nonVisualDrawingProperties52); nonVisualShapeProperties18.Append(nonVisualShapeDrawingProperties18); Xdr.ShapeProperties shapeProperties65 = new Xdr.ShapeProperties(); A.Transform2D transform2D18 = new A.Transform2D(); A.Offset offset52 = new A.Offset(){ X = 8601075L, Y = 4467225L }; A.Extents extents52 = new A.Extents(){ Cx = 3333750L, Cy = 1190625L }; transform2D18.Append(offset52); transform2D18.Append(extents52); A.PresetGeometry presetGeometry18 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList18 = new A.AdjustValueList(); presetGeometry18.Append(adjustValueList18); A.SolidFill solidFill123 = new A.SolidFill(); A.PresetColor presetColor35 = new A.PresetColor(){ Val = A.PresetColorValues.White }; solidFill123.Append(presetColor35); A.Outline outline98 = new A.Outline(){ Width = 1 }; A.SolidFill solidFill124 = new A.SolidFill(); A.PresetColor presetColor36 = new A.PresetColor(){ Val = A.PresetColorValues.Green }; solidFill124.Append(presetColor36); outline98.Append(solidFill124); shapeProperties65.Append(transform2D18); shapeProperties65.Append(presetGeometry18); shapeProperties65.Append(solidFill123); shapeProperties65.Append(outline98); Xdr.TextBody textBody18 = new Xdr.TextBody(); A.BodyProperties bodyProperties42 = new A.BodyProperties(){ VerticalOverflow = A.TextVerticalOverflowValues.Clip, HorizontalOverflow = A.TextHorizontalOverflowValues.Clip }; A.ListStyle listStyle42 = new A.ListStyle(); A.Paragraph paragraph42 = new A.Paragraph(); A.Run run18 = new A.Run(); A.RunProperties runProperties18 = new A.RunProperties(){ Language = "en-US", FontSize = 1100 }; A.Text text56 = new A.Text(); text56.Text = "Timeline: Works in Excel 15 or higher. Do not move or resize."; run18.Append(runProperties18); run18.Append(text56); paragraph42.Append(run18); textBody18.Append(bodyProperties42); textBody18.Append(listStyle42); textBody18.Append(paragraph42); shape18.Append(nonVisualShapeProperties18); shape18.Append(shapeProperties65); shape18.Append(textBody18); alternateContentFallback32.Append(shape18); alternateContent33.Append(alternateContentChoice33); alternateContent33.Append(alternateContentFallback32); Xdr.ClientData clientData34 = new Xdr.ClientData(); twoCellAnchor34.Append(fromMarker34); twoCellAnchor34.Append(toMarker34); twoCellAnchor34.Append(alternateContent33); twoCellAnchor34.Append(clientData34); worksheetDrawing8.Append(twoCellAnchor29); worksheetDrawing8.Append(twoCellAnchor30); worksheetDrawing8.Append(twoCellAnchor31); worksheetDrawing8.Append(twoCellAnchor32); worksheetDrawing8.Append(twoCellAnchor33); worksheetDrawing8.Append(twoCellAnchor34); drawingsPart8.WorksheetDrawing = worksheetDrawing8; }
// Generates content of mainDocumentPart1. private static void GenerateMainDocumentPart1Content(MainDocumentPart mainDocumentPart1, WordprocessingDocument document) { Document document1 = new Document() { MCAttributes = new MarkupCompatibilityAttributes() { Ignorable = "w14 w15 wp14" } }; document1.AddNamespaceDeclaration("wpc", "http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas"); document1.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); document1.AddNamespaceDeclaration("o", "urn:schemas-microsoft-com:office:office"); document1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); document1.AddNamespaceDeclaration("m", "http://schemas.openxmlformats.org/officeDocument/2006/math"); document1.AddNamespaceDeclaration("v", "urn:schemas-microsoft-com:vml"); document1.AddNamespaceDeclaration("wp14", "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing"); document1.AddNamespaceDeclaration("wp", "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"); document1.AddNamespaceDeclaration("w10", "urn:schemas-microsoft-com:office:word"); document1.AddNamespaceDeclaration("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main"); document1.AddNamespaceDeclaration("w14", "http://schemas.microsoft.com/office/word/2010/wordml"); document1.AddNamespaceDeclaration("w15", "http://schemas.microsoft.com/office/word/2012/wordml"); document1.AddNamespaceDeclaration("wpg", "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup"); document1.AddNamespaceDeclaration("wpi", "http://schemas.microsoft.com/office/word/2010/wordprocessingInk"); document1.AddNamespaceDeclaration("wne", "http://schemas.microsoft.com/office/word/2006/wordml"); document1.AddNamespaceDeclaration("wps", "http://schemas.microsoft.com/office/word/2010/wordprocessingShape"); Body body1 = new Body(); Paragraph paragraph1 = new Paragraph() { RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" }; ParagraphProperties paragraphProperties1 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines1 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; Justification justification1 = new Justification() { Val = JustificationValues.Center }; ParagraphMarkRunProperties paragraphMarkRunProperties1 = new ParagraphMarkRunProperties(); FontSize fontSize1 = new FontSize() { Val = "20" }; paragraphMarkRunProperties1.Append(fontSize1); paragraphProperties1.Append(spacingBetweenLines1); paragraphProperties1.Append(justification1); paragraphProperties1.Append(paragraphMarkRunProperties1); BookmarkStart bookmarkStart1 = new BookmarkStart() { Name = "_GoBack", Id = "0" }; BookmarkEnd bookmarkEnd1 = new BookmarkEnd() { Id = "0" }; Run run1 = new Run(); RunProperties runProperties1 = new RunProperties(); NoProof noProof1 = new NoProof(); FontSize fontSize2 = new FontSize() { Val = "20" }; Languages languages1 = new Languages() { EastAsia = "ru-RU" }; runProperties1.Append(noProof1); runProperties1.Append(fontSize2); runProperties1.Append(languages1); AlternateContent alternateContent1 = new AlternateContent(); AlternateContentChoice alternateContentChoice1 = new AlternateContentChoice() { Requires = "wps" }; Drawing drawing1 = new Drawing(); Wp.Anchor anchor1 = new Wp.Anchor() { DistanceFromTop = (UInt32Value)0U, DistanceFromBottom = (UInt32Value)0U, DistanceFromLeft = (UInt32Value)114300U, DistanceFromRight = (UInt32Value)114300U, SimplePos = false, RelativeHeight = (UInt32Value)251659264U, BehindDoc = false, Locked = false, LayoutInCell = true, AllowOverlap = true }; Wp.SimplePosition simplePosition1 = new Wp.SimplePosition() { X = 0L, Y = 0L }; Wp.HorizontalPosition horizontalPosition1 = new Wp.HorizontalPosition() { RelativeFrom = Wp.HorizontalRelativePositionValues.Column }; Wp.PositionOffset positionOffset1 = new Wp.PositionOffset(); positionOffset1.Text = "7559955"; horizontalPosition1.Append(positionOffset1); Wp.VerticalPosition verticalPosition1 = new Wp.VerticalPosition() { RelativeFrom = Wp.VerticalRelativePositionValues.Paragraph }; Wp.PositionOffset positionOffset2 = new Wp.PositionOffset(); positionOffset2.Text = "-180045"; verticalPosition1.Append(positionOffset2); Wp.Extent extent1 = new Wp.Extent() { Cx = 2540000L, Cy = 635000L }; Wp.EffectExtent effectExtent1 = new Wp.EffectExtent() { LeftEdge = 0L, TopEdge = 0L, RightEdge = 0L, BottomEdge = 0L }; Wp.WrapNone wrapNone1 = new Wp.WrapNone(); Wp.DocProperties docProperties1 = new Wp.DocProperties() { Id = (UInt32Value)1U, Name = "Надпись 1" }; Wp.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties1 = new Wp.NonVisualGraphicFrameDrawingProperties(); A.Graphic graphic1 = new A.Graphic(); graphic1.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); A.GraphicData graphicData1 = new A.GraphicData() { Uri = "http://schemas.microsoft.com/office/word/2010/wordprocessingShape" }; Wps.WordprocessingShape wordprocessingShape1 = new Wps.WordprocessingShape(); Wps.NonVisualDrawingShapeProperties nonVisualDrawingShapeProperties1 = new Wps.NonVisualDrawingShapeProperties() { TextBox = true }; Wps.ShapeProperties shapeProperties1 = new Wps.ShapeProperties(); A.Transform2D transform2D1 = new A.Transform2D(); A.Offset offset1 = new A.Offset() { X = 0L, Y = 0L }; A.Extents extents1 = new A.Extents() { Cx = 2540000L, Cy = 635000L }; transform2D1.Append(offset1); transform2D1.Append(extents1); A.PresetGeometry presetGeometry1 = new A.PresetGeometry() { Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList1 = new A.AdjustValueList(); presetGeometry1.Append(adjustValueList1); A.NoFill noFill1 = new A.NoFill(); A.Outline outline1 = new A.Outline() { Width = 6350 }; A.NoFill noFill2 = new A.NoFill(); outline1.Append(noFill2); A.EffectList effectList1 = new A.EffectList(); A.ShapePropertiesExtensionList shapePropertiesExtensionList1 = new A.ShapePropertiesExtensionList(); A.ShapePropertiesExtension shapePropertiesExtension1 = new A.ShapePropertiesExtension() { Uri = "{91240B29-F687-4F45-9708-019B960494DF}" }; A14.HiddenLineProperties hiddenLineProperties1 = new A14.HiddenLineProperties() { Width = 6350 }; hiddenLineProperties1.AddNamespaceDeclaration("a14", "http://schemas.microsoft.com/office/drawing/2010/main"); A.SolidFill solidFill1 = new A.SolidFill(); A.PresetColor presetColor1 = new A.PresetColor() { Val = A.PresetColorValues.Black }; solidFill1.Append(presetColor1); hiddenLineProperties1.Append(solidFill1); shapePropertiesExtension1.Append(hiddenLineProperties1); shapePropertiesExtensionList1.Append(shapePropertiesExtension1); shapeProperties1.Append(transform2D1); shapeProperties1.Append(presetGeometry1); shapeProperties1.Append(noFill1); shapeProperties1.Append(outline1); shapeProperties1.Append(effectList1); shapeProperties1.Append(shapePropertiesExtensionList1); Wps.ShapeStyle shapeStyle1 = new Wps.ShapeStyle(); A.LineReference lineReference1 = new A.LineReference() { Index = (UInt32Value)0U }; A.SchemeColor schemeColor1 = new A.SchemeColor() { Val = A.SchemeColorValues.Accent1 }; lineReference1.Append(schemeColor1); A.FillReference fillReference1 = new A.FillReference() { Index = (UInt32Value)0U }; A.SchemeColor schemeColor2 = new A.SchemeColor() { Val = A.SchemeColorValues.Accent1 }; fillReference1.Append(schemeColor2); A.EffectReference effectReference1 = new A.EffectReference() { Index = (UInt32Value)0U }; A.SchemeColor schemeColor3 = new A.SchemeColor() { Val = A.SchemeColorValues.Accent1 }; effectReference1.Append(schemeColor3); A.FontReference fontReference1 = new A.FontReference() { Index = A.FontCollectionIndexValues.Minor }; A.SchemeColor schemeColor4 = new A.SchemeColor() { Val = A.SchemeColorValues.Dark1 }; fontReference1.Append(schemeColor4); shapeStyle1.Append(lineReference1); shapeStyle1.Append(fillReference1); shapeStyle1.Append(effectReference1); shapeStyle1.Append(fontReference1); Wps.TextBoxInfo2 textBoxInfo21 = new Wps.TextBoxInfo2(); TextBoxContent textBoxContent1 = new TextBoxContent(); if (Dow == "Понедельник") { Paragraph paragraph2 = new Paragraph() { RsidParagraphMarkRevision = "00FA5335", RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" }; ParagraphProperties paragraphProperties2 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines2 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; Justification justification2 = new Justification() { Val = JustificationValues.Right }; ParagraphMarkRunProperties paragraphMarkRunProperties2 = new ParagraphMarkRunProperties(); FontSize fontSize3 = new FontSize() { Val = "20" }; paragraphMarkRunProperties2.Append(fontSize3); paragraphProperties2.Append(spacingBetweenLines2); paragraphProperties2.Append(justification2); paragraphProperties2.Append(paragraphMarkRunProperties2); Run run2 = new Run() { RsidRunProperties = "00FA5335" }; RunProperties runProperties2 = new RunProperties(); FontSize fontSize4 = new FontSize() { Val = "20" }; runProperties2.Append(fontSize4); Text text1 = new Text(); text1.Text = "«УТВЕРЖДАЮ»"; run2.Append(runProperties2); run2.Append(text1); paragraph2.Append(paragraphProperties2); paragraph2.Append(run2); Paragraph paragraph3 = new Paragraph() { RsidParagraphMarkRevision = "00FA5335", RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" }; ParagraphProperties paragraphProperties3 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines3 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; Justification justification3 = new Justification() { Val = JustificationValues.Right }; ParagraphMarkRunProperties paragraphMarkRunProperties3 = new ParagraphMarkRunProperties(); FontSize fontSize5 = new FontSize() { Val = "20" }; paragraphMarkRunProperties3.Append(fontSize5); paragraphProperties3.Append(spacingBetweenLines3); paragraphProperties3.Append(justification3); paragraphProperties3.Append(paragraphMarkRunProperties3); Run run3 = new Run() { RsidRunProperties = "00FA5335" }; RunProperties runProperties3 = new RunProperties(); FontSize fontSize6 = new FontSize() { Val = "20" }; runProperties3.Append(fontSize6); Text text2 = new Text(); text2.Text = "Проректор по учебной работе"; run3.Append(runProperties3); run3.Append(text2); paragraph3.Append(paragraphProperties3); paragraph3.Append(run3); Paragraph paragraph4 = new Paragraph() { RsidParagraphMarkRevision = "00FA5335", RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" }; ParagraphProperties paragraphProperties4 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines4 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; Justification justification4 = new Justification() { Val = JustificationValues.Right }; ParagraphMarkRunProperties paragraphMarkRunProperties4 = new ParagraphMarkRunProperties(); FontSize fontSize7 = new FontSize() { Val = "20" }; paragraphMarkRunProperties4.Append(fontSize7); paragraphProperties4.Append(spacingBetweenLines4); paragraphProperties4.Append(justification4); paragraphProperties4.Append(paragraphMarkRunProperties4); Run run4 = new Run() { RsidRunProperties = "00FA5335" }; RunProperties runProperties4 = new RunProperties(); FontSize fontSize8 = new FontSize() { Val = "20" }; runProperties4.Append(fontSize8); Text text3 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text3.Text = "______________ "; run4.Append(runProperties4); run4.Append(text3); ProofError proofError1 = new ProofError() { Type = ProofingErrorValues.SpellStart }; Run run5 = new Run() { RsidRunProperties = "00FA5335" }; RunProperties runProperties5 = new RunProperties(); FontSize fontSize9 = new FontSize() { Val = "20" }; runProperties5.Append(fontSize9); Text text4 = new Text(); text4.Text = "А.В.Синицкий"; run5.Append(runProperties5); run5.Append(text4); ProofError proofError2 = new ProofError() { Type = ProofingErrorValues.SpellEnd }; paragraph4.Append(paragraphProperties4); paragraph4.Append(run4); paragraph4.Append(proofError1); paragraph4.Append(run5); paragraph4.Append(proofError2); textBoxContent1.Append(paragraph2); textBoxContent1.Append(paragraph3); textBoxContent1.Append(paragraph4); } textBoxInfo21.Append(textBoxContent1); Wps.TextBodyProperties textBodyProperties1 = new Wps.TextBodyProperties() { Rotation = 0, UseParagraphSpacing = false, VerticalOverflow = A.TextVerticalOverflowValues.Overflow, HorizontalOverflow = A.TextHorizontalOverflowValues.Overflow, Vertical = A.TextVerticalValues.Horizontal, Wrap = A.TextWrappingValues.Square, LeftInset = 91440, TopInset = 45720, RightInset = 91440, BottomInset = 45720, ColumnCount = 1, ColumnSpacing = 0, RightToLeftColumns = false, FromWordArt = false, Anchor = A.TextAnchoringTypeValues.Top, AnchorCenter = false, ForceAntiAlias = false, CompatibleLineSpacing = true }; A.PresetTextWrap presetTextWrap1 = new A.PresetTextWrap() { Preset = A.TextShapeValues.TextNoShape }; A.AdjustValueList adjustValueList2 = new A.AdjustValueList(); presetTextWrap1.Append(adjustValueList2); A.NoAutoFit noAutoFit1 = new A.NoAutoFit(); textBodyProperties1.Append(presetTextWrap1); textBodyProperties1.Append(noAutoFit1); wordprocessingShape1.Append(nonVisualDrawingShapeProperties1); wordprocessingShape1.Append(shapeProperties1); wordprocessingShape1.Append(shapeStyle1); wordprocessingShape1.Append(textBoxInfo21); wordprocessingShape1.Append(textBodyProperties1); graphicData1.Append(wordprocessingShape1); graphic1.Append(graphicData1); anchor1.Append(simplePosition1); anchor1.Append(horizontalPosition1); anchor1.Append(verticalPosition1); anchor1.Append(extent1); anchor1.Append(effectExtent1); anchor1.Append(wrapNone1); anchor1.Append(docProperties1); anchor1.Append(nonVisualGraphicFrameDrawingProperties1); anchor1.Append(graphic1); drawing1.Append(anchor1); alternateContentChoice1.Append(drawing1); AlternateContentFallback alternateContentFallback1 = new AlternateContentFallback(); Picture picture1 = new Picture(); V.Shapetype shapetype1 = new V.Shapetype() { Id = "_x0000_t202", CoordinateSize = "21600,21600", OptionalNumber = 202, EdgePath = "m,l,21600r21600,l21600,xe" }; V.Stroke stroke1 = new V.Stroke() { JoinStyle = V.StrokeJoinStyleValues.Miter }; V.Path path1 = new V.Path() { AllowGradientShape = true, ConnectionPointType = Ovml.ConnectValues.Rectangle }; shapetype1.Append(stroke1); shapetype1.Append(path1); V.Shape shape1 = new V.Shape() { Id = "Надпись 1", Style = "position:absolute;left:0;text-align:left;margin-left:595.25pt;margin-top:-14.2pt;width:200pt;height:50pt;z-index:251659264;visibility:visible;mso-wrap-style:square;mso-wrap-distance-left:9pt;mso-wrap-distance-top:0;mso-wrap-distance-right:9pt;mso-wrap-distance-bottom:0;mso-position-horizontal:absolute;mso-position-horizontal-relative:text;mso-position-vertical:absolute;mso-position-vertical-relative:text;v-text-anchor:top", OptionalString = "_x0000_s1026", Filled = false, Stroked = false, StrokeWeight = ".5pt", Type = "#_x0000_t202", EncodedPackage = "UEsDBBQABgAIAAAAIQC2gziS/gAAAOEBAAATAAAAW0NvbnRlbnRfVHlwZXNdLnhtbJSRQU7DMBBF\n90jcwfIWJU67QAgl6YK0S0CoHGBkTxKLZGx5TGhvj5O2G0SRWNoz/78nu9wcxkFMGNg6quQqL6RA\n0s5Y6ir5vt9lD1JwBDIwOMJKHpHlpr69KfdHjyxSmriSfYz+USnWPY7AufNIadK6MEJMx9ApD/oD\nOlTrorhX2lFEilmcO2RdNtjC5xDF9pCuTyYBB5bi6bQ4syoJ3g9WQ0ymaiLzg5KdCXlKLjvcW893\nSUOqXwnz5DrgnHtJTxOsQfEKIT7DmDSUCaxw7Rqn8787ZsmRM9e2VmPeBN4uqYvTtW7jvijg9N/y\nJsXecLq0q+WD6m8AAAD//wMAUEsDBBQABgAIAAAAIQA4/SH/1gAAAJQBAAALAAAAX3JlbHMvLnJl\nbHOkkMFqwzAMhu+DvYPRfXGawxijTi+j0GvpHsDYimMaW0Yy2fr2M4PBMnrbUb/Q94l/f/hMi1qR\nJVI2sOt6UJgd+ZiDgffL8ekFlFSbvV0oo4EbChzGx4f9GRdb25HMsYhqlCwG5lrLq9biZkxWOiqY\n22YiTra2kYMu1l1tQD30/bPm3wwYN0x18gb45AdQl1tp5j/sFB2T0FQ7R0nTNEV3j6o9feQzro1i\nOWA14Fm+Q8a1a8+Bvu/d/dMb2JY5uiPbhG/ktn4cqGU/er3pcvwCAAD//wMAUEsDBBQABgAIAAAA\nIQBUFACl/wIAAFgGAAAOAAAAZHJzL2Uyb0RvYy54bWysVcFuEzEQvSPxD5bv6e6GTZqsuqnSVkFI\nUVvRop4dr7ex6rWN7SQbEAfu/AL/wIEDN34h/SPG3k2aFg4UkYN3PPM8nnkznhwd15VAS2YsVzLH\nyUGMEZNUFVze5vjd9aQzwMg6IgsilGQ5XjOLj0cvXxytdMa6aq5EwQwCJ9JmK53juXM6iyJL56wi\n9kBpJsFYKlMRB1tzGxWGrMB7JaJuHPejlTKFNooya0F71hjxKPgvS0bdRVla5pDIMcTmwmrCOvNr\nNDoi2a0hes5pGwb5hygqwiVcunN1RhxBC8N/c1VxapRVpTugqopUWXLKQg6QTRI/yeZqTjQLuQA5\nVu9osv/PLT1fXhrEC6gdRpJUUKLN1823zffNz82P+8/3X1DiOVppmwH0SgPY1Seq9vhWb0HpU69L\nU/kvJIXADmyvdwyz2iEKym4vjeGHEQVb/1XPy+AmejitjXWvmaqQF3JsoIKBWLKcWtdAtxB/mVQT\nLgToSSYkWjVOw4GdBZwL6QEs9EPjBna1AzHoIbhQq4/DpJvGJ91hZ9IfHHbSSdrrDA/jQSdOhifD\nfpwO07PJJ+89SbM5Lwomp1yybd8k6d/Vpe3gpuKhcx4FbpXghc/Kx+ZzPRUGLQk08EwQetfytYeK\nHocT6ITstt+QZeQr2FQqSG4tmPcv5FtWQv1DwbwivDy2u5JQyqQLtQ48AtqjSgjvOQdbvD/aVOE5\nh3cnws1Kut3hiktlQrWfhF3cbUMuGzyQsZe3F109q9sOnqliDY1tFDQc9KbVdMKB9ymx7pIYmAeg\nhBnnLmAphYIuU62E0VyZD3/Sezy0A1gxWsF8ybF9vyCGYSTeSHjAwyRNwa0Lm7R32IWN2bfM9i1y\nUZ0q6AB4pBBdED3eia1YGlXdwCgc+1vBRCSFu3PstuKpa6YejFLKxuMAghGkiZvKK029a0+v77fr\n+oYY3T5AB510rraTiGRP3mGD9SelGi+cKnl4pJ7ghtWWeBhfoR/bUevn4/4+oB7+EEa/AAAA//8D\nAFBLAwQUAAYACAAAACEAneNfUOIAAAAMAQAADwAAAGRycy9kb3ducmV2LnhtbEyPwU7DMAyG70i8\nQ2Qkblvaio7SNZ2mShMSgsPGLtzcJmurJU5psq3w9GRc4Pjbn35/LlaT0eysRtdbEhDPI2CKGit7\nagXs3zezDJjzSBK1JSXgSzlYlbc3BebSXmirzjvfslBCLkcBnfdDzrlrOmXQze2gKOwOdjToQxxb\nLke8hHKjeRJFC26wp3Chw0FVnWqOu5MR8FJt3nBbJyb71tXz62E9fO4/UiHu76b1EphXk/+D4aof\n1KEMTrU9kXRMhxw/RWlgBcyS7AHYFUl/R7WAx3gBvCz4/yfKHwAAAP//AwBQSwECLQAUAAYACAAA\nACEAtoM4kv4AAADhAQAAEwAAAAAAAAAAAAAAAAAAAAAAW0NvbnRlbnRfVHlwZXNdLnhtbFBLAQIt\nABQABgAIAAAAIQA4/SH/1gAAAJQBAAALAAAAAAAAAAAAAAAAAC8BAABfcmVscy8ucmVsc1BLAQIt\nABQABgAIAAAAIQBUFACl/wIAAFgGAAAOAAAAAAAAAAAAAAAAAC4CAABkcnMvZTJvRG9jLnhtbFBL\nAQItABQABgAIAAAAIQCd419Q4gAAAAwBAAAPAAAAAAAAAAAAAAAAAFkFAABkcnMvZG93bnJldi54\nbWxQSwUGAAAAAAQABADzAAAAaAYAAAAA\n" }; V.Fill fill1 = new V.Fill() { DetectMouseClick = true }; V.TextBox textBox1 = new V.TextBox(); TextBoxContent textBoxContent2 = new TextBoxContent(); Paragraph paragraph5 = new Paragraph() { RsidParagraphMarkRevision = "00FA5335", RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" }; ParagraphProperties paragraphProperties5 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines5 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; Justification justification5 = new Justification() { Val = JustificationValues.Right }; ParagraphMarkRunProperties paragraphMarkRunProperties5 = new ParagraphMarkRunProperties(); FontSize fontSize10 = new FontSize() { Val = "20" }; paragraphMarkRunProperties5.Append(fontSize10); paragraphProperties5.Append(spacingBetweenLines5); paragraphProperties5.Append(justification5); paragraphProperties5.Append(paragraphMarkRunProperties5); Run run6 = new Run() { RsidRunProperties = "00FA5335" }; RunProperties runProperties6 = new RunProperties(); FontSize fontSize11 = new FontSize() { Val = "20" }; runProperties6.Append(fontSize11); Text text5 = new Text(); text5.Text = "«УТВЕРЖДАЮ»"; run6.Append(runProperties6); run6.Append(text5); paragraph5.Append(paragraphProperties5); paragraph5.Append(run6); Paragraph paragraph6 = new Paragraph() { RsidParagraphMarkRevision = "00FA5335", RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" }; ParagraphProperties paragraphProperties6 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines6 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; Justification justification6 = new Justification() { Val = JustificationValues.Right }; ParagraphMarkRunProperties paragraphMarkRunProperties6 = new ParagraphMarkRunProperties(); FontSize fontSize12 = new FontSize() { Val = "20" }; paragraphMarkRunProperties6.Append(fontSize12); paragraphProperties6.Append(spacingBetweenLines6); paragraphProperties6.Append(justification6); paragraphProperties6.Append(paragraphMarkRunProperties6); Run run7 = new Run() { RsidRunProperties = "00FA5335" }; RunProperties runProperties7 = new RunProperties(); FontSize fontSize13 = new FontSize() { Val = "20" }; runProperties7.Append(fontSize13); Text text6 = new Text(); text6.Text = "Проректор по учебной работе"; run7.Append(runProperties7); run7.Append(text6); paragraph6.Append(paragraphProperties6); paragraph6.Append(run7); Paragraph paragraph7 = new Paragraph() { RsidParagraphMarkRevision = "00FA5335", RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" }; ParagraphProperties paragraphProperties7 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines7 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; Justification justification7 = new Justification() { Val = JustificationValues.Right }; ParagraphMarkRunProperties paragraphMarkRunProperties7 = new ParagraphMarkRunProperties(); FontSize fontSize14 = new FontSize() { Val = "20" }; paragraphMarkRunProperties7.Append(fontSize14); paragraphProperties7.Append(spacingBetweenLines7); paragraphProperties7.Append(justification7); paragraphProperties7.Append(paragraphMarkRunProperties7); Run run8 = new Run() { RsidRunProperties = "00FA5335" }; RunProperties runProperties8 = new RunProperties(); FontSize fontSize15 = new FontSize() { Val = "20" }; runProperties8.Append(fontSize15); Text text7 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text7.Text = "______________ "; run8.Append(runProperties8); run8.Append(text7); ProofError proofError3 = new ProofError() { Type = ProofingErrorValues.SpellStart }; Run run9 = new Run() { RsidRunProperties = "00FA5335" }; RunProperties runProperties9 = new RunProperties(); FontSize fontSize16 = new FontSize() { Val = "20" }; runProperties9.Append(fontSize16); Text text8 = new Text(); text8.Text = "А.В.Синицкий"; run9.Append(runProperties9); run9.Append(text8); ProofError proofError4 = new ProofError() { Type = ProofingErrorValues.SpellEnd }; paragraph7.Append(paragraphProperties7); paragraph7.Append(run8); paragraph7.Append(proofError3); paragraph7.Append(run9); paragraph7.Append(proofError4); textBoxContent2.Append(paragraph5); textBoxContent2.Append(paragraph6); textBoxContent2.Append(paragraph7); textBox1.Append(textBoxContent2); shape1.Append(fill1); shape1.Append(textBox1); picture1.Append(shapetype1); picture1.Append(shape1); alternateContentFallback1.Append(picture1); alternateContent1.Append(alternateContentChoice1); alternateContent1.Append(alternateContentFallback1); run1.Append(runProperties1); run1.Append(alternateContent1); Run run10 = new Run() { RsidRunProperties = "00FA5335" }; RunProperties runProperties10 = new RunProperties(); FontSize fontSize17 = new FontSize() { Val = "20" }; runProperties10.Append(fontSize17); Text text9 = new Text(); text9.Text = "Расписание"; run10.Append(runProperties10); run10.Append(text9); paragraph1.Append(paragraphProperties1); paragraph1.Append(bookmarkStart1); paragraph1.Append(bookmarkEnd1); paragraph1.Append(run1); paragraph1.Append(run10); Paragraph paragraph8 = new Paragraph() { RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" }; ParagraphProperties paragraphProperties8 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines8 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; Justification justification8 = new Justification() { Val = JustificationValues.Center }; ParagraphMarkRunProperties paragraphMarkRunProperties8 = new ParagraphMarkRunProperties(); FontSize fontSize18 = new FontSize() { Val = "20" }; paragraphMarkRunProperties8.Append(fontSize18); paragraphProperties8.Append(spacingBetweenLines8); paragraphProperties8.Append(justification8); paragraphProperties8.Append(paragraphMarkRunProperties8); Run run11 = new Run() { RsidRunProperties = "00FA5335" }; RunProperties runProperties11 = new RunProperties(); FontSize fontSize19 = new FontSize() { Val = "20" }; runProperties11.Append(fontSize19); Text text10 = new Text(); text10.Text = "второго семестра 2013 – 2014 учебного года"; run11.Append(runProperties11); run11.Append(text10); paragraph8.Append(paragraphProperties8); paragraph8.Append(run11); Paragraph paragraph9 = new Paragraph() { RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" }; ParagraphProperties paragraphProperties9 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines9 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; Justification justification9 = new Justification() { Val = JustificationValues.Center }; ParagraphMarkRunProperties paragraphMarkRunProperties9 = new ParagraphMarkRunProperties(); FontSize fontSize20 = new FontSize() { Val = "20" }; paragraphMarkRunProperties9.Append(fontSize20); paragraphProperties9.Append(spacingBetweenLines9); paragraphProperties9.Append(justification9); paragraphProperties9.Append(paragraphMarkRunProperties9); Run run12 = new Run() { RsidRunProperties = "00FA5335" }; RunProperties runProperties12 = new RunProperties(); FontSize fontSize21 = new FontSize() { Val = "20" }; runProperties12.Append(fontSize21); Text text11 = new Text(); text11.Text = FacultyName; run12.Append(runProperties12); run12.Append(text11); paragraph9.Append(paragraphProperties9); paragraph9.Append(run12); Paragraph paragraph10 = new Paragraph() { RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" }; ParagraphProperties paragraphProperties10 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines10 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; Justification justification10 = new Justification() { Val = JustificationValues.Center }; ParagraphMarkRunProperties paragraphMarkRunProperties10 = new ParagraphMarkRunProperties(); Bold bold1 = new Bold(); FontSize fontSize22 = new FontSize() { Val = "28" }; paragraphMarkRunProperties10.Append(bold1); paragraphMarkRunProperties10.Append(fontSize22); paragraphProperties10.Append(spacingBetweenLines10); paragraphProperties10.Append(justification10); paragraphProperties10.Append(paragraphMarkRunProperties10); Run run13 = new Run() { RsidRunProperties = "00FA5335" }; RunProperties runProperties13 = new RunProperties(); Bold bold2 = new Bold(); FontSize fontSize23 = new FontSize() { Val = "28" }; runProperties13.Append(bold2); runProperties13.Append(fontSize23); Text text12 = new Text(); text12.Text = Dow; run13.Append(runProperties13); run13.Append(text12); paragraph10.Append(paragraphProperties10); paragraph10.Append(run13); Table table1 = new Table(); TableProperties tableProperties1 = new TableProperties(); TableWidth tableWidth1 = new TableWidth() { Width = "15919", Type = TableWidthUnitValues.Dxa }; TableBorders tableBorders1 = new TableBorders(); TopBorder topBorder1 = new TopBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; LeftBorder leftBorder1 = new LeftBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; BottomBorder bottomBorder1 = new BottomBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; RightBorder rightBorder1 = new RightBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; InsideHorizontalBorder insideHorizontalBorder1 = new InsideHorizontalBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; InsideVerticalBorder insideVerticalBorder1 = new InsideVerticalBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; tableBorders1.Append(topBorder1); tableBorders1.Append(leftBorder1); tableBorders1.Append(bottomBorder1); tableBorders1.Append(rightBorder1); tableBorders1.Append(insideHorizontalBorder1); tableBorders1.Append(insideVerticalBorder1); TableLayout tableLayout1 = new TableLayout() { Type = TableLayoutValues.Fixed }; TableLook tableLook1 = new TableLook() { Val = "0000" }; tableProperties1.Append(tableWidth1); tableProperties1.Append(tableBorders1); tableProperties1.Append(tableLayout1); tableProperties1.Append(tableLook1); TableGrid tableGrid1 = new TableGrid(); GridColumn gridColumn1 = new GridColumn() { Width = "1383" }; int colWidth = 14536 / Schedule.Count; for (int i = 0; i < Schedule.Count; i++) { GridColumn gridColumn2 = new GridColumn() { Width = colWidth.ToString() }; tableGrid1.Append(gridColumn2); } // Ряд имён групп TableRow tableRow1 = new TableRow() { RsidTableRowMarkRevision = "00FA5335", RsidTableRowAddition = "00FA5335", RsidTableRowProperties = "00FA5335" }; TablePropertyExceptions tablePropertyExceptions1 = new TablePropertyExceptions(); TableCellMarginDefault tableCellMarginDefault1 = new TableCellMarginDefault(); TopMargin topMargin1 = new TopMargin() { Width = "0", Type = TableWidthUnitValues.Dxa }; BottomMargin bottomMargin1 = new BottomMargin() { Width = "0", Type = TableWidthUnitValues.Dxa }; tableCellMarginDefault1.Append(topMargin1); tableCellMarginDefault1.Append(bottomMargin1); tablePropertyExceptions1.Append(tableCellMarginDefault1); Dictionary<int, List<int>> plainGroupsListIds = new Dictionary<int, List<int>>(); Dictionary<int, List<int>> nGroupsListIds = new Dictionary<int, List<int>>(); var groupNames = new List<string>(); foreach (var group in Schedule) { var groupName = _Repo.GetStudentGroup(group.Key).Name; groupNames.Add(groupName.Replace(" (+Н)", "")); if (groupName.Contains(" (+Н)")) { var plainGroupName = groupName.Replace(" (+Н)", ""); var nGroupName = groupName.Replace(" (+", "("); var plainGroupId = _Repo.FindStudentGroup(plainGroupName).StudentGroupId; var plainStudentIds = _Repo.GetAllStudentsInGroups() .Where(sig => sig.StudentGroup.StudentGroupId == plainGroupId) .Select(stig => stig.Student.StudentId) .ToList(); plainGroupsListIds.Add(group.Key, _Repo.GetAllStudentsInGroups() .Where(sig => plainStudentIds.Contains(sig.Student.StudentId)) .Select(stig => stig.StudentGroup.StudentGroupId) .Distinct() .ToList()); var nGroupId = _Repo.FindStudentGroup(nGroupName).StudentGroupId; var nStudentIds = _Repo.GetAllStudentsInGroups() .Where(sig => sig.StudentGroup.StudentGroupId == nGroupId) .Select(stig => stig.Student.StudentId) .ToList(); nGroupsListIds.Add(group.Key, _Repo.GetAllStudentsInGroups() .Where(sig => nStudentIds.Contains(sig.Student.StudentId)) .Select(stig => stig.StudentGroup.StudentGroupId) .Distinct() .ToList()); } } TableCell tableCell1 = new TableCell(); TableCellProperties tableCellProperties1 = new TableCellProperties(); TableCellWidth tableCellWidth1 = new TableCellWidth() { Width = "1383", Type = TableWidthUnitValues.Dxa }; Shading shading1 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "auto" }; tableCellProperties1.Append(tableCellWidth1); tableCellProperties1.Append(shading1); Paragraph paragraph11 = new Paragraph() { RsidParagraphMarkRevision = "00FA5335", RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" }; ParagraphProperties paragraphProperties11 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines11 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; Justification justification11 = new Justification() { Val = JustificationValues.Center }; ParagraphMarkRunProperties paragraphMarkRunProperties11 = new ParagraphMarkRunProperties(); FontSize fontSize24 = new FontSize() { Val = "20" }; paragraphMarkRunProperties11.Append(fontSize24); paragraphProperties11.Append(spacingBetweenLines11); paragraphProperties11.Append(justification11); paragraphProperties11.Append(paragraphMarkRunProperties11); Run run14 = new Run() { RsidRunProperties = "00FA5335" }; RunProperties runProperties14 = new RunProperties(); FontSize fontSize25 = new FontSize() { Val = "20" }; runProperties14.Append(fontSize25); Text text13 = new Text(); text13.Text = "Время"; run14.Append(runProperties14); run14.Append(text13); paragraph11.Append(paragraphProperties11); paragraph11.Append(run14); tableCell1.Append(tableCellProperties1); tableCell1.Append(paragraph11); var HeaderCells = new List<TableCell>(); for (int i = 0; i < Schedule.Count; i++) { TableCell tableCell2 = new TableCell(); TableCellProperties tableCellProperties2 = new TableCellProperties(); TableCellWidth tableCellWidth2 = new TableCellWidth() { Width = colWidth.ToString(), Type = TableWidthUnitValues.Dxa }; Shading shading2 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "auto" }; tableCellProperties2.Append(tableCellWidth2); tableCellProperties2.Append(shading2); Paragraph paragraph12 = new Paragraph() { RsidParagraphMarkRevision = "00FA5335", RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" }; ParagraphProperties paragraphProperties12 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines12 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; Justification justification12 = new Justification() { Val = JustificationValues.Center }; ParagraphMarkRunProperties paragraphMarkRunProperties12 = new ParagraphMarkRunProperties(); FontSize fontSize26 = new FontSize() { Val = "20" }; paragraphMarkRunProperties12.Append(fontSize26); paragraphProperties12.Append(spacingBetweenLines12); paragraphProperties12.Append(justification12); paragraphProperties12.Append(paragraphMarkRunProperties12); Run run15 = new Run() { RsidRunProperties = "00FA5335" }; RunProperties runProperties15 = new RunProperties(); FontSize fontSize27 = new FontSize() { Val = "20" }; runProperties15.Append(fontSize27); Text text14 = new Text(); text14.Text = groupNames[i]; run15.Append(runProperties15); run15.Append(text14); paragraph12.Append(paragraphProperties12); paragraph12.Append(run15); tableCell2.Append(tableCellProperties2); tableCell2.Append(paragraph12); HeaderCells.Add(tableCell2); } tableRow1.Append(tablePropertyExceptions1); tableRow1.Append(tableCell1); foreach (var tc in HeaderCells) { tableRow1.Append(tc); } // FINISH --------- Ряд имён групп var timeList = new List<string>(); foreach (var group in Schedule) { foreach (var time in group.Value.Keys) { if (!timeList.Contains(time)) { timeList.Add(time); } } } var ScheduleRows = new List<TableRow>(); var timeRowIndexList = new List<int>(); foreach (var time in timeList.OrderBy(t => int.Parse(t.Split(':')[0]) * 60 + int.Parse(t.Split(':')[1]))) { var TimeSchedule = new List<List<string>>(); for (int i = 0; i < Schedule.Count; i++) { TimeSchedule.Add(new List<string>()); } var Hour = int.Parse(time.Substring(0, 2)); var Minute = int.Parse(time.Substring(3, 2)); Minute += 80; while (Minute >= 60) { Hour++; Minute -= 60; } var timeString = time + " - " + Hour.ToString("D2") + ":" + Minute.ToString("D2"); var columnGroupIndex = 0; foreach (var group in Schedule) { if (group.Value.ContainsKey(time)) { var eventCount = group.Value[time].Count; var tfdIndex = 0; foreach (var tfdData in group.Value[time].OrderBy(tfd => tfd.Value.Item2.Select(l => _Repo.CalculateWeekNumber(l.Calendar.Date)).Min())) { var cellText = ""; cellText += tfdData.Value.Item2[0].TeacherForDiscipline.Discipline.Name; var groupId = tfdData.Value.Item2[0].TeacherForDiscipline.Discipline.StudentGroup.StudentGroupId; if (plainGroupsListIds.ContainsKey(group.Key)) { if (plainGroupsListIds[group.Key].Contains(groupId) && nGroupsListIds[group.Key].Contains(groupId)) { cellText += " (+Н)"; } if (!plainGroupsListIds[group.Key].Contains(groupId) && nGroupsListIds[group.Key].Contains(groupId)) { cellText += " (Н)"; } } cellText += Environment.NewLine; cellText += tfdData.Value.Item2[0].TeacherForDiscipline.Teacher.FIO + Environment.NewLine; cellText += "(" + tfdData.Value.Item1 + ")" + Environment.NewLine; var audWeekList = tfdData.Value.Item2.ToDictionary(l => _Repo.CalculateWeekNumber(l.Calendar.Date), l => l.Auditorium.Name); var grouped = audWeekList.GroupBy(a => a.Value); var enumerable = grouped as List<IGrouping<string, KeyValuePair<int, string>>> ?? grouped.ToList(); var gcount = enumerable.Count(); if (gcount == 1) { cellText += enumerable.ElementAt(0).Key; } else { for (int j = 0; j < gcount; j++) { var jItem = enumerable.OrderBy(e => e.Select(ag => ag.Key).ToList().Min()).ElementAt(j); cellText += ScheduleRepository.CombineWeeks(jItem.Select(ag => ag.Key).ToList()) + " - " + jItem.Key; if (j != gcount - 1) { cellText += Environment.NewLine; } } } TimeSchedule[columnGroupIndex].Add(cellText); tfdIndex++; } } columnGroupIndex++; } // ==================================================================================================================================================== TableRow tableRow2 = new TableRow() { RsidTableRowMarkRevision = "00FA5335", RsidTableRowAddition = "00FA5335", RsidTableRowProperties = "00FA5335" }; TablePropertyExceptions tablePropertyExceptions2 = new TablePropertyExceptions(); TableCellMarginDefault tableCellMarginDefault2 = new TableCellMarginDefault(); TopMargin topMargin2 = new TopMargin() { Width = "0", Type = TableWidthUnitValues.Dxa }; BottomMargin bottomMargin2 = new BottomMargin() { Width = "0", Type = TableWidthUnitValues.Dxa }; tableCellMarginDefault2.Append(topMargin2); tableCellMarginDefault2.Append(bottomMargin2); tablePropertyExceptions2.Append(tableCellMarginDefault2); TableCell tableCell4 = new TableCell(); TableCellProperties tableCellProperties4 = new TableCellProperties(); TableCellWidth tableCellWidth4 = new TableCellWidth() { Width = "1383", Type = TableWidthUnitValues.Dxa }; Shading shading4 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "auto" }; TableCellVerticalAlignment tableCellVerticalAlignment1 = new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center }; tableCellProperties4.Append(tableCellWidth4); tableCellProperties4.Append(shading4); tableCellProperties4.Append(tableCellVerticalAlignment1); Paragraph paragraph14 = new Paragraph() { RsidParagraphMarkRevision = "00FA5335", RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" }; ParagraphProperties paragraphProperties14 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines14 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; Justification justification14 = new Justification() { Val = JustificationValues.Center }; ParagraphMarkRunProperties paragraphMarkRunProperties14 = new ParagraphMarkRunProperties(); FontSize fontSize30 = new FontSize() { Val = "20" }; paragraphMarkRunProperties14.Append(fontSize30); paragraphProperties14.Append(spacingBetweenLines14); paragraphProperties14.Append(justification14); paragraphProperties14.Append(paragraphMarkRunProperties14); Run run17 = new Run() { RsidRunProperties = "00FA5335" }; RunProperties runProperties17 = new RunProperties(); FontSize fontSize31 = new FontSize() { Val = "20" }; runProperties17.Append(fontSize31); Text text16 = new Text(); text16.Text = timeString; run17.Append(runProperties17); run17.Append(text16); paragraph14.Append(paragraphProperties14); paragraph14.Append(run17); tableCell4.Append(tableCellProperties4); tableCell4.Append(paragraph14); var TimeScheduleTableCells = new List<TableCell>(); for (int i = 0; i < TimeSchedule.Count; i++) { TableCell tableCell6 = new TableCell(); TableCellProperties tableCellProperties6 = new TableCellProperties(); TableCellWidth tableCellWidth6 = new TableCellWidth() { Width = colWidth.ToString(), Type = TableWidthUnitValues.Dxa }; Shading shading6 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "auto" }; TableCellVerticalAlignment tableCellVerticalAlignment2 = new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center }; tableCellProperties6.Append(tableCellWidth6); tableCellProperties6.Append(shading6); tableCellProperties6.Append(tableCellVerticalAlignment2); if (TimeSchedule[i].Count == 0) // Empty cell { Paragraph paragraph15 = new Paragraph() { RsidParagraphMarkRevision = "00FA5335", RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" }; ParagraphProperties paragraphProperties15 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines15 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties15 = new ParagraphMarkRunProperties(); FontSize fontSize32 = new FontSize() { Val = "20" }; paragraphMarkRunProperties15.Append(fontSize32); paragraphProperties15.Append(spacingBetweenLines15); paragraphProperties15.Append(paragraphMarkRunProperties15); paragraph15.Append(paragraphProperties15); tableCell6.Append(tableCellProperties6); tableCell6.Append(paragraph15); } else { Table table2 = new Table(); TableProperties tableProperties2 = new TableProperties(); TableWidth tableWidth2 = new TableWidth() { Width = "0", Type = TableWidthUnitValues.Auto }; TableLayout tableLayout2 = new TableLayout() { Type = TableLayoutValues.Fixed }; TableLook tableLook2 = new TableLook() { Val = "0000" }; TableBorders tableBorders9 = new TableBorders(); TopBorder topBorder9 = new TopBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; LeftBorder leftBorder9 = new LeftBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; BottomBorder bottomBorder9 = new BottomBorder() { Val = BorderValues.None, Color = "000000", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; RightBorder rightBorder9 = new RightBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; InsideHorizontalBorder insideHorizontalBorder9 = new InsideHorizontalBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; InsideVerticalBorder insideVerticalBorder9 = new InsideVerticalBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; tableBorders9.Append(topBorder9); tableBorders9.Append(leftBorder9); tableBorders9.Append(bottomBorder9); tableBorders9.Append(rightBorder9); tableBorders9.Append(insideHorizontalBorder9); tableBorders9.Append(insideVerticalBorder9); tableProperties2.Append(tableWidth2); tableProperties2.Append(tableBorders9); tableProperties2.Append(tableLayout2); tableProperties2.Append(tableLook2); TableGrid tableGrid2 = new TableGrid(); GridColumn gridColumn4 = new GridColumn() { Width = "7052" }; tableGrid2.Append(gridColumn4); for (int j = 0; j < TimeSchedule[i].Count; j++) { var item = TimeSchedule[i][j]; var itemLines = Regex.Split(item, "\r\n"); TableRow tableRow3 = new TableRow() { RsidTableRowMarkRevision = "00FA5335", RsidTableRowAddition = "00FA5335", RsidTableRowProperties = "00FA5335" }; TablePropertyExceptions tablePropertyExceptions3 = new TablePropertyExceptions(); TableCellMarginDefault tableCellMarginDefault3 = new TableCellMarginDefault(); TopMargin topMargin3 = new TopMargin() { Width = "0", Type = TableWidthUnitValues.Dxa }; BottomMargin bottomMargin3 = new BottomMargin() { Width = "0", Type = TableWidthUnitValues.Dxa }; tableCellMarginDefault3.Append(topMargin3); tableCellMarginDefault3.Append(bottomMargin3); tablePropertyExceptions3.Append(tableCellMarginDefault3); TableCell tableCell7 = new TableCell(); TableCellProperties tableCellProperties7 = new TableCellProperties(); TableCellWidth tableCellWidth7 = new TableCellWidth() { Width = "7052", Type = TableWidthUnitValues.Dxa }; TableCellVerticalAlignment tableCellVerticalAlignment3 = new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center }; TableCellBorders tableCellBorders99 = new TableCellBorders(); BottomBorder bottomBorder99; if (j != TimeSchedule[i].Count - 1) { bottomBorder99 = new BottomBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; tableCellBorders99.Append(bottomBorder99); } tableCellProperties7.Append(tableCellWidth7); tableCellProperties7.Append(tableCellBorders99); tableCellProperties7.Append(tableCellVerticalAlignment3); Paragraph paragraph16 = new Paragraph() { RsidParagraphMarkRevision = "00FA5335", RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" }; ParagraphProperties paragraphProperties16 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines16 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties16 = new ParagraphMarkRunProperties(); FontSize fontSize33 = new FontSize() { Val = "20" }; paragraphMarkRunProperties16.Append(fontSize33); paragraphProperties16.Append(spacingBetweenLines16); paragraphProperties16.Append(paragraphMarkRunProperties16); Run run18 = new Run() { RsidRunProperties = "00FA5335" }; RunProperties runProperties18 = new RunProperties(); FontSize fontSize34 = new FontSize() { Val = "20" }; runProperties18.Append(fontSize34); Text text17 = new Text(); text17.Text = itemLines[0]; run18.Append(runProperties18); run18.Append(text17); paragraph16.Append(paragraphProperties16); paragraph16.Append(run18); Paragraph paragraph17 = new Paragraph() { RsidParagraphMarkRevision = "00FA5335", RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" }; ParagraphProperties paragraphProperties17 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines17 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties17 = new ParagraphMarkRunProperties(); FontSize fontSize35 = new FontSize() { Val = "20" }; paragraphMarkRunProperties17.Append(fontSize35); paragraphProperties17.Append(spacingBetweenLines17); paragraphProperties17.Append(paragraphMarkRunProperties17); Run run19 = new Run() { RsidRunProperties = "00FA5335" }; RunProperties runProperties19 = new RunProperties(); FontSize fontSize36 = new FontSize() { Val = "20" }; runProperties19.Append(fontSize36); Text text18 = new Text(); text18.Text = itemLines[1]; run19.Append(runProperties19); run19.Append(text18); paragraph17.Append(paragraphProperties17); paragraph17.Append(run19); Paragraph paragraph18 = new Paragraph() { RsidParagraphMarkRevision = "00FA5335", RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" }; ParagraphProperties paragraphProperties18 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines18 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties18 = new ParagraphMarkRunProperties(); FontSize fontSize37 = new FontSize() { Val = "20" }; paragraphMarkRunProperties18.Append(fontSize37); paragraphProperties18.Append(spacingBetweenLines18); paragraphProperties18.Append(paragraphMarkRunProperties18); Run run20 = new Run() { RsidRunProperties = "00FA5335" }; RunProperties runProperties20 = new RunProperties(); FontSize fontSize38 = new FontSize() { Val = "20" }; runProperties20.Append(fontSize38); Text text19 = new Text(); text19.Text = itemLines[2]; run20.Append(runProperties20); run20.Append(text19); paragraph18.Append(paragraphProperties18); paragraph18.Append(run20); Paragraph paragraph19 = new Paragraph() { RsidParagraphMarkRevision = "00FA5335", RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" }; ParagraphProperties paragraphProperties19 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines19 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties19 = new ParagraphMarkRunProperties(); FontSize fontSize39 = new FontSize() { Val = "20" }; paragraphMarkRunProperties19.Append(fontSize39); paragraphProperties19.Append(spacingBetweenLines19); paragraphProperties19.Append(paragraphMarkRunProperties19); Run run21 = new Run() { RsidRunProperties = "00FA5335" }; RunProperties runProperties21 = new RunProperties(); FontSize fontSize40 = new FontSize() { Val = "20" }; runProperties21.Append(fontSize40); Text text20 = new Text(); text20.Text = itemLines[3]; run21.Append(runProperties21); run21.Append(text20); paragraph19.Append(paragraphProperties19); paragraph19.Append(run21); tableCell7.Append(tableCellProperties7); tableCell7.Append(paragraph16); tableCell7.Append(paragraph17); tableCell7.Append(paragraph18); tableCell7.Append(paragraph19); tableRow3.Append(tablePropertyExceptions3); tableRow3.Append(tableCell7); table2.Append(tableRow3); } table2.Append(tableProperties2); table2.Append(tableGrid2); Paragraph paragraph20 = new Paragraph() { RsidParagraphMarkRevision = "00FA5335", RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" }; ParagraphProperties paragraphProperties20 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines20 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties20 = new ParagraphMarkRunProperties(); FontSize fontSize41 = new FontSize() { Val = "20" }; paragraphMarkRunProperties20.Append(fontSize41); paragraphProperties20.Append(spacingBetweenLines20); paragraphProperties20.Append(paragraphMarkRunProperties20); paragraph20.Append(paragraphProperties20); tableCell6.Append(tableCellProperties6); tableCell6.Append(table2); tableCell6.Append(paragraph20); } TimeScheduleTableCells.Add(tableCell6); } tableRow2.Append(tablePropertyExceptions2); tableRow2.Append(tableCell4); foreach (var tc in TimeScheduleTableCells) { tableRow2.Append(tc); } ScheduleRows.Add(tableRow2); } table1.Append(tableProperties1); table1.Append(tableGrid1); table1.Append(tableRow1); foreach (var tr in ScheduleRows) { table1.Append(tr); } Paragraph paragraph61 = new Paragraph() { RsidParagraphMarkRevision = "00FA5335", RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" }; ParagraphProperties paragraphProperties61 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines61 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; Justification justification19 = new Justification() { Val = JustificationValues.Center }; ParagraphMarkRunProperties paragraphMarkRunProperties61 = new ParagraphMarkRunProperties(); Bold bold3 = new Bold(); FontSize fontSize114 = new FontSize() { Val = "20" }; paragraphMarkRunProperties61.Append(bold3); paragraphMarkRunProperties61.Append(fontSize114); paragraphProperties61.Append(spacingBetweenLines61); paragraphProperties61.Append(justification19); paragraphProperties61.Append(paragraphMarkRunProperties61); paragraph61.Append(paragraphProperties61); SectionProperties sectionProperties1 = new SectionProperties() { RsidRPr = "00FA5335", RsidR = "00FA5335", RsidSect = "00FA5335" }; PageSize pageSize1 = new PageSize() { Width = (UInt32Value)16838U, Height = (UInt32Value)11906U, Orient = PageOrientationValues.Landscape }; PageMargin pageMargin1 = new PageMargin() { Top = 567, Right = (UInt32Value)567U, Bottom = 567, Left = (UInt32Value)567U, Header = (UInt32Value)708U, Footer = (UInt32Value)708U, Gutter = (UInt32Value)0U }; Columns columns1 = new Columns() { Space = "708" }; DocGrid docGrid1 = new DocGrid() { LinePitch = 360 }; sectionProperties1.Append(pageSize1); sectionProperties1.Append(pageMargin1); sectionProperties1.Append(columns1); sectionProperties1.Append(docGrid1); body1.Append(paragraph1); body1.Append(paragraph8); body1.Append(paragraph9); body1.Append(paragraph10); body1.Append(table1); body1.Append(paragraph61); body1.Append(sectionProperties1); document1.Append(body1); mainDocumentPart1.Document = document1; }
// Generates content of slideMasterPart1. private void GenerateSlideMasterPart1Content(SlideMasterPart slideMasterPart1) { SlideMaster slideMaster1 = new SlideMaster(); slideMaster1.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); slideMaster1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); slideMaster1.AddNamespaceDeclaration("p", "http://schemas.openxmlformats.org/presentationml/2006/main"); CommonSlideData commonSlideData3 = new CommonSlideData(); Background background1 = new Background(); BackgroundStyleReference backgroundStyleReference1 = new BackgroundStyleReference(){ Index = (UInt32Value)1002U }; A.SchemeColor schemeColor44 = new A.SchemeColor(){ Val = A.SchemeColorValues.Background2 }; backgroundStyleReference1.Append(schemeColor44); background1.Append(backgroundStyleReference1); ShapeTree shapeTree3 = new ShapeTree(); NonVisualGroupShapeProperties nonVisualGroupShapeProperties3 = new NonVisualGroupShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties15 = new NonVisualDrawingProperties(){ Id = (UInt32Value)1U, Name = "" }; NonVisualGroupShapeDrawingProperties nonVisualGroupShapeDrawingProperties3 = new NonVisualGroupShapeDrawingProperties(); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties15 = new ApplicationNonVisualDrawingProperties(); nonVisualGroupShapeProperties3.Append(nonVisualDrawingProperties15); nonVisualGroupShapeProperties3.Append(nonVisualGroupShapeDrawingProperties3); nonVisualGroupShapeProperties3.Append(applicationNonVisualDrawingProperties15); GroupShapeProperties groupShapeProperties3 = new GroupShapeProperties(); A.TransformGroup transformGroup3 = new A.TransformGroup(); A.Offset offset10 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents10 = new A.Extents(){ Cx = 0L, Cy = 0L }; A.ChildOffset childOffset3 = new A.ChildOffset(){ X = 0L, Y = 0L }; A.ChildExtents childExtents3 = new A.ChildExtents(){ Cx = 0L, Cy = 0L }; transformGroup3.Append(offset10); transformGroup3.Append(extents10); transformGroup3.Append(childOffset3); transformGroup3.Append(childExtents3); groupShapeProperties3.Append(transformGroup3); Shape shape8 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties8 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties16 = new NonVisualDrawingProperties(){ Id = (UInt32Value)2U, Name = "Title Placeholder 1" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties8 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks8 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties8.Append(shapeLocks8); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties16 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape8 = new PlaceholderShape(){ Type = PlaceholderValues.Title }; applicationNonVisualDrawingProperties16.Append(placeholderShape8); nonVisualShapeProperties8.Append(nonVisualDrawingProperties16); nonVisualShapeProperties8.Append(nonVisualShapeDrawingProperties8); nonVisualShapeProperties8.Append(applicationNonVisualDrawingProperties16); ShapeProperties shapeProperties13 = new ShapeProperties(); A.Transform2D transform2D8 = new A.Transform2D(); A.Offset offset11 = new A.Offset(){ X = 684390L, Y = 4487333L }; A.Extents extents11 = new A.Extents(){ Cx = 8536623L, Cy = 1507067L }; transform2D8.Append(offset11); transform2D8.Append(extents11); A.PresetGeometry presetGeometry6 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList6 = new A.AdjustValueList(); presetGeometry6.Append(adjustValueList6); A.EffectList effectList2 = new A.EffectList(); shapeProperties13.Append(transform2D8); shapeProperties13.Append(presetGeometry6); shapeProperties13.Append(effectList2); TextBody textBody8 = new TextBody(); A.BodyProperties bodyProperties8 = new A.BodyProperties(){ Vertical = A.TextVerticalValues.Horizontal, LeftInset = 91440, TopInset = 45720, RightInset = 91440, BottomInset = 45720, RightToLeftColumns = false, Anchor = A.TextAnchoringTypeValues.Center }; A.NormalAutoFit normalAutoFit3 = new A.NormalAutoFit(); bodyProperties8.Append(normalAutoFit3); A.ListStyle listStyle8 = new A.ListStyle(); A.Paragraph paragraph8 = new A.Paragraph(); A.Run run6 = new A.Run(); A.RunProperties runProperties8 = new A.RunProperties(){ Language = "en-US", AlternativeLanguage = "ja-JP" }; runProperties8.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text8 = new A.Text(); text8.Text = "Click to edit Master title style"; run6.Append(runProperties8); run6.Append(text8); A.EndParagraphRunProperties endParagraphRunProperties8 = new A.EndParagraphRunProperties(){ Language = "en-US", Dirty = false }; paragraph8.Append(run6); paragraph8.Append(endParagraphRunProperties8); textBody8.Append(bodyProperties8); textBody8.Append(listStyle8); textBody8.Append(paragraph8); shape8.Append(nonVisualShapeProperties8); shape8.Append(shapeProperties13); shape8.Append(textBody8); Shape shape9 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties9 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties17 = new NonVisualDrawingProperties(){ Id = (UInt32Value)3U, Name = "Text Placeholder 2" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties9 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks9 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties9.Append(shapeLocks9); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties17 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape9 = new PlaceholderShape(){ Type = PlaceholderValues.Body, Index = (UInt32Value)1U }; applicationNonVisualDrawingProperties17.Append(placeholderShape9); nonVisualShapeProperties9.Append(nonVisualDrawingProperties17); nonVisualShapeProperties9.Append(nonVisualShapeDrawingProperties9); nonVisualShapeProperties9.Append(applicationNonVisualDrawingProperties17); ShapeProperties shapeProperties14 = new ShapeProperties(); A.Transform2D transform2D9 = new A.Transform2D(); A.Offset offset12 = new A.Offset(){ X = 684390L, Y = 685801L }; A.Extents extents12 = new A.Extents(){ Cx = 8536623L, Cy = 3615267L }; transform2D9.Append(offset12); transform2D9.Append(extents12); A.PresetGeometry presetGeometry7 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList7 = new A.AdjustValueList(); presetGeometry7.Append(adjustValueList7); shapeProperties14.Append(transform2D9); shapeProperties14.Append(presetGeometry7); TextBody textBody9 = new TextBody(); A.BodyProperties bodyProperties9 = new A.BodyProperties(){ Vertical = A.TextVerticalValues.Horizontal, LeftInset = 91440, TopInset = 45720, RightInset = 91440, BottomInset = 45720, RightToLeftColumns = false, Anchor = A.TextAnchoringTypeValues.Center }; A.NormalAutoFit normalAutoFit4 = new A.NormalAutoFit(); bodyProperties9.Append(normalAutoFit4); A.ListStyle listStyle9 = new A.ListStyle(); A.Paragraph paragraph9 = new A.Paragraph(); A.ParagraphProperties paragraphProperties1 = new A.ParagraphProperties(){ Level = 0 }; A.Run run7 = new A.Run(); A.RunProperties runProperties9 = new A.RunProperties(){ Language = "en-US", AlternativeLanguage = "ja-JP" }; runProperties9.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text9 = new A.Text(); text9.Text = "Click to edit Master text styles"; run7.Append(runProperties9); run7.Append(text9); paragraph9.Append(paragraphProperties1); paragraph9.Append(run7); A.Paragraph paragraph10 = new A.Paragraph(); A.ParagraphProperties paragraphProperties2 = new A.ParagraphProperties(){ Level = 1 }; A.Run run8 = new A.Run(); A.RunProperties runProperties10 = new A.RunProperties(){ Language = "en-US", AlternativeLanguage = "ja-JP" }; runProperties10.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text10 = new A.Text(); text10.Text = "Second level"; run8.Append(runProperties10); run8.Append(text10); paragraph10.Append(paragraphProperties2); paragraph10.Append(run8); A.Paragraph paragraph11 = new A.Paragraph(); A.ParagraphProperties paragraphProperties3 = new A.ParagraphProperties(){ Level = 2 }; A.Run run9 = new A.Run(); A.RunProperties runProperties11 = new A.RunProperties(){ Language = "en-US", AlternativeLanguage = "ja-JP" }; runProperties11.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text11 = new A.Text(); text11.Text = "Third level"; run9.Append(runProperties11); run9.Append(text11); paragraph11.Append(paragraphProperties3); paragraph11.Append(run9); A.Paragraph paragraph12 = new A.Paragraph(); A.ParagraphProperties paragraphProperties4 = new A.ParagraphProperties(){ Level = 3 }; A.Run run10 = new A.Run(); A.RunProperties runProperties12 = new A.RunProperties(){ Language = "en-US", AlternativeLanguage = "ja-JP" }; runProperties12.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text12 = new A.Text(); text12.Text = "Fourth level"; run10.Append(runProperties12); run10.Append(text12); paragraph12.Append(paragraphProperties4); paragraph12.Append(run10); A.Paragraph paragraph13 = new A.Paragraph(); A.ParagraphProperties paragraphProperties5 = new A.ParagraphProperties(){ Level = 4 }; A.Run run11 = new A.Run(); A.RunProperties runProperties13 = new A.RunProperties(){ Language = "en-US", AlternativeLanguage = "ja-JP" }; runProperties13.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text13 = new A.Text(); text13.Text = "Fifth level"; run11.Append(runProperties13); run11.Append(text13); A.EndParagraphRunProperties endParagraphRunProperties9 = new A.EndParagraphRunProperties(){ Language = "en-US", Dirty = false }; paragraph13.Append(paragraphProperties5); paragraph13.Append(run11); paragraph13.Append(endParagraphRunProperties9); textBody9.Append(bodyProperties9); textBody9.Append(listStyle9); textBody9.Append(paragraph9); textBody9.Append(paragraph10); textBody9.Append(paragraph11); textBody9.Append(paragraph12); textBody9.Append(paragraph13); shape9.Append(nonVisualShapeProperties9); shape9.Append(shapeProperties14); shape9.Append(textBody9); Shape shape10 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties10 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties18 = new NonVisualDrawingProperties(){ Id = (UInt32Value)4U, Name = "Date Placeholder 3" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties10 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks10 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties10.Append(shapeLocks10); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties18 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape10 = new PlaceholderShape(){ Type = PlaceholderValues.DateAndTime, Size = PlaceholderSizeValues.Half, Index = (UInt32Value)2U }; applicationNonVisualDrawingProperties18.Append(placeholderShape10); nonVisualShapeProperties10.Append(nonVisualDrawingProperties18); nonVisualShapeProperties10.Append(nonVisualShapeDrawingProperties10); nonVisualShapeProperties10.Append(applicationNonVisualDrawingProperties18); ShapeProperties shapeProperties15 = new ShapeProperties(); A.Transform2D transform2D10 = new A.Transform2D(); A.Offset offset13 = new A.Offset(){ X = 9906992L, Y = 6172201L }; A.Extents extents13 = new A.Extents(){ Cx = 1600617L, Cy = 365125L }; transform2D10.Append(offset13); transform2D10.Append(extents13); A.PresetGeometry presetGeometry8 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList8 = new A.AdjustValueList(); presetGeometry8.Append(adjustValueList8); shapeProperties15.Append(transform2D10); shapeProperties15.Append(presetGeometry8); TextBody textBody10 = new TextBody(); A.BodyProperties bodyProperties10 = new A.BodyProperties(){ Vertical = A.TextVerticalValues.Horizontal, LeftInset = 91440, TopInset = 45720, RightInset = 91440, BottomInset = 45720, RightToLeftColumns = false, Anchor = A.TextAnchoringTypeValues.Top }; A.ListStyle listStyle10 = new A.ListStyle(); A.Level1ParagraphProperties level1ParagraphProperties4 = new A.Level1ParagraphProperties(){ Alignment = A.TextAlignmentTypeValues.Right }; A.DefaultRunProperties defaultRunProperties21 = new A.DefaultRunProperties(){ FontSize = 1000, Bold = false, Italic = false }; A.SolidFill solidFill24 = new A.SolidFill(); A.SchemeColor schemeColor45 = new A.SchemeColor(){ Val = A.SchemeColorValues.Background2 }; A.LuminanceModulation luminanceModulation2 = new A.LuminanceModulation(){ Val = 50000 }; schemeColor45.Append(luminanceModulation2); solidFill24.Append(schemeColor45); A.EffectList effectList3 = new A.EffectList(); A.LatinFont latinFont10 = new A.LatinFont(){ Typeface = "+mn-lt" }; defaultRunProperties21.Append(solidFill24); defaultRunProperties21.Append(effectList3); defaultRunProperties21.Append(latinFont10); level1ParagraphProperties4.Append(defaultRunProperties21); listStyle10.Append(level1ParagraphProperties4); A.Paragraph paragraph14 = new A.Paragraph(); A.Field field3 = new A.Field(){ Id = "{CE1A2D98-1BBD-4706-A118-AAC2A16BEAD3}", Type = "datetimeFigureOut" }; A.RunProperties runProperties14 = new A.RunProperties(){ Kumimoji = true, Language = "ja-JP", AlternativeLanguage = "en-US" }; runProperties14.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text14 = new A.Text(); text14.Text = "2012/10/3"; field3.Append(runProperties14); field3.Append(text14); A.EndParagraphRunProperties endParagraphRunProperties10 = new A.EndParagraphRunProperties(){ Kumimoji = true, Language = "ja-JP", AlternativeLanguage = "en-US" }; paragraph14.Append(field3); paragraph14.Append(endParagraphRunProperties10); textBody10.Append(bodyProperties10); textBody10.Append(listStyle10); textBody10.Append(paragraph14); shape10.Append(nonVisualShapeProperties10); shape10.Append(shapeProperties15); shape10.Append(textBody10); Shape shape11 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties11 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties19 = new NonVisualDrawingProperties(){ Id = (UInt32Value)5U, Name = "Footer Placeholder 4" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties11 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks11 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties11.Append(shapeLocks11); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties19 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape11 = new PlaceholderShape(){ Type = PlaceholderValues.Footer, Size = PlaceholderSizeValues.Quarter, Index = (UInt32Value)3U }; applicationNonVisualDrawingProperties19.Append(placeholderShape11); nonVisualShapeProperties11.Append(nonVisualDrawingProperties19); nonVisualShapeProperties11.Append(nonVisualShapeDrawingProperties11); nonVisualShapeProperties11.Append(applicationNonVisualDrawingProperties19); ShapeProperties shapeProperties16 = new ShapeProperties(); A.Transform2D transform2D11 = new A.Transform2D(); A.Offset offset14 = new A.Offset(){ X = 684390L, Y = 6172201L }; A.Extents extents14 = new A.Extents(){ Cx = 7545765L, Cy = 365125L }; transform2D11.Append(offset14); transform2D11.Append(extents14); A.PresetGeometry presetGeometry9 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList9 = new A.AdjustValueList(); presetGeometry9.Append(adjustValueList9); shapeProperties16.Append(transform2D11); shapeProperties16.Append(presetGeometry9); TextBody textBody11 = new TextBody(); A.BodyProperties bodyProperties11 = new A.BodyProperties(){ Vertical = A.TextVerticalValues.Horizontal, LeftInset = 91440, TopInset = 45720, RightInset = 91440, BottomInset = 45720, RightToLeftColumns = false, Anchor = A.TextAnchoringTypeValues.Top }; A.ListStyle listStyle11 = new A.ListStyle(); A.Level1ParagraphProperties level1ParagraphProperties5 = new A.Level1ParagraphProperties(){ Alignment = A.TextAlignmentTypeValues.Left }; A.DefaultRunProperties defaultRunProperties22 = new A.DefaultRunProperties(){ FontSize = 1000, Bold = false, Italic = false }; A.SolidFill solidFill25 = new A.SolidFill(); A.SchemeColor schemeColor46 = new A.SchemeColor(){ Val = A.SchemeColorValues.Background2 }; A.LuminanceModulation luminanceModulation3 = new A.LuminanceModulation(){ Val = 50000 }; schemeColor46.Append(luminanceModulation3); solidFill25.Append(schemeColor46); A.EffectList effectList4 = new A.EffectList(); A.LatinFont latinFont11 = new A.LatinFont(){ Typeface = "+mn-lt" }; defaultRunProperties22.Append(solidFill25); defaultRunProperties22.Append(effectList4); defaultRunProperties22.Append(latinFont11); level1ParagraphProperties5.Append(defaultRunProperties22); listStyle11.Append(level1ParagraphProperties5); A.Paragraph paragraph15 = new A.Paragraph(); A.EndParagraphRunProperties endParagraphRunProperties11 = new A.EndParagraphRunProperties(){ Kumimoji = true, Language = "ja-JP", AlternativeLanguage = "en-US" }; paragraph15.Append(endParagraphRunProperties11); textBody11.Append(bodyProperties11); textBody11.Append(listStyle11); textBody11.Append(paragraph15); shape11.Append(nonVisualShapeProperties11); shape11.Append(shapeProperties16); shape11.Append(textBody11); Shape shape12 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties12 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties20 = new NonVisualDrawingProperties(){ Id = (UInt32Value)6U, Name = "Slide Number Placeholder 5" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties12 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks12 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties12.Append(shapeLocks12); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties20 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape12 = new PlaceholderShape(){ Type = PlaceholderValues.SlideNumber, Size = PlaceholderSizeValues.Quarter, Index = (UInt32Value)4U }; applicationNonVisualDrawingProperties20.Append(placeholderShape12); nonVisualShapeProperties12.Append(nonVisualDrawingProperties20); nonVisualShapeProperties12.Append(nonVisualShapeDrawingProperties12); nonVisualShapeProperties12.Append(applicationNonVisualDrawingProperties20); ShapeProperties shapeProperties17 = new ShapeProperties(); A.Transform2D transform2D12 = new A.Transform2D(); A.Offset offset15 = new A.Offset(){ X = 10365900L, Y = 5578476L }; A.Extents extents15 = new A.Extents(){ Cx = 1142543L, Cy = 669925L }; transform2D12.Append(offset15); transform2D12.Append(extents15); A.PresetGeometry presetGeometry10 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList10 = new A.AdjustValueList(); presetGeometry10.Append(adjustValueList10); shapeProperties17.Append(transform2D12); shapeProperties17.Append(presetGeometry10); TextBody textBody12 = new TextBody(); A.BodyProperties bodyProperties12 = new A.BodyProperties(){ Vertical = A.TextVerticalValues.Horizontal, LeftInset = 91440, TopInset = 45720, RightInset = 91440, BottomInset = 45720, RightToLeftColumns = false, Anchor = A.TextAnchoringTypeValues.Bottom }; A.ListStyle listStyle12 = new A.ListStyle(); A.Level1ParagraphProperties level1ParagraphProperties6 = new A.Level1ParagraphProperties(){ Alignment = A.TextAlignmentTypeValues.Right }; A.DefaultRunProperties defaultRunProperties23 = new A.DefaultRunProperties(){ FontSize = 3200, Bold = false, Italic = false }; A.SolidFill solidFill26 = new A.SolidFill(); A.SchemeColor schemeColor47 = new A.SchemeColor(){ Val = A.SchemeColorValues.Background2 }; A.LuminanceModulation luminanceModulation4 = new A.LuminanceModulation(){ Val = 50000 }; schemeColor47.Append(luminanceModulation4); solidFill26.Append(schemeColor47); A.EffectList effectList5 = new A.EffectList(); A.LatinFont latinFont12 = new A.LatinFont(){ Typeface = "+mn-lt" }; defaultRunProperties23.Append(solidFill26); defaultRunProperties23.Append(effectList5); defaultRunProperties23.Append(latinFont12); level1ParagraphProperties6.Append(defaultRunProperties23); listStyle12.Append(level1ParagraphProperties6); A.Paragraph paragraph16 = new A.Paragraph(); A.Field field4 = new A.Field(){ Id = "{D107CD50-7081-433F-A1F2-156B4E14F4F4}", Type = "slidenum" }; A.RunProperties runProperties15 = new A.RunProperties(){ Kumimoji = true, Language = "ja-JP", AlternativeLanguage = "en-US" }; runProperties15.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text15 = new A.Text(); text15.Text = "‹#›"; field4.Append(runProperties15); field4.Append(text15); A.EndParagraphRunProperties endParagraphRunProperties12 = new A.EndParagraphRunProperties(){ Kumimoji = true, Language = "ja-JP", AlternativeLanguage = "en-US" }; paragraph16.Append(field4); paragraph16.Append(endParagraphRunProperties12); textBody12.Append(bodyProperties12); textBody12.Append(listStyle12); textBody12.Append(paragraph16); shape12.Append(nonVisualShapeProperties12); shape12.Append(shapeProperties17); shape12.Append(textBody12); shapeTree3.Append(nonVisualGroupShapeProperties3); shapeTree3.Append(groupShapeProperties3); shapeTree3.Append(shape8); shapeTree3.Append(shape9); shapeTree3.Append(shape10); shapeTree3.Append(shape11); shapeTree3.Append(shape12); CommonSlideDataExtensionList commonSlideDataExtensionList3 = new CommonSlideDataExtensionList(); CommonSlideDataExtension commonSlideDataExtension3 = new CommonSlideDataExtension(){ Uri = "{BB962C8B-B14F-4D97-AF65-F5344CB8AC3E}" }; P14.CreationId creationId3 = new P14.CreationId(){ Val = (UInt32Value)1057398551U }; creationId3.AddNamespaceDeclaration("p14", "http://schemas.microsoft.com/office/powerpoint/2010/main"); commonSlideDataExtension3.Append(creationId3); commonSlideDataExtensionList3.Append(commonSlideDataExtension3); commonSlideData3.Append(background1); commonSlideData3.Append(shapeTree3); commonSlideData3.Append(commonSlideDataExtensionList3); ColorMap colorMap1 = new ColorMap(){ Background1 = A.ColorSchemeIndexValues.Dark1, Text1 = A.ColorSchemeIndexValues.Light1, Background2 = A.ColorSchemeIndexValues.Dark2, Text2 = A.ColorSchemeIndexValues.Light2, Accent1 = A.ColorSchemeIndexValues.Accent1, Accent2 = A.ColorSchemeIndexValues.Accent2, Accent3 = A.ColorSchemeIndexValues.Accent3, Accent4 = A.ColorSchemeIndexValues.Accent4, Accent5 = A.ColorSchemeIndexValues.Accent5, Accent6 = A.ColorSchemeIndexValues.Accent6, Hyperlink = A.ColorSchemeIndexValues.Hyperlink, FollowedHyperlink = A.ColorSchemeIndexValues.FollowedHyperlink }; SlideLayoutIdList slideLayoutIdList1 = new SlideLayoutIdList(); SlideLayoutId slideLayoutId1 = new SlideLayoutId(){ Id = (UInt32Value)2147483754U, RelationshipId = "rId1" }; SlideLayoutId slideLayoutId2 = new SlideLayoutId(){ Id = (UInt32Value)2147483755U, RelationshipId = "rId2" }; SlideLayoutId slideLayoutId3 = new SlideLayoutId(){ Id = (UInt32Value)2147483756U, RelationshipId = "rId3" }; SlideLayoutId slideLayoutId4 = new SlideLayoutId(){ Id = (UInt32Value)2147483757U, RelationshipId = "rId4" }; SlideLayoutId slideLayoutId5 = new SlideLayoutId(){ Id = (UInt32Value)2147483758U, RelationshipId = "rId5" }; SlideLayoutId slideLayoutId6 = new SlideLayoutId(){ Id = (UInt32Value)2147483759U, RelationshipId = "rId6" }; SlideLayoutId slideLayoutId7 = new SlideLayoutId(){ Id = (UInt32Value)2147483760U, RelationshipId = "rId7" }; SlideLayoutId slideLayoutId8 = new SlideLayoutId(){ Id = (UInt32Value)2147483761U, RelationshipId = "rId8" }; SlideLayoutId slideLayoutId9 = new SlideLayoutId(){ Id = (UInt32Value)2147483762U, RelationshipId = "rId9" }; SlideLayoutId slideLayoutId10 = new SlideLayoutId(){ Id = (UInt32Value)2147483763U, RelationshipId = "rId10" }; SlideLayoutId slideLayoutId11 = new SlideLayoutId(){ Id = (UInt32Value)2147483764U, RelationshipId = "rId11" }; SlideLayoutId slideLayoutId12 = new SlideLayoutId(){ Id = (UInt32Value)2147483765U, RelationshipId = "rId12" }; SlideLayoutId slideLayoutId13 = new SlideLayoutId(){ Id = (UInt32Value)2147483766U, RelationshipId = "rId13" }; SlideLayoutId slideLayoutId14 = new SlideLayoutId(){ Id = (UInt32Value)2147483767U, RelationshipId = "rId14" }; SlideLayoutId slideLayoutId15 = new SlideLayoutId(){ Id = (UInt32Value)2147483768U, RelationshipId = "rId15" }; SlideLayoutId slideLayoutId16 = new SlideLayoutId(){ Id = (UInt32Value)2147483769U, RelationshipId = "rId16" }; SlideLayoutId slideLayoutId17 = new SlideLayoutId(){ Id = (UInt32Value)2147483770U, RelationshipId = "rId17" }; slideLayoutIdList1.Append(slideLayoutId1); slideLayoutIdList1.Append(slideLayoutId2); slideLayoutIdList1.Append(slideLayoutId3); slideLayoutIdList1.Append(slideLayoutId4); slideLayoutIdList1.Append(slideLayoutId5); slideLayoutIdList1.Append(slideLayoutId6); slideLayoutIdList1.Append(slideLayoutId7); slideLayoutIdList1.Append(slideLayoutId8); slideLayoutIdList1.Append(slideLayoutId9); slideLayoutIdList1.Append(slideLayoutId10); slideLayoutIdList1.Append(slideLayoutId11); slideLayoutIdList1.Append(slideLayoutId12); slideLayoutIdList1.Append(slideLayoutId13); slideLayoutIdList1.Append(slideLayoutId14); slideLayoutIdList1.Append(slideLayoutId15); slideLayoutIdList1.Append(slideLayoutId16); slideLayoutIdList1.Append(slideLayoutId17); AlternateContent alternateContent2 = new AlternateContent(); alternateContent2.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); alternateContent2.AddNamespaceDeclaration("p14", "http://schemas.microsoft.com/office/powerpoint/2010/main"); AlternateContentChoice alternateContentChoice2 = new AlternateContentChoice(){ Requires = "p14" }; Transition transition3 = new Transition(){ Speed = TransitionSpeedValues.Slow, Duration = "1500" }; SplitTransition splitTransition1 = new SplitTransition(){ Orientation = DirectionValues.Vertical }; transition3.Append(splitTransition1); alternateContentChoice2.Append(transition3); AlternateContentFallback alternateContentFallback2 = new AlternateContentFallback(); Transition transition4 = new Transition(){ Speed = TransitionSpeedValues.Slow }; SplitTransition splitTransition2 = new SplitTransition(){ Orientation = DirectionValues.Vertical }; transition4.Append(splitTransition2); alternateContentFallback2.Append(transition4); alternateContent2.Append(alternateContentChoice2); alternateContent2.Append(alternateContentFallback2); Timing timing3 = new Timing(); TimeNodeList timeNodeList3 = new TimeNodeList(); ParallelTimeNode parallelTimeNode3 = new ParallelTimeNode(); CommonTimeNode commonTimeNode3 = new CommonTimeNode(){ Id = (UInt32Value)1U, Duration = "indefinite", Restart = TimeNodeRestartValues.Never, NodeType = TimeNodeValues.TmingRoot }; parallelTimeNode3.Append(commonTimeNode3); timeNodeList3.Append(parallelTimeNode3); timing3.Append(timeNodeList3); TextStyles textStyles1 = new TextStyles(); TitleStyle titleStyle1 = new TitleStyle(); A.Level1ParagraphProperties level1ParagraphProperties7 = new A.Level1ParagraphProperties(){ Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 457200, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.SpaceBefore spaceBefore1 = new A.SpaceBefore(); A.SpacingPercent spacingPercent1 = new A.SpacingPercent(){ Val = 0 }; spaceBefore1.Append(spacingPercent1); A.NoBullet noBullet10 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties24 = new A.DefaultRunProperties(){ Kumimoji = true, FontSize = 3600, Kerning = 1200, Capital = A.TextCapsValues.All }; A.Outline outline6 = new A.Outline(){ Width = 3175, CompoundLineType = A.CompoundLineValues.Single }; A.NoFill noFill1 = new A.NoFill(); outline6.Append(noFill1); A.SolidFill solidFill27 = new A.SolidFill(); A.SchemeColor schemeColor48 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill27.Append(schemeColor48); A.EffectList effectList6 = new A.EffectList(); A.LatinFont latinFont13 = new A.LatinFont(){ Typeface = "+mj-lt" }; A.EastAsianFont eastAsianFont10 = new A.EastAsianFont(){ Typeface = "+mj-ea" }; A.ComplexScriptFont complexScriptFont10 = new A.ComplexScriptFont(){ Typeface = "Trebuchet MS" }; defaultRunProperties24.Append(outline6); defaultRunProperties24.Append(solidFill27); defaultRunProperties24.Append(effectList6); defaultRunProperties24.Append(latinFont13); defaultRunProperties24.Append(eastAsianFont10); defaultRunProperties24.Append(complexScriptFont10); level1ParagraphProperties7.Append(spaceBefore1); level1ParagraphProperties7.Append(noBullet10); level1ParagraphProperties7.Append(defaultRunProperties24); A.Level2ParagraphProperties level2ParagraphProperties3 = new A.Level2ParagraphProperties(){ EastAsianLineBreak = true, Height = true }; A.DefaultRunProperties defaultRunProperties25 = new A.DefaultRunProperties(){ Kumimoji = true }; A.SolidFill solidFill28 = new A.SolidFill(); A.SchemeColor schemeColor49 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text2 }; solidFill28.Append(schemeColor49); defaultRunProperties25.Append(solidFill28); level2ParagraphProperties3.Append(defaultRunProperties25); A.Level3ParagraphProperties level3ParagraphProperties3 = new A.Level3ParagraphProperties(){ EastAsianLineBreak = true, Height = true }; A.DefaultRunProperties defaultRunProperties26 = new A.DefaultRunProperties(){ Kumimoji = true }; A.SolidFill solidFill29 = new A.SolidFill(); A.SchemeColor schemeColor50 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text2 }; solidFill29.Append(schemeColor50); defaultRunProperties26.Append(solidFill29); level3ParagraphProperties3.Append(defaultRunProperties26); A.Level4ParagraphProperties level4ParagraphProperties3 = new A.Level4ParagraphProperties(){ EastAsianLineBreak = true, Height = true }; A.DefaultRunProperties defaultRunProperties27 = new A.DefaultRunProperties(){ Kumimoji = true }; A.SolidFill solidFill30 = new A.SolidFill(); A.SchemeColor schemeColor51 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text2 }; solidFill30.Append(schemeColor51); defaultRunProperties27.Append(solidFill30); level4ParagraphProperties3.Append(defaultRunProperties27); A.Level5ParagraphProperties level5ParagraphProperties3 = new A.Level5ParagraphProperties(){ EastAsianLineBreak = true, Height = true }; A.DefaultRunProperties defaultRunProperties28 = new A.DefaultRunProperties(){ Kumimoji = true }; A.SolidFill solidFill31 = new A.SolidFill(); A.SchemeColor schemeColor52 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text2 }; solidFill31.Append(schemeColor52); defaultRunProperties28.Append(solidFill31); level5ParagraphProperties3.Append(defaultRunProperties28); A.Level6ParagraphProperties level6ParagraphProperties3 = new A.Level6ParagraphProperties(){ EastAsianLineBreak = true, Height = true }; A.DefaultRunProperties defaultRunProperties29 = new A.DefaultRunProperties(){ Kumimoji = true }; A.SolidFill solidFill32 = new A.SolidFill(); A.SchemeColor schemeColor53 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text2 }; solidFill32.Append(schemeColor53); defaultRunProperties29.Append(solidFill32); level6ParagraphProperties3.Append(defaultRunProperties29); A.Level7ParagraphProperties level7ParagraphProperties3 = new A.Level7ParagraphProperties(){ EastAsianLineBreak = true, Height = true }; A.DefaultRunProperties defaultRunProperties30 = new A.DefaultRunProperties(){ Kumimoji = true }; A.SolidFill solidFill33 = new A.SolidFill(); A.SchemeColor schemeColor54 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text2 }; solidFill33.Append(schemeColor54); defaultRunProperties30.Append(solidFill33); level7ParagraphProperties3.Append(defaultRunProperties30); A.Level8ParagraphProperties level8ParagraphProperties3 = new A.Level8ParagraphProperties(){ EastAsianLineBreak = true, Height = true }; A.DefaultRunProperties defaultRunProperties31 = new A.DefaultRunProperties(){ Kumimoji = true }; A.SolidFill solidFill34 = new A.SolidFill(); A.SchemeColor schemeColor55 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text2 }; solidFill34.Append(schemeColor55); defaultRunProperties31.Append(solidFill34); level8ParagraphProperties3.Append(defaultRunProperties31); A.Level9ParagraphProperties level9ParagraphProperties3 = new A.Level9ParagraphProperties(){ EastAsianLineBreak = true, Height = true }; A.DefaultRunProperties defaultRunProperties32 = new A.DefaultRunProperties(){ Kumimoji = true }; A.SolidFill solidFill35 = new A.SolidFill(); A.SchemeColor schemeColor56 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text2 }; solidFill35.Append(schemeColor56); defaultRunProperties32.Append(solidFill35); level9ParagraphProperties3.Append(defaultRunProperties32); titleStyle1.Append(level1ParagraphProperties7); titleStyle1.Append(level2ParagraphProperties3); titleStyle1.Append(level3ParagraphProperties3); titleStyle1.Append(level4ParagraphProperties3); titleStyle1.Append(level5ParagraphProperties3); titleStyle1.Append(level6ParagraphProperties3); titleStyle1.Append(level7ParagraphProperties3); titleStyle1.Append(level8ParagraphProperties3); titleStyle1.Append(level9ParagraphProperties3); BodyStyle bodyStyle1 = new BodyStyle(); A.Level1ParagraphProperties level1ParagraphProperties8 = new A.Level1ParagraphProperties(){ LeftMargin = 285750, Indent = -285750, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 457200, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.SpaceBefore spaceBefore2 = new A.SpaceBefore(); A.SpacingPercent spacingPercent2 = new A.SpacingPercent(){ Val = 20000 }; spaceBefore2.Append(spacingPercent2); A.SpaceAfter spaceAfter1 = new A.SpaceAfter(); A.SpacingPoints spacingPoints1 = new A.SpacingPoints(){ Val = 600 }; spaceAfter1.Append(spacingPoints1); A.BulletColor bulletColor1 = new A.BulletColor(); A.SchemeColor schemeColor57 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; bulletColor1.Append(schemeColor57); A.BulletSizePercentage bulletSizePercentage1 = new A.BulletSizePercentage(){ Val = 70000 }; A.BulletFont bulletFont1 = new A.BulletFont(){ Typeface = "Lucida Grande" }; A.CharacterBullet characterBullet1 = new A.CharacterBullet(){ Char = "►" }; A.DefaultRunProperties defaultRunProperties33 = new A.DefaultRunProperties(){ Kumimoji = true, FontSize = 1800, Kerning = 1200, Capital = A.TextCapsValues.None }; A.SolidFill solidFill36 = new A.SolidFill(); A.SchemeColor schemeColor58 = new A.SchemeColor(){ Val = A.SchemeColorValues.Background2 }; A.LuminanceModulation luminanceModulation5 = new A.LuminanceModulation(){ Val = 75000 }; schemeColor58.Append(luminanceModulation5); solidFill36.Append(schemeColor58); A.EffectList effectList7 = new A.EffectList(); A.LatinFont latinFont14 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont11 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont11 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties33.Append(solidFill36); defaultRunProperties33.Append(effectList7); defaultRunProperties33.Append(latinFont14); defaultRunProperties33.Append(eastAsianFont11); defaultRunProperties33.Append(complexScriptFont11); level1ParagraphProperties8.Append(spaceBefore2); level1ParagraphProperties8.Append(spaceAfter1); level1ParagraphProperties8.Append(bulletColor1); level1ParagraphProperties8.Append(bulletSizePercentage1); level1ParagraphProperties8.Append(bulletFont1); level1ParagraphProperties8.Append(characterBullet1); level1ParagraphProperties8.Append(defaultRunProperties33); A.Level2ParagraphProperties level2ParagraphProperties4 = new A.Level2ParagraphProperties(){ LeftMargin = 742950, Indent = -285750, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 457200, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.SpaceBefore spaceBefore3 = new A.SpaceBefore(); A.SpacingPercent spacingPercent3 = new A.SpacingPercent(){ Val = 20000 }; spaceBefore3.Append(spacingPercent3); A.SpaceAfter spaceAfter2 = new A.SpaceAfter(); A.SpacingPoints spacingPoints2 = new A.SpacingPoints(){ Val = 600 }; spaceAfter2.Append(spacingPoints2); A.BulletColor bulletColor2 = new A.BulletColor(); A.SchemeColor schemeColor59 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; bulletColor2.Append(schemeColor59); A.BulletSizePercentage bulletSizePercentage2 = new A.BulletSizePercentage(){ Val = 70000 }; A.BulletFont bulletFont2 = new A.BulletFont(){ Typeface = "Lucida Grande" }; A.CharacterBullet characterBullet2 = new A.CharacterBullet(){ Char = "►" }; A.DefaultRunProperties defaultRunProperties34 = new A.DefaultRunProperties(){ Kumimoji = true, FontSize = 1600, Kerning = 1200, Capital = A.TextCapsValues.None }; A.SolidFill solidFill37 = new A.SolidFill(); A.SchemeColor schemeColor60 = new A.SchemeColor(){ Val = A.SchemeColorValues.Background2 }; A.LuminanceModulation luminanceModulation6 = new A.LuminanceModulation(){ Val = 75000 }; schemeColor60.Append(luminanceModulation6); solidFill37.Append(schemeColor60); A.EffectList effectList8 = new A.EffectList(); A.LatinFont latinFont15 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont12 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont12 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties34.Append(solidFill37); defaultRunProperties34.Append(effectList8); defaultRunProperties34.Append(latinFont15); defaultRunProperties34.Append(eastAsianFont12); defaultRunProperties34.Append(complexScriptFont12); level2ParagraphProperties4.Append(spaceBefore3); level2ParagraphProperties4.Append(spaceAfter2); level2ParagraphProperties4.Append(bulletColor2); level2ParagraphProperties4.Append(bulletSizePercentage2); level2ParagraphProperties4.Append(bulletFont2); level2ParagraphProperties4.Append(characterBullet2); level2ParagraphProperties4.Append(defaultRunProperties34); A.Level3ParagraphProperties level3ParagraphProperties4 = new A.Level3ParagraphProperties(){ LeftMargin = 1200150, Indent = -285750, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 457200, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.SpaceBefore spaceBefore4 = new A.SpaceBefore(); A.SpacingPercent spacingPercent4 = new A.SpacingPercent(){ Val = 20000 }; spaceBefore4.Append(spacingPercent4); A.SpaceAfter spaceAfter3 = new A.SpaceAfter(); A.SpacingPoints spacingPoints3 = new A.SpacingPoints(){ Val = 600 }; spaceAfter3.Append(spacingPoints3); A.BulletColor bulletColor3 = new A.BulletColor(); A.SchemeColor schemeColor61 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; bulletColor3.Append(schemeColor61); A.BulletSizePercentage bulletSizePercentage3 = new A.BulletSizePercentage(){ Val = 70000 }; A.BulletFont bulletFont3 = new A.BulletFont(){ Typeface = "Lucida Grande" }; A.CharacterBullet characterBullet3 = new A.CharacterBullet(){ Char = "►" }; A.DefaultRunProperties defaultRunProperties35 = new A.DefaultRunProperties(){ Kumimoji = true, FontSize = 1400, Kerning = 1200, Capital = A.TextCapsValues.None }; A.SolidFill solidFill38 = new A.SolidFill(); A.SchemeColor schemeColor62 = new A.SchemeColor(){ Val = A.SchemeColorValues.Background2 }; A.LuminanceModulation luminanceModulation7 = new A.LuminanceModulation(){ Val = 75000 }; schemeColor62.Append(luminanceModulation7); solidFill38.Append(schemeColor62); A.EffectList effectList9 = new A.EffectList(); A.LatinFont latinFont16 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont13 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont13 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties35.Append(solidFill38); defaultRunProperties35.Append(effectList9); defaultRunProperties35.Append(latinFont16); defaultRunProperties35.Append(eastAsianFont13); defaultRunProperties35.Append(complexScriptFont13); level3ParagraphProperties4.Append(spaceBefore4); level3ParagraphProperties4.Append(spaceAfter3); level3ParagraphProperties4.Append(bulletColor3); level3ParagraphProperties4.Append(bulletSizePercentage3); level3ParagraphProperties4.Append(bulletFont3); level3ParagraphProperties4.Append(characterBullet3); level3ParagraphProperties4.Append(defaultRunProperties35); A.Level4ParagraphProperties level4ParagraphProperties4 = new A.Level4ParagraphProperties(){ LeftMargin = 1543050, Indent = -171450, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 457200, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.SpaceBefore spaceBefore5 = new A.SpaceBefore(); A.SpacingPercent spacingPercent5 = new A.SpacingPercent(){ Val = 20000 }; spaceBefore5.Append(spacingPercent5); A.SpaceAfter spaceAfter4 = new A.SpaceAfter(); A.SpacingPoints spacingPoints4 = new A.SpacingPoints(){ Val = 600 }; spaceAfter4.Append(spacingPoints4); A.BulletColor bulletColor4 = new A.BulletColor(); A.SchemeColor schemeColor63 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; bulletColor4.Append(schemeColor63); A.BulletSizePercentage bulletSizePercentage4 = new A.BulletSizePercentage(){ Val = 70000 }; A.BulletFont bulletFont4 = new A.BulletFont(){ Typeface = "Lucida Grande" }; A.CharacterBullet characterBullet4 = new A.CharacterBullet(){ Char = "►" }; A.DefaultRunProperties defaultRunProperties36 = new A.DefaultRunProperties(){ Kumimoji = true, FontSize = 1200, Kerning = 1200, Capital = A.TextCapsValues.None }; A.SolidFill solidFill39 = new A.SolidFill(); A.SchemeColor schemeColor64 = new A.SchemeColor(){ Val = A.SchemeColorValues.Background2 }; A.LuminanceModulation luminanceModulation8 = new A.LuminanceModulation(){ Val = 75000 }; schemeColor64.Append(luminanceModulation8); solidFill39.Append(schemeColor64); A.EffectList effectList10 = new A.EffectList(); A.LatinFont latinFont17 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont14 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont14 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties36.Append(solidFill39); defaultRunProperties36.Append(effectList10); defaultRunProperties36.Append(latinFont17); defaultRunProperties36.Append(eastAsianFont14); defaultRunProperties36.Append(complexScriptFont14); level4ParagraphProperties4.Append(spaceBefore5); level4ParagraphProperties4.Append(spaceAfter4); level4ParagraphProperties4.Append(bulletColor4); level4ParagraphProperties4.Append(bulletSizePercentage4); level4ParagraphProperties4.Append(bulletFont4); level4ParagraphProperties4.Append(characterBullet4); level4ParagraphProperties4.Append(defaultRunProperties36); A.Level5ParagraphProperties level5ParagraphProperties4 = new A.Level5ParagraphProperties(){ LeftMargin = 2000250, Indent = -171450, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 457200, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.SpaceBefore spaceBefore6 = new A.SpaceBefore(); A.SpacingPercent spacingPercent6 = new A.SpacingPercent(){ Val = 20000 }; spaceBefore6.Append(spacingPercent6); A.SpaceAfter spaceAfter5 = new A.SpaceAfter(); A.SpacingPoints spacingPoints5 = new A.SpacingPoints(){ Val = 600 }; spaceAfter5.Append(spacingPoints5); A.BulletColor bulletColor5 = new A.BulletColor(); A.SchemeColor schemeColor65 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; bulletColor5.Append(schemeColor65); A.BulletSizePercentage bulletSizePercentage5 = new A.BulletSizePercentage(){ Val = 70000 }; A.BulletFont bulletFont5 = new A.BulletFont(){ Typeface = "Lucida Grande" }; A.CharacterBullet characterBullet5 = new A.CharacterBullet(){ Char = "►" }; A.DefaultRunProperties defaultRunProperties37 = new A.DefaultRunProperties(){ Kumimoji = true, FontSize = 1200, Kerning = 1200, Capital = A.TextCapsValues.None }; A.SolidFill solidFill40 = new A.SolidFill(); A.SchemeColor schemeColor66 = new A.SchemeColor(){ Val = A.SchemeColorValues.Background2 }; A.LuminanceModulation luminanceModulation9 = new A.LuminanceModulation(){ Val = 75000 }; schemeColor66.Append(luminanceModulation9); solidFill40.Append(schemeColor66); A.EffectList effectList11 = new A.EffectList(); A.LatinFont latinFont18 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont15 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont15 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties37.Append(solidFill40); defaultRunProperties37.Append(effectList11); defaultRunProperties37.Append(latinFont18); defaultRunProperties37.Append(eastAsianFont15); defaultRunProperties37.Append(complexScriptFont15); level5ParagraphProperties4.Append(spaceBefore6); level5ParagraphProperties4.Append(spaceAfter5); level5ParagraphProperties4.Append(bulletColor5); level5ParagraphProperties4.Append(bulletSizePercentage5); level5ParagraphProperties4.Append(bulletFont5); level5ParagraphProperties4.Append(characterBullet5); level5ParagraphProperties4.Append(defaultRunProperties37); A.Level6ParagraphProperties level6ParagraphProperties4 = new A.Level6ParagraphProperties(){ LeftMargin = 2514600, Indent = -228600, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 457200, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.SpaceBefore spaceBefore7 = new A.SpaceBefore(); A.SpacingPercent spacingPercent7 = new A.SpacingPercent(){ Val = 20000 }; spaceBefore7.Append(spacingPercent7); A.BulletFont bulletFont6 = new A.BulletFont(){ Typeface = "Arial" }; A.CharacterBullet characterBullet6 = new A.CharacterBullet(){ Char = "•" }; A.DefaultRunProperties defaultRunProperties38 = new A.DefaultRunProperties(){ Kumimoji = true, FontSize = 2000, Kerning = 1200 }; A.SolidFill solidFill41 = new A.SolidFill(); A.SchemeColor schemeColor67 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill41.Append(schemeColor67); A.LatinFont latinFont19 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont16 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont16 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties38.Append(solidFill41); defaultRunProperties38.Append(latinFont19); defaultRunProperties38.Append(eastAsianFont16); defaultRunProperties38.Append(complexScriptFont16); level6ParagraphProperties4.Append(spaceBefore7); level6ParagraphProperties4.Append(bulletFont6); level6ParagraphProperties4.Append(characterBullet6); level6ParagraphProperties4.Append(defaultRunProperties38); A.Level7ParagraphProperties level7ParagraphProperties4 = new A.Level7ParagraphProperties(){ LeftMargin = 2971800, Indent = -228600, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 457200, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.SpaceBefore spaceBefore8 = new A.SpaceBefore(); A.SpacingPercent spacingPercent8 = new A.SpacingPercent(){ Val = 20000 }; spaceBefore8.Append(spacingPercent8); A.BulletFont bulletFont7 = new A.BulletFont(){ Typeface = "Arial" }; A.CharacterBullet characterBullet7 = new A.CharacterBullet(){ Char = "•" }; A.DefaultRunProperties defaultRunProperties39 = new A.DefaultRunProperties(){ Kumimoji = true, FontSize = 2000, Kerning = 1200 }; A.SolidFill solidFill42 = new A.SolidFill(); A.SchemeColor schemeColor68 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill42.Append(schemeColor68); A.LatinFont latinFont20 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont17 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont17 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties39.Append(solidFill42); defaultRunProperties39.Append(latinFont20); defaultRunProperties39.Append(eastAsianFont17); defaultRunProperties39.Append(complexScriptFont17); level7ParagraphProperties4.Append(spaceBefore8); level7ParagraphProperties4.Append(bulletFont7); level7ParagraphProperties4.Append(characterBullet7); level7ParagraphProperties4.Append(defaultRunProperties39); A.Level8ParagraphProperties level8ParagraphProperties4 = new A.Level8ParagraphProperties(){ LeftMargin = 3429000, Indent = -228600, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 457200, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.SpaceBefore spaceBefore9 = new A.SpaceBefore(); A.SpacingPercent spacingPercent9 = new A.SpacingPercent(){ Val = 20000 }; spaceBefore9.Append(spacingPercent9); A.BulletFont bulletFont8 = new A.BulletFont(){ Typeface = "Arial" }; A.CharacterBullet characterBullet8 = new A.CharacterBullet(){ Char = "•" }; A.DefaultRunProperties defaultRunProperties40 = new A.DefaultRunProperties(){ Kumimoji = true, FontSize = 2000, Kerning = 1200 }; A.SolidFill solidFill43 = new A.SolidFill(); A.SchemeColor schemeColor69 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill43.Append(schemeColor69); A.LatinFont latinFont21 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont18 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont18 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties40.Append(solidFill43); defaultRunProperties40.Append(latinFont21); defaultRunProperties40.Append(eastAsianFont18); defaultRunProperties40.Append(complexScriptFont18); level8ParagraphProperties4.Append(spaceBefore9); level8ParagraphProperties4.Append(bulletFont8); level8ParagraphProperties4.Append(characterBullet8); level8ParagraphProperties4.Append(defaultRunProperties40); A.Level9ParagraphProperties level9ParagraphProperties4 = new A.Level9ParagraphProperties(){ LeftMargin = 3886200, Indent = -228600, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 457200, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.SpaceBefore spaceBefore10 = new A.SpaceBefore(); A.SpacingPercent spacingPercent10 = new A.SpacingPercent(){ Val = 20000 }; spaceBefore10.Append(spacingPercent10); A.BulletFont bulletFont9 = new A.BulletFont(){ Typeface = "Arial" }; A.CharacterBullet characterBullet9 = new A.CharacterBullet(){ Char = "•" }; A.DefaultRunProperties defaultRunProperties41 = new A.DefaultRunProperties(){ Kumimoji = true, FontSize = 2000, Kerning = 1200 }; A.SolidFill solidFill44 = new A.SolidFill(); A.SchemeColor schemeColor70 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill44.Append(schemeColor70); A.LatinFont latinFont22 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont19 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont19 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties41.Append(solidFill44); defaultRunProperties41.Append(latinFont22); defaultRunProperties41.Append(eastAsianFont19); defaultRunProperties41.Append(complexScriptFont19); level9ParagraphProperties4.Append(spaceBefore10); level9ParagraphProperties4.Append(bulletFont9); level9ParagraphProperties4.Append(characterBullet9); level9ParagraphProperties4.Append(defaultRunProperties41); bodyStyle1.Append(level1ParagraphProperties8); bodyStyle1.Append(level2ParagraphProperties4); bodyStyle1.Append(level3ParagraphProperties4); bodyStyle1.Append(level4ParagraphProperties4); bodyStyle1.Append(level5ParagraphProperties4); bodyStyle1.Append(level6ParagraphProperties4); bodyStyle1.Append(level7ParagraphProperties4); bodyStyle1.Append(level8ParagraphProperties4); bodyStyle1.Append(level9ParagraphProperties4); OtherStyle otherStyle1 = new OtherStyle(); A.DefaultParagraphProperties defaultParagraphProperties2 = new A.DefaultParagraphProperties(); A.DefaultRunProperties defaultRunProperties42 = new A.DefaultRunProperties(){ Language = "en-US" }; defaultParagraphProperties2.Append(defaultRunProperties42); A.Level1ParagraphProperties level1ParagraphProperties9 = new A.Level1ParagraphProperties(){ LeftMargin = 0, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 457200, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties43 = new A.DefaultRunProperties(){ Kumimoji = true, FontSize = 1800, Kerning = 1200 }; A.SolidFill solidFill45 = new A.SolidFill(); A.SchemeColor schemeColor71 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill45.Append(schemeColor71); A.LatinFont latinFont23 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont20 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont20 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties43.Append(solidFill45); defaultRunProperties43.Append(latinFont23); defaultRunProperties43.Append(eastAsianFont20); defaultRunProperties43.Append(complexScriptFont20); level1ParagraphProperties9.Append(defaultRunProperties43); A.Level2ParagraphProperties level2ParagraphProperties5 = new A.Level2ParagraphProperties(){ LeftMargin = 457200, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 457200, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties44 = new A.DefaultRunProperties(){ Kumimoji = true, FontSize = 1800, Kerning = 1200 }; A.SolidFill solidFill46 = new A.SolidFill(); A.SchemeColor schemeColor72 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill46.Append(schemeColor72); A.LatinFont latinFont24 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont21 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont21 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties44.Append(solidFill46); defaultRunProperties44.Append(latinFont24); defaultRunProperties44.Append(eastAsianFont21); defaultRunProperties44.Append(complexScriptFont21); level2ParagraphProperties5.Append(defaultRunProperties44); A.Level3ParagraphProperties level3ParagraphProperties5 = new A.Level3ParagraphProperties(){ LeftMargin = 914400, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 457200, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties45 = new A.DefaultRunProperties(){ Kumimoji = true, FontSize = 1800, Kerning = 1200 }; A.SolidFill solidFill47 = new A.SolidFill(); A.SchemeColor schemeColor73 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill47.Append(schemeColor73); A.LatinFont latinFont25 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont22 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont22 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties45.Append(solidFill47); defaultRunProperties45.Append(latinFont25); defaultRunProperties45.Append(eastAsianFont22); defaultRunProperties45.Append(complexScriptFont22); level3ParagraphProperties5.Append(defaultRunProperties45); A.Level4ParagraphProperties level4ParagraphProperties5 = new A.Level4ParagraphProperties(){ LeftMargin = 1371600, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 457200, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties46 = new A.DefaultRunProperties(){ Kumimoji = true, FontSize = 1800, Kerning = 1200 }; A.SolidFill solidFill48 = new A.SolidFill(); A.SchemeColor schemeColor74 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill48.Append(schemeColor74); A.LatinFont latinFont26 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont23 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont23 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties46.Append(solidFill48); defaultRunProperties46.Append(latinFont26); defaultRunProperties46.Append(eastAsianFont23); defaultRunProperties46.Append(complexScriptFont23); level4ParagraphProperties5.Append(defaultRunProperties46); A.Level5ParagraphProperties level5ParagraphProperties5 = new A.Level5ParagraphProperties(){ LeftMargin = 1828800, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 457200, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties47 = new A.DefaultRunProperties(){ Kumimoji = true, FontSize = 1800, Kerning = 1200 }; A.SolidFill solidFill49 = new A.SolidFill(); A.SchemeColor schemeColor75 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill49.Append(schemeColor75); A.LatinFont latinFont27 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont24 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont24 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties47.Append(solidFill49); defaultRunProperties47.Append(latinFont27); defaultRunProperties47.Append(eastAsianFont24); defaultRunProperties47.Append(complexScriptFont24); level5ParagraphProperties5.Append(defaultRunProperties47); A.Level6ParagraphProperties level6ParagraphProperties5 = new A.Level6ParagraphProperties(){ LeftMargin = 2286000, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 457200, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties48 = new A.DefaultRunProperties(){ Kumimoji = true, FontSize = 1800, Kerning = 1200 }; A.SolidFill solidFill50 = new A.SolidFill(); A.SchemeColor schemeColor76 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill50.Append(schemeColor76); A.LatinFont latinFont28 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont25 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont25 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties48.Append(solidFill50); defaultRunProperties48.Append(latinFont28); defaultRunProperties48.Append(eastAsianFont25); defaultRunProperties48.Append(complexScriptFont25); level6ParagraphProperties5.Append(defaultRunProperties48); A.Level7ParagraphProperties level7ParagraphProperties5 = new A.Level7ParagraphProperties(){ LeftMargin = 2743200, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 457200, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties49 = new A.DefaultRunProperties(){ Kumimoji = true, FontSize = 1800, Kerning = 1200 }; A.SolidFill solidFill51 = new A.SolidFill(); A.SchemeColor schemeColor77 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill51.Append(schemeColor77); A.LatinFont latinFont29 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont26 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont26 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties49.Append(solidFill51); defaultRunProperties49.Append(latinFont29); defaultRunProperties49.Append(eastAsianFont26); defaultRunProperties49.Append(complexScriptFont26); level7ParagraphProperties5.Append(defaultRunProperties49); A.Level8ParagraphProperties level8ParagraphProperties5 = new A.Level8ParagraphProperties(){ LeftMargin = 3200400, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 457200, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties50 = new A.DefaultRunProperties(){ Kumimoji = true, FontSize = 1800, Kerning = 1200 }; A.SolidFill solidFill52 = new A.SolidFill(); A.SchemeColor schemeColor78 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill52.Append(schemeColor78); A.LatinFont latinFont30 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont27 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont27 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties50.Append(solidFill52); defaultRunProperties50.Append(latinFont30); defaultRunProperties50.Append(eastAsianFont27); defaultRunProperties50.Append(complexScriptFont27); level8ParagraphProperties5.Append(defaultRunProperties50); A.Level9ParagraphProperties level9ParagraphProperties5 = new A.Level9ParagraphProperties(){ LeftMargin = 3657600, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 457200, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties51 = new A.DefaultRunProperties(){ Kumimoji = true, FontSize = 1800, Kerning = 1200 }; A.SolidFill solidFill53 = new A.SolidFill(); A.SchemeColor schemeColor79 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill53.Append(schemeColor79); A.LatinFont latinFont31 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont28 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont28 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties51.Append(solidFill53); defaultRunProperties51.Append(latinFont31); defaultRunProperties51.Append(eastAsianFont28); defaultRunProperties51.Append(complexScriptFont28); level9ParagraphProperties5.Append(defaultRunProperties51); otherStyle1.Append(defaultParagraphProperties2); otherStyle1.Append(level1ParagraphProperties9); otherStyle1.Append(level2ParagraphProperties5); otherStyle1.Append(level3ParagraphProperties5); otherStyle1.Append(level4ParagraphProperties5); otherStyle1.Append(level5ParagraphProperties5); otherStyle1.Append(level6ParagraphProperties5); otherStyle1.Append(level7ParagraphProperties5); otherStyle1.Append(level8ParagraphProperties5); otherStyle1.Append(level9ParagraphProperties5); textStyles1.Append(titleStyle1); textStyles1.Append(bodyStyle1); textStyles1.Append(otherStyle1); slideMaster1.Append(commonSlideData3); slideMaster1.Append(colorMap1); slideMaster1.Append(slideLayoutIdList1); slideMaster1.Append(alternateContent2); slideMaster1.Append(timing3); slideMaster1.Append(textStyles1); slideMasterPart1.SlideMaster = slideMaster1; }
// Generates content of chartPart2. private void GenerateChartPart2Content(ChartPart chartPart2) { C.ChartSpace chartSpace2 = new C.ChartSpace(); chartSpace2.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart"); chartSpace2.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); chartSpace2.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); C.Date1904 date19042 = new C.Date1904() { Val = false }; C.EditingLanguage editingLanguage2 = new C.EditingLanguage() { Val = "en-US" }; C.RoundedCorners roundedCorners2 = new C.RoundedCorners() { Val = false }; AlternateContent alternateContent2 = new AlternateContent(); alternateContent2.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); AlternateContentChoice alternateContentChoice2 = new AlternateContentChoice() { Requires = "c14" }; alternateContentChoice2.AddNamespaceDeclaration("c14", "http://schemas.microsoft.com/office/drawing/2007/8/2/chart"); C14.Style style3 = new C14.Style() { Val = 102 }; alternateContentChoice2.Append(style3); AlternateContentFallback alternateContentFallback2 = new AlternateContentFallback(); C.Style style4 = new C.Style() { Val = 2 }; alternateContentFallback2.Append(style4); alternateContent2.Append(alternateContentChoice2); alternateContent2.Append(alternateContentFallback2); C.Chart chart2 = new C.Chart(); C.Title title1 = new C.Title(); C.Overlay overlay2 = new C.Overlay() { Val = false }; title1.Append(overlay2); C.AutoTitleDeleted autoTitleDeleted2 = new C.AutoTitleDeleted() { Val = false }; C.PlotArea plotArea2 = new C.PlotArea(); C.Layout layout2 = new C.Layout(); C.PieChart pieChart1 = new C.PieChart(); C.VaryColors varyColors2 = new C.VaryColors() { Val = true }; C.PieChartSeries pieChartSeries1 = new C.PieChartSeries(); C.Index index4 = new C.Index() { Val = (UInt32Value)0U }; C.Order order4 = new C.Order() { Val = (UInt32Value)0U }; C.SeriesText seriesText4 = new C.SeriesText(); C.StringReference stringReference7 = new C.StringReference(); C.Formula formula10 = new C.Formula(); formula10.Text = "Sheet1!$B$1"; C.StringCache stringCache7 = new C.StringCache(); C.PointCount pointCount10 = new C.PointCount() { Val = (UInt32Value)1U }; C.StringPoint stringPoint16 = new C.StringPoint() { Index = (UInt32Value)0U }; C.NumericValue numericValue28 = new C.NumericValue(); numericValue28.Text = "Cases By Aging"; stringPoint16.Append(numericValue28); stringCache7.Append(pointCount10); stringCache7.Append(stringPoint16); stringReference7.Append(formula10); stringReference7.Append(stringCache7); seriesText4.Append(stringReference7); C.CategoryAxisData categoryAxisData4 = new C.CategoryAxisData(); C.StringReference stringReference8 = new C.StringReference(); C.Formula formula11 = new C.Formula(); formula11.Text = "Sheet1!$A$2:$A$5"; C.StringCache stringCache8 = new C.StringCache(); C.PointCount pointCount11 = new C.PointCount() { Val = (UInt32Value)4U }; C.StringPoint stringPoint17 = new C.StringPoint() { Index = (UInt32Value)0U }; C.NumericValue numericValue29 = new C.NumericValue(); numericValue29.Text = "1st Qtr"; stringPoint17.Append(numericValue29); C.StringPoint stringPoint18 = new C.StringPoint() { Index = (UInt32Value)1U }; C.NumericValue numericValue30 = new C.NumericValue(); numericValue30.Text = "2nd Qtr"; stringPoint18.Append(numericValue30); C.StringPoint stringPoint19 = new C.StringPoint() { Index = (UInt32Value)2U }; C.NumericValue numericValue31 = new C.NumericValue(); numericValue31.Text = "3rd Qtr"; stringPoint19.Append(numericValue31); C.StringPoint stringPoint20 = new C.StringPoint() { Index = (UInt32Value)3U }; C.NumericValue numericValue32 = new C.NumericValue(); numericValue32.Text = "4th Qtr"; stringPoint20.Append(numericValue32); stringCache8.Append(pointCount11); stringCache8.Append(stringPoint17); stringCache8.Append(stringPoint18); stringCache8.Append(stringPoint19); stringCache8.Append(stringPoint20); stringReference8.Append(formula11); stringReference8.Append(stringCache8); categoryAxisData4.Append(stringReference8); C.Values values4 = new C.Values(); C.NumberReference numberReference4 = new C.NumberReference(); C.Formula formula12 = new C.Formula(); formula12.Text = "Sheet1!$B$2:$B$5"; C.NumberingCache numberingCache4 = new C.NumberingCache(); C.FormatCode formatCode4 = new C.FormatCode(); formatCode4.Text = "General"; C.PointCount pointCount12 = new C.PointCount() { Val = (UInt32Value)4U }; numberingCache4.Append(formatCode4); numberingCache4.Append(pointCount12); for (int i = 0; i <= 3; i++) { C.NumericPoint numericPoint13 = new C.NumericPoint() { Index = UInt32Value.FromUInt32((uint)i) }; C.NumericValue numericValue33 = new C.NumericValue(); //numericValue33.Text = (10*(i+1)).ToString(); numericValue33.Text = "25"; numericPoint13.Append(numericValue33); numberingCache4.Append(numericPoint13); } /* C.NumericPoint numericPoint13 = new C.NumericPoint() { Index = (UInt32Value)0U }; C.NumericValue numericValue33 = new C.NumericValue(); numericValue33.Text = "99"; numericPoint13.Append(numericValue33); C.NumericPoint numericPoint14 = new C.NumericPoint() { Index = (UInt32Value)1U }; C.NumericValue numericValue34 = new C.NumericValue(); numericValue34.Text = "3.2"; numericPoint14.Append(numericValue34); C.NumericPoint numericPoint15 = new C.NumericPoint() { Index = (UInt32Value)2U }; C.NumericValue numericValue35 = new C.NumericValue(); numericValue35.Text = "1.4"; numericPoint15.Append(numericValue35); C.NumericPoint numericPoint16 = new C.NumericPoint() { Index = (UInt32Value)3U }; C.NumericValue numericValue36 = new C.NumericValue(); numericValue36.Text = "1.2"; numericPoint16.Append(numericValue36); numberingCache4.Append(formatCode4); numberingCache4.Append(pointCount12); numberingCache4.Append(numericPoint13); numberingCache4.Append(numericPoint14); numberingCache4.Append(numericPoint15); numberingCache4.Append(numericPoint16); */ numberReference4.Append(formula12); numberReference4.Append(numberingCache4); values4.Append(numberReference4); pieChartSeries1.Append(index4); pieChartSeries1.Append(order4); pieChartSeries1.Append(seriesText4); pieChartSeries1.Append(categoryAxisData4); pieChartSeries1.Append(values4); C.DataLabels dataLabels2 = new C.DataLabels(); C.ShowLegendKey showLegendKey2 = new C.ShowLegendKey() { Val = false }; C.ShowValue showValue2 = new C.ShowValue() { Val = false }; C.ShowCategoryName showCategoryName2 = new C.ShowCategoryName() { Val = false }; C.ShowSeriesName showSeriesName2 = new C.ShowSeriesName() { Val = false }; C.ShowPercent showPercent2 = new C.ShowPercent() { Val = false }; C.ShowBubbleSize showBubbleSize2 = new C.ShowBubbleSize() { Val = false }; C.ShowLeaderLines showLeaderLines1 = new C.ShowLeaderLines() { Val = true }; dataLabels2.Append(showLegendKey2); dataLabels2.Append(showValue2); dataLabels2.Append(showCategoryName2); dataLabels2.Append(showSeriesName2); dataLabels2.Append(showPercent2); dataLabels2.Append(showBubbleSize2); dataLabels2.Append(showLeaderLines1); C.FirstSliceAngle firstSliceAngle1 = new C.FirstSliceAngle() { Val = (UInt16Value)0U }; pieChart1.Append(varyColors2); pieChart1.Append(pieChartSeries1); pieChart1.Append(dataLabels2); pieChart1.Append(firstSliceAngle1); plotArea2.Append(layout2); plotArea2.Append(pieChart1); C.Legend legend2 = new C.Legend(); C.LegendPosition legendPosition2 = new C.LegendPosition() { Val = C.LegendPositionValues.Right }; C.Overlay overlay3 = new C.Overlay() { Val = false }; legend2.Append(legendPosition2); legend2.Append(overlay3); C.PlotVisibleOnly plotVisibleOnly2 = new C.PlotVisibleOnly() { Val = true }; C.DisplayBlanksAs displayBlanksAs2 = new C.DisplayBlanksAs() { Val = C.DisplayBlanksAsValues.Gap }; C.ShowDataLabelsOverMaximum showDataLabelsOverMaximum2 = new C.ShowDataLabelsOverMaximum() { Val = false }; chart2.Append(title1); chart2.Append(autoTitleDeleted2); chart2.Append(plotArea2); chart2.Append(legend2); chart2.Append(plotVisibleOnly2); chart2.Append(displayBlanksAs2); chart2.Append(showDataLabelsOverMaximum2); C.ExternalData externalData2 = new C.ExternalData() { Id = "rId1" }; C.AutoUpdate autoUpdate2 = new C.AutoUpdate() { Val = false }; externalData2.Append(autoUpdate2); chartSpace2.Append(date19042); chartSpace2.Append(editingLanguage2); chartSpace2.Append(roundedCorners2); chartSpace2.Append(alternateContent2); chartSpace2.Append(chart2); chartSpace2.Append(externalData2); chartPart2.ChartSpace = chartSpace2; }
// Generates content of workbookPart1. private void GenerateWorkbookPart1Content(WorkbookPart workbookPart1) { Workbook workbook1 = new Workbook(){ MCAttributes = new MarkupCompatibilityAttributes(){ Ignorable = "x15" } }; workbook1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); workbook1.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); workbook1.AddNamespaceDeclaration("x15", "http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"); FileVersion fileVersion1 = new FileVersion(){ ApplicationName = "xl", LastEdited = "6", LowestEdited = "6", BuildVersion = "14420" }; WorkbookProperties workbookProperties1 = new WorkbookProperties(){ DefaultThemeVersion = (UInt32Value)153222U }; AlternateContent alternateContent1 = new AlternateContent(); alternateContent1.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); AlternateContentChoice alternateContentChoice1 = new AlternateContentChoice(){ Requires = "x15" }; X15ac.AbsolutePath absolutePath1 = new X15ac.AbsolutePath(){ Url = "D:\\Users\\dito\\Desktop\\TestDocumentResaver\\OpenXmlApiConversion\\WorkBookPr\\" }; absolutePath1.AddNamespaceDeclaration("x15ac", "http://schemas.microsoft.com/office/spreadsheetml/2010/11/ac"); alternateContentChoice1.Append(absolutePath1); alternateContent1.Append(alternateContentChoice1); BookViews bookViews1 = new BookViews(); WorkbookView workbookView1 = new WorkbookView(){ XWindow = 0, YWindow = 0, WindowWidth = (UInt32Value)26940U, WindowHeight = (UInt32Value)15120U }; bookViews1.Append(workbookView1); Sheets sheets1 = new Sheets(); Sheet sheet1 = new Sheet(){ Name = "Sheet1", SheetId = (UInt32Value)1U, Id = "rId1" }; sheets1.Append(sheet1); CalculationProperties calculationProperties1 = new CalculationProperties(){ CalculationId = (UInt32Value)152511U }; WorkbookExtensionList workbookExtensionList1 = new WorkbookExtensionList(); WorkbookExtension workbookExtension1 = new WorkbookExtension(){ Uri = "{140A7094-0E35-4892-8432-C4D2E57EDEB5}" }; workbookExtension1.AddNamespaceDeclaration("x15", "http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"); X15.WorkbookProperties workbookProperties2 = new X15.WorkbookProperties(){ ChartTrackingReferenceBase = true }; workbookExtension1.Append(workbookProperties2); workbookExtensionList1.Append(workbookExtension1); workbook1.Append(fileVersion1); workbook1.Append(workbookProperties1); workbook1.Append(alternateContent1); workbook1.Append(bookViews1); workbook1.Append(sheets1); workbook1.Append(calculationProperties1); workbook1.Append(workbookExtensionList1); workbookPart1.Workbook = workbook1; }
// Generates content of chartPart1. private void GenerateChartPart1Content(ChartPart chartPart1) { C.ChartSpace chartSpace1 = new C.ChartSpace(); chartSpace1.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart"); chartSpace1.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); chartSpace1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); C.Date1904 date19041 = new C.Date1904() { Val = false }; C.EditingLanguage editingLanguage1 = new C.EditingLanguage() { Val = "en-US" }; C.RoundedCorners roundedCorners1 = new C.RoundedCorners() { Val = false }; AlternateContent alternateContent1 = new AlternateContent(); alternateContent1.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); AlternateContentChoice alternateContentChoice1 = new AlternateContentChoice() { Requires = "c14" }; alternateContentChoice1.AddNamespaceDeclaration("c14", "http://schemas.microsoft.com/office/drawing/2007/8/2/chart"); C14.Style style50 = new C14.Style() { Val = 102 }; alternateContentChoice1.Append(style50); AlternateContentFallback alternateContentFallback1 = new AlternateContentFallback(); C.Style style51 = new C.Style() { Val = 2 }; alternateContentFallback1.Append(style51); alternateContent1.Append(alternateContentChoice1); alternateContent1.Append(alternateContentFallback1); C.Chart chart1 = new C.Chart(); C.Title title2 = new C.Title(); C.Layout layout1 = new C.Layout(); C.Overlay overlay1 = new C.Overlay() { Val = false }; C.ChartShapeProperties chartShapeProperties1 = new C.ChartShapeProperties(); A.NoFill noFill2 = new A.NoFill(); A.Outline outline13 = new A.Outline(); A.NoFill noFill3 = new A.NoFill(); outline13.Append(noFill3); A.EffectList effectList12 = new A.EffectList(); chartShapeProperties1.Append(noFill2); chartShapeProperties1.Append(outline13); chartShapeProperties1.Append(effectList12); C.TextProperties textProperties50 = new C.TextProperties(); A.BodyProperties bodyProperties25 = new A.BodyProperties() { Rotation = 0, UseParagraphSpacing = true, VerticalOverflow = A.TextVerticalOverflowValues.Ellipsis, Vertical = A.TextVerticalValues.Horizontal, Wrap = A.TextWrappingValues.Square, Anchor = A.TextAnchoringTypeValues.Center, AnchorCenter = true }; A.ListStyle listStyle25 = new A.ListStyle(); A.Paragraph paragraph25 = new A.Paragraph(); A.ParagraphProperties paragraphProperties8 = new A.ParagraphProperties(); A.DefaultRunProperties defaultRunProperties1 = new A.DefaultRunProperties() { FontSize = 1400, Bold = false, Italic = false, Underline = A.TextUnderlineValues.None, Strike = A.TextStrikeValues.NoStrike, Kerning = 1200, Spacing = 0, Baseline = 0 }; A.SolidFill solidFill24 = new A.SolidFill(); A.SchemeColor schemeColor197 = new A.SchemeColor() { Val = A.SchemeColorValues.Text1 }; A.LuminanceModulation luminanceModulation4 = new A.LuminanceModulation() { Val = 65000 }; A.LuminanceOffset luminanceOffset14 = new A.LuminanceOffset() { Val = 35000 }; schemeColor197.Append(luminanceModulation4); schemeColor197.Append(luminanceOffset14); solidFill24.Append(schemeColor197); A.LatinFont latinFont3 = new A.LatinFont() { Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont3 = new A.EastAsianFont() { Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont3 = new A.ComplexScriptFont() { Typeface = "+mn-cs" }; defaultRunProperties1.Append(solidFill24); defaultRunProperties1.Append(latinFont3); defaultRunProperties1.Append(eastAsianFont3); defaultRunProperties1.Append(complexScriptFont3); paragraphProperties8.Append(defaultRunProperties1); A.EndParagraphRunProperties endParagraphRunProperties14 = new A.EndParagraphRunProperties() { Language = "en-US" }; paragraph25.Append(paragraphProperties8); paragraph25.Append(endParagraphRunProperties14); textProperties50.Append(bodyProperties25); textProperties50.Append(listStyle25); textProperties50.Append(paragraph25); title2.Append(layout1); title2.Append(overlay1); title2.Append(chartShapeProperties1); title2.Append(textProperties50); C.AutoTitleDeleted autoTitleDeleted1 = new C.AutoTitleDeleted() { Val = false }; C.PlotArea plotArea1 = new C.PlotArea(); C.Layout layout2 = new C.Layout(); C.BarChart barChart1 = new C.BarChart(); C.BarDirection barDirection1 = new C.BarDirection() { Val = C.BarDirectionValues.Column }; C.BarGrouping barGrouping1 = new C.BarGrouping() { Val = C.BarGroupingValues.Clustered }; C.VaryColors varyColors1 = new C.VaryColors() { Val = false }; C.BarChartSeries barChartSeries1 = new C.BarChartSeries(); C.Index index1 = new C.Index() { Val = (UInt32Value)0U }; C.Order order1 = new C.Order() { Val = (UInt32Value)0U }; C.ChartShapeProperties chartShapeProperties2 = new C.ChartShapeProperties(); A.SolidFill solidFill25 = new A.SolidFill(); A.SchemeColor schemeColor198 = new A.SchemeColor() { Val = A.SchemeColorValues.Accent1 }; solidFill25.Append(schemeColor198); A.Outline outline14 = new A.Outline(); A.NoFill noFill4 = new A.NoFill(); outline14.Append(noFill4); A.EffectList effectList13 = new A.EffectList(); chartShapeProperties2.Append(solidFill25); chartShapeProperties2.Append(outline14); chartShapeProperties2.Append(effectList13); C.InvertIfNegative invertIfNegative1 = new C.InvertIfNegative() { Val = false }; C.Values values1 = new C.Values(); C.NumberReference numberReference1 = new C.NumberReference(); C.Formula formula1 = new C.Formula(); formula1.Text = "Sheet1!$A$1:$A$5"; C.NumberingCache numberingCache1 = new C.NumberingCache(); C.FormatCode formatCode1 = new C.FormatCode(); formatCode1.Text = "General"; C.PointCount pointCount1 = new C.PointCount() { Val = (UInt32Value)5U }; C.NumericPoint numericPoint1 = new C.NumericPoint() { Index = (UInt32Value)0U }; C.NumericValue numericValue1 = new C.NumericValue(); numericValue1.Text = "1"; numericPoint1.Append(numericValue1); C.NumericPoint numericPoint2 = new C.NumericPoint() { Index = (UInt32Value)1U }; C.NumericValue numericValue2 = new C.NumericValue(); numericValue2.Text = "2"; numericPoint2.Append(numericValue2); C.NumericPoint numericPoint3 = new C.NumericPoint() { Index = (UInt32Value)2U }; C.NumericValue numericValue3 = new C.NumericValue(); numericValue3.Text = "3"; numericPoint3.Append(numericValue3); C.NumericPoint numericPoint4 = new C.NumericPoint() { Index = (UInt32Value)3U }; C.NumericValue numericValue4 = new C.NumericValue(); numericValue4.Text = "4"; numericPoint4.Append(numericValue4); C.NumericPoint numericPoint5 = new C.NumericPoint() { Index = (UInt32Value)4U }; C.NumericValue numericValue5 = new C.NumericValue(); numericValue5.Text = "5"; numericPoint5.Append(numericValue5); numberingCache1.Append(formatCode1); numberingCache1.Append(pointCount1); numberingCache1.Append(numericPoint1); numberingCache1.Append(numericPoint2); numberingCache1.Append(numericPoint3); numberingCache1.Append(numericPoint4); numberingCache1.Append(numericPoint5); numberReference1.Append(formula1); numberReference1.Append(numberingCache1); values1.Append(numberReference1); barChartSeries1.Append(index1); barChartSeries1.Append(order1); barChartSeries1.Append(chartShapeProperties2); barChartSeries1.Append(invertIfNegative1); barChartSeries1.Append(values1); C.DataLabels dataLabels1 = new C.DataLabels(); C.ShowLegendKey showLegendKey1 = new C.ShowLegendKey() { Val = false }; C.ShowValue showValue1 = new C.ShowValue() { Val = false }; C.ShowCategoryName showCategoryName1 = new C.ShowCategoryName() { Val = false }; C.ShowSeriesName showSeriesName1 = new C.ShowSeriesName() { Val = false }; C.ShowPercent showPercent1 = new C.ShowPercent() { Val = false }; C.ShowBubbleSize showBubbleSize1 = new C.ShowBubbleSize() { Val = false }; dataLabels1.Append(showLegendKey1); dataLabels1.Append(showValue1); dataLabels1.Append(showCategoryName1); dataLabels1.Append(showSeriesName1); dataLabels1.Append(showPercent1); dataLabels1.Append(showBubbleSize1); C.GapWidth gapWidth1 = new C.GapWidth() { Val = (UInt16Value)219U }; C.Overlap overlap1 = new C.Overlap() { Val = -27 }; C.AxisId axisId1 = new C.AxisId() { Val = (UInt32Value)414168296U }; C.AxisId axisId2 = new C.AxisId() { Val = (UInt32Value)415864936U }; barChart1.Append(barDirection1); barChart1.Append(barGrouping1); barChart1.Append(varyColors1); barChart1.Append(barChartSeries1); barChart1.Append(dataLabels1); barChart1.Append(gapWidth1); barChart1.Append(overlap1); barChart1.Append(axisId1); barChart1.Append(axisId2); C.CategoryAxis categoryAxis1 = new C.CategoryAxis(); C.AxisId axisId3 = new C.AxisId() { Val = (UInt32Value)414168296U }; C.Scaling scaling1 = new C.Scaling(); C.Orientation orientation1 = new C.Orientation() { Val = C.OrientationValues.MinMax }; scaling1.Append(orientation1); C.Delete delete1 = new C.Delete() { Val = false }; C.AxisPosition axisPosition1 = new C.AxisPosition() { Val = C.AxisPositionValues.Bottom }; C.NumberingFormat numberingFormat1 = new C.NumberingFormat() { FormatCode = "General", SourceLinked = true }; C.MajorTickMark majorTickMark1 = new C.MajorTickMark() { Val = C.TickMarkValues.None }; C.MinorTickMark minorTickMark1 = new C.MinorTickMark() { Val = C.TickMarkValues.None }; C.TickLabelPosition tickLabelPosition1 = new C.TickLabelPosition() { Val = C.TickLabelPositionValues.NextTo }; C.ChartShapeProperties chartShapeProperties3 = new C.ChartShapeProperties(); A.NoFill noFill5 = new A.NoFill(); A.Outline outline15 = new A.Outline() { Width = 9525, CapType = A.LineCapValues.Flat, CompoundLineType = A.CompoundLineValues.Single, Alignment = A.PenAlignmentValues.Center }; A.SolidFill solidFill26 = new A.SolidFill(); A.SchemeColor schemeColor199 = new A.SchemeColor() { Val = A.SchemeColorValues.Text1 }; A.LuminanceModulation luminanceModulation5 = new A.LuminanceModulation() { Val = 15000 }; A.LuminanceOffset luminanceOffset15 = new A.LuminanceOffset() { Val = 85000 }; schemeColor199.Append(luminanceModulation5); schemeColor199.Append(luminanceOffset15); solidFill26.Append(schemeColor199); A.Round round1 = new A.Round(); outline15.Append(solidFill26); outline15.Append(round1); A.EffectList effectList14 = new A.EffectList(); chartShapeProperties3.Append(noFill5); chartShapeProperties3.Append(outline15); chartShapeProperties3.Append(effectList14); C.TextProperties textProperties51 = new C.TextProperties(); A.BodyProperties bodyProperties26 = new A.BodyProperties() { Rotation = -60000000, UseParagraphSpacing = true, VerticalOverflow = A.TextVerticalOverflowValues.Ellipsis, Vertical = A.TextVerticalValues.Horizontal, Wrap = A.TextWrappingValues.Square, Anchor = A.TextAnchoringTypeValues.Center, AnchorCenter = true }; A.ListStyle listStyle26 = new A.ListStyle(); A.Paragraph paragraph26 = new A.Paragraph(); A.ParagraphProperties paragraphProperties9 = new A.ParagraphProperties(); A.DefaultRunProperties defaultRunProperties2 = new A.DefaultRunProperties() { FontSize = 900, Bold = false, Italic = false, Underline = A.TextUnderlineValues.None, Strike = A.TextStrikeValues.NoStrike, Kerning = 1200, Baseline = 0 }; A.SolidFill solidFill27 = new A.SolidFill(); A.SchemeColor schemeColor200 = new A.SchemeColor() { Val = A.SchemeColorValues.Text1 }; A.LuminanceModulation luminanceModulation6 = new A.LuminanceModulation() { Val = 65000 }; A.LuminanceOffset luminanceOffset16 = new A.LuminanceOffset() { Val = 35000 }; schemeColor200.Append(luminanceModulation6); schemeColor200.Append(luminanceOffset16); solidFill27.Append(schemeColor200); A.LatinFont latinFont4 = new A.LatinFont() { Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont4 = new A.EastAsianFont() { Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont4 = new A.ComplexScriptFont() { Typeface = "+mn-cs" }; defaultRunProperties2.Append(solidFill27); defaultRunProperties2.Append(latinFont4); defaultRunProperties2.Append(eastAsianFont4); defaultRunProperties2.Append(complexScriptFont4); paragraphProperties9.Append(defaultRunProperties2); A.EndParagraphRunProperties endParagraphRunProperties15 = new A.EndParagraphRunProperties() { Language = "en-US" }; paragraph26.Append(paragraphProperties9); paragraph26.Append(endParagraphRunProperties15); textProperties51.Append(bodyProperties26); textProperties51.Append(listStyle26); textProperties51.Append(paragraph26); C.CrossingAxis crossingAxis1 = new C.CrossingAxis() { Val = (UInt32Value)415864936U }; C.Crosses crosses1 = new C.Crosses() { Val = C.CrossesValues.AutoZero }; C.AutoLabeled autoLabeled1 = new C.AutoLabeled() { Val = true }; C.LabelAlignment labelAlignment1 = new C.LabelAlignment() { Val = C.LabelAlignmentValues.Center }; C.LabelOffset labelOffset1 = new C.LabelOffset() { Val = (UInt16Value)100U }; C.NoMultiLevelLabels noMultiLevelLabels1 = new C.NoMultiLevelLabels() { Val = false }; categoryAxis1.Append(axisId3); categoryAxis1.Append(scaling1); categoryAxis1.Append(delete1); categoryAxis1.Append(axisPosition1); categoryAxis1.Append(numberingFormat1); categoryAxis1.Append(majorTickMark1); categoryAxis1.Append(minorTickMark1); categoryAxis1.Append(tickLabelPosition1); categoryAxis1.Append(chartShapeProperties3); categoryAxis1.Append(textProperties51); categoryAxis1.Append(crossingAxis1); categoryAxis1.Append(crosses1); categoryAxis1.Append(autoLabeled1); categoryAxis1.Append(labelAlignment1); categoryAxis1.Append(labelOffset1); categoryAxis1.Append(noMultiLevelLabels1); C.ValueAxis valueAxis1 = new C.ValueAxis(); C.AxisId axisId4 = new C.AxisId() { Val = (UInt32Value)415864936U }; C.Scaling scaling2 = new C.Scaling(); C.Orientation orientation2 = new C.Orientation() { Val = C.OrientationValues.MinMax }; scaling2.Append(orientation2); C.Delete delete2 = new C.Delete() { Val = false }; C.AxisPosition axisPosition2 = new C.AxisPosition() { Val = C.AxisPositionValues.Left }; C.MajorGridlines majorGridlines1 = new C.MajorGridlines(); C.ChartShapeProperties chartShapeProperties4 = new C.ChartShapeProperties(); A.Outline outline16 = new A.Outline() { Width = 9525, CapType = A.LineCapValues.Flat, CompoundLineType = A.CompoundLineValues.Single, Alignment = A.PenAlignmentValues.Center }; A.SolidFill solidFill28 = new A.SolidFill(); A.SchemeColor schemeColor201 = new A.SchemeColor() { Val = A.SchemeColorValues.Text1 }; A.LuminanceModulation luminanceModulation7 = new A.LuminanceModulation() { Val = 15000 }; A.LuminanceOffset luminanceOffset17 = new A.LuminanceOffset() { Val = 85000 }; schemeColor201.Append(luminanceModulation7); schemeColor201.Append(luminanceOffset17); solidFill28.Append(schemeColor201); A.Round round2 = new A.Round(); outline16.Append(solidFill28); outline16.Append(round2); A.EffectList effectList15 = new A.EffectList(); chartShapeProperties4.Append(outline16); chartShapeProperties4.Append(effectList15); majorGridlines1.Append(chartShapeProperties4); C.NumberingFormat numberingFormat2 = new C.NumberingFormat() { FormatCode = "General", SourceLinked = true }; C.MajorTickMark majorTickMark2 = new C.MajorTickMark() { Val = C.TickMarkValues.None }; C.MinorTickMark minorTickMark2 = new C.MinorTickMark() { Val = C.TickMarkValues.None }; C.TickLabelPosition tickLabelPosition2 = new C.TickLabelPosition() { Val = C.TickLabelPositionValues.NextTo }; C.ChartShapeProperties chartShapeProperties5 = new C.ChartShapeProperties(); A.NoFill noFill6 = new A.NoFill(); A.Outline outline17 = new A.Outline(); A.NoFill noFill7 = new A.NoFill(); outline17.Append(noFill7); A.EffectList effectList16 = new A.EffectList(); chartShapeProperties5.Append(noFill6); chartShapeProperties5.Append(outline17); chartShapeProperties5.Append(effectList16); C.TextProperties textProperties52 = new C.TextProperties(); A.BodyProperties bodyProperties27 = new A.BodyProperties() { Rotation = -60000000, UseParagraphSpacing = true, VerticalOverflow = A.TextVerticalOverflowValues.Ellipsis, Vertical = A.TextVerticalValues.Horizontal, Wrap = A.TextWrappingValues.Square, Anchor = A.TextAnchoringTypeValues.Center, AnchorCenter = true }; A.ListStyle listStyle27 = new A.ListStyle(); A.Paragraph paragraph27 = new A.Paragraph(); A.ParagraphProperties paragraphProperties10 = new A.ParagraphProperties(); A.DefaultRunProperties defaultRunProperties3 = new A.DefaultRunProperties() { FontSize = 900, Bold = false, Italic = false, Underline = A.TextUnderlineValues.None, Strike = A.TextStrikeValues.NoStrike, Kerning = 1200, Baseline = 0 }; A.SolidFill solidFill29 = new A.SolidFill(); A.SchemeColor schemeColor202 = new A.SchemeColor() { Val = A.SchemeColorValues.Text1 }; A.LuminanceModulation luminanceModulation8 = new A.LuminanceModulation() { Val = 65000 }; A.LuminanceOffset luminanceOffset18 = new A.LuminanceOffset() { Val = 35000 }; schemeColor202.Append(luminanceModulation8); schemeColor202.Append(luminanceOffset18); solidFill29.Append(schemeColor202); A.LatinFont latinFont5 = new A.LatinFont() { Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont5 = new A.EastAsianFont() { Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont5 = new A.ComplexScriptFont() { Typeface = "+mn-cs" }; defaultRunProperties3.Append(solidFill29); defaultRunProperties3.Append(latinFont5); defaultRunProperties3.Append(eastAsianFont5); defaultRunProperties3.Append(complexScriptFont5); paragraphProperties10.Append(defaultRunProperties3); A.EndParagraphRunProperties endParagraphRunProperties16 = new A.EndParagraphRunProperties() { Language = "en-US" }; paragraph27.Append(paragraphProperties10); paragraph27.Append(endParagraphRunProperties16); textProperties52.Append(bodyProperties27); textProperties52.Append(listStyle27); textProperties52.Append(paragraph27); C.CrossingAxis crossingAxis2 = new C.CrossingAxis() { Val = (UInt32Value)414168296U }; C.Crosses crosses2 = new C.Crosses() { Val = C.CrossesValues.AutoZero }; C.CrossBetween crossBetween1 = new C.CrossBetween() { Val = C.CrossBetweenValues.Between }; valueAxis1.Append(axisId4); valueAxis1.Append(scaling2); valueAxis1.Append(delete2); valueAxis1.Append(axisPosition2); valueAxis1.Append(majorGridlines1); valueAxis1.Append(numberingFormat2); valueAxis1.Append(majorTickMark2); valueAxis1.Append(minorTickMark2); valueAxis1.Append(tickLabelPosition2); valueAxis1.Append(chartShapeProperties5); valueAxis1.Append(textProperties52); valueAxis1.Append(crossingAxis2); valueAxis1.Append(crosses2); valueAxis1.Append(crossBetween1); C.ShapeProperties shapeProperties36 = new C.ShapeProperties(); A.NoFill noFill8 = new A.NoFill(); A.Outline outline18 = new A.Outline(); A.NoFill noFill9 = new A.NoFill(); outline18.Append(noFill9); A.EffectList effectList17 = new A.EffectList(); shapeProperties36.Append(noFill8); shapeProperties36.Append(outline18); shapeProperties36.Append(effectList17); plotArea1.Append(layout2); plotArea1.Append(barChart1); plotArea1.Append(categoryAxis1); plotArea1.Append(valueAxis1); plotArea1.Append(shapeProperties36); C.PlotVisibleOnly plotVisibleOnly1 = new C.PlotVisibleOnly() { Val = true }; C.DisplayBlanksAs displayBlanksAs1 = new C.DisplayBlanksAs() { Val = C.DisplayBlanksAsValues.Gap }; C.ShowDataLabelsOverMaximum showDataLabelsOverMaximum1 = new C.ShowDataLabelsOverMaximum() { Val = false }; chart1.Append(title2); chart1.Append(autoTitleDeleted1); chart1.Append(plotArea1); chart1.Append(plotVisibleOnly1); chart1.Append(displayBlanksAs1); chart1.Append(showDataLabelsOverMaximum1); C.ShapeProperties shapeProperties37 = new C.ShapeProperties(); A.SolidFill solidFill30 = new A.SolidFill(); A.SchemeColor schemeColor203 = new A.SchemeColor() { Val = A.SchemeColorValues.Background1 }; solidFill30.Append(schemeColor203); A.Outline outline19 = new A.Outline() { Width = 9525, CapType = A.LineCapValues.Flat, CompoundLineType = A.CompoundLineValues.Single, Alignment = A.PenAlignmentValues.Center }; A.SolidFill solidFill31 = new A.SolidFill(); A.SchemeColor schemeColor204 = new A.SchemeColor() { Val = A.SchemeColorValues.Text1 }; A.LuminanceModulation luminanceModulation9 = new A.LuminanceModulation() { Val = 15000 }; A.LuminanceOffset luminanceOffset19 = new A.LuminanceOffset() { Val = 85000 }; schemeColor204.Append(luminanceModulation9); schemeColor204.Append(luminanceOffset19); solidFill31.Append(schemeColor204); A.Round round3 = new A.Round(); outline19.Append(solidFill31); outline19.Append(round3); A.EffectList effectList18 = new A.EffectList(); shapeProperties37.Append(solidFill30); shapeProperties37.Append(outline19); shapeProperties37.Append(effectList18); C.TextProperties textProperties53 = new C.TextProperties(); A.BodyProperties bodyProperties28 = new A.BodyProperties(); A.ListStyle listStyle28 = new A.ListStyle(); A.Paragraph paragraph28 = new A.Paragraph(); A.ParagraphProperties paragraphProperties11 = new A.ParagraphProperties(); A.DefaultRunProperties defaultRunProperties4 = new A.DefaultRunProperties(); paragraphProperties11.Append(defaultRunProperties4); A.EndParagraphRunProperties endParagraphRunProperties17 = new A.EndParagraphRunProperties() { Language = "en-US" }; paragraph28.Append(paragraphProperties11); paragraph28.Append(endParagraphRunProperties17); textProperties53.Append(bodyProperties28); textProperties53.Append(listStyle28); textProperties53.Append(paragraph28); C.PrintSettings printSettings1 = new C.PrintSettings(); C.HeaderFooter headerFooter1 = new C.HeaderFooter(); C.PageMargins pageMargins3 = new C.PageMargins() { Left = 0.7D, Right = 0.7D, Top = 0.75D, Bottom = 0.75D, Header = 0.3D, Footer = 0.3D }; C.PageSetup pageSetup2 = new C.PageSetup(); printSettings1.Append(headerFooter1); printSettings1.Append(pageMargins3); printSettings1.Append(pageSetup2); chartSpace1.Append(date19041); chartSpace1.Append(editingLanguage1); chartSpace1.Append(roundedCorners1); chartSpace1.Append(alternateContent1); chartSpace1.Append(chart1); chartSpace1.Append(shapeProperties37); chartSpace1.Append(textProperties53); chartSpace1.Append(printSettings1); chartPart1.ChartSpace = chartSpace1; }
// Generates content of drawingsPart1. private void GenerateDrawingsPart1Content(DrawingsPart drawingsPart1) { Xdr.WorksheetDrawing worksheetDrawing1 = new Xdr.WorksheetDrawing(); worksheetDrawing1.AddNamespaceDeclaration("xdr", "http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"); worksheetDrawing1.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); Xdr.TwoCellAnchor twoCellAnchor1 = new Xdr.TwoCellAnchor(){ EditAs = Xdr.EditAsValues.Absolute }; Xdr.FromMarker fromMarker1 = new Xdr.FromMarker(); Xdr.ColumnId columnId1 = new Xdr.ColumnId(); columnId1.Text = "0"; Xdr.ColumnOffset columnOffset1 = new Xdr.ColumnOffset(); columnOffset1.Text = "0"; Xdr.RowId rowId1 = new Xdr.RowId(); rowId1.Text = "5"; Xdr.RowOffset rowOffset1 = new Xdr.RowOffset(); rowOffset1.Text = "161925"; fromMarker1.Append(columnId1); fromMarker1.Append(columnOffset1); fromMarker1.Append(rowId1); fromMarker1.Append(rowOffset1); Xdr.ToMarker toMarker1 = new Xdr.ToMarker(); Xdr.ColumnId columnId2 = new Xdr.ColumnId(); columnId2.Text = "2"; Xdr.ColumnOffset columnOffset2 = new Xdr.ColumnOffset(); columnOffset2.Text = "209550"; Xdr.RowId rowId2 = new Xdr.RowId(); rowId2.Text = "19"; Xdr.RowOffset rowOffset2 = new Xdr.RowOffset(); rowOffset2.Text = "142875"; toMarker1.Append(columnId2); toMarker1.Append(columnOffset2); toMarker1.Append(rowId2); toMarker1.Append(rowOffset2); AlternateContent alternateContent2 = new AlternateContent(); alternateContent2.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); alternateContent2.AddNamespaceDeclaration("a15", "http://schemas.microsoft.com/office/drawing/2012/main"); AlternateContentChoice alternateContentChoice2 = new AlternateContentChoice(){ Requires = "a15" }; Xdr.GraphicFrame graphicFrame1 = new Xdr.GraphicFrame(){ Macro = "" }; Xdr.NonVisualGraphicFrameProperties nonVisualGraphicFrameProperties1 = new Xdr.NonVisualGraphicFrameProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties1 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)2U, Name = "Slicer_1" }; Xdr.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties1 = new Xdr.NonVisualGraphicFrameDrawingProperties(); nonVisualGraphicFrameProperties1.Append(nonVisualDrawingProperties1); nonVisualGraphicFrameProperties1.Append(nonVisualGraphicFrameDrawingProperties1); Xdr.Transform transform1 = new Xdr.Transform(); A.Offset offset1 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents1 = new A.Extents(){ Cx = 0L, Cy = 0L }; transform1.Append(offset1); transform1.Append(extents1); A.Graphic graphic1 = new A.Graphic(); A.GraphicData graphicData1 = new A.GraphicData(){ Uri = "http://schemas.microsoft.com/office/drawing/2010/slicer" }; Sle.Slicer slicer1 = new Sle.Slicer(){ Name = "Slicer_1" }; slicer1.AddNamespaceDeclaration("sle", "http://schemas.microsoft.com/office/drawing/2010/slicer"); graphicData1.Append(slicer1); graphic1.Append(graphicData1); graphicFrame1.Append(nonVisualGraphicFrameProperties1); graphicFrame1.Append(transform1); graphicFrame1.Append(graphic1); alternateContentChoice2.Append(graphicFrame1); AlternateContentFallback alternateContentFallback1 = new AlternateContentFallback(); Xdr.Shape shape1 = new Xdr.Shape(){ Macro = "", TextLink = "" }; Xdr.NonVisualShapeProperties nonVisualShapeProperties1 = new Xdr.NonVisualShapeProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties2 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)0U, Name = "" }; Xdr.NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties1 = new Xdr.NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks1 = new A.ShapeLocks(){ NoTextEdit = true }; nonVisualShapeDrawingProperties1.Append(shapeLocks1); nonVisualShapeProperties1.Append(nonVisualDrawingProperties2); nonVisualShapeProperties1.Append(nonVisualShapeDrawingProperties1); Xdr.ShapeProperties shapeProperties1 = new Xdr.ShapeProperties(); A.Transform2D transform2D1 = new A.Transform2D(); A.Offset offset2 = new A.Offset(){ X = 0L, Y = 1019175L }; A.Extents extents2 = new A.Extents(){ Cx = 1828800L, Cy = 2381250L }; transform2D1.Append(offset2); transform2D1.Append(extents2); A.PresetGeometry presetGeometry1 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList1 = new A.AdjustValueList(); presetGeometry1.Append(adjustValueList1); A.SolidFill solidFill1 = new A.SolidFill(); A.PresetColor presetColor1 = new A.PresetColor(){ Val = A.PresetColorValues.White }; solidFill1.Append(presetColor1); A.Outline outline1 = new A.Outline(){ Width = 1 }; A.SolidFill solidFill2 = new A.SolidFill(); A.PresetColor presetColor2 = new A.PresetColor(){ Val = A.PresetColorValues.Green }; solidFill2.Append(presetColor2); outline1.Append(solidFill2); shapeProperties1.Append(transform2D1); shapeProperties1.Append(presetGeometry1); shapeProperties1.Append(solidFill1); shapeProperties1.Append(outline1); Xdr.TextBody textBody1 = new Xdr.TextBody(); A.BodyProperties bodyProperties1 = new A.BodyProperties(){ VerticalOverflow = A.TextVerticalOverflowValues.Clip, HorizontalOverflow = A.TextHorizontalOverflowValues.Clip }; A.ListStyle listStyle1 = new A.ListStyle(); A.Paragraph paragraph1 = new A.Paragraph(); A.Run run1 = new A.Run(); A.RunProperties runProperties1 = new A.RunProperties(){ Language = "ja-JP", AlternativeLanguage = "en-US", FontSize = 1100 }; A.Text text16 = new A.Text(); text16.Text = "This shape represents a table slicer. Table slicers can be used in at least Excel 15.\n\nIf the shape was modified in an earlier version of Excel, or if the workbook was saved in Excel 2010 or earlier, the slicer cannot be used."; run1.Append(runProperties1); run1.Append(text16); paragraph1.Append(run1); textBody1.Append(bodyProperties1); textBody1.Append(listStyle1); textBody1.Append(paragraph1); shape1.Append(nonVisualShapeProperties1); shape1.Append(shapeProperties1); shape1.Append(textBody1); alternateContentFallback1.Append(shape1); alternateContent2.Append(alternateContentChoice2); alternateContent2.Append(alternateContentFallback1); Xdr.ClientData clientData1 = new Xdr.ClientData(); twoCellAnchor1.Append(fromMarker1); twoCellAnchor1.Append(toMarker1); twoCellAnchor1.Append(alternateContent2); twoCellAnchor1.Append(clientData1); Xdr.TwoCellAnchor twoCellAnchor2 = new Xdr.TwoCellAnchor(){ EditAs = Xdr.EditAsValues.Absolute }; Xdr.FromMarker fromMarker2 = new Xdr.FromMarker(); Xdr.ColumnId columnId3 = new Xdr.ColumnId(); columnId3.Text = "3"; Xdr.ColumnOffset columnOffset3 = new Xdr.ColumnOffset(); columnOffset3.Text = "0"; Xdr.RowId rowId3 = new Xdr.RowId(); rowId3.Text = "6"; Xdr.RowOffset rowOffset3 = new Xdr.RowOffset(); rowOffset3.Text = "0"; fromMarker2.Append(columnId3); fromMarker2.Append(columnOffset3); fromMarker2.Append(rowId3); fromMarker2.Append(rowOffset3); Xdr.ToMarker toMarker2 = new Xdr.ToMarker(); Xdr.ColumnId columnId4 = new Xdr.ColumnId(); columnId4.Text = "5"; Xdr.ColumnOffset columnOffset4 = new Xdr.ColumnOffset(); columnOffset4.Text = "333375"; Xdr.RowId rowId4 = new Xdr.RowId(); rowId4.Text = "19"; Xdr.RowOffset rowOffset4 = new Xdr.RowOffset(); rowOffset4.Text = "152400"; toMarker2.Append(columnId4); toMarker2.Append(columnOffset4); toMarker2.Append(rowId4); toMarker2.Append(rowOffset4); AlternateContent alternateContent3 = new AlternateContent(); alternateContent3.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); alternateContent3.AddNamespaceDeclaration("a15", "http://schemas.microsoft.com/office/drawing/2012/main"); AlternateContentChoice alternateContentChoice3 = new AlternateContentChoice(){ Requires = "a15" }; Xdr.GraphicFrame graphicFrame2 = new Xdr.GraphicFrame(){ Macro = "" }; Xdr.NonVisualGraphicFrameProperties nonVisualGraphicFrameProperties2 = new Xdr.NonVisualGraphicFrameProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties3 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)3U, Name = "Slicer_2" }; Xdr.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties2 = new Xdr.NonVisualGraphicFrameDrawingProperties(); nonVisualGraphicFrameProperties2.Append(nonVisualDrawingProperties3); nonVisualGraphicFrameProperties2.Append(nonVisualGraphicFrameDrawingProperties2); Xdr.Transform transform2 = new Xdr.Transform(); A.Offset offset3 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents3 = new A.Extents(){ Cx = 0L, Cy = 0L }; transform2.Append(offset3); transform2.Append(extents3); A.Graphic graphic2 = new A.Graphic(); A.GraphicData graphicData2 = new A.GraphicData(){ Uri = "http://schemas.microsoft.com/office/drawing/2010/slicer" }; Sle.Slicer slicer2 = new Sle.Slicer(){ Name = "Slicer_2" }; slicer2.AddNamespaceDeclaration("sle", "http://schemas.microsoft.com/office/drawing/2010/slicer"); graphicData2.Append(slicer2); graphic2.Append(graphicData2); graphicFrame2.Append(nonVisualGraphicFrameProperties2); graphicFrame2.Append(transform2); graphicFrame2.Append(graphic2); alternateContentChoice3.Append(graphicFrame2); AlternateContentFallback alternateContentFallback2 = new AlternateContentFallback(); Xdr.Shape shape2 = new Xdr.Shape(){ Macro = "", TextLink = "" }; Xdr.NonVisualShapeProperties nonVisualShapeProperties2 = new Xdr.NonVisualShapeProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties4 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)0U, Name = "" }; Xdr.NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties2 = new Xdr.NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks2 = new A.ShapeLocks(){ NoTextEdit = true }; nonVisualShapeDrawingProperties2.Append(shapeLocks2); nonVisualShapeProperties2.Append(nonVisualDrawingProperties4); nonVisualShapeProperties2.Append(nonVisualShapeDrawingProperties2); Xdr.ShapeProperties shapeProperties2 = new Xdr.ShapeProperties(); A.Transform2D transform2D2 = new A.Transform2D(); A.Offset offset4 = new A.Offset(){ X = 2428875L, Y = 1028700L }; A.Extents extents4 = new A.Extents(){ Cx = 1828800L, Cy = 2381250L }; transform2D2.Append(offset4); transform2D2.Append(extents4); A.PresetGeometry presetGeometry2 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList2 = new A.AdjustValueList(); presetGeometry2.Append(adjustValueList2); A.SolidFill solidFill3 = new A.SolidFill(); A.PresetColor presetColor3 = new A.PresetColor(){ Val = A.PresetColorValues.White }; solidFill3.Append(presetColor3); A.Outline outline2 = new A.Outline(){ Width = 1 }; A.SolidFill solidFill4 = new A.SolidFill(); A.PresetColor presetColor4 = new A.PresetColor(){ Val = A.PresetColorValues.Green }; solidFill4.Append(presetColor4); outline2.Append(solidFill4); shapeProperties2.Append(transform2D2); shapeProperties2.Append(presetGeometry2); shapeProperties2.Append(solidFill3); shapeProperties2.Append(outline2); Xdr.TextBody textBody2 = new Xdr.TextBody(); A.BodyProperties bodyProperties2 = new A.BodyProperties(){ VerticalOverflow = A.TextVerticalOverflowValues.Clip, HorizontalOverflow = A.TextHorizontalOverflowValues.Clip }; A.ListStyle listStyle2 = new A.ListStyle(); A.Paragraph paragraph2 = new A.Paragraph(); A.Run run2 = new A.Run(); A.RunProperties runProperties2 = new A.RunProperties(){ Language = "ja-JP", AlternativeLanguage = "en-US", FontSize = 1100 }; A.Text text17 = new A.Text(); text17.Text = "This shape represents a table slicer. Table slicers can be used in at least Excel 15.\n\nIf the shape was modified in an earlier version of Excel, or if the workbook was saved in Excel 2010 or earlier, the slicer cannot be used."; run2.Append(runProperties2); run2.Append(text17); paragraph2.Append(run2); textBody2.Append(bodyProperties2); textBody2.Append(listStyle2); textBody2.Append(paragraph2); shape2.Append(nonVisualShapeProperties2); shape2.Append(shapeProperties2); shape2.Append(textBody2); alternateContentFallback2.Append(shape2); alternateContent3.Append(alternateContentChoice3); alternateContent3.Append(alternateContentFallback2); Xdr.ClientData clientData2 = new Xdr.ClientData(); twoCellAnchor2.Append(fromMarker2); twoCellAnchor2.Append(toMarker2); twoCellAnchor2.Append(alternateContent3); twoCellAnchor2.Append(clientData2); Xdr.TwoCellAnchor twoCellAnchor3 = new Xdr.TwoCellAnchor(){ EditAs = Xdr.EditAsValues.Absolute }; Xdr.FromMarker fromMarker3 = new Xdr.FromMarker(); Xdr.ColumnId columnId5 = new Xdr.ColumnId(); columnId5.Text = "6"; Xdr.ColumnOffset columnOffset5 = new Xdr.ColumnOffset(); columnOffset5.Text = "0"; Xdr.RowId rowId5 = new Xdr.RowId(); rowId5.Text = "6"; Xdr.RowOffset rowOffset5 = new Xdr.RowOffset(); rowOffset5.Text = "9525"; fromMarker3.Append(columnId5); fromMarker3.Append(columnOffset5); fromMarker3.Append(rowId5); fromMarker3.Append(rowOffset5); Xdr.ToMarker toMarker3 = new Xdr.ToMarker(); Xdr.ColumnId columnId6 = new Xdr.ColumnId(); columnId6.Text = "8"; Xdr.ColumnOffset columnOffset6 = new Xdr.ColumnOffset(); columnOffset6.Text = "333375"; Xdr.RowId rowId6 = new Xdr.RowId(); rowId6.Text = "19"; Xdr.RowOffset rowOffset6 = new Xdr.RowOffset(); rowOffset6.Text = "161925"; toMarker3.Append(columnId6); toMarker3.Append(columnOffset6); toMarker3.Append(rowId6); toMarker3.Append(rowOffset6); AlternateContent alternateContent4 = new AlternateContent(); alternateContent4.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); alternateContent4.AddNamespaceDeclaration("a15", "http://schemas.microsoft.com/office/drawing/2012/main"); AlternateContentChoice alternateContentChoice4 = new AlternateContentChoice(){ Requires = "a15" }; Xdr.GraphicFrame graphicFrame3 = new Xdr.GraphicFrame(){ Macro = "" }; Xdr.NonVisualGraphicFrameProperties nonVisualGraphicFrameProperties3 = new Xdr.NonVisualGraphicFrameProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties5 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)4U, Name = "Slicer_3" }; Xdr.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties3 = new Xdr.NonVisualGraphicFrameDrawingProperties(); nonVisualGraphicFrameProperties3.Append(nonVisualDrawingProperties5); nonVisualGraphicFrameProperties3.Append(nonVisualGraphicFrameDrawingProperties3); Xdr.Transform transform3 = new Xdr.Transform(); A.Offset offset5 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents5 = new A.Extents(){ Cx = 0L, Cy = 0L }; transform3.Append(offset5); transform3.Append(extents5); A.Graphic graphic3 = new A.Graphic(); A.GraphicData graphicData3 = new A.GraphicData(){ Uri = "http://schemas.microsoft.com/office/drawing/2010/slicer" }; Sle.Slicer slicer3 = new Sle.Slicer(){ Name = "Slicer_3" }; slicer3.AddNamespaceDeclaration("sle", "http://schemas.microsoft.com/office/drawing/2010/slicer"); graphicData3.Append(slicer3); graphic3.Append(graphicData3); graphicFrame3.Append(nonVisualGraphicFrameProperties3); graphicFrame3.Append(transform3); graphicFrame3.Append(graphic3); alternateContentChoice4.Append(graphicFrame3); AlternateContentFallback alternateContentFallback3 = new AlternateContentFallback(); Xdr.Shape shape3 = new Xdr.Shape(){ Macro = "", TextLink = "" }; Xdr.NonVisualShapeProperties nonVisualShapeProperties3 = new Xdr.NonVisualShapeProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties6 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)0U, Name = "" }; Xdr.NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties3 = new Xdr.NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks3 = new A.ShapeLocks(){ NoTextEdit = true }; nonVisualShapeDrawingProperties3.Append(shapeLocks3); nonVisualShapeProperties3.Append(nonVisualDrawingProperties6); nonVisualShapeProperties3.Append(nonVisualShapeDrawingProperties3); Xdr.ShapeProperties shapeProperties3 = new Xdr.ShapeProperties(); A.Transform2D transform2D3 = new A.Transform2D(); A.Offset offset6 = new A.Offset(){ X = 4733925L, Y = 1038225L }; A.Extents extents6 = new A.Extents(){ Cx = 1828800L, Cy = 2381250L }; transform2D3.Append(offset6); transform2D3.Append(extents6); A.PresetGeometry presetGeometry3 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList3 = new A.AdjustValueList(); presetGeometry3.Append(adjustValueList3); A.SolidFill solidFill5 = new A.SolidFill(); A.PresetColor presetColor5 = new A.PresetColor(){ Val = A.PresetColorValues.White }; solidFill5.Append(presetColor5); A.Outline outline3 = new A.Outline(){ Width = 1 }; A.SolidFill solidFill6 = new A.SolidFill(); A.PresetColor presetColor6 = new A.PresetColor(){ Val = A.PresetColorValues.Green }; solidFill6.Append(presetColor6); outline3.Append(solidFill6); shapeProperties3.Append(transform2D3); shapeProperties3.Append(presetGeometry3); shapeProperties3.Append(solidFill5); shapeProperties3.Append(outline3); Xdr.TextBody textBody3 = new Xdr.TextBody(); A.BodyProperties bodyProperties3 = new A.BodyProperties(){ VerticalOverflow = A.TextVerticalOverflowValues.Clip, HorizontalOverflow = A.TextHorizontalOverflowValues.Clip }; A.ListStyle listStyle3 = new A.ListStyle(); A.Paragraph paragraph3 = new A.Paragraph(); A.Run run3 = new A.Run(); A.RunProperties runProperties3 = new A.RunProperties(){ Language = "ja-JP", AlternativeLanguage = "en-US", FontSize = 1100 }; A.Text text18 = new A.Text(); text18.Text = "This shape represents a table slicer. Table slicers can be used in at least Excel 15.\n\nIf the shape was modified in an earlier version of Excel, or if the workbook was saved in Excel 2010 or earlier, the slicer cannot be used."; run3.Append(runProperties3); run3.Append(text18); paragraph3.Append(run3); textBody3.Append(bodyProperties3); textBody3.Append(listStyle3); textBody3.Append(paragraph3); shape3.Append(nonVisualShapeProperties3); shape3.Append(shapeProperties3); shape3.Append(textBody3); alternateContentFallback3.Append(shape3); alternateContent4.Append(alternateContentChoice4); alternateContent4.Append(alternateContentFallback3); Xdr.ClientData clientData3 = new Xdr.ClientData(); twoCellAnchor3.Append(fromMarker3); twoCellAnchor3.Append(toMarker3); twoCellAnchor3.Append(alternateContent4); twoCellAnchor3.Append(clientData3); worksheetDrawing1.Append(twoCellAnchor1); worksheetDrawing1.Append(twoCellAnchor2); worksheetDrawing1.Append(twoCellAnchor3); drawingsPart1.WorksheetDrawing = worksheetDrawing1; }
// Generates content of workbookPart1. private void GenerateWorkbookPart1Content(WorkbookPart workbookPart1) { Workbook workbook1 = new Workbook(){ MCAttributes = new MarkupCompatibilityAttributes(){ Ignorable = "x15" } }; workbook1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); workbook1.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); workbook1.AddNamespaceDeclaration("x15", "http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"); FileVersion fileVersion1 = new FileVersion(){ ApplicationName = "xl", LastEdited = "6", LowestEdited = "6", BuildVersion = "14420" }; WorkbookProperties workbookProperties1 = new WorkbookProperties(); AlternateContent alternateContent1 = new AlternateContent(); alternateContent1.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); AlternateContentChoice alternateContentChoice1 = new AlternateContentChoice(){ Requires = "x15" }; X15ac.AbsolutePath absolutePath1 = new X15ac.AbsolutePath(){ Url = "D:\\Users\\dito\\Desktop\\TestDocumentResaver\\OpenXmlApiConversion\\Timeline\\" }; absolutePath1.AddNamespaceDeclaration("x15ac", "http://schemas.microsoft.com/office/spreadsheetml/2010/11/ac"); alternateContentChoice1.Append(absolutePath1); alternateContent1.Append(alternateContentChoice1); BookViews bookViews1 = new BookViews(); WorkbookView workbookView1 = new WorkbookView(){ XWindow = 0, YWindow = 0, WindowWidth = (UInt32Value)26940U, WindowHeight = (UInt32Value)15120U }; bookViews1.Append(workbookView1); Sheets sheets1 = new Sheets(); Sheet sheet1 = new Sheet(){ Name = "data", SheetId = (UInt32Value)1U, Id = "rId1" }; Sheet sheet2 = new Sheet(){ Name = "data2", SheetId = (UInt32Value)3U, Id = "rId2" }; Sheet sheet3 = new Sheet(){ Name = "Cache", SheetId = (UInt32Value)4U, Id = "rId3" }; Sheet sheet4 = new Sheet(){ Name = "Level", SheetId = (UInt32Value)2U, Id = "rId4" }; Sheet sheet5 = new Sheet(){ Name = "Caption", SheetId = (UInt32Value)5U, Id = "rId5" }; Sheet sheet6 = new Sheet(){ Name = "ShowHeader", SheetId = (UInt32Value)6U, Id = "rId6" }; Sheet sheet7 = new Sheet(){ Name = "ShowSelectionLabel", SheetId = (UInt32Value)7U, Id = "rId7" }; Sheet sheet8 = new Sheet(){ Name = "ShowTimeLevel", SheetId = (UInt32Value)8U, Id = "rId8" }; Sheet sheet9 = new Sheet(){ Name = "ShowHorizontalScrollbar", SheetId = (UInt32Value)9U, Id = "rId9" }; Sheet sheet10 = new Sheet(){ Name = "ScrollPosition", SheetId = (UInt32Value)10U, Id = "rId10" }; Sheet sheet11 = new Sheet(){ Name = "Style", SheetId = (UInt32Value)11U, Id = "rId11" }; sheets1.Append(sheet1); sheets1.Append(sheet2); sheets1.Append(sheet3); sheets1.Append(sheet4); sheets1.Append(sheet5); sheets1.Append(sheet6); sheets1.Append(sheet7); sheets1.Append(sheet8); sheets1.Append(sheet9); sheets1.Append(sheet10); sheets1.Append(sheet11); DefinedNames definedNames1 = new DefinedNames(); DefinedName definedName1 = new DefinedName(){ Name = "NativeTimeline_Date" }; definedName1.Text = "#N/A"; DefinedName definedName2 = new DefinedName(){ Name = "NativeTimeline_DeliveryDate" }; definedName2.Text = "#N/A"; DefinedName definedName3 = new DefinedName(){ Name = "NativeTimeline_DeliveryDate1" }; definedName3.Text = "#N/A"; DefinedName definedName4 = new DefinedName(){ Name = "NativeTimeline_DeliveryDate2" }; definedName4.Text = "#N/A"; DefinedName definedName5 = new DefinedName(){ Name = "NativeTimeline_DeliveryDate3" }; definedName5.Text = "#N/A"; DefinedName definedName6 = new DefinedName(){ Name = "NativeTimeline_DeliveryDate4" }; definedName6.Text = "#N/A"; DefinedName definedName7 = new DefinedName(){ Name = "NativeTimeline_DeliveryDate5" }; definedName7.Text = "#N/A"; DefinedName definedName8 = new DefinedName(){ Name = "NativeTimeline_DeliveryDate6" }; definedName8.Text = "#N/A"; DefinedName definedName9 = new DefinedName(){ Name = "NativeTimeline_DeliveryDate7" }; definedName9.Text = "#N/A"; definedNames1.Append(definedName1); definedNames1.Append(definedName2); definedNames1.Append(definedName3); definedNames1.Append(definedName4); definedNames1.Append(definedName5); definedNames1.Append(definedName6); definedNames1.Append(definedName7); definedNames1.Append(definedName8); definedNames1.Append(definedName9); CalculationProperties calculationProperties1 = new CalculationProperties(){ CalculationId = (UInt32Value)152511U }; PivotCaches pivotCaches1 = new PivotCaches(); PivotCache pivotCache1 = new PivotCache(){ CacheId = (UInt32Value)0U, Id = "rId12" }; PivotCache pivotCache2 = new PivotCache(){ CacheId = (UInt32Value)1U, Id = "rId13" }; pivotCaches1.Append(pivotCache1); pivotCaches1.Append(pivotCache2); WorkbookExtensionList workbookExtensionList1 = new WorkbookExtensionList(); WorkbookExtension workbookExtension1 = new WorkbookExtension(){ Uri = "{79F54976-1DA5-4618-B147-4CDE4B953A38}" }; workbookExtension1.AddNamespaceDeclaration("x14", "http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"); X14.WorkbookProperties workbookProperties2 = new X14.WorkbookProperties(); workbookExtension1.Append(workbookProperties2); WorkbookExtension workbookExtension2 = new WorkbookExtension(){ Uri = "{D0CA8CA8-9F24-4464-BF8E-62219DCF47F9}" }; workbookExtension2.AddNamespaceDeclaration("x15", "http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"); X15.TimelineCacheReferences timelineCacheReferences1 = new X15.TimelineCacheReferences(); X15.TimelineCacheReference timelineCacheReference1 = new X15.TimelineCacheReference(){ Id = "rId14" }; X15.TimelineCacheReference timelineCacheReference2 = new X15.TimelineCacheReference(){ Id = "rId15" }; X15.TimelineCacheReference timelineCacheReference3 = new X15.TimelineCacheReference(){ Id = "rId16" }; X15.TimelineCacheReference timelineCacheReference4 = new X15.TimelineCacheReference(){ Id = "rId17" }; X15.TimelineCacheReference timelineCacheReference5 = new X15.TimelineCacheReference(){ Id = "rId18" }; X15.TimelineCacheReference timelineCacheReference6 = new X15.TimelineCacheReference(){ Id = "rId19" }; X15.TimelineCacheReference timelineCacheReference7 = new X15.TimelineCacheReference(){ Id = "rId20" }; X15.TimelineCacheReference timelineCacheReference8 = new X15.TimelineCacheReference(){ Id = "rId21" }; X15.TimelineCacheReference timelineCacheReference9 = new X15.TimelineCacheReference(){ Id = "rId22" }; timelineCacheReferences1.Append(timelineCacheReference1); timelineCacheReferences1.Append(timelineCacheReference2); timelineCacheReferences1.Append(timelineCacheReference3); timelineCacheReferences1.Append(timelineCacheReference4); timelineCacheReferences1.Append(timelineCacheReference5); timelineCacheReferences1.Append(timelineCacheReference6); timelineCacheReferences1.Append(timelineCacheReference7); timelineCacheReferences1.Append(timelineCacheReference8); timelineCacheReferences1.Append(timelineCacheReference9); workbookExtension2.Append(timelineCacheReferences1); WorkbookExtension workbookExtension3 = new WorkbookExtension(){ Uri = "{140A7094-0E35-4892-8432-C4D2E57EDEB5}" }; workbookExtension3.AddNamespaceDeclaration("x15", "http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"); X15.WorkbookProperties workbookProperties3 = new X15.WorkbookProperties(){ ChartTrackingReferenceBase = true }; workbookExtension3.Append(workbookProperties3); workbookExtensionList1.Append(workbookExtension1); workbookExtensionList1.Append(workbookExtension2); workbookExtensionList1.Append(workbookExtension3); workbook1.Append(fileVersion1); workbook1.Append(workbookProperties1); workbook1.Append(alternateContent1); workbook1.Append(bookViews1); workbook1.Append(sheets1); workbook1.Append(definedNames1); workbook1.Append(calculationProperties1); workbook1.Append(pivotCaches1); workbook1.Append(workbookExtensionList1); workbookPart1.Workbook = workbook1; }
// Generates content of chartPart4. private void GenerateChartPart4Content(ChartPart chartPart4) { C.ChartSpace chartSpace4 = new C.ChartSpace(); chartSpace4.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart"); chartSpace4.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); chartSpace4.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); C.Date1904 date19044 = new C.Date1904(){ Val = false }; C.EditingLanguage editingLanguage4 = new C.EditingLanguage(){ Val = "en-US" }; C.RoundedCorners roundedCorners4 = new C.RoundedCorners(){ Val = false }; AlternateContent alternateContent9 = new AlternateContent(); alternateContent9.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); AlternateContentChoice alternateContentChoice9 = new AlternateContentChoice(){ Requires = "c14" }; alternateContentChoice9.AddNamespaceDeclaration("c14", "http://schemas.microsoft.com/office/drawing/2007/8/2/chart"); C14.Style style7 = new C14.Style(){ Val = 102 }; alternateContentChoice9.Append(style7); AlternateContentFallback alternateContentFallback8 = new AlternateContentFallback(); C.Style style8 = new C.Style(){ Val = 2 }; alternateContentFallback8.Append(style8); alternateContent9.Append(alternateContentChoice9); alternateContent9.Append(alternateContentFallback8); C.PivotSource pivotSource4 = new C.PivotSource(); C.PivotTableName pivotTableName4 = new C.PivotTableName(); pivotTableName4.Text = "[GeneratedDocument.xlsx]Cache!PivotTable1"; C.FormatId formatId4 = new C.FormatId(){ Val = (UInt32Value)0U }; pivotSource4.Append(pivotTableName4); pivotSource4.Append(formatId4); C.Chart chart4 = new C.Chart(); C.Title title4 = new C.Title(); C.Overlay overlay7 = new C.Overlay(){ Val = false }; title4.Append(overlay7); C.AutoTitleDeleted autoTitleDeleted4 = new C.AutoTitleDeleted(){ Val = false }; C.PivotFormats pivotFormats4 = new C.PivotFormats(); C.PivotFormat pivotFormat25 = new C.PivotFormat(); C.Index index28 = new C.Index(){ Val = (UInt32Value)0U }; C.Marker marker25 = new C.Marker(); C.Symbol symbol25 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker25.Append(symbol25); pivotFormat25.Append(index28); pivotFormat25.Append(marker25); pivotFormats4.Append(pivotFormat25); C.PlotArea plotArea4 = new C.PlotArea(); C.Layout layout4 = new C.Layout(); C.BarChart barChart2 = new C.BarChart(); C.BarDirection barDirection2 = new C.BarDirection(){ Val = C.BarDirectionValues.Column }; C.BarGrouping barGrouping2 = new C.BarGrouping(){ Val = C.BarGroupingValues.Clustered }; C.VaryColors varyColors4 = new C.VaryColors(){ Val = false }; C.BarChartSeries barChartSeries2 = new C.BarChartSeries(); C.Index index29 = new C.Index(){ Val = (UInt32Value)0U }; C.Order order4 = new C.Order(){ Val = (UInt32Value)0U }; C.SeriesText seriesText4 = new C.SeriesText(); C.StringReference stringReference7 = new C.StringReference(); C.Formula formula10 = new C.Formula(); formula10.Text = "Cache!$B$1"; C.StringCache stringCache7 = new C.StringCache(); C.PointCount pointCount10 = new C.PointCount(){ Val = (UInt32Value)1U }; C.StringPoint stringPoint13 = new C.StringPoint(){ Index = (UInt32Value)0U }; C.NumericValue numericValue22 = new C.NumericValue(); numericValue22.Text = "Total"; stringPoint13.Append(numericValue22); stringCache7.Append(pointCount10); stringCache7.Append(stringPoint13); stringReference7.Append(formula10); stringReference7.Append(stringCache7); seriesText4.Append(stringReference7); C.InvertIfNegative invertIfNegative2 = new C.InvertIfNegative(){ Val = false }; C.CategoryAxisData categoryAxisData4 = new C.CategoryAxisData(); C.StringReference stringReference8 = new C.StringReference(); C.Formula formula11 = new C.Formula(); formula11.Text = "Cache!$A$2:$A$5"; C.StringCache stringCache8 = new C.StringCache(); C.PointCount pointCount11 = new C.PointCount(){ Val = (UInt32Value)3U }; C.StringPoint stringPoint14 = new C.StringPoint(){ Index = (UInt32Value)0U }; C.NumericValue numericValue23 = new C.NumericValue(); numericValue23.Text = "product_C"; stringPoint14.Append(numericValue23); C.StringPoint stringPoint15 = new C.StringPoint(){ Index = (UInt32Value)1U }; C.NumericValue numericValue24 = new C.NumericValue(); numericValue24.Text = "product_F"; stringPoint15.Append(numericValue24); C.StringPoint stringPoint16 = new C.StringPoint(){ Index = (UInt32Value)2U }; C.NumericValue numericValue25 = new C.NumericValue(); numericValue25.Text = "product_G"; stringPoint16.Append(numericValue25); stringCache8.Append(pointCount11); stringCache8.Append(stringPoint14); stringCache8.Append(stringPoint15); stringCache8.Append(stringPoint16); stringReference8.Append(formula11); stringReference8.Append(stringCache8); categoryAxisData4.Append(stringReference8); C.Values values4 = new C.Values(); C.NumberReference numberReference4 = new C.NumberReference(); C.Formula formula12 = new C.Formula(); formula12.Text = "Cache!$B$2:$B$5"; C.NumberingCache numberingCache4 = new C.NumberingCache(); C.FormatCode formatCode4 = new C.FormatCode(); formatCode4.Text = "General"; C.PointCount pointCount12 = new C.PointCount(){ Val = (UInt32Value)3U }; C.NumericPoint numericPoint10 = new C.NumericPoint(){ Index = (UInt32Value)0U }; C.NumericValue numericValue26 = new C.NumericValue(); numericValue26.Text = "2050"; numericPoint10.Append(numericValue26); C.NumericPoint numericPoint11 = new C.NumericPoint(){ Index = (UInt32Value)1U }; C.NumericValue numericValue27 = new C.NumericValue(); numericValue27.Text = "3168"; numericPoint11.Append(numericValue27); C.NumericPoint numericPoint12 = new C.NumericPoint(){ Index = (UInt32Value)2U }; C.NumericValue numericValue28 = new C.NumericValue(); numericValue28.Text = "11529"; numericPoint12.Append(numericValue28); numberingCache4.Append(formatCode4); numberingCache4.Append(pointCount12); numberingCache4.Append(numericPoint10); numberingCache4.Append(numericPoint11); numberingCache4.Append(numericPoint12); numberReference4.Append(formula12); numberReference4.Append(numberingCache4); values4.Append(numberReference4); barChartSeries2.Append(index29); barChartSeries2.Append(order4); barChartSeries2.Append(seriesText4); barChartSeries2.Append(invertIfNegative2); barChartSeries2.Append(categoryAxisData4); barChartSeries2.Append(values4); C.DataLabels dataLabels4 = new C.DataLabels(); C.ShowLegendKey showLegendKey4 = new C.ShowLegendKey(){ Val = false }; C.ShowValue showValue4 = new C.ShowValue(){ Val = false }; C.ShowCategoryName showCategoryName4 = new C.ShowCategoryName(){ Val = false }; C.ShowSeriesName showSeriesName4 = new C.ShowSeriesName(){ Val = false }; C.ShowPercent showPercent4 = new C.ShowPercent(){ Val = false }; C.ShowBubbleSize showBubbleSize4 = new C.ShowBubbleSize(){ Val = false }; dataLabels4.Append(showLegendKey4); dataLabels4.Append(showValue4); dataLabels4.Append(showCategoryName4); dataLabels4.Append(showSeriesName4); dataLabels4.Append(showPercent4); dataLabels4.Append(showBubbleSize4); C.GapWidth gapWidth2 = new C.GapWidth(){ Val = (UInt16Value)150U }; C.AxisId axisId5 = new C.AxisId(){ Val = (UInt32Value)164427248U }; C.AxisId axisId6 = new C.AxisId(){ Val = (UInt32Value)164427632U }; barChart2.Append(barDirection2); barChart2.Append(barGrouping2); barChart2.Append(varyColors4); barChart2.Append(barChartSeries2); barChart2.Append(dataLabels4); barChart2.Append(gapWidth2); barChart2.Append(axisId5); barChart2.Append(axisId6); C.CategoryAxis categoryAxis2 = new C.CategoryAxis(); C.AxisId axisId7 = new C.AxisId(){ Val = (UInt32Value)164427248U }; C.Scaling scaling3 = new C.Scaling(); C.Orientation orientation3 = new C.Orientation(){ Val = C.OrientationValues.MinMax }; scaling3.Append(orientation3); C.Delete delete3 = new C.Delete(){ Val = false }; C.AxisPosition axisPosition3 = new C.AxisPosition(){ Val = C.AxisPositionValues.Bottom }; C.NumberingFormat numberingFormat3 = new C.NumberingFormat(){ FormatCode = "General", SourceLinked = false }; C.MajorTickMark majorTickMark3 = new C.MajorTickMark(){ Val = C.TickMarkValues.Outside }; C.MinorTickMark minorTickMark3 = new C.MinorTickMark(){ Val = C.TickMarkValues.None }; C.TickLabelPosition tickLabelPosition3 = new C.TickLabelPosition(){ Val = C.TickLabelPositionValues.NextTo }; C.CrossingAxis crossingAxis3 = new C.CrossingAxis(){ Val = (UInt32Value)164427632U }; C.Crosses crosses3 = new C.Crosses(){ Val = C.CrossesValues.AutoZero }; C.AutoLabeled autoLabeled2 = new C.AutoLabeled(){ Val = true }; C.LabelAlignment labelAlignment2 = new C.LabelAlignment(){ Val = C.LabelAlignmentValues.Center }; C.LabelOffset labelOffset2 = new C.LabelOffset(){ Val = (UInt16Value)100U }; C.NoMultiLevelLabels noMultiLevelLabels2 = new C.NoMultiLevelLabels(){ Val = false }; categoryAxis2.Append(axisId7); categoryAxis2.Append(scaling3); categoryAxis2.Append(delete3); categoryAxis2.Append(axisPosition3); categoryAxis2.Append(numberingFormat3); categoryAxis2.Append(majorTickMark3); categoryAxis2.Append(minorTickMark3); categoryAxis2.Append(tickLabelPosition3); categoryAxis2.Append(crossingAxis3); categoryAxis2.Append(crosses3); categoryAxis2.Append(autoLabeled2); categoryAxis2.Append(labelAlignment2); categoryAxis2.Append(labelOffset2); categoryAxis2.Append(noMultiLevelLabels2); C.ValueAxis valueAxis2 = new C.ValueAxis(); C.AxisId axisId8 = new C.AxisId(){ Val = (UInt32Value)164427632U }; C.Scaling scaling4 = new C.Scaling(); C.Orientation orientation4 = new C.Orientation(){ Val = C.OrientationValues.MinMax }; scaling4.Append(orientation4); C.Delete delete4 = new C.Delete(){ Val = false }; C.AxisPosition axisPosition4 = new C.AxisPosition(){ Val = C.AxisPositionValues.Left }; C.MajorGridlines majorGridlines2 = new C.MajorGridlines(); C.NumberingFormat numberingFormat4 = new C.NumberingFormat(){ FormatCode = "General", SourceLinked = true }; C.MajorTickMark majorTickMark4 = new C.MajorTickMark(){ Val = C.TickMarkValues.Outside }; C.MinorTickMark minorTickMark4 = new C.MinorTickMark(){ Val = C.TickMarkValues.None }; C.TickLabelPosition tickLabelPosition4 = new C.TickLabelPosition(){ Val = C.TickLabelPositionValues.NextTo }; C.CrossingAxis crossingAxis4 = new C.CrossingAxis(){ Val = (UInt32Value)164427248U }; C.Crosses crosses4 = new C.Crosses(){ Val = C.CrossesValues.AutoZero }; C.CrossBetween crossBetween2 = new C.CrossBetween(){ Val = C.CrossBetweenValues.Between }; valueAxis2.Append(axisId8); valueAxis2.Append(scaling4); valueAxis2.Append(delete4); valueAxis2.Append(axisPosition4); valueAxis2.Append(majorGridlines2); valueAxis2.Append(numberingFormat4); valueAxis2.Append(majorTickMark4); valueAxis2.Append(minorTickMark4); valueAxis2.Append(tickLabelPosition4); valueAxis2.Append(crossingAxis4); valueAxis2.Append(crosses4); valueAxis2.Append(crossBetween2); plotArea4.Append(layout4); plotArea4.Append(barChart2); plotArea4.Append(categoryAxis2); plotArea4.Append(valueAxis2); C.Legend legend4 = new C.Legend(); C.LegendPosition legendPosition4 = new C.LegendPosition(){ Val = C.LegendPositionValues.Right }; C.Overlay overlay8 = new C.Overlay(){ Val = false }; legend4.Append(legendPosition4); legend4.Append(overlay8); C.PlotVisibleOnly plotVisibleOnly4 = new C.PlotVisibleOnly(){ Val = true }; C.DisplayBlanksAs displayBlanksAs4 = new C.DisplayBlanksAs(){ Val = C.DisplayBlanksAsValues.Gap }; C.ShowDataLabelsOverMaximum showDataLabelsOverMaximum4 = new C.ShowDataLabelsOverMaximum(){ Val = false }; chart4.Append(title4); chart4.Append(autoTitleDeleted4); chart4.Append(pivotFormats4); chart4.Append(plotArea4); chart4.Append(legend4); chart4.Append(plotVisibleOnly4); chart4.Append(displayBlanksAs4); chart4.Append(showDataLabelsOverMaximum4); C.PrintSettings printSettings4 = new C.PrintSettings(); C.HeaderFooter headerFooter4 = new C.HeaderFooter(); C.PageMargins pageMargins6 = new C.PageMargins(){ Left = 0.7D, Right = 0.7D, Top = 0.75D, Bottom = 0.75D, Header = 0.3D, Footer = 0.3D }; C.PageSetup pageSetup4 = new C.PageSetup(); printSettings4.Append(headerFooter4); printSettings4.Append(pageMargins6); printSettings4.Append(pageSetup4); C.ChartSpaceExtensionList chartSpaceExtensionList4 = new C.ChartSpaceExtensionList(); chartSpaceExtensionList4.AddNamespaceDeclaration("c14", "http://schemas.microsoft.com/office/drawing/2007/8/2/chart"); chartSpaceExtensionList4.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); C.ChartSpaceExtension chartSpaceExtension4 = new C.ChartSpaceExtension(){ Uri = "{781A3756-C4B2-4CAC-9D66-4F8BD8637D16}" }; chartSpaceExtension4.AddNamespaceDeclaration("c14", "http://schemas.microsoft.com/office/drawing/2007/8/2/chart"); C14.PivotOptions pivotOptions4 = new C14.PivotOptions(); C14.DropZoneFilter dropZoneFilter4 = new C14.DropZoneFilter(){ Val = true }; C14.DropZoneCategories dropZoneCategories4 = new C14.DropZoneCategories(){ Val = true }; C14.DropZoneData dropZoneData4 = new C14.DropZoneData(){ Val = true }; C14.DropZoneSeries dropZoneSeries4 = new C14.DropZoneSeries(){ Val = true }; C14.DropZonesVisible dropZonesVisible4 = new C14.DropZonesVisible(){ Val = true }; pivotOptions4.Append(dropZoneFilter4); pivotOptions4.Append(dropZoneCategories4); pivotOptions4.Append(dropZoneData4); pivotOptions4.Append(dropZoneSeries4); pivotOptions4.Append(dropZonesVisible4); chartSpaceExtension4.Append(pivotOptions4); chartSpaceExtensionList4.Append(chartSpaceExtension4); chartSpace4.Append(date19044); chartSpace4.Append(editingLanguage4); chartSpace4.Append(roundedCorners4); chartSpace4.Append(alternateContent9); chartSpace4.Append(pivotSource4); chartSpace4.Append(chart4); chartSpace4.Append(printSettings4); chartSpace4.Append(chartSpaceExtensionList4); chartPart4.ChartSpace = chartSpace4; }
// Generates content of drawingsPart2. private void GenerateDrawingsPart2Content(DrawingsPart drawingsPart2) { Xdr.WorksheetDrawing worksheetDrawing2 = new Xdr.WorksheetDrawing(); worksheetDrawing2.AddNamespaceDeclaration("xdr", "http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"); worksheetDrawing2.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); Xdr.TwoCellAnchor twoCellAnchor5 = new Xdr.TwoCellAnchor(); Xdr.FromMarker fromMarker5 = new Xdr.FromMarker(); Xdr.ColumnId columnId9 = new Xdr.ColumnId(); columnId9.Text = "3"; Xdr.ColumnOffset columnOffset9 = new Xdr.ColumnOffset(); columnOffset9.Text = "257175"; Xdr.RowId rowId9 = new Xdr.RowId(); rowId9.Text = "0"; Xdr.RowOffset rowOffset9 = new Xdr.RowOffset(); rowOffset9.Text = "23812"; fromMarker5.Append(columnId9); fromMarker5.Append(columnOffset9); fromMarker5.Append(rowId9); fromMarker5.Append(rowOffset9); Xdr.ToMarker toMarker5 = new Xdr.ToMarker(); Xdr.ColumnId columnId10 = new Xdr.ColumnId(); columnId10.Text = "10"; Xdr.ColumnOffset columnOffset10 = new Xdr.ColumnOffset(); columnOffset10.Text = "561975"; Xdr.RowId rowId10 = new Xdr.RowId(); rowId10.Text = "14"; Xdr.RowOffset rowOffset10 = new Xdr.RowOffset(); rowOffset10.Text = "100012"; toMarker5.Append(columnId10); toMarker5.Append(columnOffset10); toMarker5.Append(rowId10); toMarker5.Append(rowOffset10); Xdr.GraphicFrame graphicFrame5 = new Xdr.GraphicFrame(){ Macro = "" }; Xdr.NonVisualGraphicFrameProperties nonVisualGraphicFrameProperties5 = new Xdr.NonVisualGraphicFrameProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties7 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)2U, Name = "グラフ 1" }; Xdr.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties5 = new Xdr.NonVisualGraphicFrameDrawingProperties(); nonVisualGraphicFrameProperties5.Append(nonVisualDrawingProperties7); nonVisualGraphicFrameProperties5.Append(nonVisualGraphicFrameDrawingProperties5); Xdr.Transform transform5 = new Xdr.Transform(); A.Offset offset7 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents7 = new A.Extents(){ Cx = 0L, Cy = 0L }; transform5.Append(offset7); transform5.Append(extents7); A.Graphic graphic5 = new A.Graphic(); A.GraphicData graphicData5 = new A.GraphicData(){ Uri = "http://schemas.openxmlformats.org/drawingml/2006/chart" }; C.ChartReference chartReference3 = new C.ChartReference(){ Id = "rId1" }; chartReference3.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart"); chartReference3.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); graphicData5.Append(chartReference3); graphic5.Append(graphicData5); graphicFrame5.Append(nonVisualGraphicFrameProperties5); graphicFrame5.Append(transform5); graphicFrame5.Append(graphic5); Xdr.ClientData clientData5 = new Xdr.ClientData(); twoCellAnchor5.Append(fromMarker5); twoCellAnchor5.Append(toMarker5); twoCellAnchor5.Append(graphicFrame5); twoCellAnchor5.Append(clientData5); Xdr.TwoCellAnchor twoCellAnchor6 = new Xdr.TwoCellAnchor(); Xdr.FromMarker fromMarker6 = new Xdr.FromMarker(); Xdr.ColumnId columnId11 = new Xdr.ColumnId(); columnId11.Text = "3"; Xdr.ColumnOffset columnOffset11 = new Xdr.ColumnOffset(); columnOffset11.Text = "257175"; Xdr.RowId rowId11 = new Xdr.RowId(); rowId11.Text = "15"; Xdr.RowOffset rowOffset11 = new Xdr.RowOffset(); rowOffset11.Text = "80962"; fromMarker6.Append(columnId11); fromMarker6.Append(columnOffset11); fromMarker6.Append(rowId11); fromMarker6.Append(rowOffset11); Xdr.ToMarker toMarker6 = new Xdr.ToMarker(); Xdr.ColumnId columnId12 = new Xdr.ColumnId(); columnId12.Text = "10"; Xdr.ColumnOffset columnOffset12 = new Xdr.ColumnOffset(); columnOffset12.Text = "561975"; Xdr.RowId rowId12 = new Xdr.RowId(); rowId12.Text = "29"; Xdr.RowOffset rowOffset12 = new Xdr.RowOffset(); rowOffset12.Text = "157162"; toMarker6.Append(columnId12); toMarker6.Append(columnOffset12); toMarker6.Append(rowId12); toMarker6.Append(rowOffset12); Xdr.GraphicFrame graphicFrame6 = new Xdr.GraphicFrame(){ Macro = "" }; Xdr.NonVisualGraphicFrameProperties nonVisualGraphicFrameProperties6 = new Xdr.NonVisualGraphicFrameProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties8 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)3U, Name = "グラフ 2" }; Xdr.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties6 = new Xdr.NonVisualGraphicFrameDrawingProperties(); nonVisualGraphicFrameProperties6.Append(nonVisualDrawingProperties8); nonVisualGraphicFrameProperties6.Append(nonVisualGraphicFrameDrawingProperties6); Xdr.Transform transform6 = new Xdr.Transform(); A.Offset offset8 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents8 = new A.Extents(){ Cx = 0L, Cy = 0L }; transform6.Append(offset8); transform6.Append(extents8); A.Graphic graphic6 = new A.Graphic(); A.GraphicData graphicData6 = new A.GraphicData(){ Uri = "http://schemas.openxmlformats.org/drawingml/2006/chart" }; C.ChartReference chartReference4 = new C.ChartReference(){ Id = "rId2" }; chartReference4.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart"); chartReference4.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); graphicData6.Append(chartReference4); graphic6.Append(graphicData6); graphicFrame6.Append(nonVisualGraphicFrameProperties6); graphicFrame6.Append(transform6); graphicFrame6.Append(graphic6); Xdr.ClientData clientData6 = new Xdr.ClientData(); twoCellAnchor6.Append(fromMarker6); twoCellAnchor6.Append(toMarker6); twoCellAnchor6.Append(graphicFrame6); twoCellAnchor6.Append(clientData6); Xdr.TwoCellAnchor twoCellAnchor7 = new Xdr.TwoCellAnchor(){ EditAs = Xdr.EditAsValues.OneCell }; Xdr.FromMarker fromMarker7 = new Xdr.FromMarker(); Xdr.ColumnId columnId13 = new Xdr.ColumnId(); columnId13.Text = "12"; Xdr.ColumnOffset columnOffset13 = new Xdr.ColumnOffset(); columnOffset13.Text = "19050"; Xdr.RowId rowId13 = new Xdr.RowId(); rowId13.Text = "0"; Xdr.RowOffset rowOffset13 = new Xdr.RowOffset(); rowOffset13.Text = "19050"; fromMarker7.Append(columnId13); fromMarker7.Append(columnOffset13); fromMarker7.Append(rowId13); fromMarker7.Append(rowOffset13); Xdr.ToMarker toMarker7 = new Xdr.ToMarker(); Xdr.ColumnId columnId14 = new Xdr.ColumnId(); columnId14.Text = "17"; Xdr.ColumnOffset columnOffset14 = new Xdr.ColumnOffset(); columnOffset14.Text = "304800"; Xdr.RowId rowId14 = new Xdr.RowId(); rowId14.Text = "6"; Xdr.RowOffset rowOffset14 = new Xdr.RowOffset(); rowOffset14.Text = "66675"; toMarker7.Append(columnId14); toMarker7.Append(columnOffset14); toMarker7.Append(rowId14); toMarker7.Append(rowOffset14); AlternateContent alternateContent6 = new AlternateContent(); alternateContent6.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); alternateContent6.AddNamespaceDeclaration("a15", "http://schemas.microsoft.com/office/drawing/2012/main"); AlternateContentChoice alternateContentChoice6 = new AlternateContentChoice(){ Requires = "a15" }; Xdr.GraphicFrame graphicFrame7 = new Xdr.GraphicFrame(){ Macro = "" }; Xdr.NonVisualGraphicFrameProperties nonVisualGraphicFrameProperties7 = new Xdr.NonVisualGraphicFrameProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties9 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)4U, Name = "Date" }; Xdr.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties7 = new Xdr.NonVisualGraphicFrameDrawingProperties(); nonVisualGraphicFrameProperties7.Append(nonVisualDrawingProperties9); nonVisualGraphicFrameProperties7.Append(nonVisualGraphicFrameDrawingProperties7); Xdr.Transform transform7 = new Xdr.Transform(); A.Offset offset9 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents9 = new A.Extents(){ Cx = 0L, Cy = 0L }; transform7.Append(offset9); transform7.Append(extents9); A.Graphic graphic7 = new A.Graphic(); A.GraphicData graphicData7 = new A.GraphicData(){ Uri = "http://schemas.microsoft.com/office/drawing/2012/timeslicer" }; Tsle.TimeSlicer timeSlicer3 = new Tsle.TimeSlicer(){ Name = "Date" }; timeSlicer3.AddNamespaceDeclaration("tsle", "http://schemas.microsoft.com/office/drawing/2012/timeslicer"); graphicData7.Append(timeSlicer3); graphic7.Append(graphicData7); graphicFrame7.Append(nonVisualGraphicFrameProperties7); graphicFrame7.Append(transform7); graphicFrame7.Append(graphic7); alternateContentChoice6.Append(graphicFrame7); AlternateContentFallback alternateContentFallback5 = new AlternateContentFallback(); alternateContentFallback5.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); alternateContentFallback5.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart"); Xdr.Shape shape3 = new Xdr.Shape(){ Macro = "", TextLink = "" }; Xdr.NonVisualShapeProperties nonVisualShapeProperties3 = new Xdr.NonVisualShapeProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties10 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)0U, Name = "" }; Xdr.NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties3 = new Xdr.NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks3 = new A.ShapeLocks(){ NoTextEdit = true }; nonVisualShapeDrawingProperties3.Append(shapeLocks3); nonVisualShapeProperties3.Append(nonVisualDrawingProperties10); nonVisualShapeProperties3.Append(nonVisualShapeDrawingProperties3); Xdr.ShapeProperties shapeProperties11 = new Xdr.ShapeProperties(); A.Transform2D transform2D3 = new A.Transform2D(); A.Offset offset10 = new A.Offset(){ X = 7820025L, Y = 19050L }; A.Extents extents10 = new A.Extents(){ Cx = 3333750L, Cy = 1190625L }; transform2D3.Append(offset10); transform2D3.Append(extents10); A.PresetGeometry presetGeometry3 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList3 = new A.AdjustValueList(); presetGeometry3.Append(adjustValueList3); A.SolidFill solidFill19 = new A.SolidFill(); A.PresetColor presetColor5 = new A.PresetColor(){ Val = A.PresetColorValues.White }; solidFill19.Append(presetColor5); A.Outline outline16 = new A.Outline(){ Width = 1 }; A.SolidFill solidFill20 = new A.SolidFill(); A.PresetColor presetColor6 = new A.PresetColor(){ Val = A.PresetColorValues.Green }; solidFill20.Append(presetColor6); outline16.Append(solidFill20); shapeProperties11.Append(transform2D3); shapeProperties11.Append(presetGeometry3); shapeProperties11.Append(solidFill19); shapeProperties11.Append(outline16); Xdr.TextBody textBody3 = new Xdr.TextBody(); A.BodyProperties bodyProperties7 = new A.BodyProperties(){ VerticalOverflow = A.TextVerticalOverflowValues.Clip, HorizontalOverflow = A.TextHorizontalOverflowValues.Clip }; A.ListStyle listStyle7 = new A.ListStyle(); A.Paragraph paragraph7 = new A.Paragraph(); A.Run run3 = new A.Run(); A.RunProperties runProperties3 = new A.RunProperties(){ Language = "en-US", FontSize = 1100 }; A.Text text3 = new A.Text(); text3.Text = "Timeline: Works in Excel 15 or higher. Do not move or resize."; run3.Append(runProperties3); run3.Append(text3); paragraph7.Append(run3); textBody3.Append(bodyProperties7); textBody3.Append(listStyle7); textBody3.Append(paragraph7); shape3.Append(nonVisualShapeProperties3); shape3.Append(shapeProperties11); shape3.Append(textBody3); alternateContentFallback5.Append(shape3); alternateContent6.Append(alternateContentChoice6); alternateContent6.Append(alternateContentFallback5); Xdr.ClientData clientData7 = new Xdr.ClientData(); twoCellAnchor7.Append(fromMarker7); twoCellAnchor7.Append(toMarker7); twoCellAnchor7.Append(alternateContent6); twoCellAnchor7.Append(clientData7); Xdr.TwoCellAnchor twoCellAnchor8 = new Xdr.TwoCellAnchor(){ EditAs = Xdr.EditAsValues.OneCell }; Xdr.FromMarker fromMarker8 = new Xdr.FromMarker(); Xdr.ColumnId columnId15 = new Xdr.ColumnId(); columnId15.Text = "12"; Xdr.ColumnOffset columnOffset15 = new Xdr.ColumnOffset(); columnOffset15.Text = "9525"; Xdr.RowId rowId15 = new Xdr.RowId(); rowId15.Text = "7"; Xdr.RowOffset rowOffset15 = new Xdr.RowOffset(); rowOffset15.Text = "19050"; fromMarker8.Append(columnId15); fromMarker8.Append(columnOffset15); fromMarker8.Append(rowId15); fromMarker8.Append(rowOffset15); Xdr.ToMarker toMarker8 = new Xdr.ToMarker(); Xdr.ColumnId columnId16 = new Xdr.ColumnId(); columnId16.Text = "17"; Xdr.ColumnOffset columnOffset16 = new Xdr.ColumnOffset(); columnOffset16.Text = "371475"; Xdr.RowId rowId16 = new Xdr.RowId(); rowId16.Text = "13"; Xdr.RowOffset rowOffset16 = new Xdr.RowOffset(); rowOffset16.Text = "66675"; toMarker8.Append(columnId16); toMarker8.Append(columnOffset16); toMarker8.Append(rowId16); toMarker8.Append(rowOffset16); AlternateContent alternateContent7 = new AlternateContent(); alternateContent7.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); alternateContent7.AddNamespaceDeclaration("a15", "http://schemas.microsoft.com/office/drawing/2012/main"); AlternateContentChoice alternateContentChoice7 = new AlternateContentChoice(){ Requires = "a15" }; Xdr.GraphicFrame graphicFrame8 = new Xdr.GraphicFrame(){ Macro = "" }; Xdr.NonVisualGraphicFrameProperties nonVisualGraphicFrameProperties8 = new Xdr.NonVisualGraphicFrameProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties11 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)7U, Name = "Date 1" }; Xdr.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties8 = new Xdr.NonVisualGraphicFrameDrawingProperties(); nonVisualGraphicFrameProperties8.Append(nonVisualDrawingProperties11); nonVisualGraphicFrameProperties8.Append(nonVisualGraphicFrameDrawingProperties8); Xdr.Transform transform8 = new Xdr.Transform(); A.Offset offset11 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents11 = new A.Extents(){ Cx = 0L, Cy = 0L }; transform8.Append(offset11); transform8.Append(extents11); A.Graphic graphic8 = new A.Graphic(); A.GraphicData graphicData8 = new A.GraphicData(){ Uri = "http://schemas.microsoft.com/office/drawing/2012/timeslicer" }; Tsle.TimeSlicer timeSlicer4 = new Tsle.TimeSlicer(){ Name = "Date 1" }; timeSlicer4.AddNamespaceDeclaration("tsle", "http://schemas.microsoft.com/office/drawing/2012/timeslicer"); graphicData8.Append(timeSlicer4); graphic8.Append(graphicData8); graphicFrame8.Append(nonVisualGraphicFrameProperties8); graphicFrame8.Append(transform8); graphicFrame8.Append(graphic8); alternateContentChoice7.Append(graphicFrame8); AlternateContentFallback alternateContentFallback6 = new AlternateContentFallback(); Xdr.Shape shape4 = new Xdr.Shape(){ Macro = "", TextLink = "" }; Xdr.NonVisualShapeProperties nonVisualShapeProperties4 = new Xdr.NonVisualShapeProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties12 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)0U, Name = "" }; Xdr.NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties4 = new Xdr.NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks4 = new A.ShapeLocks(){ NoTextEdit = true }; nonVisualShapeDrawingProperties4.Append(shapeLocks4); nonVisualShapeProperties4.Append(nonVisualDrawingProperties12); nonVisualShapeProperties4.Append(nonVisualShapeDrawingProperties4); Xdr.ShapeProperties shapeProperties12 = new Xdr.ShapeProperties(); A.Transform2D transform2D4 = new A.Transform2D(); A.Offset offset12 = new A.Offset(){ X = 9020175L, Y = 1219200L }; A.Extents extents12 = new A.Extents(){ Cx = 3790950L, Cy = 1076325L }; transform2D4.Append(offset12); transform2D4.Append(extents12); A.PresetGeometry presetGeometry4 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList4 = new A.AdjustValueList(); presetGeometry4.Append(adjustValueList4); A.SolidFill solidFill21 = new A.SolidFill(); A.PresetColor presetColor7 = new A.PresetColor(){ Val = A.PresetColorValues.White }; solidFill21.Append(presetColor7); A.Outline outline17 = new A.Outline(){ Width = 1 }; A.SolidFill solidFill22 = new A.SolidFill(); A.PresetColor presetColor8 = new A.PresetColor(){ Val = A.PresetColorValues.Green }; solidFill22.Append(presetColor8); outline17.Append(solidFill22); shapeProperties12.Append(transform2D4); shapeProperties12.Append(presetGeometry4); shapeProperties12.Append(solidFill21); shapeProperties12.Append(outline17); Xdr.TextBody textBody4 = new Xdr.TextBody(); A.BodyProperties bodyProperties8 = new A.BodyProperties(){ VerticalOverflow = A.TextVerticalOverflowValues.Clip, HorizontalOverflow = A.TextHorizontalOverflowValues.Clip }; A.ListStyle listStyle8 = new A.ListStyle(); A.Paragraph paragraph8 = new A.Paragraph(); A.Run run4 = new A.Run(); A.RunProperties runProperties4 = new A.RunProperties(){ Language = "ja-JP", AlternativeLanguage = "en-US", FontSize = 1100 }; A.Text text4 = new A.Text(); text4.Text = "Timeline: Works in Excel 15 or higher. Do not move or resize."; run4.Append(runProperties4); run4.Append(text4); paragraph8.Append(run4); textBody4.Append(bodyProperties8); textBody4.Append(listStyle8); textBody4.Append(paragraph8); shape4.Append(nonVisualShapeProperties4); shape4.Append(shapeProperties12); shape4.Append(textBody4); alternateContentFallback6.Append(shape4); alternateContent7.Append(alternateContentChoice7); alternateContent7.Append(alternateContentFallback6); Xdr.ClientData clientData8 = new Xdr.ClientData(); twoCellAnchor8.Append(fromMarker8); twoCellAnchor8.Append(toMarker8); twoCellAnchor8.Append(alternateContent7); twoCellAnchor8.Append(clientData8); worksheetDrawing2.Append(twoCellAnchor5); worksheetDrawing2.Append(twoCellAnchor6); worksheetDrawing2.Append(twoCellAnchor7); worksheetDrawing2.Append(twoCellAnchor8); drawingsPart2.WorksheetDrawing = worksheetDrawing2; }
// Generates content of chartPart3. private void GenerateChartPart3Content(ChartPart chartPart3) { C.ChartSpace chartSpace3 = new C.ChartSpace(); chartSpace3.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart"); chartSpace3.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); chartSpace3.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); C.Date1904 date19043 = new C.Date1904(){ Val = false }; C.EditingLanguage editingLanguage3 = new C.EditingLanguage(){ Val = "en-US" }; C.RoundedCorners roundedCorners3 = new C.RoundedCorners(){ Val = false }; AlternateContent alternateContent8 = new AlternateContent(); alternateContent8.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); AlternateContentChoice alternateContentChoice8 = new AlternateContentChoice(){ Requires = "c14" }; alternateContentChoice8.AddNamespaceDeclaration("c14", "http://schemas.microsoft.com/office/drawing/2007/8/2/chart"); C14.Style style5 = new C14.Style(){ Val = 102 }; alternateContentChoice8.Append(style5); AlternateContentFallback alternateContentFallback7 = new AlternateContentFallback(); C.Style style6 = new C.Style(){ Val = 2 }; alternateContentFallback7.Append(style6); alternateContent8.Append(alternateContentChoice8); alternateContent8.Append(alternateContentFallback7); C.PivotSource pivotSource3 = new C.PivotSource(); C.PivotTableName pivotTableName3 = new C.PivotTableName(); pivotTableName3.Text = "[GeneratedDocument.xlsx]Cache!PivotTable1"; C.FormatId formatId3 = new C.FormatId(){ Val = (UInt32Value)1U }; pivotSource3.Append(pivotTableName3); pivotSource3.Append(formatId3); C.Chart chart3 = new C.Chart(); C.Title title3 = new C.Title(); C.Overlay overlay5 = new C.Overlay(){ Val = false }; title3.Append(overlay5); C.AutoTitleDeleted autoTitleDeleted3 = new C.AutoTitleDeleted(){ Val = false }; C.PivotFormats pivotFormats3 = new C.PivotFormats(); C.PivotFormat pivotFormat24 = new C.PivotFormat(); C.Index index26 = new C.Index(){ Val = (UInt32Value)0U }; C.Marker marker24 = new C.Marker(); C.Symbol symbol24 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker24.Append(symbol24); pivotFormat24.Append(index26); pivotFormat24.Append(marker24); pivotFormats3.Append(pivotFormat24); C.PlotArea plotArea3 = new C.PlotArea(); C.Layout layout3 = new C.Layout(); C.PieChart pieChart2 = new C.PieChart(); C.VaryColors varyColors3 = new C.VaryColors(){ Val = true }; C.PieChartSeries pieChartSeries2 = new C.PieChartSeries(); C.Index index27 = new C.Index(){ Val = (UInt32Value)0U }; C.Order order3 = new C.Order(){ Val = (UInt32Value)0U }; C.SeriesText seriesText3 = new C.SeriesText(); C.StringReference stringReference5 = new C.StringReference(); C.Formula formula7 = new C.Formula(); formula7.Text = "Cache!$B$1"; C.StringCache stringCache5 = new C.StringCache(); C.PointCount pointCount7 = new C.PointCount(){ Val = (UInt32Value)1U }; C.StringPoint stringPoint9 = new C.StringPoint(){ Index = (UInt32Value)0U }; C.NumericValue numericValue15 = new C.NumericValue(); numericValue15.Text = "Total"; stringPoint9.Append(numericValue15); stringCache5.Append(pointCount7); stringCache5.Append(stringPoint9); stringReference5.Append(formula7); stringReference5.Append(stringCache5); seriesText3.Append(stringReference5); C.CategoryAxisData categoryAxisData3 = new C.CategoryAxisData(); C.StringReference stringReference6 = new C.StringReference(); C.Formula formula8 = new C.Formula(); formula8.Text = "Cache!$A$2:$A$5"; C.StringCache stringCache6 = new C.StringCache(); C.PointCount pointCount8 = new C.PointCount(){ Val = (UInt32Value)3U }; C.StringPoint stringPoint10 = new C.StringPoint(){ Index = (UInt32Value)0U }; C.NumericValue numericValue16 = new C.NumericValue(); numericValue16.Text = "product_C"; stringPoint10.Append(numericValue16); C.StringPoint stringPoint11 = new C.StringPoint(){ Index = (UInt32Value)1U }; C.NumericValue numericValue17 = new C.NumericValue(); numericValue17.Text = "product_F"; stringPoint11.Append(numericValue17); C.StringPoint stringPoint12 = new C.StringPoint(){ Index = (UInt32Value)2U }; C.NumericValue numericValue18 = new C.NumericValue(); numericValue18.Text = "product_G"; stringPoint12.Append(numericValue18); stringCache6.Append(pointCount8); stringCache6.Append(stringPoint10); stringCache6.Append(stringPoint11); stringCache6.Append(stringPoint12); stringReference6.Append(formula8); stringReference6.Append(stringCache6); categoryAxisData3.Append(stringReference6); C.Values values3 = new C.Values(); C.NumberReference numberReference3 = new C.NumberReference(); C.Formula formula9 = new C.Formula(); formula9.Text = "Cache!$B$2:$B$5"; C.NumberingCache numberingCache3 = new C.NumberingCache(); C.FormatCode formatCode3 = new C.FormatCode(); formatCode3.Text = "General"; C.PointCount pointCount9 = new C.PointCount(){ Val = (UInt32Value)3U }; C.NumericPoint numericPoint7 = new C.NumericPoint(){ Index = (UInt32Value)0U }; C.NumericValue numericValue19 = new C.NumericValue(); numericValue19.Text = "2050"; numericPoint7.Append(numericValue19); C.NumericPoint numericPoint8 = new C.NumericPoint(){ Index = (UInt32Value)1U }; C.NumericValue numericValue20 = new C.NumericValue(); numericValue20.Text = "3168"; numericPoint8.Append(numericValue20); C.NumericPoint numericPoint9 = new C.NumericPoint(){ Index = (UInt32Value)2U }; C.NumericValue numericValue21 = new C.NumericValue(); numericValue21.Text = "11529"; numericPoint9.Append(numericValue21); numberingCache3.Append(formatCode3); numberingCache3.Append(pointCount9); numberingCache3.Append(numericPoint7); numberingCache3.Append(numericPoint8); numberingCache3.Append(numericPoint9); numberReference3.Append(formula9); numberReference3.Append(numberingCache3); values3.Append(numberReference3); pieChartSeries2.Append(index27); pieChartSeries2.Append(order3); pieChartSeries2.Append(seriesText3); pieChartSeries2.Append(categoryAxisData3); pieChartSeries2.Append(values3); C.DataLabels dataLabels3 = new C.DataLabels(); C.ShowLegendKey showLegendKey3 = new C.ShowLegendKey(){ Val = false }; C.ShowValue showValue3 = new C.ShowValue(){ Val = false }; C.ShowCategoryName showCategoryName3 = new C.ShowCategoryName(){ Val = false }; C.ShowSeriesName showSeriesName3 = new C.ShowSeriesName(){ Val = false }; C.ShowPercent showPercent3 = new C.ShowPercent(){ Val = false }; C.ShowBubbleSize showBubbleSize3 = new C.ShowBubbleSize(){ Val = false }; C.ShowLeaderLines showLeaderLines2 = new C.ShowLeaderLines(){ Val = true }; dataLabels3.Append(showLegendKey3); dataLabels3.Append(showValue3); dataLabels3.Append(showCategoryName3); dataLabels3.Append(showSeriesName3); dataLabels3.Append(showPercent3); dataLabels3.Append(showBubbleSize3); dataLabels3.Append(showLeaderLines2); C.FirstSliceAngle firstSliceAngle2 = new C.FirstSliceAngle(){ Val = (UInt16Value)0U }; pieChart2.Append(varyColors3); pieChart2.Append(pieChartSeries2); pieChart2.Append(dataLabels3); pieChart2.Append(firstSliceAngle2); plotArea3.Append(layout3); plotArea3.Append(pieChart2); C.Legend legend3 = new C.Legend(); C.LegendPosition legendPosition3 = new C.LegendPosition(){ Val = C.LegendPositionValues.Right }; C.Overlay overlay6 = new C.Overlay(){ Val = false }; legend3.Append(legendPosition3); legend3.Append(overlay6); C.PlotVisibleOnly plotVisibleOnly3 = new C.PlotVisibleOnly(){ Val = true }; C.DisplayBlanksAs displayBlanksAs3 = new C.DisplayBlanksAs(){ Val = C.DisplayBlanksAsValues.Gap }; C.ShowDataLabelsOverMaximum showDataLabelsOverMaximum3 = new C.ShowDataLabelsOverMaximum(){ Val = false }; chart3.Append(title3); chart3.Append(autoTitleDeleted3); chart3.Append(pivotFormats3); chart3.Append(plotArea3); chart3.Append(legend3); chart3.Append(plotVisibleOnly3); chart3.Append(displayBlanksAs3); chart3.Append(showDataLabelsOverMaximum3); C.PrintSettings printSettings3 = new C.PrintSettings(); C.HeaderFooter headerFooter3 = new C.HeaderFooter(); C.PageMargins pageMargins5 = new C.PageMargins(){ Left = 0.7D, Right = 0.7D, Top = 0.75D, Bottom = 0.75D, Header = 0.3D, Footer = 0.3D }; C.PageSetup pageSetup3 = new C.PageSetup(); printSettings3.Append(headerFooter3); printSettings3.Append(pageMargins5); printSettings3.Append(pageSetup3); C.ChartSpaceExtensionList chartSpaceExtensionList3 = new C.ChartSpaceExtensionList(); chartSpaceExtensionList3.AddNamespaceDeclaration("c14", "http://schemas.microsoft.com/office/drawing/2007/8/2/chart"); chartSpaceExtensionList3.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); C.ChartSpaceExtension chartSpaceExtension3 = new C.ChartSpaceExtension(){ Uri = "{781A3756-C4B2-4CAC-9D66-4F8BD8637D16}" }; chartSpaceExtension3.AddNamespaceDeclaration("c14", "http://schemas.microsoft.com/office/drawing/2007/8/2/chart"); C14.PivotOptions pivotOptions3 = new C14.PivotOptions(); C14.DropZoneFilter dropZoneFilter3 = new C14.DropZoneFilter(){ Val = true }; C14.DropZoneCategories dropZoneCategories3 = new C14.DropZoneCategories(){ Val = true }; C14.DropZoneData dropZoneData3 = new C14.DropZoneData(){ Val = true }; C14.DropZoneSeries dropZoneSeries3 = new C14.DropZoneSeries(){ Val = true }; C14.DropZonesVisible dropZonesVisible3 = new C14.DropZonesVisible(){ Val = true }; pivotOptions3.Append(dropZoneFilter3); pivotOptions3.Append(dropZoneCategories3); pivotOptions3.Append(dropZoneData3); pivotOptions3.Append(dropZoneSeries3); pivotOptions3.Append(dropZonesVisible3); chartSpaceExtension3.Append(pivotOptions3); chartSpaceExtensionList3.Append(chartSpaceExtension3); chartSpace3.Append(date19043); chartSpace3.Append(editingLanguage3); chartSpace3.Append(roundedCorners3); chartSpace3.Append(alternateContent8); chartSpace3.Append(pivotSource3); chartSpace3.Append(chart3); chartSpace3.Append(printSettings3); chartSpace3.Append(chartSpaceExtensionList3); chartPart3.ChartSpace = chartSpace3; }
// Generates content of chartPart18. private void GenerateChartPart18Content(ChartPart chartPart18) { C.ChartSpace chartSpace18 = new C.ChartSpace(); chartSpace18.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart"); chartSpace18.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); chartSpace18.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); C.Date1904 date190418 = new C.Date1904(){ Val = false }; C.EditingLanguage editingLanguage18 = new C.EditingLanguage(){ Val = "en-US" }; C.RoundedCorners roundedCorners18 = new C.RoundedCorners(){ Val = false }; AlternateContent alternateContent38 = new AlternateContent(); alternateContent38.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); AlternateContentChoice alternateContentChoice38 = new AlternateContentChoice(){ Requires = "c14" }; alternateContentChoice38.AddNamespaceDeclaration("c14", "http://schemas.microsoft.com/office/drawing/2007/8/2/chart"); C14.Style style34 = new C14.Style(){ Val = 101 }; alternateContentChoice38.Append(style34); AlternateContentFallback alternateContentFallback37 = new AlternateContentFallback(); C.Style style35 = new C.Style(){ Val = 1 }; alternateContentFallback37.Append(style35); alternateContent38.Append(alternateContentChoice38); alternateContent38.Append(alternateContentFallback37); C.PivotSource pivotSource18 = new C.PivotSource(); C.PivotTableName pivotTableName18 = new C.PivotTableName(); pivotTableName18.Text = "[GeneratedDocument.xlsx]ShowHorizontalScrollbar!PivotTable1"; C.FormatId formatId18 = new C.FormatId(){ Val = (UInt32Value)15U }; pivotSource18.Append(pivotTableName18); pivotSource18.Append(formatId18); C.Chart chart18 = new C.Chart(); C.Title title18 = new C.Title(); C.Overlay overlay35 = new C.Overlay(){ Val = false }; title18.Append(overlay35); C.AutoTitleDeleted autoTitleDeleted18 = new C.AutoTitleDeleted(){ Val = false }; C.PivotFormats pivotFormats18 = new C.PivotFormats(); C.PivotFormat pivotFormat160 = new C.PivotFormat(); C.Index index177 = new C.Index(){ Val = (UInt32Value)0U }; C.ShapeProperties shapeProperties72 = new C.ShapeProperties(); A.SolidFill solidFill139 = new A.SolidFill(); A.SchemeColor schemeColor109 = new A.SchemeColor(){ Val = A.SchemeColorValues.Accent1 }; A.Tint tint47 = new A.Tint(){ Val = 100000 }; schemeColor109.Append(tint47); solidFill139.Append(schemeColor109); A.Outline outline110 = new A.Outline(); A.NoFill noFill94 = new A.NoFill(); outline110.Append(noFill94); A.EffectList effectList90 = new A.EffectList(); shapeProperties72.Append(solidFill139); shapeProperties72.Append(outline110); shapeProperties72.Append(effectList90); C.Marker marker160 = new C.Marker(); C.Symbol symbol160 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker160.Append(symbol160); pivotFormat160.Append(index177); pivotFormat160.Append(shapeProperties72); pivotFormat160.Append(marker160); C.PivotFormat pivotFormat161 = new C.PivotFormat(); C.Index index178 = new C.Index(){ Val = (UInt32Value)1U }; C.ShapeProperties shapeProperties73 = new C.ShapeProperties(); A.SolidFill solidFill140 = new A.SolidFill(); A.SchemeColor schemeColor110 = new A.SchemeColor(){ Val = A.SchemeColorValues.Accent2 }; A.Tint tint48 = new A.Tint(){ Val = 100000 }; schemeColor110.Append(tint48); solidFill140.Append(schemeColor110); A.Outline outline111 = new A.Outline(); A.NoFill noFill95 = new A.NoFill(); outline111.Append(noFill95); A.EffectList effectList91 = new A.EffectList(); shapeProperties73.Append(solidFill140); shapeProperties73.Append(outline111); shapeProperties73.Append(effectList91); C.Marker marker161 = new C.Marker(); C.Symbol symbol161 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker161.Append(symbol161); pivotFormat161.Append(index178); pivotFormat161.Append(shapeProperties73); pivotFormat161.Append(marker161); C.PivotFormat pivotFormat162 = new C.PivotFormat(); C.Index index179 = new C.Index(){ Val = (UInt32Value)2U }; C.Marker marker162 = new C.Marker(); C.Symbol symbol162 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker162.Append(symbol162); pivotFormat162.Append(index179); pivotFormat162.Append(marker162); C.PivotFormat pivotFormat163 = new C.PivotFormat(); C.Index index180 = new C.Index(){ Val = (UInt32Value)3U }; C.Marker marker163 = new C.Marker(); C.Symbol symbol163 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker163.Append(symbol163); pivotFormat163.Append(index180); pivotFormat163.Append(marker163); C.PivotFormat pivotFormat164 = new C.PivotFormat(); C.Index index181 = new C.Index(){ Val = (UInt32Value)4U }; C.Marker marker164 = new C.Marker(); C.Symbol symbol164 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker164.Append(symbol164); pivotFormat164.Append(index181); pivotFormat164.Append(marker164); C.PivotFormat pivotFormat165 = new C.PivotFormat(); C.Index index182 = new C.Index(){ Val = (UInt32Value)5U }; C.Marker marker165 = new C.Marker(); C.Symbol symbol165 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker165.Append(symbol165); pivotFormat165.Append(index182); pivotFormat165.Append(marker165); C.PivotFormat pivotFormat166 = new C.PivotFormat(); C.Index index183 = new C.Index(){ Val = (UInt32Value)6U }; C.Marker marker166 = new C.Marker(); C.Symbol symbol166 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker166.Append(symbol166); pivotFormat166.Append(index183); pivotFormat166.Append(marker166); C.PivotFormat pivotFormat167 = new C.PivotFormat(); C.Index index184 = new C.Index(){ Val = (UInt32Value)7U }; C.Marker marker167 = new C.Marker(); C.Symbol symbol167 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker167.Append(symbol167); pivotFormat167.Append(index184); pivotFormat167.Append(marker167); C.PivotFormat pivotFormat168 = new C.PivotFormat(); C.Index index185 = new C.Index(){ Val = (UInt32Value)8U }; C.Marker marker168 = new C.Marker(); C.Symbol symbol168 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker168.Append(symbol168); pivotFormat168.Append(index185); pivotFormat168.Append(marker168); C.PivotFormat pivotFormat169 = new C.PivotFormat(); C.Index index186 = new C.Index(){ Val = (UInt32Value)9U }; C.Marker marker169 = new C.Marker(); C.Symbol symbol169 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker169.Append(symbol169); pivotFormat169.Append(index186); pivotFormat169.Append(marker169); C.PivotFormat pivotFormat170 = new C.PivotFormat(); C.Index index187 = new C.Index(){ Val = (UInt32Value)10U }; C.Marker marker170 = new C.Marker(); C.Symbol symbol170 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker170.Append(symbol170); pivotFormat170.Append(index187); pivotFormat170.Append(marker170); C.PivotFormat pivotFormat171 = new C.PivotFormat(); C.Index index188 = new C.Index(){ Val = (UInt32Value)11U }; C.Marker marker171 = new C.Marker(); C.Symbol symbol171 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker171.Append(symbol171); pivotFormat171.Append(index188); pivotFormat171.Append(marker171); C.PivotFormat pivotFormat172 = new C.PivotFormat(); C.Index index189 = new C.Index(){ Val = (UInt32Value)12U }; C.Marker marker172 = new C.Marker(); C.Symbol symbol172 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker172.Append(symbol172); pivotFormat172.Append(index189); pivotFormat172.Append(marker172); C.PivotFormat pivotFormat173 = new C.PivotFormat(); C.Index index190 = new C.Index(){ Val = (UInt32Value)13U }; C.Marker marker173 = new C.Marker(); C.Symbol symbol173 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker173.Append(symbol173); pivotFormat173.Append(index190); pivotFormat173.Append(marker173); C.PivotFormat pivotFormat174 = new C.PivotFormat(); C.Index index191 = new C.Index(){ Val = (UInt32Value)14U }; C.ShapeProperties shapeProperties74 = new C.ShapeProperties(); A.SolidFill solidFill141 = new A.SolidFill(); A.SchemeColor schemeColor111 = new A.SchemeColor(){ Val = A.SchemeColorValues.Accent1 }; A.Tint tint49 = new A.Tint(){ Val = 100000 }; schemeColor111.Append(tint49); solidFill141.Append(schemeColor111); A.Outline outline112 = new A.Outline(); A.NoFill noFill96 = new A.NoFill(); outline112.Append(noFill96); A.EffectList effectList92 = new A.EffectList(); shapeProperties74.Append(solidFill141); shapeProperties74.Append(outline112); shapeProperties74.Append(effectList92); C.Marker marker174 = new C.Marker(); C.Symbol symbol174 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker174.Append(symbol174); pivotFormat174.Append(index191); pivotFormat174.Append(shapeProperties74); pivotFormat174.Append(marker174); C.PivotFormat pivotFormat175 = new C.PivotFormat(); C.Index index192 = new C.Index(){ Val = (UInt32Value)15U }; C.ShapeProperties shapeProperties75 = new C.ShapeProperties(); A.SolidFill solidFill142 = new A.SolidFill(); A.SchemeColor schemeColor112 = new A.SchemeColor(){ Val = A.SchemeColorValues.Accent1 }; A.Tint tint50 = new A.Tint(){ Val = 100000 }; schemeColor112.Append(tint50); solidFill142.Append(schemeColor112); A.Outline outline113 = new A.Outline(); A.NoFill noFill97 = new A.NoFill(); outline113.Append(noFill97); A.EffectList effectList93 = new A.EffectList(); shapeProperties75.Append(solidFill142); shapeProperties75.Append(outline113); shapeProperties75.Append(effectList93); C.Marker marker175 = new C.Marker(); C.Symbol symbol175 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker175.Append(symbol175); pivotFormat175.Append(index192); pivotFormat175.Append(shapeProperties75); pivotFormat175.Append(marker175); C.PivotFormat pivotFormat176 = new C.PivotFormat(); C.Index index193 = new C.Index(){ Val = (UInt32Value)16U }; C.ShapeProperties shapeProperties76 = new C.ShapeProperties(); A.SolidFill solidFill143 = new A.SolidFill(); A.SchemeColor schemeColor113 = new A.SchemeColor(){ Val = A.SchemeColorValues.Accent1 }; A.Tint tint51 = new A.Tint(){ Val = 100000 }; schemeColor113.Append(tint51); solidFill143.Append(schemeColor113); A.Outline outline114 = new A.Outline(); A.NoFill noFill98 = new A.NoFill(); outline114.Append(noFill98); A.EffectList effectList94 = new A.EffectList(); shapeProperties76.Append(solidFill143); shapeProperties76.Append(outline114); shapeProperties76.Append(effectList94); C.Marker marker176 = new C.Marker(); C.Symbol symbol176 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker176.Append(symbol176); pivotFormat176.Append(index193); pivotFormat176.Append(shapeProperties76); pivotFormat176.Append(marker176); C.PivotFormat pivotFormat177 = new C.PivotFormat(); C.Index index194 = new C.Index(){ Val = (UInt32Value)17U }; C.ShapeProperties shapeProperties77 = new C.ShapeProperties(); A.SolidFill solidFill144 = new A.SolidFill(); A.SchemeColor schemeColor114 = new A.SchemeColor(){ Val = A.SchemeColorValues.Accent1 }; A.Tint tint52 = new A.Tint(){ Val = 100000 }; schemeColor114.Append(tint52); solidFill144.Append(schemeColor114); A.Outline outline115 = new A.Outline(); A.NoFill noFill99 = new A.NoFill(); outline115.Append(noFill99); A.EffectList effectList95 = new A.EffectList(); shapeProperties77.Append(solidFill144); shapeProperties77.Append(outline115); shapeProperties77.Append(effectList95); C.Marker marker177 = new C.Marker(); C.Symbol symbol177 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker177.Append(symbol177); pivotFormat177.Append(index194); pivotFormat177.Append(shapeProperties77); pivotFormat177.Append(marker177); C.PivotFormat pivotFormat178 = new C.PivotFormat(); C.Index index195 = new C.Index(){ Val = (UInt32Value)18U }; C.ShapeProperties shapeProperties78 = new C.ShapeProperties(); A.SolidFill solidFill145 = new A.SolidFill(); A.SchemeColor schemeColor115 = new A.SchemeColor(){ Val = A.SchemeColorValues.Accent1 }; A.Tint tint53 = new A.Tint(){ Val = 100000 }; schemeColor115.Append(tint53); solidFill145.Append(schemeColor115); A.Outline outline116 = new A.Outline(); A.NoFill noFill100 = new A.NoFill(); outline116.Append(noFill100); A.EffectList effectList96 = new A.EffectList(); shapeProperties78.Append(solidFill145); shapeProperties78.Append(outline116); shapeProperties78.Append(effectList96); C.Marker marker178 = new C.Marker(); C.Symbol symbol178 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker178.Append(symbol178); pivotFormat178.Append(index195); pivotFormat178.Append(shapeProperties78); pivotFormat178.Append(marker178); pivotFormats18.Append(pivotFormat160); pivotFormats18.Append(pivotFormat161); pivotFormats18.Append(pivotFormat162); pivotFormats18.Append(pivotFormat163); pivotFormats18.Append(pivotFormat164); pivotFormats18.Append(pivotFormat165); pivotFormats18.Append(pivotFormat166); pivotFormats18.Append(pivotFormat167); pivotFormats18.Append(pivotFormat168); pivotFormats18.Append(pivotFormat169); pivotFormats18.Append(pivotFormat170); pivotFormats18.Append(pivotFormat171); pivotFormats18.Append(pivotFormat172); pivotFormats18.Append(pivotFormat173); pivotFormats18.Append(pivotFormat174); pivotFormats18.Append(pivotFormat175); pivotFormats18.Append(pivotFormat176); pivotFormats18.Append(pivotFormat177); pivotFormats18.Append(pivotFormat178); C.PlotArea plotArea18 = new C.PlotArea(); C.Layout layout18 = new C.Layout(); C.BarChart barChart9 = new C.BarChart(); C.BarDirection barDirection9 = new C.BarDirection(){ Val = C.BarDirectionValues.Column }; C.BarGrouping barGrouping9 = new C.BarGrouping(){ Val = C.BarGroupingValues.Clustered }; C.VaryColors varyColors18 = new C.VaryColors(){ Val = false }; C.BarChartSeries barChartSeries9 = new C.BarChartSeries(); C.Index index196 = new C.Index(){ Val = (UInt32Value)0U }; C.Order order18 = new C.Order(){ Val = (UInt32Value)0U }; C.SeriesText seriesText18 = new C.SeriesText(); C.StringReference stringReference35 = new C.StringReference(); C.Formula formula52 = new C.Formula(); formula52.Text = "ShowHorizontalScrollbar!$B$1"; C.StringCache stringCache35 = new C.StringCache(); C.PointCount pointCount52 = new C.PointCount(){ Val = (UInt32Value)1U }; C.StringPoint stringPoint69 = new C.StringPoint(){ Index = (UInt32Value)0U }; C.NumericValue numericValue120 = new C.NumericValue(); numericValue120.Text = "Total"; stringPoint69.Append(numericValue120); stringCache35.Append(pointCount52); stringCache35.Append(stringPoint69); stringReference35.Append(formula52); stringReference35.Append(stringCache35); seriesText18.Append(stringReference35); C.ChartShapeProperties chartShapeProperties36 = new C.ChartShapeProperties(); A.SolidFill solidFill146 = new A.SolidFill(); A.SchemeColor schemeColor116 = new A.SchemeColor(){ Val = A.SchemeColorValues.Accent1 }; A.Tint tint54 = new A.Tint(){ Val = 100000 }; schemeColor116.Append(tint54); solidFill146.Append(schemeColor116); A.Outline outline117 = new A.Outline(); A.NoFill noFill101 = new A.NoFill(); outline117.Append(noFill101); A.EffectList effectList97 = new A.EffectList(); chartShapeProperties36.Append(solidFill146); chartShapeProperties36.Append(outline117); chartShapeProperties36.Append(effectList97); C.InvertIfNegative invertIfNegative9 = new C.InvertIfNegative(){ Val = false }; C.CategoryAxisData categoryAxisData18 = new C.CategoryAxisData(); C.StringReference stringReference36 = new C.StringReference(); C.Formula formula53 = new C.Formula(); formula53.Text = "ShowHorizontalScrollbar!$A$2:$A$5"; C.StringCache stringCache36 = new C.StringCache(); C.PointCount pointCount53 = new C.PointCount(){ Val = (UInt32Value)3U }; C.StringPoint stringPoint70 = new C.StringPoint(){ Index = (UInt32Value)0U }; C.NumericValue numericValue121 = new C.NumericValue(); numericValue121.Text = "product_A"; stringPoint70.Append(numericValue121); C.StringPoint stringPoint71 = new C.StringPoint(){ Index = (UInt32Value)1U }; C.NumericValue numericValue122 = new C.NumericValue(); numericValue122.Text = "product_D"; stringPoint71.Append(numericValue122); C.StringPoint stringPoint72 = new C.StringPoint(){ Index = (UInt32Value)2U }; C.NumericValue numericValue123 = new C.NumericValue(); numericValue123.Text = "product_E"; stringPoint72.Append(numericValue123); stringCache36.Append(pointCount53); stringCache36.Append(stringPoint70); stringCache36.Append(stringPoint71); stringCache36.Append(stringPoint72); stringReference36.Append(formula53); stringReference36.Append(stringCache36); categoryAxisData18.Append(stringReference36); C.Values values18 = new C.Values(); C.NumberReference numberReference18 = new C.NumberReference(); C.Formula formula54 = new C.Formula(); formula54.Text = "ShowHorizontalScrollbar!$B$2:$B$5"; C.NumberingCache numberingCache18 = new C.NumberingCache(); C.FormatCode formatCode18 = new C.FormatCode(); formatCode18.Text = "General"; C.PointCount pointCount54 = new C.PointCount(){ Val = (UInt32Value)3U }; C.NumericPoint numericPoint52 = new C.NumericPoint(){ Index = (UInt32Value)0U }; C.NumericValue numericValue124 = new C.NumericValue(); numericValue124.Text = "19"; numericPoint52.Append(numericValue124); C.NumericPoint numericPoint53 = new C.NumericPoint(){ Index = (UInt32Value)1U }; C.NumericValue numericValue125 = new C.NumericValue(); numericValue125.Text = "13"; numericPoint53.Append(numericValue125); C.NumericPoint numericPoint54 = new C.NumericPoint(){ Index = (UInt32Value)2U }; C.NumericValue numericValue126 = new C.NumericValue(); numericValue126.Text = "33"; numericPoint54.Append(numericValue126); numberingCache18.Append(formatCode18); numberingCache18.Append(pointCount54); numberingCache18.Append(numericPoint52); numberingCache18.Append(numericPoint53); numberingCache18.Append(numericPoint54); numberReference18.Append(formula54); numberReference18.Append(numberingCache18); values18.Append(numberReference18); barChartSeries9.Append(index196); barChartSeries9.Append(order18); barChartSeries9.Append(seriesText18); barChartSeries9.Append(chartShapeProperties36); barChartSeries9.Append(invertIfNegative9); barChartSeries9.Append(categoryAxisData18); barChartSeries9.Append(values18); C.DataLabels dataLabels18 = new C.DataLabels(); C.ShowLegendKey showLegendKey18 = new C.ShowLegendKey(){ Val = false }; C.ShowValue showValue18 = new C.ShowValue(){ Val = false }; C.ShowCategoryName showCategoryName18 = new C.ShowCategoryName(){ Val = false }; C.ShowSeriesName showSeriesName18 = new C.ShowSeriesName(){ Val = false }; C.ShowPercent showPercent18 = new C.ShowPercent(){ Val = false }; C.ShowBubbleSize showBubbleSize18 = new C.ShowBubbleSize(){ Val = false }; dataLabels18.Append(showLegendKey18); dataLabels18.Append(showValue18); dataLabels18.Append(showCategoryName18); dataLabels18.Append(showSeriesName18); dataLabels18.Append(showPercent18); dataLabels18.Append(showBubbleSize18); C.GapWidth gapWidth9 = new C.GapWidth(){ Val = (UInt16Value)219U }; C.Overlap overlap8 = new C.Overlap(){ Val = -27 }; C.AxisId axisId33 = new C.AxisId(){ Val = (UInt32Value)209982688U }; C.AxisId axisId34 = new C.AxisId(){ Val = (UInt32Value)208839816U }; barChart9.Append(barDirection9); barChart9.Append(barGrouping9); barChart9.Append(varyColors18); barChart9.Append(barChartSeries9); barChart9.Append(dataLabels18); barChart9.Append(gapWidth9); barChart9.Append(overlap8); barChart9.Append(axisId33); barChart9.Append(axisId34); C.CategoryAxis categoryAxis9 = new C.CategoryAxis(); C.AxisId axisId35 = new C.AxisId(){ Val = (UInt32Value)209982688U }; C.Scaling scaling17 = new C.Scaling(); C.Orientation orientation17 = new C.Orientation(){ Val = C.OrientationValues.MinMax }; scaling17.Append(orientation17); C.Delete delete17 = new C.Delete(){ Val = false }; C.AxisPosition axisPosition17 = new C.AxisPosition(){ Val = C.AxisPositionValues.Bottom }; C.NumberingFormat numberingFormat28 = new C.NumberingFormat(){ FormatCode = "General", SourceLinked = false }; C.MajorTickMark majorTickMark17 = new C.MajorTickMark(){ Val = C.TickMarkValues.None }; C.MinorTickMark minorTickMark17 = new C.MinorTickMark(){ Val = C.TickMarkValues.None }; C.TickLabelPosition tickLabelPosition17 = new C.TickLabelPosition(){ Val = C.TickLabelPositionValues.NextTo }; C.ChartShapeProperties chartShapeProperties37 = new C.ChartShapeProperties(); A.NoFill noFill102 = new A.NoFill(); A.Outline outline118 = new A.Outline(); A.NoFill noFill103 = new A.NoFill(); outline118.Append(noFill103); A.EffectList effectList98 = new A.EffectList(); chartShapeProperties37.Append(noFill102); chartShapeProperties37.Append(outline118); chartShapeProperties37.Append(effectList98); C.TextProperties textProperties29 = new C.TextProperties(); A.BodyProperties bodyProperties49 = new A.BodyProperties(){ Rotation = -60000000, UseParagraphSpacing = true, VerticalOverflow = A.TextVerticalOverflowValues.Ellipsis, Vertical = A.TextVerticalValues.Horizontal, Wrap = A.TextWrappingValues.Square, Anchor = A.TextAnchoringTypeValues.Center, AnchorCenter = true }; A.ListStyle listStyle49 = new A.ListStyle(); A.Paragraph paragraph49 = new A.Paragraph(); A.ParagraphProperties paragraphProperties29 = new A.ParagraphProperties(); A.DefaultRunProperties defaultRunProperties29 = new A.DefaultRunProperties(){ FontSize = 900, Kerning = 1200 }; A.SolidFill solidFill147 = new A.SolidFill(); A.SchemeColor schemeColor117 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; A.LuminanceModulation luminanceModulation42 = new A.LuminanceModulation(){ Val = 65000 }; A.LuminanceOffset luminanceOffset36 = new A.LuminanceOffset(){ Val = 35000 }; schemeColor117.Append(luminanceModulation42); schemeColor117.Append(luminanceOffset36); solidFill147.Append(schemeColor117); A.LatinFont latinFont24 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont24 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont24 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties29.Append(solidFill147); defaultRunProperties29.Append(latinFont24); defaultRunProperties29.Append(eastAsianFont24); defaultRunProperties29.Append(complexScriptFont24); paragraphProperties29.Append(defaultRunProperties29); A.EndParagraphRunProperties endParagraphRunProperties29 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph49.Append(paragraphProperties29); paragraph49.Append(endParagraphRunProperties29); textProperties29.Append(bodyProperties49); textProperties29.Append(listStyle49); textProperties29.Append(paragraph49); C.CrossingAxis crossingAxis17 = new C.CrossingAxis(){ Val = (UInt32Value)208839816U }; C.Crosses crosses17 = new C.Crosses(){ Val = C.CrossesValues.AutoZero }; C.AutoLabeled autoLabeled9 = new C.AutoLabeled(){ Val = true }; C.LabelAlignment labelAlignment9 = new C.LabelAlignment(){ Val = C.LabelAlignmentValues.Center }; C.LabelOffset labelOffset9 = new C.LabelOffset(){ Val = (UInt16Value)100U }; C.NoMultiLevelLabels noMultiLevelLabels9 = new C.NoMultiLevelLabels(){ Val = false }; categoryAxis9.Append(axisId35); categoryAxis9.Append(scaling17); categoryAxis9.Append(delete17); categoryAxis9.Append(axisPosition17); categoryAxis9.Append(numberingFormat28); categoryAxis9.Append(majorTickMark17); categoryAxis9.Append(minorTickMark17); categoryAxis9.Append(tickLabelPosition17); categoryAxis9.Append(chartShapeProperties37); categoryAxis9.Append(textProperties29); categoryAxis9.Append(crossingAxis17); categoryAxis9.Append(crosses17); categoryAxis9.Append(autoLabeled9); categoryAxis9.Append(labelAlignment9); categoryAxis9.Append(labelOffset9); categoryAxis9.Append(noMultiLevelLabels9); C.ValueAxis valueAxis9 = new C.ValueAxis(); C.AxisId axisId36 = new C.AxisId(){ Val = (UInt32Value)208839816U }; C.Scaling scaling18 = new C.Scaling(); C.Orientation orientation18 = new C.Orientation(){ Val = C.OrientationValues.MinMax }; scaling18.Append(orientation18); C.Delete delete18 = new C.Delete(){ Val = false }; C.AxisPosition axisPosition18 = new C.AxisPosition(){ Val = C.AxisPositionValues.Left }; C.MajorGridlines majorGridlines9 = new C.MajorGridlines(); C.ChartShapeProperties chartShapeProperties38 = new C.ChartShapeProperties(); A.Outline outline119 = new A.Outline(){ Width = 9525, CapType = A.LineCapValues.Flat, CompoundLineType = A.CompoundLineValues.Single, Alignment = A.PenAlignmentValues.Center }; A.SolidFill solidFill148 = new A.SolidFill(); A.SchemeColor schemeColor118 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; A.LuminanceModulation luminanceModulation43 = new A.LuminanceModulation(){ Val = 15000 }; A.LuminanceOffset luminanceOffset37 = new A.LuminanceOffset(){ Val = 85000 }; schemeColor118.Append(luminanceModulation43); schemeColor118.Append(luminanceOffset37); solidFill148.Append(schemeColor118); A.Round round15 = new A.Round(); outline119.Append(solidFill148); outline119.Append(round15); A.EffectList effectList99 = new A.EffectList(); chartShapeProperties38.Append(outline119); chartShapeProperties38.Append(effectList99); majorGridlines9.Append(chartShapeProperties38); C.NumberingFormat numberingFormat29 = new C.NumberingFormat(){ FormatCode = "General", SourceLinked = true }; C.MajorTickMark majorTickMark18 = new C.MajorTickMark(){ Val = C.TickMarkValues.None }; C.MinorTickMark minorTickMark18 = new C.MinorTickMark(){ Val = C.TickMarkValues.None }; C.TickLabelPosition tickLabelPosition18 = new C.TickLabelPosition(){ Val = C.TickLabelPositionValues.NextTo }; C.ChartShapeProperties chartShapeProperties39 = new C.ChartShapeProperties(); A.NoFill noFill104 = new A.NoFill(); A.Outline outline120 = new A.Outline(); A.NoFill noFill105 = new A.NoFill(); outline120.Append(noFill105); A.EffectList effectList100 = new A.EffectList(); chartShapeProperties39.Append(noFill104); chartShapeProperties39.Append(outline120); chartShapeProperties39.Append(effectList100); C.TextProperties textProperties30 = new C.TextProperties(); A.BodyProperties bodyProperties50 = new A.BodyProperties(){ Rotation = -60000000, UseParagraphSpacing = true, VerticalOverflow = A.TextVerticalOverflowValues.Ellipsis, Vertical = A.TextVerticalValues.Horizontal, Wrap = A.TextWrappingValues.Square, Anchor = A.TextAnchoringTypeValues.Center, AnchorCenter = true }; A.ListStyle listStyle50 = new A.ListStyle(); A.Paragraph paragraph50 = new A.Paragraph(); A.ParagraphProperties paragraphProperties30 = new A.ParagraphProperties(); A.DefaultRunProperties defaultRunProperties30 = new A.DefaultRunProperties(){ FontSize = 900, Kerning = 1200 }; A.SolidFill solidFill149 = new A.SolidFill(); A.SchemeColor schemeColor119 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; A.LuminanceModulation luminanceModulation44 = new A.LuminanceModulation(){ Val = 65000 }; A.LuminanceOffset luminanceOffset38 = new A.LuminanceOffset(){ Val = 35000 }; schemeColor119.Append(luminanceModulation44); schemeColor119.Append(luminanceOffset38); solidFill149.Append(schemeColor119); A.LatinFont latinFont25 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont25 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont25 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties30.Append(solidFill149); defaultRunProperties30.Append(latinFont25); defaultRunProperties30.Append(eastAsianFont25); defaultRunProperties30.Append(complexScriptFont25); paragraphProperties30.Append(defaultRunProperties30); A.EndParagraphRunProperties endParagraphRunProperties30 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph50.Append(paragraphProperties30); paragraph50.Append(endParagraphRunProperties30); textProperties30.Append(bodyProperties50); textProperties30.Append(listStyle50); textProperties30.Append(paragraph50); C.CrossingAxis crossingAxis18 = new C.CrossingAxis(){ Val = (UInt32Value)209982688U }; C.Crosses crosses18 = new C.Crosses(){ Val = C.CrossesValues.AutoZero }; C.CrossBetween crossBetween9 = new C.CrossBetween(){ Val = C.CrossBetweenValues.Between }; valueAxis9.Append(axisId36); valueAxis9.Append(scaling18); valueAxis9.Append(delete18); valueAxis9.Append(axisPosition18); valueAxis9.Append(majorGridlines9); valueAxis9.Append(numberingFormat29); valueAxis9.Append(majorTickMark18); valueAxis9.Append(minorTickMark18); valueAxis9.Append(tickLabelPosition18); valueAxis9.Append(chartShapeProperties39); valueAxis9.Append(textProperties30); valueAxis9.Append(crossingAxis18); valueAxis9.Append(crosses18); valueAxis9.Append(crossBetween9); C.ShapeProperties shapeProperties79 = new C.ShapeProperties(); A.SolidFill solidFill150 = new A.SolidFill(); A.SchemeColor schemeColor120 = new A.SchemeColor(){ Val = A.SchemeColorValues.Background1 }; solidFill150.Append(schemeColor120); A.Outline outline121 = new A.Outline(); A.NoFill noFill106 = new A.NoFill(); outline121.Append(noFill106); A.EffectList effectList101 = new A.EffectList(); shapeProperties79.Append(solidFill150); shapeProperties79.Append(outline121); shapeProperties79.Append(effectList101); plotArea18.Append(layout18); plotArea18.Append(barChart9); plotArea18.Append(categoryAxis9); plotArea18.Append(valueAxis9); plotArea18.Append(shapeProperties79); C.Legend legend18 = new C.Legend(); C.LegendPosition legendPosition18 = new C.LegendPosition(){ Val = C.LegendPositionValues.Bottom }; C.Overlay overlay36 = new C.Overlay(){ Val = false }; C.ChartShapeProperties chartShapeProperties40 = new C.ChartShapeProperties(); A.NoFill noFill107 = new A.NoFill(); A.Outline outline122 = new A.Outline(); A.NoFill noFill108 = new A.NoFill(); outline122.Append(noFill108); A.EffectList effectList102 = new A.EffectList(); chartShapeProperties40.Append(noFill107); chartShapeProperties40.Append(outline122); chartShapeProperties40.Append(effectList102); C.TextProperties textProperties31 = new C.TextProperties(); A.BodyProperties bodyProperties51 = new A.BodyProperties(){ Rotation = 0, UseParagraphSpacing = true, VerticalOverflow = A.TextVerticalOverflowValues.Ellipsis, Vertical = A.TextVerticalValues.Horizontal, Wrap = A.TextWrappingValues.Square, Anchor = A.TextAnchoringTypeValues.Center, AnchorCenter = true }; A.ListStyle listStyle51 = new A.ListStyle(); A.Paragraph paragraph51 = new A.Paragraph(); A.ParagraphProperties paragraphProperties31 = new A.ParagraphProperties(); A.DefaultRunProperties defaultRunProperties31 = new A.DefaultRunProperties(){ FontSize = 900, Kerning = 1200 }; A.SolidFill solidFill151 = new A.SolidFill(); A.SchemeColor schemeColor121 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; A.LuminanceModulation luminanceModulation45 = new A.LuminanceModulation(){ Val = 65000 }; A.LuminanceOffset luminanceOffset39 = new A.LuminanceOffset(){ Val = 35000 }; schemeColor121.Append(luminanceModulation45); schemeColor121.Append(luminanceOffset39); solidFill151.Append(schemeColor121); A.LatinFont latinFont26 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont26 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont26 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties31.Append(solidFill151); defaultRunProperties31.Append(latinFont26); defaultRunProperties31.Append(eastAsianFont26); defaultRunProperties31.Append(complexScriptFont26); paragraphProperties31.Append(defaultRunProperties31); A.EndParagraphRunProperties endParagraphRunProperties31 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph51.Append(paragraphProperties31); paragraph51.Append(endParagraphRunProperties31); textProperties31.Append(bodyProperties51); textProperties31.Append(listStyle51); textProperties31.Append(paragraph51); legend18.Append(legendPosition18); legend18.Append(overlay36); legend18.Append(chartShapeProperties40); legend18.Append(textProperties31); C.PlotVisibleOnly plotVisibleOnly18 = new C.PlotVisibleOnly(){ Val = true }; C.DisplayBlanksAs displayBlanksAs18 = new C.DisplayBlanksAs(){ Val = C.DisplayBlanksAsValues.Gap }; C.ShowDataLabelsOverMaximum showDataLabelsOverMaximum18 = new C.ShowDataLabelsOverMaximum(){ Val = false }; chart18.Append(title18); chart18.Append(autoTitleDeleted18); chart18.Append(pivotFormats18); chart18.Append(plotArea18); chart18.Append(legend18); chart18.Append(plotVisibleOnly18); chart18.Append(displayBlanksAs18); chart18.Append(showDataLabelsOverMaximum18); C.ShapeProperties shapeProperties80 = new C.ShapeProperties(); A.SolidFill solidFill152 = new A.SolidFill(); A.SchemeColor schemeColor122 = new A.SchemeColor(){ Val = A.SchemeColorValues.Background1 }; solidFill152.Append(schemeColor122); A.Outline outline123 = new A.Outline(){ Width = 9525, CapType = A.LineCapValues.Flat, CompoundLineType = A.CompoundLineValues.Single, Alignment = A.PenAlignmentValues.Center }; A.SolidFill solidFill153 = new A.SolidFill(); A.SchemeColor schemeColor123 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; A.LuminanceModulation luminanceModulation46 = new A.LuminanceModulation(){ Val = 15000 }; A.LuminanceOffset luminanceOffset40 = new A.LuminanceOffset(){ Val = 85000 }; schemeColor123.Append(luminanceModulation46); schemeColor123.Append(luminanceOffset40); solidFill153.Append(schemeColor123); A.Round round16 = new A.Round(); outline123.Append(solidFill153); outline123.Append(round16); A.EffectList effectList103 = new A.EffectList(); shapeProperties80.Append(solidFill152); shapeProperties80.Append(outline123); shapeProperties80.Append(effectList103); C.TextProperties textProperties32 = new C.TextProperties(); A.BodyProperties bodyProperties52 = new A.BodyProperties(); A.ListStyle listStyle52 = new A.ListStyle(); A.Paragraph paragraph52 = new A.Paragraph(); A.ParagraphProperties paragraphProperties32 = new A.ParagraphProperties(); A.DefaultRunProperties defaultRunProperties32 = new A.DefaultRunProperties(); paragraphProperties32.Append(defaultRunProperties32); A.EndParagraphRunProperties endParagraphRunProperties32 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph52.Append(paragraphProperties32); paragraph52.Append(endParagraphRunProperties32); textProperties32.Append(bodyProperties52); textProperties32.Append(listStyle52); textProperties32.Append(paragraph52); C.PrintSettings printSettings18 = new C.PrintSettings(); C.HeaderFooter headerFooter18 = new C.HeaderFooter(); C.PageMargins pageMargins29 = new C.PageMargins(){ Left = 0.7D, Right = 0.7D, Top = 0.75D, Bottom = 0.75D, Header = 0.3D, Footer = 0.3D }; C.PageSetup pageSetup18 = new C.PageSetup(); printSettings18.Append(headerFooter18); printSettings18.Append(pageMargins29); printSettings18.Append(pageSetup18); C.ChartSpaceExtensionList chartSpaceExtensionList18 = new C.ChartSpaceExtensionList(); chartSpaceExtensionList18.AddNamespaceDeclaration("c14", "http://schemas.microsoft.com/office/drawing/2007/8/2/chart"); chartSpaceExtensionList18.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); C.ChartSpaceExtension chartSpaceExtension18 = new C.ChartSpaceExtension(){ Uri = "{781A3756-C4B2-4CAC-9D66-4F8BD8637D16}" }; chartSpaceExtension18.AddNamespaceDeclaration("c14", "http://schemas.microsoft.com/office/drawing/2007/8/2/chart"); C14.PivotOptions pivotOptions18 = new C14.PivotOptions(); C14.DropZoneFilter dropZoneFilter18 = new C14.DropZoneFilter(){ Val = true }; C14.DropZoneCategories dropZoneCategories18 = new C14.DropZoneCategories(){ Val = true }; C14.DropZoneData dropZoneData18 = new C14.DropZoneData(){ Val = true }; C14.DropZoneSeries dropZoneSeries18 = new C14.DropZoneSeries(){ Val = true }; C14.DropZonesVisible dropZonesVisible18 = new C14.DropZonesVisible(){ Val = true }; pivotOptions18.Append(dropZoneFilter18); pivotOptions18.Append(dropZoneCategories18); pivotOptions18.Append(dropZoneData18); pivotOptions18.Append(dropZoneSeries18); pivotOptions18.Append(dropZonesVisible18); chartSpaceExtension18.Append(pivotOptions18); chartSpaceExtensionList18.Append(chartSpaceExtension18); chartSpace18.Append(date190418); chartSpace18.Append(editingLanguage18); chartSpace18.Append(roundedCorners18); chartSpace18.Append(alternateContent38); chartSpace18.Append(pivotSource18); chartSpace18.Append(chart18); chartSpace18.Append(shapeProperties80); chartSpace18.Append(textProperties32); chartSpace18.Append(printSettings18); chartSpace18.Append(chartSpaceExtensionList18); chartPart18.ChartSpace = chartSpace18; }
// Generates content of chartPart17. private void GenerateChartPart17Content(ChartPart chartPart17) { C.ChartSpace chartSpace17 = new C.ChartSpace(); chartSpace17.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart"); chartSpace17.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); chartSpace17.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); C.Date1904 date190417 = new C.Date1904(){ Val = false }; C.EditingLanguage editingLanguage17 = new C.EditingLanguage(){ Val = "en-US" }; C.RoundedCorners roundedCorners17 = new C.RoundedCorners(){ Val = false }; AlternateContent alternateContent37 = new AlternateContent(); alternateContent37.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); AlternateContentChoice alternateContentChoice37 = new AlternateContentChoice(){ Requires = "c14" }; alternateContentChoice37.AddNamespaceDeclaration("c14", "http://schemas.microsoft.com/office/drawing/2007/8/2/chart"); C14.Style style32 = new C14.Style(){ Val = 102 }; alternateContentChoice37.Append(style32); AlternateContentFallback alternateContentFallback36 = new AlternateContentFallback(); C.Style style33 = new C.Style(){ Val = 2 }; alternateContentFallback36.Append(style33); alternateContent37.Append(alternateContentChoice37); alternateContent37.Append(alternateContentFallback36); C.PivotSource pivotSource17 = new C.PivotSource(); C.PivotTableName pivotTableName17 = new C.PivotTableName(); pivotTableName17.Text = "[GeneratedDocument.xlsx]ShowHorizontalScrollbar!PivotTable1"; C.FormatId formatId17 = new C.FormatId(){ Val = (UInt32Value)16U }; pivotSource17.Append(pivotTableName17); pivotSource17.Append(formatId17); C.Chart chart17 = new C.Chart(); C.Title title17 = new C.Title(); C.Overlay overlay33 = new C.Overlay(){ Val = false }; title17.Append(overlay33); C.AutoTitleDeleted autoTitleDeleted17 = new C.AutoTitleDeleted(){ Val = false }; C.PivotFormats pivotFormats17 = new C.PivotFormats(); C.PivotFormat pivotFormat154 = new C.PivotFormat(); C.Index index170 = new C.Index(){ Val = (UInt32Value)0U }; C.Marker marker154 = new C.Marker(); C.Symbol symbol154 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker154.Append(symbol154); pivotFormat154.Append(index170); pivotFormat154.Append(marker154); C.PivotFormat pivotFormat155 = new C.PivotFormat(); C.Index index171 = new C.Index(){ Val = (UInt32Value)1U }; C.Marker marker155 = new C.Marker(); C.Symbol symbol155 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker155.Append(symbol155); pivotFormat155.Append(index171); pivotFormat155.Append(marker155); C.PivotFormat pivotFormat156 = new C.PivotFormat(); C.Index index172 = new C.Index(){ Val = (UInt32Value)2U }; C.Marker marker156 = new C.Marker(); C.Symbol symbol156 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker156.Append(symbol156); pivotFormat156.Append(index172); pivotFormat156.Append(marker156); C.PivotFormat pivotFormat157 = new C.PivotFormat(); C.Index index173 = new C.Index(){ Val = (UInt32Value)3U }; C.Marker marker157 = new C.Marker(); C.Symbol symbol157 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker157.Append(symbol157); pivotFormat157.Append(index173); pivotFormat157.Append(marker157); C.PivotFormat pivotFormat158 = new C.PivotFormat(); C.Index index174 = new C.Index(){ Val = (UInt32Value)4U }; C.Marker marker158 = new C.Marker(); C.Symbol symbol158 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker158.Append(symbol158); pivotFormat158.Append(index174); pivotFormat158.Append(marker158); C.PivotFormat pivotFormat159 = new C.PivotFormat(); C.Index index175 = new C.Index(){ Val = (UInt32Value)5U }; C.Marker marker159 = new C.Marker(); C.Symbol symbol159 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker159.Append(symbol159); pivotFormat159.Append(index175); pivotFormat159.Append(marker159); pivotFormats17.Append(pivotFormat154); pivotFormats17.Append(pivotFormat155); pivotFormats17.Append(pivotFormat156); pivotFormats17.Append(pivotFormat157); pivotFormats17.Append(pivotFormat158); pivotFormats17.Append(pivotFormat159); C.PlotArea plotArea17 = new C.PlotArea(); C.Layout layout17 = new C.Layout(); C.PieChart pieChart9 = new C.PieChart(); C.VaryColors varyColors17 = new C.VaryColors(){ Val = true }; C.PieChartSeries pieChartSeries9 = new C.PieChartSeries(); C.Index index176 = new C.Index(){ Val = (UInt32Value)0U }; C.Order order17 = new C.Order(){ Val = (UInt32Value)0U }; C.SeriesText seriesText17 = new C.SeriesText(); C.StringReference stringReference33 = new C.StringReference(); C.Formula formula49 = new C.Formula(); formula49.Text = "ShowHorizontalScrollbar!$B$1"; C.StringCache stringCache33 = new C.StringCache(); C.PointCount pointCount49 = new C.PointCount(){ Val = (UInt32Value)1U }; C.StringPoint stringPoint65 = new C.StringPoint(){ Index = (UInt32Value)0U }; C.NumericValue numericValue113 = new C.NumericValue(); numericValue113.Text = "Total"; stringPoint65.Append(numericValue113); stringCache33.Append(pointCount49); stringCache33.Append(stringPoint65); stringReference33.Append(formula49); stringReference33.Append(stringCache33); seriesText17.Append(stringReference33); C.CategoryAxisData categoryAxisData17 = new C.CategoryAxisData(); C.StringReference stringReference34 = new C.StringReference(); C.Formula formula50 = new C.Formula(); formula50.Text = "ShowHorizontalScrollbar!$A$2:$A$5"; C.StringCache stringCache34 = new C.StringCache(); C.PointCount pointCount50 = new C.PointCount(){ Val = (UInt32Value)3U }; C.StringPoint stringPoint66 = new C.StringPoint(){ Index = (UInt32Value)0U }; C.NumericValue numericValue114 = new C.NumericValue(); numericValue114.Text = "product_A"; stringPoint66.Append(numericValue114); C.StringPoint stringPoint67 = new C.StringPoint(){ Index = (UInt32Value)1U }; C.NumericValue numericValue115 = new C.NumericValue(); numericValue115.Text = "product_D"; stringPoint67.Append(numericValue115); C.StringPoint stringPoint68 = new C.StringPoint(){ Index = (UInt32Value)2U }; C.NumericValue numericValue116 = new C.NumericValue(); numericValue116.Text = "product_E"; stringPoint68.Append(numericValue116); stringCache34.Append(pointCount50); stringCache34.Append(stringPoint66); stringCache34.Append(stringPoint67); stringCache34.Append(stringPoint68); stringReference34.Append(formula50); stringReference34.Append(stringCache34); categoryAxisData17.Append(stringReference34); C.Values values17 = new C.Values(); C.NumberReference numberReference17 = new C.NumberReference(); C.Formula formula51 = new C.Formula(); formula51.Text = "ShowHorizontalScrollbar!$B$2:$B$5"; C.NumberingCache numberingCache17 = new C.NumberingCache(); C.FormatCode formatCode17 = new C.FormatCode(); formatCode17.Text = "General"; C.PointCount pointCount51 = new C.PointCount(){ Val = (UInt32Value)3U }; C.NumericPoint numericPoint49 = new C.NumericPoint(){ Index = (UInt32Value)0U }; C.NumericValue numericValue117 = new C.NumericValue(); numericValue117.Text = "19"; numericPoint49.Append(numericValue117); C.NumericPoint numericPoint50 = new C.NumericPoint(){ Index = (UInt32Value)1U }; C.NumericValue numericValue118 = new C.NumericValue(); numericValue118.Text = "13"; numericPoint50.Append(numericValue118); C.NumericPoint numericPoint51 = new C.NumericPoint(){ Index = (UInt32Value)2U }; C.NumericValue numericValue119 = new C.NumericValue(); numericValue119.Text = "33"; numericPoint51.Append(numericValue119); numberingCache17.Append(formatCode17); numberingCache17.Append(pointCount51); numberingCache17.Append(numericPoint49); numberingCache17.Append(numericPoint50); numberingCache17.Append(numericPoint51); numberReference17.Append(formula51); numberReference17.Append(numberingCache17); values17.Append(numberReference17); pieChartSeries9.Append(index176); pieChartSeries9.Append(order17); pieChartSeries9.Append(seriesText17); pieChartSeries9.Append(categoryAxisData17); pieChartSeries9.Append(values17); C.DataLabels dataLabels17 = new C.DataLabels(); C.ShowLegendKey showLegendKey17 = new C.ShowLegendKey(){ Val = false }; C.ShowValue showValue17 = new C.ShowValue(){ Val = false }; C.ShowCategoryName showCategoryName17 = new C.ShowCategoryName(){ Val = false }; C.ShowSeriesName showSeriesName17 = new C.ShowSeriesName(){ Val = false }; C.ShowPercent showPercent17 = new C.ShowPercent(){ Val = false }; C.ShowBubbleSize showBubbleSize17 = new C.ShowBubbleSize(){ Val = false }; C.ShowLeaderLines showLeaderLines9 = new C.ShowLeaderLines(){ Val = true }; dataLabels17.Append(showLegendKey17); dataLabels17.Append(showValue17); dataLabels17.Append(showCategoryName17); dataLabels17.Append(showSeriesName17); dataLabels17.Append(showPercent17); dataLabels17.Append(showBubbleSize17); dataLabels17.Append(showLeaderLines9); C.FirstSliceAngle firstSliceAngle9 = new C.FirstSliceAngle(){ Val = (UInt16Value)0U }; pieChart9.Append(varyColors17); pieChart9.Append(pieChartSeries9); pieChart9.Append(dataLabels17); pieChart9.Append(firstSliceAngle9); plotArea17.Append(layout17); plotArea17.Append(pieChart9); C.Legend legend17 = new C.Legend(); C.LegendPosition legendPosition17 = new C.LegendPosition(){ Val = C.LegendPositionValues.Right }; C.Overlay overlay34 = new C.Overlay(){ Val = false }; legend17.Append(legendPosition17); legend17.Append(overlay34); C.PlotVisibleOnly plotVisibleOnly17 = new C.PlotVisibleOnly(){ Val = true }; C.DisplayBlanksAs displayBlanksAs17 = new C.DisplayBlanksAs(){ Val = C.DisplayBlanksAsValues.Gap }; C.ShowDataLabelsOverMaximum showDataLabelsOverMaximum17 = new C.ShowDataLabelsOverMaximum(){ Val = false }; chart17.Append(title17); chart17.Append(autoTitleDeleted17); chart17.Append(pivotFormats17); chart17.Append(plotArea17); chart17.Append(legend17); chart17.Append(plotVisibleOnly17); chart17.Append(displayBlanksAs17); chart17.Append(showDataLabelsOverMaximum17); C.PrintSettings printSettings17 = new C.PrintSettings(); C.HeaderFooter headerFooter17 = new C.HeaderFooter(); C.PageMargins pageMargins28 = new C.PageMargins(){ Left = 0.7D, Right = 0.7D, Top = 0.75D, Bottom = 0.75D, Header = 0.3D, Footer = 0.3D }; C.PageSetup pageSetup17 = new C.PageSetup(); printSettings17.Append(headerFooter17); printSettings17.Append(pageMargins28); printSettings17.Append(pageSetup17); C.ChartSpaceExtensionList chartSpaceExtensionList17 = new C.ChartSpaceExtensionList(); chartSpaceExtensionList17.AddNamespaceDeclaration("c14", "http://schemas.microsoft.com/office/drawing/2007/8/2/chart"); chartSpaceExtensionList17.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); C.ChartSpaceExtension chartSpaceExtension17 = new C.ChartSpaceExtension(){ Uri = "{781A3756-C4B2-4CAC-9D66-4F8BD8637D16}" }; chartSpaceExtension17.AddNamespaceDeclaration("c14", "http://schemas.microsoft.com/office/drawing/2007/8/2/chart"); C14.PivotOptions pivotOptions17 = new C14.PivotOptions(); C14.DropZoneFilter dropZoneFilter17 = new C14.DropZoneFilter(){ Val = true }; C14.DropZoneCategories dropZoneCategories17 = new C14.DropZoneCategories(){ Val = true }; C14.DropZoneData dropZoneData17 = new C14.DropZoneData(){ Val = true }; C14.DropZoneSeries dropZoneSeries17 = new C14.DropZoneSeries(){ Val = true }; C14.DropZonesVisible dropZonesVisible17 = new C14.DropZonesVisible(){ Val = true }; pivotOptions17.Append(dropZoneFilter17); pivotOptions17.Append(dropZoneCategories17); pivotOptions17.Append(dropZoneData17); pivotOptions17.Append(dropZoneSeries17); pivotOptions17.Append(dropZonesVisible17); chartSpaceExtension17.Append(pivotOptions17); chartSpaceExtensionList17.Append(chartSpaceExtension17); chartSpace17.Append(date190417); chartSpace17.Append(editingLanguage17); chartSpace17.Append(roundedCorners17); chartSpace17.Append(alternateContent37); chartSpace17.Append(pivotSource17); chartSpace17.Append(chart17); chartSpace17.Append(printSettings17); chartSpace17.Append(chartSpaceExtensionList17); chartPart17.ChartSpace = chartSpace17; }
// Generates content of drawingsPart9. private void GenerateDrawingsPart9Content(DrawingsPart drawingsPart9) { Xdr.WorksheetDrawing worksheetDrawing9 = new Xdr.WorksheetDrawing(); worksheetDrawing9.AddNamespaceDeclaration("xdr", "http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"); worksheetDrawing9.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); Xdr.TwoCellAnchor twoCellAnchor35 = new Xdr.TwoCellAnchor(); Xdr.FromMarker fromMarker35 = new Xdr.FromMarker(); Xdr.ColumnId columnId69 = new Xdr.ColumnId(); columnId69.Text = "2"; Xdr.ColumnOffset columnOffset69 = new Xdr.ColumnOffset(); columnOffset69.Text = "185737"; Xdr.RowId rowId69 = new Xdr.RowId(); rowId69.Text = "0"; Xdr.RowOffset rowOffset69 = new Xdr.RowOffset(); rowOffset69.Text = "0"; fromMarker35.Append(columnId69); fromMarker35.Append(columnOffset69); fromMarker35.Append(rowId69); fromMarker35.Append(rowOffset69); Xdr.ToMarker toMarker35 = new Xdr.ToMarker(); Xdr.ColumnId columnId70 = new Xdr.ColumnId(); columnId70.Text = "9"; Xdr.ColumnOffset columnOffset70 = new Xdr.ColumnOffset(); columnOffset70.Text = "90487"; Xdr.RowId rowId70 = new Xdr.RowId(); rowId70.Text = "14"; Xdr.RowOffset rowOffset70 = new Xdr.RowOffset(); rowOffset70.Text = "76200"; toMarker35.Append(columnId70); toMarker35.Append(columnOffset70); toMarker35.Append(rowId70); toMarker35.Append(rowOffset70); Xdr.GraphicFrame graphicFrame35 = new Xdr.GraphicFrame(){ Macro = "" }; Xdr.NonVisualGraphicFrameProperties nonVisualGraphicFrameProperties35 = new Xdr.NonVisualGraphicFrameProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties53 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)2U, Name = "Chart 1" }; Xdr.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties35 = new Xdr.NonVisualGraphicFrameDrawingProperties(); A.GraphicFrameLocks graphicFrameLocks13 = new A.GraphicFrameLocks(); nonVisualGraphicFrameDrawingProperties35.Append(graphicFrameLocks13); nonVisualGraphicFrameProperties35.Append(nonVisualDrawingProperties53); nonVisualGraphicFrameProperties35.Append(nonVisualGraphicFrameDrawingProperties35); Xdr.Transform transform35 = new Xdr.Transform(); A.Offset offset53 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents53 = new A.Extents(){ Cx = 0L, Cy = 0L }; transform35.Append(offset53); transform35.Append(extents53); A.Graphic graphic35 = new A.Graphic(); A.GraphicData graphicData35 = new A.GraphicData(){ Uri = "http://schemas.openxmlformats.org/drawingml/2006/chart" }; C.ChartReference chartReference17 = new C.ChartReference(){ Id = "rId1" }; chartReference17.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart"); chartReference17.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); graphicData35.Append(chartReference17); graphic35.Append(graphicData35); graphicFrame35.Append(nonVisualGraphicFrameProperties35); graphicFrame35.Append(transform35); graphicFrame35.Append(graphic35); Xdr.ClientData clientData35 = new Xdr.ClientData(); twoCellAnchor35.Append(fromMarker35); twoCellAnchor35.Append(toMarker35); twoCellAnchor35.Append(graphicFrame35); twoCellAnchor35.Append(clientData35); Xdr.TwoCellAnchor twoCellAnchor36 = new Xdr.TwoCellAnchor(); Xdr.FromMarker fromMarker36 = new Xdr.FromMarker(); Xdr.ColumnId columnId71 = new Xdr.ColumnId(); columnId71.Text = "2"; Xdr.ColumnOffset columnOffset71 = new Xdr.ColumnOffset(); columnOffset71.Text = "200025"; Xdr.RowId rowId71 = new Xdr.RowId(); rowId71.Text = "14"; Xdr.RowOffset rowOffset71 = new Xdr.RowOffset(); rowOffset71.Text = "147637"; fromMarker36.Append(columnId71); fromMarker36.Append(columnOffset71); fromMarker36.Append(rowId71); fromMarker36.Append(rowOffset71); Xdr.ToMarker toMarker36 = new Xdr.ToMarker(); Xdr.ColumnId columnId72 = new Xdr.ColumnId(); columnId72.Text = "7"; Xdr.ColumnOffset columnOffset72 = new Xdr.ColumnOffset(); columnOffset72.Text = "476250"; Xdr.RowId rowId72 = new Xdr.RowId(); rowId72.Text = "29"; Xdr.RowOffset rowOffset72 = new Xdr.RowOffset(); rowOffset72.Text = "33337"; toMarker36.Append(columnId72); toMarker36.Append(columnOffset72); toMarker36.Append(rowId72); toMarker36.Append(rowOffset72); Xdr.GraphicFrame graphicFrame36 = new Xdr.GraphicFrame(){ Macro = "" }; Xdr.NonVisualGraphicFrameProperties nonVisualGraphicFrameProperties36 = new Xdr.NonVisualGraphicFrameProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties54 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)3U, Name = "グラフ 2" }; Xdr.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties36 = new Xdr.NonVisualGraphicFrameDrawingProperties(); A.GraphicFrameLocks graphicFrameLocks14 = new A.GraphicFrameLocks(); nonVisualGraphicFrameDrawingProperties36.Append(graphicFrameLocks14); nonVisualGraphicFrameProperties36.Append(nonVisualDrawingProperties54); nonVisualGraphicFrameProperties36.Append(nonVisualGraphicFrameDrawingProperties36); Xdr.Transform transform36 = new Xdr.Transform(); A.Offset offset54 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents54 = new A.Extents(){ Cx = 0L, Cy = 0L }; transform36.Append(offset54); transform36.Append(extents54); A.Graphic graphic36 = new A.Graphic(); A.GraphicData graphicData36 = new A.GraphicData(){ Uri = "http://schemas.openxmlformats.org/drawingml/2006/chart" }; C.ChartReference chartReference18 = new C.ChartReference(){ Id = "rId2" }; chartReference18.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart"); chartReference18.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); graphicData36.Append(chartReference18); graphic36.Append(graphicData36); graphicFrame36.Append(nonVisualGraphicFrameProperties36); graphicFrame36.Append(transform36); graphicFrame36.Append(graphic36); Xdr.ClientData clientData36 = new Xdr.ClientData(); twoCellAnchor36.Append(fromMarker36); twoCellAnchor36.Append(toMarker36); twoCellAnchor36.Append(graphicFrame36); twoCellAnchor36.Append(clientData36); Xdr.TwoCellAnchor twoCellAnchor37 = new Xdr.TwoCellAnchor(){ EditAs = Xdr.EditAsValues.OneCell }; Xdr.FromMarker fromMarker37 = new Xdr.FromMarker(); Xdr.ColumnId columnId73 = new Xdr.ColumnId(); columnId73.Text = "9"; Xdr.ColumnOffset columnOffset73 = new Xdr.ColumnOffset(); columnOffset73.Text = "847725"; Xdr.RowId rowId73 = new Xdr.RowId(); rowId73.Text = "0"; Xdr.RowOffset rowOffset73 = new Xdr.RowOffset(); rowOffset73.Text = "161925"; fromMarker37.Append(columnId73); fromMarker37.Append(columnOffset73); fromMarker37.Append(rowId73); fromMarker37.Append(rowOffset73); Xdr.ToMarker toMarker37 = new Xdr.ToMarker(); Xdr.ColumnId columnId74 = new Xdr.ColumnId(); columnId74.Text = "13"; Xdr.ColumnOffset columnOffset74 = new Xdr.ColumnOffset(); columnOffset74.Text = "714375"; Xdr.RowId rowId74 = new Xdr.RowId(); rowId74.Text = "7"; Xdr.RowOffset rowOffset74 = new Xdr.RowOffset(); rowOffset74.Text = "19050"; toMarker37.Append(columnId74); toMarker37.Append(columnOffset74); toMarker37.Append(rowId74); toMarker37.Append(rowOffset74); AlternateContent alternateContent35 = new AlternateContent(); alternateContent35.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); alternateContent35.AddNamespaceDeclaration("a15", "http://schemas.microsoft.com/office/drawing/2012/main"); AlternateContentChoice alternateContentChoice35 = new AlternateContentChoice(){ Requires = "a15" }; Xdr.GraphicFrame graphicFrame37 = new Xdr.GraphicFrame(){ Macro = "" }; Xdr.NonVisualGraphicFrameProperties nonVisualGraphicFrameProperties37 = new Xdr.NonVisualGraphicFrameProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties55 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)4U, Name = "DeliveryDate 12" }; Xdr.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties37 = new Xdr.NonVisualGraphicFrameDrawingProperties(); nonVisualGraphicFrameProperties37.Append(nonVisualDrawingProperties55); nonVisualGraphicFrameProperties37.Append(nonVisualGraphicFrameDrawingProperties37); Xdr.Transform transform37 = new Xdr.Transform(); A.Offset offset55 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents55 = new A.Extents(){ Cx = 0L, Cy = 0L }; transform37.Append(offset55); transform37.Append(extents55); A.Graphic graphic37 = new A.Graphic(); A.GraphicData graphicData37 = new A.GraphicData(){ Uri = "http://schemas.microsoft.com/office/drawing/2012/timeslicer" }; Tsle.TimeSlicer timeSlicer19 = new Tsle.TimeSlicer(){ Name = "DeliveryDate 12" }; timeSlicer19.AddNamespaceDeclaration("tsle", "http://schemas.microsoft.com/office/drawing/2012/timeslicer"); graphicData37.Append(timeSlicer19); graphic37.Append(graphicData37); graphicFrame37.Append(nonVisualGraphicFrameProperties37); graphicFrame37.Append(transform37); graphicFrame37.Append(graphic37); alternateContentChoice35.Append(graphicFrame37); AlternateContentFallback alternateContentFallback34 = new AlternateContentFallback(); alternateContentFallback34.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); alternateContentFallback34.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart"); Xdr.Shape shape19 = new Xdr.Shape(){ Macro = "", TextLink = "" }; Xdr.NonVisualShapeProperties nonVisualShapeProperties19 = new Xdr.NonVisualShapeProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties56 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)0U, Name = "" }; Xdr.NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties19 = new Xdr.NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks19 = new A.ShapeLocks(){ NoTextEdit = true }; nonVisualShapeDrawingProperties19.Append(shapeLocks19); nonVisualShapeProperties19.Append(nonVisualDrawingProperties56); nonVisualShapeProperties19.Append(nonVisualShapeDrawingProperties19); Xdr.ShapeProperties shapeProperties70 = new Xdr.ShapeProperties(); A.Transform2D transform2D19 = new A.Transform2D(); A.Offset offset56 = new A.Offset(){ X = 8582025L, Y = 161925L }; A.Extents extents56 = new A.Extents(){ Cx = 3333750L, Cy = 1190625L }; transform2D19.Append(offset56); transform2D19.Append(extents56); A.PresetGeometry presetGeometry19 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList19 = new A.AdjustValueList(); presetGeometry19.Append(adjustValueList19); A.SolidFill solidFill135 = new A.SolidFill(); A.PresetColor presetColor37 = new A.PresetColor(){ Val = A.PresetColorValues.White }; solidFill135.Append(presetColor37); A.Outline outline108 = new A.Outline(){ Width = 1 }; A.SolidFill solidFill136 = new A.SolidFill(); A.PresetColor presetColor38 = new A.PresetColor(){ Val = A.PresetColorValues.Green }; solidFill136.Append(presetColor38); outline108.Append(solidFill136); shapeProperties70.Append(transform2D19); shapeProperties70.Append(presetGeometry19); shapeProperties70.Append(solidFill135); shapeProperties70.Append(outline108); Xdr.TextBody textBody19 = new Xdr.TextBody(); A.BodyProperties bodyProperties47 = new A.BodyProperties(){ VerticalOverflow = A.TextVerticalOverflowValues.Clip, HorizontalOverflow = A.TextHorizontalOverflowValues.Clip }; A.ListStyle listStyle47 = new A.ListStyle(); A.Paragraph paragraph47 = new A.Paragraph(); A.Run run19 = new A.Run(); A.RunProperties runProperties19 = new A.RunProperties(){ Language = "en-US", FontSize = 1100 }; A.Text text57 = new A.Text(); text57.Text = "Timeline: Works in Excel 15 or higher. Do not move or resize."; run19.Append(runProperties19); run19.Append(text57); paragraph47.Append(run19); textBody19.Append(bodyProperties47); textBody19.Append(listStyle47); textBody19.Append(paragraph47); shape19.Append(nonVisualShapeProperties19); shape19.Append(shapeProperties70); shape19.Append(textBody19); alternateContentFallback34.Append(shape19); alternateContent35.Append(alternateContentChoice35); alternateContent35.Append(alternateContentFallback34); Xdr.ClientData clientData37 = new Xdr.ClientData(); twoCellAnchor37.Append(fromMarker37); twoCellAnchor37.Append(toMarker37); twoCellAnchor37.Append(alternateContent35); twoCellAnchor37.Append(clientData37); Xdr.TwoCellAnchor twoCellAnchor38 = new Xdr.TwoCellAnchor(){ EditAs = Xdr.EditAsValues.OneCell }; Xdr.FromMarker fromMarker38 = new Xdr.FromMarker(); Xdr.ColumnId columnId75 = new Xdr.ColumnId(); columnId75.Text = "9"; Xdr.ColumnOffset columnOffset75 = new Xdr.ColumnOffset(); columnOffset75.Text = "847725"; Xdr.RowId rowId75 = new Xdr.RowId(); rowId75.Text = "8"; Xdr.RowOffset rowOffset75 = new Xdr.RowOffset(); rowOffset75.Text = "28575"; fromMarker38.Append(columnId75); fromMarker38.Append(columnOffset75); fromMarker38.Append(rowId75); fromMarker38.Append(rowOffset75); Xdr.ToMarker toMarker38 = new Xdr.ToMarker(); Xdr.ColumnId columnId76 = new Xdr.ColumnId(); columnId76.Text = "13"; Xdr.ColumnOffset columnOffset76 = new Xdr.ColumnOffset(); columnOffset76.Text = "590550"; Xdr.RowId rowId76 = new Xdr.RowId(); rowId76.Text = "14"; Xdr.RowOffset rowOffset76 = new Xdr.RowOffset(); rowOffset76.Text = "76200"; toMarker38.Append(columnId76); toMarker38.Append(columnOffset76); toMarker38.Append(rowId76); toMarker38.Append(rowOffset76); AlternateContent alternateContent36 = new AlternateContent(); alternateContent36.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); alternateContent36.AddNamespaceDeclaration("a15", "http://schemas.microsoft.com/office/drawing/2012/main"); AlternateContentChoice alternateContentChoice36 = new AlternateContentChoice(){ Requires = "a15" }; Xdr.GraphicFrame graphicFrame38 = new Xdr.GraphicFrame(){ Macro = "" }; Xdr.NonVisualGraphicFrameProperties nonVisualGraphicFrameProperties38 = new Xdr.NonVisualGraphicFrameProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties57 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)5U, Name = "DeliveryDate 13" }; Xdr.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties38 = new Xdr.NonVisualGraphicFrameDrawingProperties(); nonVisualGraphicFrameProperties38.Append(nonVisualDrawingProperties57); nonVisualGraphicFrameProperties38.Append(nonVisualGraphicFrameDrawingProperties38); Xdr.Transform transform38 = new Xdr.Transform(); A.Offset offset57 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents57 = new A.Extents(){ Cx = 0L, Cy = 0L }; transform38.Append(offset57); transform38.Append(extents57); A.Graphic graphic38 = new A.Graphic(); A.GraphicData graphicData38 = new A.GraphicData(){ Uri = "http://schemas.microsoft.com/office/drawing/2012/timeslicer" }; Tsle.TimeSlicer timeSlicer20 = new Tsle.TimeSlicer(){ Name = "DeliveryDate 13" }; timeSlicer20.AddNamespaceDeclaration("tsle", "http://schemas.microsoft.com/office/drawing/2012/timeslicer"); graphicData38.Append(timeSlicer20); graphic38.Append(graphicData38); graphicFrame38.Append(nonVisualGraphicFrameProperties38); graphicFrame38.Append(transform38); graphicFrame38.Append(graphic38); alternateContentChoice36.Append(graphicFrame38); AlternateContentFallback alternateContentFallback35 = new AlternateContentFallback(); Xdr.Shape shape20 = new Xdr.Shape(){ Macro = "", TextLink = "" }; Xdr.NonVisualShapeProperties nonVisualShapeProperties20 = new Xdr.NonVisualShapeProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties58 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)0U, Name = "" }; Xdr.NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties20 = new Xdr.NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks20 = new A.ShapeLocks(){ NoTextEdit = true }; nonVisualShapeDrawingProperties20.Append(shapeLocks20); nonVisualShapeProperties20.Append(nonVisualDrawingProperties58); nonVisualShapeProperties20.Append(nonVisualShapeDrawingProperties20); Xdr.ShapeProperties shapeProperties71 = new Xdr.ShapeProperties(); A.Transform2D transform2D20 = new A.Transform2D(); A.Offset offset58 = new A.Offset(){ X = 10144125L, Y = 1400175L }; A.Extents extents58 = new A.Extents(){ Cx = 3705225L, Cy = 1076325L }; transform2D20.Append(offset58); transform2D20.Append(extents58); A.PresetGeometry presetGeometry20 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList20 = new A.AdjustValueList(); presetGeometry20.Append(adjustValueList20); A.SolidFill solidFill137 = new A.SolidFill(); A.PresetColor presetColor39 = new A.PresetColor(){ Val = A.PresetColorValues.White }; solidFill137.Append(presetColor39); A.Outline outline109 = new A.Outline(){ Width = 1 }; A.SolidFill solidFill138 = new A.SolidFill(); A.PresetColor presetColor40 = new A.PresetColor(){ Val = A.PresetColorValues.Green }; solidFill138.Append(presetColor40); outline109.Append(solidFill138); shapeProperties71.Append(transform2D20); shapeProperties71.Append(presetGeometry20); shapeProperties71.Append(solidFill137); shapeProperties71.Append(outline109); Xdr.TextBody textBody20 = new Xdr.TextBody(); A.BodyProperties bodyProperties48 = new A.BodyProperties(){ VerticalOverflow = A.TextVerticalOverflowValues.Clip, HorizontalOverflow = A.TextHorizontalOverflowValues.Clip }; A.ListStyle listStyle48 = new A.ListStyle(); A.Paragraph paragraph48 = new A.Paragraph(); A.Run run20 = new A.Run(); A.RunProperties runProperties20 = new A.RunProperties(){ Language = "ja-JP", AlternativeLanguage = "en-US", FontSize = 1100 }; A.Text text58 = new A.Text(); text58.Text = "Timeline: Works in Excel 15 or higher. Do not move or resize."; run20.Append(runProperties20); run20.Append(text58); paragraph48.Append(run20); textBody20.Append(bodyProperties48); textBody20.Append(listStyle48); textBody20.Append(paragraph48); shape20.Append(nonVisualShapeProperties20); shape20.Append(shapeProperties71); shape20.Append(textBody20); alternateContentFallback35.Append(shape20); alternateContent36.Append(alternateContentChoice36); alternateContent36.Append(alternateContentFallback35); Xdr.ClientData clientData38 = new Xdr.ClientData(); twoCellAnchor38.Append(fromMarker38); twoCellAnchor38.Append(toMarker38); twoCellAnchor38.Append(alternateContent36); twoCellAnchor38.Append(clientData38); worksheetDrawing9.Append(twoCellAnchor35); worksheetDrawing9.Append(twoCellAnchor36); worksheetDrawing9.Append(twoCellAnchor37); worksheetDrawing9.Append(twoCellAnchor38); drawingsPart9.WorksheetDrawing = worksheetDrawing9; }
// Generates content of drawingsPart2. private void GenerateDrawingsPart2Content(DrawingsPart drawingsPart2) { Xdr.WorksheetDrawing worksheetDrawing2 = new Xdr.WorksheetDrawing(); worksheetDrawing2.AddNamespaceDeclaration("xdr", "http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"); worksheetDrawing2.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); Xdr.TwoCellAnchor twoCellAnchor3 = new Xdr.TwoCellAnchor(); Xdr.FromMarker fromMarker3 = new Xdr.FromMarker(); Xdr.ColumnId columnId5 = new Xdr.ColumnId(); columnId5.Text = "1"; Xdr.ColumnOffset columnOffset5 = new Xdr.ColumnOffset(); columnOffset5.Text = "33337"; Xdr.RowId rowId5 = new Xdr.RowId(); rowId5.Text = "2"; Xdr.RowOffset rowOffset5 = new Xdr.RowOffset(); rowOffset5.Text = "61912"; fromMarker3.Append(columnId5); fromMarker3.Append(columnOffset5); fromMarker3.Append(rowId5); fromMarker3.Append(rowOffset5); Xdr.ToMarker toMarker3 = new Xdr.ToMarker(); Xdr.ColumnId columnId6 = new Xdr.ColumnId(); columnId6.Text = "7"; Xdr.ColumnOffset columnOffset6 = new Xdr.ColumnOffset(); columnOffset6.Text = "185737"; Xdr.RowId rowId6 = new Xdr.RowId(); rowId6.Text = "22"; Xdr.RowOffset rowOffset6 = new Xdr.RowOffset(); rowOffset6.Text = "61912"; toMarker3.Append(columnId6); toMarker3.Append(columnOffset6); toMarker3.Append(rowId6); toMarker3.Append(rowOffset6); AlternateContent alternateContent4 = new AlternateContent(); alternateContent4.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); AlternateContentChoice alternateContentChoice4 = new AlternateContentChoice(){ Requires = "we" }; alternateContentChoice4.AddNamespaceDeclaration("we", "http://schemas.microsoft.com/office/webextensions/webextension/2010/11"); Xdr.GraphicFrame graphicFrame3 = new Xdr.GraphicFrame(){ Macro = "" }; Xdr.NonVisualGraphicFrameProperties nonVisualGraphicFrameProperties3 = new Xdr.NonVisualGraphicFrameProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties5 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)2U, Name = "Agave 1" }; Xdr.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties3 = new Xdr.NonVisualGraphicFrameDrawingProperties(); A.GraphicFrameLocks graphicFrameLocks3 = new A.GraphicFrameLocks(){ NoGrouping = true }; nonVisualGraphicFrameDrawingProperties3.Append(graphicFrameLocks3); nonVisualGraphicFrameProperties3.Append(nonVisualDrawingProperties5); nonVisualGraphicFrameProperties3.Append(nonVisualGraphicFrameDrawingProperties3); Xdr.Transform transform3 = new Xdr.Transform(); A.Offset offset3 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents3 = new A.Extents(){ Cx = 0L, Cy = 0L }; transform3.Append(offset3); transform3.Append(extents3); A.Graphic graphic3 = new A.Graphic(); A.GraphicData graphicData3 = new A.GraphicData(){ Uri = "http://schemas.microsoft.com/office/webextensions/webextension/2010/11" }; We.WebExtensionReference webExtensionReference3 = new We.WebExtensionReference(){ Id = "rId1" }; webExtensionReference3.AddNamespaceDeclaration("we", "http://schemas.microsoft.com/office/webextensions/webextension/2010/11"); webExtensionReference3.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); graphicData3.Append(webExtensionReference3); graphic3.Append(graphicData3); graphicFrame3.Append(nonVisualGraphicFrameProperties3); graphicFrame3.Append(transform3); graphicFrame3.Append(graphic3); alternateContentChoice4.Append(graphicFrame3); AlternateContentFallback alternateContentFallback3 = new AlternateContentFallback(); Xdr.Picture picture3 = new Xdr.Picture(); Xdr.NonVisualPictureProperties nonVisualPictureProperties3 = new Xdr.NonVisualPictureProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties6 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)2U, Name = "Agave 1" }; Xdr.NonVisualPictureDrawingProperties nonVisualPictureDrawingProperties3 = new Xdr.NonVisualPictureDrawingProperties(); nonVisualPictureProperties3.Append(nonVisualDrawingProperties6); nonVisualPictureProperties3.Append(nonVisualPictureDrawingProperties3); Xdr.BlipFill blipFill3 = new Xdr.BlipFill(); A.Blip blip3 = new A.Blip(){ Embed = "rId2" }; blip3.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); A.Stretch stretch3 = new A.Stretch(); A.FillRectangle fillRectangle3 = new A.FillRectangle(); stretch3.Append(fillRectangle3); blipFill3.Append(blip3); blipFill3.Append(stretch3); Xdr.ShapeProperties shapeProperties3 = new Xdr.ShapeProperties(); A.PresetGeometry presetGeometry3 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList3 = new A.AdjustValueList(); presetGeometry3.Append(adjustValueList3); shapeProperties3.Append(presetGeometry3); picture3.Append(nonVisualPictureProperties3); picture3.Append(blipFill3); picture3.Append(shapeProperties3); alternateContentFallback3.Append(picture3); alternateContent4.Append(alternateContentChoice4); alternateContent4.Append(alternateContentFallback3); Xdr.ClientData clientData3 = new Xdr.ClientData(); twoCellAnchor3.Append(fromMarker3); twoCellAnchor3.Append(toMarker3); twoCellAnchor3.Append(alternateContent4); twoCellAnchor3.Append(clientData3); worksheetDrawing2.Append(twoCellAnchor3); drawingsPart2.WorksheetDrawing = worksheetDrawing2; }
// Generates content of drawingsPart3. private void GenerateDrawingsPart3Content(DrawingsPart drawingsPart3) { Xdr.WorksheetDrawing worksheetDrawing3 = new Xdr.WorksheetDrawing(); worksheetDrawing3.AddNamespaceDeclaration("xdr", "http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"); worksheetDrawing3.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); Xdr.TwoCellAnchor twoCellAnchor9 = new Xdr.TwoCellAnchor(); Xdr.FromMarker fromMarker9 = new Xdr.FromMarker(); Xdr.ColumnId columnId17 = new Xdr.ColumnId(); columnId17.Text = "2"; Xdr.ColumnOffset columnOffset17 = new Xdr.ColumnOffset(); columnOffset17.Text = "185737"; Xdr.RowId rowId17 = new Xdr.RowId(); rowId17.Text = "0"; Xdr.RowOffset rowOffset17 = new Xdr.RowOffset(); rowOffset17.Text = "0"; fromMarker9.Append(columnId17); fromMarker9.Append(columnOffset17); fromMarker9.Append(rowId17); fromMarker9.Append(rowOffset17); Xdr.ToMarker toMarker9 = new Xdr.ToMarker(); Xdr.ColumnId columnId18 = new Xdr.ColumnId(); columnId18.Text = "9"; Xdr.ColumnOffset columnOffset18 = new Xdr.ColumnOffset(); columnOffset18.Text = "90487"; Xdr.RowId rowId18 = new Xdr.RowId(); rowId18.Text = "14"; Xdr.RowOffset rowOffset18 = new Xdr.RowOffset(); rowOffset18.Text = "76200"; toMarker9.Append(columnId18); toMarker9.Append(columnOffset18); toMarker9.Append(rowId18); toMarker9.Append(rowOffset18); Xdr.GraphicFrame graphicFrame9 = new Xdr.GraphicFrame(){ Macro = "" }; Xdr.NonVisualGraphicFrameProperties nonVisualGraphicFrameProperties9 = new Xdr.NonVisualGraphicFrameProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties13 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)2U, Name = "Chart 1" }; Xdr.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties9 = new Xdr.NonVisualGraphicFrameDrawingProperties(); A.GraphicFrameLocks graphicFrameLocks3 = new A.GraphicFrameLocks(); nonVisualGraphicFrameDrawingProperties9.Append(graphicFrameLocks3); nonVisualGraphicFrameProperties9.Append(nonVisualDrawingProperties13); nonVisualGraphicFrameProperties9.Append(nonVisualGraphicFrameDrawingProperties9); Xdr.Transform transform9 = new Xdr.Transform(); A.Offset offset13 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents13 = new A.Extents(){ Cx = 0L, Cy = 0L }; transform9.Append(offset13); transform9.Append(extents13); A.Graphic graphic9 = new A.Graphic(); A.GraphicData graphicData9 = new A.GraphicData(){ Uri = "http://schemas.openxmlformats.org/drawingml/2006/chart" }; C.ChartReference chartReference5 = new C.ChartReference(){ Id = "rId1" }; chartReference5.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart"); chartReference5.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); graphicData9.Append(chartReference5); graphic9.Append(graphicData9); graphicFrame9.Append(nonVisualGraphicFrameProperties9); graphicFrame9.Append(transform9); graphicFrame9.Append(graphic9); Xdr.ClientData clientData9 = new Xdr.ClientData(); twoCellAnchor9.Append(fromMarker9); twoCellAnchor9.Append(toMarker9); twoCellAnchor9.Append(graphicFrame9); twoCellAnchor9.Append(clientData9); Xdr.TwoCellAnchor twoCellAnchor10 = new Xdr.TwoCellAnchor(); Xdr.FromMarker fromMarker10 = new Xdr.FromMarker(); Xdr.ColumnId columnId19 = new Xdr.ColumnId(); columnId19.Text = "2"; Xdr.ColumnOffset columnOffset19 = new Xdr.ColumnOffset(); columnOffset19.Text = "200025"; Xdr.RowId rowId19 = new Xdr.RowId(); rowId19.Text = "14"; Xdr.RowOffset rowOffset19 = new Xdr.RowOffset(); rowOffset19.Text = "147637"; fromMarker10.Append(columnId19); fromMarker10.Append(columnOffset19); fromMarker10.Append(rowId19); fromMarker10.Append(rowOffset19); Xdr.ToMarker toMarker10 = new Xdr.ToMarker(); Xdr.ColumnId columnId20 = new Xdr.ColumnId(); columnId20.Text = "7"; Xdr.ColumnOffset columnOffset20 = new Xdr.ColumnOffset(); columnOffset20.Text = "476250"; Xdr.RowId rowId20 = new Xdr.RowId(); rowId20.Text = "29"; Xdr.RowOffset rowOffset20 = new Xdr.RowOffset(); rowOffset20.Text = "33337"; toMarker10.Append(columnId20); toMarker10.Append(columnOffset20); toMarker10.Append(rowId20); toMarker10.Append(rowOffset20); Xdr.GraphicFrame graphicFrame10 = new Xdr.GraphicFrame(){ Macro = "" }; Xdr.NonVisualGraphicFrameProperties nonVisualGraphicFrameProperties10 = new Xdr.NonVisualGraphicFrameProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties14 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)3U, Name = "グラフ 2" }; Xdr.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties10 = new Xdr.NonVisualGraphicFrameDrawingProperties(); A.GraphicFrameLocks graphicFrameLocks4 = new A.GraphicFrameLocks(); nonVisualGraphicFrameDrawingProperties10.Append(graphicFrameLocks4); nonVisualGraphicFrameProperties10.Append(nonVisualDrawingProperties14); nonVisualGraphicFrameProperties10.Append(nonVisualGraphicFrameDrawingProperties10); Xdr.Transform transform10 = new Xdr.Transform(); A.Offset offset14 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents14 = new A.Extents(){ Cx = 0L, Cy = 0L }; transform10.Append(offset14); transform10.Append(extents14); A.Graphic graphic10 = new A.Graphic(); A.GraphicData graphicData10 = new A.GraphicData(){ Uri = "http://schemas.openxmlformats.org/drawingml/2006/chart" }; C.ChartReference chartReference6 = new C.ChartReference(){ Id = "rId2" }; chartReference6.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart"); chartReference6.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); graphicData10.Append(chartReference6); graphic10.Append(graphicData10); graphicFrame10.Append(nonVisualGraphicFrameProperties10); graphicFrame10.Append(transform10); graphicFrame10.Append(graphic10); Xdr.ClientData clientData10 = new Xdr.ClientData(); twoCellAnchor10.Append(fromMarker10); twoCellAnchor10.Append(toMarker10); twoCellAnchor10.Append(graphicFrame10); twoCellAnchor10.Append(clientData10); Xdr.TwoCellAnchor twoCellAnchor11 = new Xdr.TwoCellAnchor(){ EditAs = Xdr.EditAsValues.OneCell }; Xdr.FromMarker fromMarker11 = new Xdr.FromMarker(); Xdr.ColumnId columnId21 = new Xdr.ColumnId(); columnId21.Text = "10"; Xdr.ColumnOffset columnOffset21 = new Xdr.ColumnOffset(); columnOffset21.Text = "28575"; Xdr.RowId rowId21 = new Xdr.RowId(); rowId21.Text = "1"; Xdr.RowOffset rowOffset21 = new Xdr.RowOffset(); rowOffset21.Text = "9525"; fromMarker11.Append(columnId21); fromMarker11.Append(columnOffset21); fromMarker11.Append(rowId21); fromMarker11.Append(rowOffset21); Xdr.ToMarker toMarker11 = new Xdr.ToMarker(); Xdr.ColumnId columnId22 = new Xdr.ColumnId(); columnId22.Text = "13"; Xdr.ColumnOffset columnOffset22 = new Xdr.ColumnOffset(); columnOffset22.Text = "762000"; Xdr.RowId rowId22 = new Xdr.RowId(); rowId22.Text = "7"; Xdr.RowOffset rowOffset22 = new Xdr.RowOffset(); rowOffset22.Text = "57150"; toMarker11.Append(columnId22); toMarker11.Append(columnOffset22); toMarker11.Append(rowId22); toMarker11.Append(rowOffset22); AlternateContent alternateContent10 = new AlternateContent(); alternateContent10.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); alternateContent10.AddNamespaceDeclaration("a15", "http://schemas.microsoft.com/office/drawing/2012/main"); AlternateContentChoice alternateContentChoice10 = new AlternateContentChoice(){ Requires = "a15" }; Xdr.GraphicFrame graphicFrame11 = new Xdr.GraphicFrame(){ Macro = "" }; Xdr.NonVisualGraphicFrameProperties nonVisualGraphicFrameProperties11 = new Xdr.NonVisualGraphicFrameProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties15 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)4U, Name = "DeliveryDate 8" }; Xdr.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties11 = new Xdr.NonVisualGraphicFrameDrawingProperties(); nonVisualGraphicFrameProperties11.Append(nonVisualDrawingProperties15); nonVisualGraphicFrameProperties11.Append(nonVisualGraphicFrameDrawingProperties11); Xdr.Transform transform11 = new Xdr.Transform(); A.Offset offset15 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents15 = new A.Extents(){ Cx = 0L, Cy = 0L }; transform11.Append(offset15); transform11.Append(extents15); A.Graphic graphic11 = new A.Graphic(); A.GraphicData graphicData11 = new A.GraphicData(){ Uri = "http://schemas.microsoft.com/office/drawing/2012/timeslicer" }; Tsle.TimeSlicer timeSlicer5 = new Tsle.TimeSlicer(){ Name = "DeliveryDate 8" }; timeSlicer5.AddNamespaceDeclaration("tsle", "http://schemas.microsoft.com/office/drawing/2012/timeslicer"); graphicData11.Append(timeSlicer5); graphic11.Append(graphicData11); graphicFrame11.Append(nonVisualGraphicFrameProperties11); graphicFrame11.Append(transform11); graphicFrame11.Append(graphic11); alternateContentChoice10.Append(graphicFrame11); AlternateContentFallback alternateContentFallback9 = new AlternateContentFallback(); alternateContentFallback9.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); alternateContentFallback9.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart"); Xdr.Shape shape5 = new Xdr.Shape(){ Macro = "", TextLink = "" }; Xdr.NonVisualShapeProperties nonVisualShapeProperties5 = new Xdr.NonVisualShapeProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties16 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)0U, Name = "" }; Xdr.NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties5 = new Xdr.NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks5 = new A.ShapeLocks(){ NoTextEdit = true }; nonVisualShapeDrawingProperties5.Append(shapeLocks5); nonVisualShapeProperties5.Append(nonVisualDrawingProperties16); nonVisualShapeProperties5.Append(nonVisualShapeDrawingProperties5); Xdr.ShapeProperties shapeProperties13 = new Xdr.ShapeProperties(); A.Transform2D transform2D5 = new A.Transform2D(); A.Offset offset16 = new A.Offset(){ X = 8629650L, Y = 200025L }; A.Extents extents16 = new A.Extents(){ Cx = 3333750L, Cy = 1190625L }; transform2D5.Append(offset16); transform2D5.Append(extents16); A.PresetGeometry presetGeometry5 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList5 = new A.AdjustValueList(); presetGeometry5.Append(adjustValueList5); A.SolidFill solidFill23 = new A.SolidFill(); A.PresetColor presetColor9 = new A.PresetColor(){ Val = A.PresetColorValues.White }; solidFill23.Append(presetColor9); A.Outline outline18 = new A.Outline(){ Width = 1 }; A.SolidFill solidFill24 = new A.SolidFill(); A.PresetColor presetColor10 = new A.PresetColor(){ Val = A.PresetColorValues.Green }; solidFill24.Append(presetColor10); outline18.Append(solidFill24); shapeProperties13.Append(transform2D5); shapeProperties13.Append(presetGeometry5); shapeProperties13.Append(solidFill23); shapeProperties13.Append(outline18); Xdr.TextBody textBody5 = new Xdr.TextBody(); A.BodyProperties bodyProperties9 = new A.BodyProperties(){ VerticalOverflow = A.TextVerticalOverflowValues.Clip, HorizontalOverflow = A.TextHorizontalOverflowValues.Clip }; A.ListStyle listStyle9 = new A.ListStyle(); A.Paragraph paragraph9 = new A.Paragraph(); A.Run run5 = new A.Run(); A.RunProperties runProperties5 = new A.RunProperties(){ Language = "en-US", FontSize = 1100 }; A.Text text5 = new A.Text(); text5.Text = "Timeline: Works in Excel 15 or higher. Do not move or resize."; run5.Append(runProperties5); run5.Append(text5); paragraph9.Append(run5); textBody5.Append(bodyProperties9); textBody5.Append(listStyle9); textBody5.Append(paragraph9); shape5.Append(nonVisualShapeProperties5); shape5.Append(shapeProperties13); shape5.Append(textBody5); alternateContentFallback9.Append(shape5); alternateContent10.Append(alternateContentChoice10); alternateContent10.Append(alternateContentFallback9); Xdr.ClientData clientData11 = new Xdr.ClientData(); twoCellAnchor11.Append(fromMarker11); twoCellAnchor11.Append(toMarker11); twoCellAnchor11.Append(alternateContent10); twoCellAnchor11.Append(clientData11); Xdr.TwoCellAnchor twoCellAnchor12 = new Xdr.TwoCellAnchor(){ EditAs = Xdr.EditAsValues.OneCell }; Xdr.FromMarker fromMarker12 = new Xdr.FromMarker(); Xdr.ColumnId columnId23 = new Xdr.ColumnId(); columnId23.Text = "10"; Xdr.ColumnOffset columnOffset23 = new Xdr.ColumnOffset(); columnOffset23.Text = "28575"; Xdr.RowId rowId23 = new Xdr.RowId(); rowId23.Text = "8"; Xdr.RowOffset rowOffset23 = new Xdr.RowOffset(); rowOffset23.Text = "114300"; fromMarker12.Append(columnId23); fromMarker12.Append(columnOffset23); fromMarker12.Append(rowId23); fromMarker12.Append(rowOffset23); Xdr.ToMarker toMarker12 = new Xdr.ToMarker(); Xdr.ColumnId columnId24 = new Xdr.ColumnId(); columnId24.Text = "13"; Xdr.ColumnOffset columnOffset24 = new Xdr.ColumnOffset(); columnOffset24.Text = "762000"; Xdr.RowId rowId24 = new Xdr.RowId(); rowId24.Text = "14"; Xdr.RowOffset rowOffset24 = new Xdr.RowOffset(); rowOffset24.Text = "161925"; toMarker12.Append(columnId24); toMarker12.Append(columnOffset24); toMarker12.Append(rowId24); toMarker12.Append(rowOffset24); AlternateContent alternateContent11 = new AlternateContent(); alternateContent11.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); alternateContent11.AddNamespaceDeclaration("a15", "http://schemas.microsoft.com/office/drawing/2012/main"); AlternateContentChoice alternateContentChoice11 = new AlternateContentChoice(){ Requires = "a15" }; Xdr.GraphicFrame graphicFrame12 = new Xdr.GraphicFrame(){ Macro = "" }; Xdr.NonVisualGraphicFrameProperties nonVisualGraphicFrameProperties12 = new Xdr.NonVisualGraphicFrameProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties17 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)5U, Name = "DeliveryDate 9" }; Xdr.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties12 = new Xdr.NonVisualGraphicFrameDrawingProperties(); nonVisualGraphicFrameProperties12.Append(nonVisualDrawingProperties17); nonVisualGraphicFrameProperties12.Append(nonVisualGraphicFrameDrawingProperties12); Xdr.Transform transform12 = new Xdr.Transform(); A.Offset offset17 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents17 = new A.Extents(){ Cx = 0L, Cy = 0L }; transform12.Append(offset17); transform12.Append(extents17); A.Graphic graphic12 = new A.Graphic(); A.GraphicData graphicData12 = new A.GraphicData(){ Uri = "http://schemas.microsoft.com/office/drawing/2012/timeslicer" }; Tsle.TimeSlicer timeSlicer6 = new Tsle.TimeSlicer(){ Name = "DeliveryDate 9" }; timeSlicer6.AddNamespaceDeclaration("tsle", "http://schemas.microsoft.com/office/drawing/2012/timeslicer"); graphicData12.Append(timeSlicer6); graphic12.Append(graphicData12); graphicFrame12.Append(nonVisualGraphicFrameProperties12); graphicFrame12.Append(transform12); graphicFrame12.Append(graphic12); alternateContentChoice11.Append(graphicFrame12); AlternateContentFallback alternateContentFallback10 = new AlternateContentFallback(); alternateContentFallback10.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); alternateContentFallback10.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart"); Xdr.Shape shape6 = new Xdr.Shape(){ Macro = "", TextLink = "" }; Xdr.NonVisualShapeProperties nonVisualShapeProperties6 = new Xdr.NonVisualShapeProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties18 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)0U, Name = "" }; Xdr.NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties6 = new Xdr.NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks6 = new A.ShapeLocks(){ NoTextEdit = true }; nonVisualShapeDrawingProperties6.Append(shapeLocks6); nonVisualShapeProperties6.Append(nonVisualDrawingProperties18); nonVisualShapeProperties6.Append(nonVisualShapeDrawingProperties6); Xdr.ShapeProperties shapeProperties14 = new Xdr.ShapeProperties(); A.Transform2D transform2D6 = new A.Transform2D(); A.Offset offset18 = new A.Offset(){ X = 8629650L, Y = 1638300L }; A.Extents extents18 = new A.Extents(){ Cx = 3333750L, Cy = 1190625L }; transform2D6.Append(offset18); transform2D6.Append(extents18); A.PresetGeometry presetGeometry6 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList6 = new A.AdjustValueList(); presetGeometry6.Append(adjustValueList6); A.SolidFill solidFill25 = new A.SolidFill(); A.PresetColor presetColor11 = new A.PresetColor(){ Val = A.PresetColorValues.White }; solidFill25.Append(presetColor11); A.Outline outline19 = new A.Outline(){ Width = 1 }; A.SolidFill solidFill26 = new A.SolidFill(); A.PresetColor presetColor12 = new A.PresetColor(){ Val = A.PresetColorValues.Green }; solidFill26.Append(presetColor12); outline19.Append(solidFill26); shapeProperties14.Append(transform2D6); shapeProperties14.Append(presetGeometry6); shapeProperties14.Append(solidFill25); shapeProperties14.Append(outline19); Xdr.TextBody textBody6 = new Xdr.TextBody(); A.BodyProperties bodyProperties10 = new A.BodyProperties(){ VerticalOverflow = A.TextVerticalOverflowValues.Clip, HorizontalOverflow = A.TextHorizontalOverflowValues.Clip }; A.ListStyle listStyle10 = new A.ListStyle(); A.Paragraph paragraph10 = new A.Paragraph(); A.Run run6 = new A.Run(); A.RunProperties runProperties6 = new A.RunProperties(){ Language = "en-US", FontSize = 1100 }; A.Text text6 = new A.Text(); text6.Text = "Timeline: Works in Excel 15 or higher. Do not move or resize."; run6.Append(runProperties6); run6.Append(text6); paragraph10.Append(run6); textBody6.Append(bodyProperties10); textBody6.Append(listStyle10); textBody6.Append(paragraph10); shape6.Append(nonVisualShapeProperties6); shape6.Append(shapeProperties14); shape6.Append(textBody6); alternateContentFallback10.Append(shape6); alternateContent11.Append(alternateContentChoice11); alternateContent11.Append(alternateContentFallback10); Xdr.ClientData clientData12 = new Xdr.ClientData(); twoCellAnchor12.Append(fromMarker12); twoCellAnchor12.Append(toMarker12); twoCellAnchor12.Append(alternateContent11); twoCellAnchor12.Append(clientData12); worksheetDrawing3.Append(twoCellAnchor9); worksheetDrawing3.Append(twoCellAnchor10); worksheetDrawing3.Append(twoCellAnchor11); worksheetDrawing3.Append(twoCellAnchor12); drawingsPart3.WorksheetDrawing = worksheetDrawing3; }
// Generates content of drawingsPart1. private void GenerateDrawingsPart1Content(DrawingsPart drawingsPart1) { Xdr.WorksheetDrawing worksheetDrawing1 = new Xdr.WorksheetDrawing(); worksheetDrawing1.AddNamespaceDeclaration("xdr", "http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"); worksheetDrawing1.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); Xdr.TwoCellAnchor twoCellAnchor1 = new Xdr.TwoCellAnchor(); Xdr.FromMarker fromMarker1 = new Xdr.FromMarker(); Xdr.ColumnId columnId1 = new Xdr.ColumnId(); columnId1.Text = "7"; Xdr.ColumnOffset columnOffset1 = new Xdr.ColumnOffset(); columnOffset1.Text = "576262"; Xdr.RowId rowId1 = new Xdr.RowId(); rowId1.Text = "2"; Xdr.RowOffset rowOffset1 = new Xdr.RowOffset(); rowOffset1.Text = "109537"; fromMarker1.Append(columnId1); fromMarker1.Append(columnOffset1); fromMarker1.Append(rowId1); fromMarker1.Append(rowOffset1); Xdr.ToMarker toMarker1 = new Xdr.ToMarker(); Xdr.ColumnId columnId2 = new Xdr.ColumnId(); columnId2.Text = "14"; Xdr.ColumnOffset columnOffset2 = new Xdr.ColumnOffset(); columnOffset2.Text = "119062"; Xdr.RowId rowId2 = new Xdr.RowId(); rowId2.Text = "22"; Xdr.RowOffset rowOffset2 = new Xdr.RowOffset(); rowOffset2.Text = "109537"; toMarker1.Append(columnId2); toMarker1.Append(columnOffset2); toMarker1.Append(rowId2); toMarker1.Append(rowOffset2); AlternateContent alternateContent2 = new AlternateContent(); alternateContent2.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); AlternateContentChoice alternateContentChoice2 = new AlternateContentChoice(){ Requires = "we" }; alternateContentChoice2.AddNamespaceDeclaration("we", "http://schemas.microsoft.com/office/webextensions/webextension/2010/11"); Xdr.GraphicFrame graphicFrame1 = new Xdr.GraphicFrame(){ Macro = "" }; Xdr.NonVisualGraphicFrameProperties nonVisualGraphicFrameProperties1 = new Xdr.NonVisualGraphicFrameProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties1 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)2U, Name = "Agave 1" }; Xdr.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties1 = new Xdr.NonVisualGraphicFrameDrawingProperties(); A.GraphicFrameLocks graphicFrameLocks1 = new A.GraphicFrameLocks(){ NoGrouping = true }; nonVisualGraphicFrameDrawingProperties1.Append(graphicFrameLocks1); nonVisualGraphicFrameProperties1.Append(nonVisualDrawingProperties1); nonVisualGraphicFrameProperties1.Append(nonVisualGraphicFrameDrawingProperties1); Xdr.Transform transform1 = new Xdr.Transform(); A.Offset offset1 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents1 = new A.Extents(){ Cx = 0L, Cy = 0L }; transform1.Append(offset1); transform1.Append(extents1); A.Graphic graphic1 = new A.Graphic(); A.GraphicData graphicData1 = new A.GraphicData(){ Uri = "http://schemas.microsoft.com/office/webextensions/webextension/2010/11" }; We.WebExtensionReference webExtensionReference1 = new We.WebExtensionReference(){ Id = "rId1" }; webExtensionReference1.AddNamespaceDeclaration("we", "http://schemas.microsoft.com/office/webextensions/webextension/2010/11"); webExtensionReference1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); graphicData1.Append(webExtensionReference1); graphic1.Append(graphicData1); graphicFrame1.Append(nonVisualGraphicFrameProperties1); graphicFrame1.Append(transform1); graphicFrame1.Append(graphic1); alternateContentChoice2.Append(graphicFrame1); AlternateContentFallback alternateContentFallback1 = new AlternateContentFallback(); Xdr.Picture picture1 = new Xdr.Picture(); Xdr.NonVisualPictureProperties nonVisualPictureProperties1 = new Xdr.NonVisualPictureProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties2 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)2U, Name = "Agave 1" }; Xdr.NonVisualPictureDrawingProperties nonVisualPictureDrawingProperties1 = new Xdr.NonVisualPictureDrawingProperties(); nonVisualPictureProperties1.Append(nonVisualDrawingProperties2); nonVisualPictureProperties1.Append(nonVisualPictureDrawingProperties1); Xdr.BlipFill blipFill1 = new Xdr.BlipFill(); A.Blip blip1 = new A.Blip(){ Embed = "rId2" }; blip1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); A.Stretch stretch1 = new A.Stretch(); A.FillRectangle fillRectangle1 = new A.FillRectangle(); stretch1.Append(fillRectangle1); blipFill1.Append(blip1); blipFill1.Append(stretch1); Xdr.ShapeProperties shapeProperties1 = new Xdr.ShapeProperties(); A.PresetGeometry presetGeometry1 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList1 = new A.AdjustValueList(); presetGeometry1.Append(adjustValueList1); shapeProperties1.Append(presetGeometry1); picture1.Append(nonVisualPictureProperties1); picture1.Append(blipFill1); picture1.Append(shapeProperties1); alternateContentFallback1.Append(picture1); alternateContent2.Append(alternateContentChoice2); alternateContent2.Append(alternateContentFallback1); Xdr.ClientData clientData1 = new Xdr.ClientData(); twoCellAnchor1.Append(fromMarker1); twoCellAnchor1.Append(toMarker1); twoCellAnchor1.Append(alternateContent2); twoCellAnchor1.Append(clientData1); Xdr.TwoCellAnchor twoCellAnchor2 = new Xdr.TwoCellAnchor(); Xdr.FromMarker fromMarker2 = new Xdr.FromMarker(); Xdr.ColumnId columnId3 = new Xdr.ColumnId(); columnId3.Text = "0"; Xdr.ColumnOffset columnOffset3 = new Xdr.ColumnOffset(); columnOffset3.Text = "119062"; Xdr.RowId rowId3 = new Xdr.RowId(); rowId3.Text = "3"; Xdr.RowOffset rowOffset3 = new Xdr.RowOffset(); rowOffset3.Text = "42862"; fromMarker2.Append(columnId3); fromMarker2.Append(columnOffset3); fromMarker2.Append(rowId3); fromMarker2.Append(rowOffset3); Xdr.ToMarker toMarker2 = new Xdr.ToMarker(); Xdr.ColumnId columnId4 = new Xdr.ColumnId(); columnId4.Text = "6"; Xdr.ColumnOffset columnOffset4 = new Xdr.ColumnOffset(); columnOffset4.Text = "271462"; Xdr.RowId rowId4 = new Xdr.RowId(); rowId4.Text = "23"; Xdr.RowOffset rowOffset4 = new Xdr.RowOffset(); rowOffset4.Text = "42862"; toMarker2.Append(columnId4); toMarker2.Append(columnOffset4); toMarker2.Append(rowId4); toMarker2.Append(rowOffset4); AlternateContent alternateContent3 = new AlternateContent(); alternateContent3.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); AlternateContentChoice alternateContentChoice3 = new AlternateContentChoice(){ Requires = "we" }; alternateContentChoice3.AddNamespaceDeclaration("we", "http://schemas.microsoft.com/office/webextensions/webextension/2010/11"); Xdr.GraphicFrame graphicFrame2 = new Xdr.GraphicFrame(){ Macro = "" }; Xdr.NonVisualGraphicFrameProperties nonVisualGraphicFrameProperties2 = new Xdr.NonVisualGraphicFrameProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties3 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)3U, Name = "Agave 2" }; Xdr.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties2 = new Xdr.NonVisualGraphicFrameDrawingProperties(); A.GraphicFrameLocks graphicFrameLocks2 = new A.GraphicFrameLocks(){ NoGrouping = true }; nonVisualGraphicFrameDrawingProperties2.Append(graphicFrameLocks2); nonVisualGraphicFrameProperties2.Append(nonVisualDrawingProperties3); nonVisualGraphicFrameProperties2.Append(nonVisualGraphicFrameDrawingProperties2); Xdr.Transform transform2 = new Xdr.Transform(); A.Offset offset2 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents2 = new A.Extents(){ Cx = 0L, Cy = 0L }; transform2.Append(offset2); transform2.Append(extents2); A.Graphic graphic2 = new A.Graphic(); A.GraphicData graphicData2 = new A.GraphicData(){ Uri = "http://schemas.microsoft.com/office/webextensions/webextension/2010/11" }; We.WebExtensionReference webExtensionReference2 = new We.WebExtensionReference(){ Id = "rId3" }; webExtensionReference2.AddNamespaceDeclaration("we", "http://schemas.microsoft.com/office/webextensions/webextension/2010/11"); webExtensionReference2.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); graphicData2.Append(webExtensionReference2); graphic2.Append(graphicData2); graphicFrame2.Append(nonVisualGraphicFrameProperties2); graphicFrame2.Append(transform2); graphicFrame2.Append(graphic2); alternateContentChoice3.Append(graphicFrame2); AlternateContentFallback alternateContentFallback2 = new AlternateContentFallback(); Xdr.Picture picture2 = new Xdr.Picture(); Xdr.NonVisualPictureProperties nonVisualPictureProperties2 = new Xdr.NonVisualPictureProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties4 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)3U, Name = "Agave 2" }; Xdr.NonVisualPictureDrawingProperties nonVisualPictureDrawingProperties2 = new Xdr.NonVisualPictureDrawingProperties(); nonVisualPictureProperties2.Append(nonVisualDrawingProperties4); nonVisualPictureProperties2.Append(nonVisualPictureDrawingProperties2); Xdr.BlipFill blipFill2 = new Xdr.BlipFill(); A.Blip blip2 = new A.Blip(){ Embed = "rId4" }; blip2.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); A.Stretch stretch2 = new A.Stretch(); A.FillRectangle fillRectangle2 = new A.FillRectangle(); stretch2.Append(fillRectangle2); blipFill2.Append(blip2); blipFill2.Append(stretch2); Xdr.ShapeProperties shapeProperties2 = new Xdr.ShapeProperties(); A.PresetGeometry presetGeometry2 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList2 = new A.AdjustValueList(); presetGeometry2.Append(adjustValueList2); shapeProperties2.Append(presetGeometry2); picture2.Append(nonVisualPictureProperties2); picture2.Append(blipFill2); picture2.Append(shapeProperties2); alternateContentFallback2.Append(picture2); alternateContent3.Append(alternateContentChoice3); alternateContent3.Append(alternateContentFallback2); Xdr.ClientData clientData2 = new Xdr.ClientData(); twoCellAnchor2.Append(fromMarker2); twoCellAnchor2.Append(toMarker2); twoCellAnchor2.Append(alternateContent3); twoCellAnchor2.Append(clientData2); worksheetDrawing1.Append(twoCellAnchor1); worksheetDrawing1.Append(twoCellAnchor2); drawingsPart1.WorksheetDrawing = worksheetDrawing1; }
// Generates content of chartPart5. private void GenerateChartPart5Content(ChartPart chartPart5) { C.ChartSpace chartSpace5 = new C.ChartSpace(); chartSpace5.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart"); chartSpace5.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); chartSpace5.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); C.Date1904 date19045 = new C.Date1904(){ Val = false }; C.EditingLanguage editingLanguage5 = new C.EditingLanguage(){ Val = "en-US" }; C.RoundedCorners roundedCorners5 = new C.RoundedCorners(){ Val = false }; AlternateContent alternateContent12 = new AlternateContent(); alternateContent12.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); AlternateContentChoice alternateContentChoice12 = new AlternateContentChoice(){ Requires = "c14" }; alternateContentChoice12.AddNamespaceDeclaration("c14", "http://schemas.microsoft.com/office/drawing/2007/8/2/chart"); C14.Style style9 = new C14.Style(){ Val = 102 }; alternateContentChoice12.Append(style9); AlternateContentFallback alternateContentFallback11 = new AlternateContentFallback(); C.Style style10 = new C.Style(){ Val = 2 }; alternateContentFallback11.Append(style10); alternateContent12.Append(alternateContentChoice12); alternateContent12.Append(alternateContentFallback11); C.PivotSource pivotSource5 = new C.PivotSource(); C.PivotTableName pivotTableName5 = new C.PivotTableName(); pivotTableName5.Text = "[GeneratedDocument.xlsx]ShowSelectionLabel!PivotTable1"; C.FormatId formatId5 = new C.FormatId(){ Val = (UInt32Value)12U }; pivotSource5.Append(pivotTableName5); pivotSource5.Append(formatId5); C.Chart chart5 = new C.Chart(); C.Title title5 = new C.Title(); C.Overlay overlay9 = new C.Overlay(){ Val = false }; title5.Append(overlay9); C.AutoTitleDeleted autoTitleDeleted5 = new C.AutoTitleDeleted(){ Val = false }; C.PivotFormats pivotFormats5 = new C.PivotFormats(); C.PivotFormat pivotFormat26 = new C.PivotFormat(); C.Index index30 = new C.Index(){ Val = (UInt32Value)0U }; C.Marker marker26 = new C.Marker(); C.Symbol symbol26 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker26.Append(symbol26); pivotFormat26.Append(index30); pivotFormat26.Append(marker26); C.PivotFormat pivotFormat27 = new C.PivotFormat(); C.Index index31 = new C.Index(){ Val = (UInt32Value)1U }; C.Marker marker27 = new C.Marker(); C.Symbol symbol27 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker27.Append(symbol27); pivotFormat27.Append(index31); pivotFormat27.Append(marker27); C.PivotFormat pivotFormat28 = new C.PivotFormat(); C.Index index32 = new C.Index(){ Val = (UInt32Value)2U }; C.Marker marker28 = new C.Marker(); C.Symbol symbol28 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker28.Append(symbol28); pivotFormat28.Append(index32); pivotFormat28.Append(marker28); C.PivotFormat pivotFormat29 = new C.PivotFormat(); C.Index index33 = new C.Index(){ Val = (UInt32Value)3U }; C.Marker marker29 = new C.Marker(); C.Symbol symbol29 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker29.Append(symbol29); pivotFormat29.Append(index33); pivotFormat29.Append(marker29); pivotFormats5.Append(pivotFormat26); pivotFormats5.Append(pivotFormat27); pivotFormats5.Append(pivotFormat28); pivotFormats5.Append(pivotFormat29); C.PlotArea plotArea5 = new C.PlotArea(); C.Layout layout5 = new C.Layout(); C.PieChart pieChart3 = new C.PieChart(); C.VaryColors varyColors5 = new C.VaryColors(){ Val = true }; C.PieChartSeries pieChartSeries3 = new C.PieChartSeries(); C.Index index34 = new C.Index(){ Val = (UInt32Value)0U }; C.Order order5 = new C.Order(){ Val = (UInt32Value)0U }; C.SeriesText seriesText5 = new C.SeriesText(); C.StringReference stringReference9 = new C.StringReference(); C.Formula formula13 = new C.Formula(); formula13.Text = "ShowSelectionLabel!$B$1"; C.StringCache stringCache9 = new C.StringCache(); C.PointCount pointCount13 = new C.PointCount(){ Val = (UInt32Value)1U }; C.StringPoint stringPoint17 = new C.StringPoint(){ Index = (UInt32Value)0U }; C.NumericValue numericValue29 = new C.NumericValue(); numericValue29.Text = "Total"; stringPoint17.Append(numericValue29); stringCache9.Append(pointCount13); stringCache9.Append(stringPoint17); stringReference9.Append(formula13); stringReference9.Append(stringCache9); seriesText5.Append(stringReference9); C.CategoryAxisData categoryAxisData5 = new C.CategoryAxisData(); C.StringReference stringReference10 = new C.StringReference(); C.Formula formula14 = new C.Formula(); formula14.Text = "ShowSelectionLabel!$A$2:$A$5"; C.StringCache stringCache10 = new C.StringCache(); C.PointCount pointCount14 = new C.PointCount(){ Val = (UInt32Value)3U }; C.StringPoint stringPoint18 = new C.StringPoint(){ Index = (UInt32Value)0U }; C.NumericValue numericValue30 = new C.NumericValue(); numericValue30.Text = "product_A"; stringPoint18.Append(numericValue30); C.StringPoint stringPoint19 = new C.StringPoint(){ Index = (UInt32Value)1U }; C.NumericValue numericValue31 = new C.NumericValue(); numericValue31.Text = "product_D"; stringPoint19.Append(numericValue31); C.StringPoint stringPoint20 = new C.StringPoint(){ Index = (UInt32Value)2U }; C.NumericValue numericValue32 = new C.NumericValue(); numericValue32.Text = "product_E"; stringPoint20.Append(numericValue32); stringCache10.Append(pointCount14); stringCache10.Append(stringPoint18); stringCache10.Append(stringPoint19); stringCache10.Append(stringPoint20); stringReference10.Append(formula14); stringReference10.Append(stringCache10); categoryAxisData5.Append(stringReference10); C.Values values5 = new C.Values(); C.NumberReference numberReference5 = new C.NumberReference(); C.Formula formula15 = new C.Formula(); formula15.Text = "ShowSelectionLabel!$B$2:$B$5"; C.NumberingCache numberingCache5 = new C.NumberingCache(); C.FormatCode formatCode5 = new C.FormatCode(); formatCode5.Text = "General"; C.PointCount pointCount15 = new C.PointCount(){ Val = (UInt32Value)3U }; C.NumericPoint numericPoint13 = new C.NumericPoint(){ Index = (UInt32Value)0U }; C.NumericValue numericValue33 = new C.NumericValue(); numericValue33.Text = "19"; numericPoint13.Append(numericValue33); C.NumericPoint numericPoint14 = new C.NumericPoint(){ Index = (UInt32Value)1U }; C.NumericValue numericValue34 = new C.NumericValue(); numericValue34.Text = "13"; numericPoint14.Append(numericValue34); C.NumericPoint numericPoint15 = new C.NumericPoint(){ Index = (UInt32Value)2U }; C.NumericValue numericValue35 = new C.NumericValue(); numericValue35.Text = "33"; numericPoint15.Append(numericValue35); numberingCache5.Append(formatCode5); numberingCache5.Append(pointCount15); numberingCache5.Append(numericPoint13); numberingCache5.Append(numericPoint14); numberingCache5.Append(numericPoint15); numberReference5.Append(formula15); numberReference5.Append(numberingCache5); values5.Append(numberReference5); pieChartSeries3.Append(index34); pieChartSeries3.Append(order5); pieChartSeries3.Append(seriesText5); pieChartSeries3.Append(categoryAxisData5); pieChartSeries3.Append(values5); C.DataLabels dataLabels5 = new C.DataLabels(); C.ShowLegendKey showLegendKey5 = new C.ShowLegendKey(){ Val = false }; C.ShowValue showValue5 = new C.ShowValue(){ Val = false }; C.ShowCategoryName showCategoryName5 = new C.ShowCategoryName(){ Val = false }; C.ShowSeriesName showSeriesName5 = new C.ShowSeriesName(){ Val = false }; C.ShowPercent showPercent5 = new C.ShowPercent(){ Val = false }; C.ShowBubbleSize showBubbleSize5 = new C.ShowBubbleSize(){ Val = false }; C.ShowLeaderLines showLeaderLines3 = new C.ShowLeaderLines(){ Val = true }; dataLabels5.Append(showLegendKey5); dataLabels5.Append(showValue5); dataLabels5.Append(showCategoryName5); dataLabels5.Append(showSeriesName5); dataLabels5.Append(showPercent5); dataLabels5.Append(showBubbleSize5); dataLabels5.Append(showLeaderLines3); C.FirstSliceAngle firstSliceAngle3 = new C.FirstSliceAngle(){ Val = (UInt16Value)0U }; pieChart3.Append(varyColors5); pieChart3.Append(pieChartSeries3); pieChart3.Append(dataLabels5); pieChart3.Append(firstSliceAngle3); plotArea5.Append(layout5); plotArea5.Append(pieChart3); C.Legend legend5 = new C.Legend(); C.LegendPosition legendPosition5 = new C.LegendPosition(){ Val = C.LegendPositionValues.Right }; C.Overlay overlay10 = new C.Overlay(){ Val = false }; legend5.Append(legendPosition5); legend5.Append(overlay10); C.PlotVisibleOnly plotVisibleOnly5 = new C.PlotVisibleOnly(){ Val = true }; C.DisplayBlanksAs displayBlanksAs5 = new C.DisplayBlanksAs(){ Val = C.DisplayBlanksAsValues.Gap }; C.ShowDataLabelsOverMaximum showDataLabelsOverMaximum5 = new C.ShowDataLabelsOverMaximum(){ Val = false }; chart5.Append(title5); chart5.Append(autoTitleDeleted5); chart5.Append(pivotFormats5); chart5.Append(plotArea5); chart5.Append(legend5); chart5.Append(plotVisibleOnly5); chart5.Append(displayBlanksAs5); chart5.Append(showDataLabelsOverMaximum5); C.PrintSettings printSettings5 = new C.PrintSettings(); C.HeaderFooter headerFooter5 = new C.HeaderFooter(); C.PageMargins pageMargins8 = new C.PageMargins(){ Left = 0.7D, Right = 0.7D, Top = 0.75D, Bottom = 0.75D, Header = 0.3D, Footer = 0.3D }; C.PageSetup pageSetup5 = new C.PageSetup(); printSettings5.Append(headerFooter5); printSettings5.Append(pageMargins8); printSettings5.Append(pageSetup5); C.ChartSpaceExtensionList chartSpaceExtensionList5 = new C.ChartSpaceExtensionList(); chartSpaceExtensionList5.AddNamespaceDeclaration("c14", "http://schemas.microsoft.com/office/drawing/2007/8/2/chart"); chartSpaceExtensionList5.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); C.ChartSpaceExtension chartSpaceExtension5 = new C.ChartSpaceExtension(){ Uri = "{781A3756-C4B2-4CAC-9D66-4F8BD8637D16}" }; chartSpaceExtension5.AddNamespaceDeclaration("c14", "http://schemas.microsoft.com/office/drawing/2007/8/2/chart"); C14.PivotOptions pivotOptions5 = new C14.PivotOptions(); C14.DropZoneFilter dropZoneFilter5 = new C14.DropZoneFilter(){ Val = true }; C14.DropZoneCategories dropZoneCategories5 = new C14.DropZoneCategories(){ Val = true }; C14.DropZoneData dropZoneData5 = new C14.DropZoneData(){ Val = true }; C14.DropZoneSeries dropZoneSeries5 = new C14.DropZoneSeries(){ Val = true }; C14.DropZonesVisible dropZonesVisible5 = new C14.DropZonesVisible(){ Val = true }; pivotOptions5.Append(dropZoneFilter5); pivotOptions5.Append(dropZoneCategories5); pivotOptions5.Append(dropZoneData5); pivotOptions5.Append(dropZoneSeries5); pivotOptions5.Append(dropZonesVisible5); chartSpaceExtension5.Append(pivotOptions5); chartSpaceExtensionList5.Append(chartSpaceExtension5); chartSpace5.Append(date19045); chartSpace5.Append(editingLanguage5); chartSpace5.Append(roundedCorners5); chartSpace5.Append(alternateContent12); chartSpace5.Append(pivotSource5); chartSpace5.Append(chart5); chartSpace5.Append(printSettings5); chartSpace5.Append(chartSpaceExtensionList5); chartPart5.ChartSpace = chartSpace5; }
// Generates content of workbookPart1. private void GenerateWorkbookPart1Content(WorkbookPart workbookPart1) { Workbook workbook1 = new Workbook(){ MCAttributes = new MarkupCompatibilityAttributes(){ Ignorable = "x15" } }; workbook1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); workbook1.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); workbook1.AddNamespaceDeclaration("x15", "http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"); FileVersion fileVersion1 = new FileVersion(){ ApplicationName = "xl", LastEdited = "6", LowestEdited = "6", BuildVersion = "14420" }; WorkbookProperties workbookProperties1 = new WorkbookProperties(){ DefaultThemeVersion = (UInt32Value)153222U }; AlternateContent alternateContent1 = new AlternateContent(); alternateContent1.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); AlternateContentChoice alternateContentChoice1 = new AlternateContentChoice(){ Requires = "x15" }; X15ac.AbsolutePath absolutePath1 = new X15ac.AbsolutePath(){ Url = "D:\\Users\\dito\\Desktop\\TestDocumentResaver\\OpenXmlApiConversion\\Slicer\\" }; absolutePath1.AddNamespaceDeclaration("x15ac", "http://schemas.microsoft.com/office/spreadsheetml/2010/11/ac"); alternateContentChoice1.Append(absolutePath1); alternateContent1.Append(alternateContentChoice1); BookViews bookViews1 = new BookViews(); WorkbookView workbookView1 = new WorkbookView(){ XWindow = 0, YWindow = 0, WindowWidth = (UInt32Value)26940U, WindowHeight = (UInt32Value)15120U }; bookViews1.Append(workbookView1); Sheets sheets1 = new Sheets(); Sheet sheet1 = new Sheet(){ Name = "Sheet1", SheetId = (UInt32Value)1U, Id = "rId1" }; sheets1.Append(sheet1); DefinedNames definedNames1 = new DefinedNames(); DefinedName definedName1 = new DefinedName(){ Name = "Slicer_Column1" }; definedName1.Text = "#N/A"; DefinedName definedName2 = new DefinedName(){ Name = "Slicer_Column2" }; definedName2.Text = "#N/A"; DefinedName definedName3 = new DefinedName(){ Name = "Slicer_Column3" }; definedName3.Text = "#N/A"; definedNames1.Append(definedName1); definedNames1.Append(definedName2); definedNames1.Append(definedName3); CalculationProperties calculationProperties1 = new CalculationProperties(){ CalculationId = (UInt32Value)152511U }; WorkbookExtensionList workbookExtensionList1 = new WorkbookExtensionList(); WorkbookExtension workbookExtension1 = new WorkbookExtension(){ Uri = "{79F54976-1DA5-4618-B147-4CDE4B953A38}" }; workbookExtension1.AddNamespaceDeclaration("x14", "http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"); X14.WorkbookProperties workbookProperties2 = new X14.WorkbookProperties(); workbookExtension1.Append(workbookProperties2); WorkbookExtension workbookExtension2 = new WorkbookExtension(){ Uri = "{46BE6895-7355-4a93-B00E-2C351335B9C9}" }; workbookExtension2.AddNamespaceDeclaration("x15", "http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"); X15.SlicerCaches slicerCaches1 = new X15.SlicerCaches(); slicerCaches1.AddNamespaceDeclaration("x14", "http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"); X14.SlicerCache slicerCache1 = new X14.SlicerCache(){ Id = "rId2" }; X14.SlicerCache slicerCache2 = new X14.SlicerCache(){ Id = "rId3" }; X14.SlicerCache slicerCache3 = new X14.SlicerCache(){ Id = "rId4" }; slicerCaches1.Append(slicerCache1); slicerCaches1.Append(slicerCache2); slicerCaches1.Append(slicerCache3); workbookExtension2.Append(slicerCaches1); WorkbookExtension workbookExtension3 = new WorkbookExtension(){ Uri = "{140A7094-0E35-4892-8432-C4D2E57EDEB5}" }; workbookExtension3.AddNamespaceDeclaration("x15", "http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"); X15.WorkbookProperties workbookProperties3 = new X15.WorkbookProperties(){ ChartTrackingReferenceBase = true }; workbookExtension3.Append(workbookProperties3); workbookExtensionList1.Append(workbookExtension1); workbookExtensionList1.Append(workbookExtension2); workbookExtensionList1.Append(workbookExtension3); workbook1.Append(fileVersion1); workbook1.Append(workbookProperties1); workbook1.Append(alternateContent1); workbook1.Append(bookViews1); workbook1.Append(sheets1); workbook1.Append(definedNames1); workbook1.Append(calculationProperties1); workbook1.Append(workbookExtensionList1); workbookPart1.Workbook = workbook1; }
// Generates content of chartPart6. private void GenerateChartPart6Content(ChartPart chartPart6) { C.ChartSpace chartSpace6 = new C.ChartSpace(); chartSpace6.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart"); chartSpace6.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); chartSpace6.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); C.Date1904 date19046 = new C.Date1904(){ Val = false }; C.EditingLanguage editingLanguage6 = new C.EditingLanguage(){ Val = "en-US" }; C.RoundedCorners roundedCorners6 = new C.RoundedCorners(){ Val = false }; AlternateContent alternateContent13 = new AlternateContent(); alternateContent13.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); AlternateContentChoice alternateContentChoice13 = new AlternateContentChoice(){ Requires = "c14" }; alternateContentChoice13.AddNamespaceDeclaration("c14", "http://schemas.microsoft.com/office/drawing/2007/8/2/chart"); C14.Style style11 = new C14.Style(){ Val = 101 }; alternateContentChoice13.Append(style11); AlternateContentFallback alternateContentFallback12 = new AlternateContentFallback(); C.Style style12 = new C.Style(){ Val = 1 }; alternateContentFallback12.Append(style12); alternateContent13.Append(alternateContentChoice13); alternateContent13.Append(alternateContentFallback12); C.PivotSource pivotSource6 = new C.PivotSource(); C.PivotTableName pivotTableName6 = new C.PivotTableName(); pivotTableName6.Text = "[GeneratedDocument.xlsx]ShowSelectionLabel!PivotTable1"; C.FormatId formatId6 = new C.FormatId(){ Val = (UInt32Value)11U }; pivotSource6.Append(pivotTableName6); pivotSource6.Append(formatId6); C.Chart chart6 = new C.Chart(); C.Title title6 = new C.Title(); C.Overlay overlay11 = new C.Overlay(){ Val = false }; title6.Append(overlay11); C.AutoTitleDeleted autoTitleDeleted6 = new C.AutoTitleDeleted(){ Val = false }; C.PivotFormats pivotFormats6 = new C.PivotFormats(); C.PivotFormat pivotFormat30 = new C.PivotFormat(); C.Index index35 = new C.Index(){ Val = (UInt32Value)0U }; C.ShapeProperties shapeProperties15 = new C.ShapeProperties(); A.SolidFill solidFill27 = new A.SolidFill(); A.SchemeColor schemeColor15 = new A.SchemeColor(){ Val = A.SchemeColorValues.Accent1 }; A.Tint tint8 = new A.Tint(){ Val = 100000 }; schemeColor15.Append(tint8); solidFill27.Append(schemeColor15); A.Outline outline20 = new A.Outline(); A.NoFill noFill15 = new A.NoFill(); outline20.Append(noFill15); A.EffectList effectList14 = new A.EffectList(); shapeProperties15.Append(solidFill27); shapeProperties15.Append(outline20); shapeProperties15.Append(effectList14); C.Marker marker30 = new C.Marker(); C.Symbol symbol30 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker30.Append(symbol30); pivotFormat30.Append(index35); pivotFormat30.Append(shapeProperties15); pivotFormat30.Append(marker30); C.PivotFormat pivotFormat31 = new C.PivotFormat(); C.Index index36 = new C.Index(){ Val = (UInt32Value)1U }; C.ShapeProperties shapeProperties16 = new C.ShapeProperties(); A.SolidFill solidFill28 = new A.SolidFill(); A.SchemeColor schemeColor16 = new A.SchemeColor(){ Val = A.SchemeColorValues.Accent2 }; A.Tint tint9 = new A.Tint(){ Val = 100000 }; schemeColor16.Append(tint9); solidFill28.Append(schemeColor16); A.Outline outline21 = new A.Outline(); A.NoFill noFill16 = new A.NoFill(); outline21.Append(noFill16); A.EffectList effectList15 = new A.EffectList(); shapeProperties16.Append(solidFill28); shapeProperties16.Append(outline21); shapeProperties16.Append(effectList15); C.Marker marker31 = new C.Marker(); C.Symbol symbol31 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker31.Append(symbol31); pivotFormat31.Append(index36); pivotFormat31.Append(shapeProperties16); pivotFormat31.Append(marker31); C.PivotFormat pivotFormat32 = new C.PivotFormat(); C.Index index37 = new C.Index(){ Val = (UInt32Value)2U }; C.Marker marker32 = new C.Marker(); C.Symbol symbol32 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker32.Append(symbol32); pivotFormat32.Append(index37); pivotFormat32.Append(marker32); C.PivotFormat pivotFormat33 = new C.PivotFormat(); C.Index index38 = new C.Index(){ Val = (UInt32Value)3U }; C.Marker marker33 = new C.Marker(); C.Symbol symbol33 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker33.Append(symbol33); pivotFormat33.Append(index38); pivotFormat33.Append(marker33); C.PivotFormat pivotFormat34 = new C.PivotFormat(); C.Index index39 = new C.Index(){ Val = (UInt32Value)4U }; C.Marker marker34 = new C.Marker(); C.Symbol symbol34 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker34.Append(symbol34); pivotFormat34.Append(index39); pivotFormat34.Append(marker34); C.PivotFormat pivotFormat35 = new C.PivotFormat(); C.Index index40 = new C.Index(){ Val = (UInt32Value)5U }; C.Marker marker35 = new C.Marker(); C.Symbol symbol35 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker35.Append(symbol35); pivotFormat35.Append(index40); pivotFormat35.Append(marker35); C.PivotFormat pivotFormat36 = new C.PivotFormat(); C.Index index41 = new C.Index(){ Val = (UInt32Value)6U }; C.Marker marker36 = new C.Marker(); C.Symbol symbol36 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker36.Append(symbol36); pivotFormat36.Append(index41); pivotFormat36.Append(marker36); C.PivotFormat pivotFormat37 = new C.PivotFormat(); C.Index index42 = new C.Index(){ Val = (UInt32Value)7U }; C.Marker marker37 = new C.Marker(); C.Symbol symbol37 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker37.Append(symbol37); pivotFormat37.Append(index42); pivotFormat37.Append(marker37); C.PivotFormat pivotFormat38 = new C.PivotFormat(); C.Index index43 = new C.Index(){ Val = (UInt32Value)8U }; C.Marker marker38 = new C.Marker(); C.Symbol symbol38 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker38.Append(symbol38); pivotFormat38.Append(index43); pivotFormat38.Append(marker38); C.PivotFormat pivotFormat39 = new C.PivotFormat(); C.Index index44 = new C.Index(){ Val = (UInt32Value)9U }; C.Marker marker39 = new C.Marker(); C.Symbol symbol39 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker39.Append(symbol39); pivotFormat39.Append(index44); pivotFormat39.Append(marker39); C.PivotFormat pivotFormat40 = new C.PivotFormat(); C.Index index45 = new C.Index(){ Val = (UInt32Value)10U }; C.Marker marker40 = new C.Marker(); C.Symbol symbol40 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker40.Append(symbol40); pivotFormat40.Append(index45); pivotFormat40.Append(marker40); C.PivotFormat pivotFormat41 = new C.PivotFormat(); C.Index index46 = new C.Index(){ Val = (UInt32Value)11U }; C.Marker marker41 = new C.Marker(); C.Symbol symbol41 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker41.Append(symbol41); pivotFormat41.Append(index46); pivotFormat41.Append(marker41); C.PivotFormat pivotFormat42 = new C.PivotFormat(); C.Index index47 = new C.Index(){ Val = (UInt32Value)12U }; C.Marker marker42 = new C.Marker(); C.Symbol symbol42 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker42.Append(symbol42); pivotFormat42.Append(index47); pivotFormat42.Append(marker42); C.PivotFormat pivotFormat43 = new C.PivotFormat(); C.Index index48 = new C.Index(){ Val = (UInt32Value)13U }; C.Marker marker43 = new C.Marker(); C.Symbol symbol43 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker43.Append(symbol43); pivotFormat43.Append(index48); pivotFormat43.Append(marker43); C.PivotFormat pivotFormat44 = new C.PivotFormat(); C.Index index49 = new C.Index(){ Val = (UInt32Value)14U }; C.ShapeProperties shapeProperties17 = new C.ShapeProperties(); A.SolidFill solidFill29 = new A.SolidFill(); A.SchemeColor schemeColor17 = new A.SchemeColor(){ Val = A.SchemeColorValues.Accent1 }; A.Tint tint10 = new A.Tint(){ Val = 100000 }; schemeColor17.Append(tint10); solidFill29.Append(schemeColor17); A.Outline outline22 = new A.Outline(); A.NoFill noFill17 = new A.NoFill(); outline22.Append(noFill17); A.EffectList effectList16 = new A.EffectList(); shapeProperties17.Append(solidFill29); shapeProperties17.Append(outline22); shapeProperties17.Append(effectList16); C.Marker marker44 = new C.Marker(); C.Symbol symbol44 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker44.Append(symbol44); pivotFormat44.Append(index49); pivotFormat44.Append(shapeProperties17); pivotFormat44.Append(marker44); C.PivotFormat pivotFormat45 = new C.PivotFormat(); C.Index index50 = new C.Index(){ Val = (UInt32Value)15U }; C.ShapeProperties shapeProperties18 = new C.ShapeProperties(); A.SolidFill solidFill30 = new A.SolidFill(); A.SchemeColor schemeColor18 = new A.SchemeColor(){ Val = A.SchemeColorValues.Accent1 }; A.Tint tint11 = new A.Tint(){ Val = 100000 }; schemeColor18.Append(tint11); solidFill30.Append(schemeColor18); A.Outline outline23 = new A.Outline(); A.NoFill noFill18 = new A.NoFill(); outline23.Append(noFill18); A.EffectList effectList17 = new A.EffectList(); shapeProperties18.Append(solidFill30); shapeProperties18.Append(outline23); shapeProperties18.Append(effectList17); C.Marker marker45 = new C.Marker(); C.Symbol symbol45 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker45.Append(symbol45); pivotFormat45.Append(index50); pivotFormat45.Append(shapeProperties18); pivotFormat45.Append(marker45); C.PivotFormat pivotFormat46 = new C.PivotFormat(); C.Index index51 = new C.Index(){ Val = (UInt32Value)16U }; C.ShapeProperties shapeProperties19 = new C.ShapeProperties(); A.SolidFill solidFill31 = new A.SolidFill(); A.SchemeColor schemeColor19 = new A.SchemeColor(){ Val = A.SchemeColorValues.Accent1 }; A.Tint tint12 = new A.Tint(){ Val = 100000 }; schemeColor19.Append(tint12); solidFill31.Append(schemeColor19); A.Outline outline24 = new A.Outline(); A.NoFill noFill19 = new A.NoFill(); outline24.Append(noFill19); A.EffectList effectList18 = new A.EffectList(); shapeProperties19.Append(solidFill31); shapeProperties19.Append(outline24); shapeProperties19.Append(effectList18); C.Marker marker46 = new C.Marker(); C.Symbol symbol46 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker46.Append(symbol46); pivotFormat46.Append(index51); pivotFormat46.Append(shapeProperties19); pivotFormat46.Append(marker46); pivotFormats6.Append(pivotFormat30); pivotFormats6.Append(pivotFormat31); pivotFormats6.Append(pivotFormat32); pivotFormats6.Append(pivotFormat33); pivotFormats6.Append(pivotFormat34); pivotFormats6.Append(pivotFormat35); pivotFormats6.Append(pivotFormat36); pivotFormats6.Append(pivotFormat37); pivotFormats6.Append(pivotFormat38); pivotFormats6.Append(pivotFormat39); pivotFormats6.Append(pivotFormat40); pivotFormats6.Append(pivotFormat41); pivotFormats6.Append(pivotFormat42); pivotFormats6.Append(pivotFormat43); pivotFormats6.Append(pivotFormat44); pivotFormats6.Append(pivotFormat45); pivotFormats6.Append(pivotFormat46); C.PlotArea plotArea6 = new C.PlotArea(); C.Layout layout6 = new C.Layout(); C.BarChart barChart3 = new C.BarChart(); C.BarDirection barDirection3 = new C.BarDirection(){ Val = C.BarDirectionValues.Column }; C.BarGrouping barGrouping3 = new C.BarGrouping(){ Val = C.BarGroupingValues.Clustered }; C.VaryColors varyColors6 = new C.VaryColors(){ Val = false }; C.BarChartSeries barChartSeries3 = new C.BarChartSeries(); C.Index index52 = new C.Index(){ Val = (UInt32Value)0U }; C.Order order6 = new C.Order(){ Val = (UInt32Value)0U }; C.SeriesText seriesText6 = new C.SeriesText(); C.StringReference stringReference11 = new C.StringReference(); C.Formula formula16 = new C.Formula(); formula16.Text = "ShowSelectionLabel!$B$1"; C.StringCache stringCache11 = new C.StringCache(); C.PointCount pointCount16 = new C.PointCount(){ Val = (UInt32Value)1U }; C.StringPoint stringPoint21 = new C.StringPoint(){ Index = (UInt32Value)0U }; C.NumericValue numericValue36 = new C.NumericValue(); numericValue36.Text = "Total"; stringPoint21.Append(numericValue36); stringCache11.Append(pointCount16); stringCache11.Append(stringPoint21); stringReference11.Append(formula16); stringReference11.Append(stringCache11); seriesText6.Append(stringReference11); C.ChartShapeProperties chartShapeProperties6 = new C.ChartShapeProperties(); A.SolidFill solidFill32 = new A.SolidFill(); A.SchemeColor schemeColor20 = new A.SchemeColor(){ Val = A.SchemeColorValues.Accent1 }; A.Tint tint13 = new A.Tint(){ Val = 100000 }; schemeColor20.Append(tint13); solidFill32.Append(schemeColor20); A.Outline outline25 = new A.Outline(); A.NoFill noFill20 = new A.NoFill(); outline25.Append(noFill20); A.EffectList effectList19 = new A.EffectList(); chartShapeProperties6.Append(solidFill32); chartShapeProperties6.Append(outline25); chartShapeProperties6.Append(effectList19); C.InvertIfNegative invertIfNegative3 = new C.InvertIfNegative(){ Val = false }; C.CategoryAxisData categoryAxisData6 = new C.CategoryAxisData(); C.StringReference stringReference12 = new C.StringReference(); C.Formula formula17 = new C.Formula(); formula17.Text = "ShowSelectionLabel!$A$2:$A$5"; C.StringCache stringCache12 = new C.StringCache(); C.PointCount pointCount17 = new C.PointCount(){ Val = (UInt32Value)3U }; C.StringPoint stringPoint22 = new C.StringPoint(){ Index = (UInt32Value)0U }; C.NumericValue numericValue37 = new C.NumericValue(); numericValue37.Text = "product_A"; stringPoint22.Append(numericValue37); C.StringPoint stringPoint23 = new C.StringPoint(){ Index = (UInt32Value)1U }; C.NumericValue numericValue38 = new C.NumericValue(); numericValue38.Text = "product_D"; stringPoint23.Append(numericValue38); C.StringPoint stringPoint24 = new C.StringPoint(){ Index = (UInt32Value)2U }; C.NumericValue numericValue39 = new C.NumericValue(); numericValue39.Text = "product_E"; stringPoint24.Append(numericValue39); stringCache12.Append(pointCount17); stringCache12.Append(stringPoint22); stringCache12.Append(stringPoint23); stringCache12.Append(stringPoint24); stringReference12.Append(formula17); stringReference12.Append(stringCache12); categoryAxisData6.Append(stringReference12); C.Values values6 = new C.Values(); C.NumberReference numberReference6 = new C.NumberReference(); C.Formula formula18 = new C.Formula(); formula18.Text = "ShowSelectionLabel!$B$2:$B$5"; C.NumberingCache numberingCache6 = new C.NumberingCache(); C.FormatCode formatCode6 = new C.FormatCode(); formatCode6.Text = "General"; C.PointCount pointCount18 = new C.PointCount(){ Val = (UInt32Value)3U }; C.NumericPoint numericPoint16 = new C.NumericPoint(){ Index = (UInt32Value)0U }; C.NumericValue numericValue40 = new C.NumericValue(); numericValue40.Text = "19"; numericPoint16.Append(numericValue40); C.NumericPoint numericPoint17 = new C.NumericPoint(){ Index = (UInt32Value)1U }; C.NumericValue numericValue41 = new C.NumericValue(); numericValue41.Text = "13"; numericPoint17.Append(numericValue41); C.NumericPoint numericPoint18 = new C.NumericPoint(){ Index = (UInt32Value)2U }; C.NumericValue numericValue42 = new C.NumericValue(); numericValue42.Text = "33"; numericPoint18.Append(numericValue42); numberingCache6.Append(formatCode6); numberingCache6.Append(pointCount18); numberingCache6.Append(numericPoint16); numberingCache6.Append(numericPoint17); numberingCache6.Append(numericPoint18); numberReference6.Append(formula18); numberReference6.Append(numberingCache6); values6.Append(numberReference6); barChartSeries3.Append(index52); barChartSeries3.Append(order6); barChartSeries3.Append(seriesText6); barChartSeries3.Append(chartShapeProperties6); barChartSeries3.Append(invertIfNegative3); barChartSeries3.Append(categoryAxisData6); barChartSeries3.Append(values6); C.DataLabels dataLabels6 = new C.DataLabels(); C.ShowLegendKey showLegendKey6 = new C.ShowLegendKey(){ Val = false }; C.ShowValue showValue6 = new C.ShowValue(){ Val = false }; C.ShowCategoryName showCategoryName6 = new C.ShowCategoryName(){ Val = false }; C.ShowSeriesName showSeriesName6 = new C.ShowSeriesName(){ Val = false }; C.ShowPercent showPercent6 = new C.ShowPercent(){ Val = false }; C.ShowBubbleSize showBubbleSize6 = new C.ShowBubbleSize(){ Val = false }; dataLabels6.Append(showLegendKey6); dataLabels6.Append(showValue6); dataLabels6.Append(showCategoryName6); dataLabels6.Append(showSeriesName6); dataLabels6.Append(showPercent6); dataLabels6.Append(showBubbleSize6); C.GapWidth gapWidth3 = new C.GapWidth(){ Val = (UInt16Value)219U }; C.Overlap overlap2 = new C.Overlap(){ Val = -27 }; C.AxisId axisId9 = new C.AxisId(){ Val = (UInt32Value)209979552U }; C.AxisId axisId10 = new C.AxisId(){ Val = (UInt32Value)209979944U }; barChart3.Append(barDirection3); barChart3.Append(barGrouping3); barChart3.Append(varyColors6); barChart3.Append(barChartSeries3); barChart3.Append(dataLabels6); barChart3.Append(gapWidth3); barChart3.Append(overlap2); barChart3.Append(axisId9); barChart3.Append(axisId10); C.CategoryAxis categoryAxis3 = new C.CategoryAxis(); C.AxisId axisId11 = new C.AxisId(){ Val = (UInt32Value)209979552U }; C.Scaling scaling5 = new C.Scaling(); C.Orientation orientation5 = new C.Orientation(){ Val = C.OrientationValues.MinMax }; scaling5.Append(orientation5); C.Delete delete5 = new C.Delete(){ Val = false }; C.AxisPosition axisPosition5 = new C.AxisPosition(){ Val = C.AxisPositionValues.Bottom }; C.NumberingFormat numberingFormat5 = new C.NumberingFormat(){ FormatCode = "General", SourceLinked = false }; C.MajorTickMark majorTickMark5 = new C.MajorTickMark(){ Val = C.TickMarkValues.None }; C.MinorTickMark minorTickMark5 = new C.MinorTickMark(){ Val = C.TickMarkValues.None }; C.TickLabelPosition tickLabelPosition5 = new C.TickLabelPosition(){ Val = C.TickLabelPositionValues.NextTo }; C.ChartShapeProperties chartShapeProperties7 = new C.ChartShapeProperties(); A.NoFill noFill21 = new A.NoFill(); A.Outline outline26 = new A.Outline(); A.NoFill noFill22 = new A.NoFill(); outline26.Append(noFill22); A.EffectList effectList20 = new A.EffectList(); chartShapeProperties7.Append(noFill21); chartShapeProperties7.Append(outline26); chartShapeProperties7.Append(effectList20); C.TextProperties textProperties5 = new C.TextProperties(); A.BodyProperties bodyProperties11 = new A.BodyProperties(){ Rotation = -60000000, UseParagraphSpacing = true, VerticalOverflow = A.TextVerticalOverflowValues.Ellipsis, Vertical = A.TextVerticalValues.Horizontal, Wrap = A.TextWrappingValues.Square, Anchor = A.TextAnchoringTypeValues.Center, AnchorCenter = true }; A.ListStyle listStyle11 = new A.ListStyle(); A.Paragraph paragraph11 = new A.Paragraph(); A.ParagraphProperties paragraphProperties5 = new A.ParagraphProperties(); A.DefaultRunProperties defaultRunProperties5 = new A.DefaultRunProperties(){ FontSize = 900, Kerning = 1200 }; A.SolidFill solidFill33 = new A.SolidFill(); A.SchemeColor schemeColor21 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; A.LuminanceModulation luminanceModulation6 = new A.LuminanceModulation(){ Val = 65000 }; A.LuminanceOffset luminanceOffset6 = new A.LuminanceOffset(){ Val = 35000 }; schemeColor21.Append(luminanceModulation6); schemeColor21.Append(luminanceOffset6); solidFill33.Append(schemeColor21); A.LatinFont latinFont4 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont4 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont4 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties5.Append(solidFill33); defaultRunProperties5.Append(latinFont4); defaultRunProperties5.Append(eastAsianFont4); defaultRunProperties5.Append(complexScriptFont4); paragraphProperties5.Append(defaultRunProperties5); A.EndParagraphRunProperties endParagraphRunProperties5 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph11.Append(paragraphProperties5); paragraph11.Append(endParagraphRunProperties5); textProperties5.Append(bodyProperties11); textProperties5.Append(listStyle11); textProperties5.Append(paragraph11); C.CrossingAxis crossingAxis5 = new C.CrossingAxis(){ Val = (UInt32Value)209979944U }; C.Crosses crosses5 = new C.Crosses(){ Val = C.CrossesValues.AutoZero }; C.AutoLabeled autoLabeled3 = new C.AutoLabeled(){ Val = true }; C.LabelAlignment labelAlignment3 = new C.LabelAlignment(){ Val = C.LabelAlignmentValues.Center }; C.LabelOffset labelOffset3 = new C.LabelOffset(){ Val = (UInt16Value)100U }; C.NoMultiLevelLabels noMultiLevelLabels3 = new C.NoMultiLevelLabels(){ Val = false }; categoryAxis3.Append(axisId11); categoryAxis3.Append(scaling5); categoryAxis3.Append(delete5); categoryAxis3.Append(axisPosition5); categoryAxis3.Append(numberingFormat5); categoryAxis3.Append(majorTickMark5); categoryAxis3.Append(minorTickMark5); categoryAxis3.Append(tickLabelPosition5); categoryAxis3.Append(chartShapeProperties7); categoryAxis3.Append(textProperties5); categoryAxis3.Append(crossingAxis5); categoryAxis3.Append(crosses5); categoryAxis3.Append(autoLabeled3); categoryAxis3.Append(labelAlignment3); categoryAxis3.Append(labelOffset3); categoryAxis3.Append(noMultiLevelLabels3); C.ValueAxis valueAxis3 = new C.ValueAxis(); C.AxisId axisId12 = new C.AxisId(){ Val = (UInt32Value)209979944U }; C.Scaling scaling6 = new C.Scaling(); C.Orientation orientation6 = new C.Orientation(){ Val = C.OrientationValues.MinMax }; scaling6.Append(orientation6); C.Delete delete6 = new C.Delete(){ Val = false }; C.AxisPosition axisPosition6 = new C.AxisPosition(){ Val = C.AxisPositionValues.Left }; C.MajorGridlines majorGridlines3 = new C.MajorGridlines(); C.ChartShapeProperties chartShapeProperties8 = new C.ChartShapeProperties(); A.Outline outline27 = new A.Outline(){ Width = 9525, CapType = A.LineCapValues.Flat, CompoundLineType = A.CompoundLineValues.Single, Alignment = A.PenAlignmentValues.Center }; A.SolidFill solidFill34 = new A.SolidFill(); A.SchemeColor schemeColor22 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; A.LuminanceModulation luminanceModulation7 = new A.LuminanceModulation(){ Val = 15000 }; A.LuminanceOffset luminanceOffset7 = new A.LuminanceOffset(){ Val = 85000 }; schemeColor22.Append(luminanceModulation7); schemeColor22.Append(luminanceOffset7); solidFill34.Append(schemeColor22); A.Round round3 = new A.Round(); outline27.Append(solidFill34); outline27.Append(round3); A.EffectList effectList21 = new A.EffectList(); chartShapeProperties8.Append(outline27); chartShapeProperties8.Append(effectList21); majorGridlines3.Append(chartShapeProperties8); C.NumberingFormat numberingFormat6 = new C.NumberingFormat(){ FormatCode = "General", SourceLinked = true }; C.MajorTickMark majorTickMark6 = new C.MajorTickMark(){ Val = C.TickMarkValues.None }; C.MinorTickMark minorTickMark6 = new C.MinorTickMark(){ Val = C.TickMarkValues.None }; C.TickLabelPosition tickLabelPosition6 = new C.TickLabelPosition(){ Val = C.TickLabelPositionValues.NextTo }; C.ChartShapeProperties chartShapeProperties9 = new C.ChartShapeProperties(); A.NoFill noFill23 = new A.NoFill(); A.Outline outline28 = new A.Outline(); A.NoFill noFill24 = new A.NoFill(); outline28.Append(noFill24); A.EffectList effectList22 = new A.EffectList(); chartShapeProperties9.Append(noFill23); chartShapeProperties9.Append(outline28); chartShapeProperties9.Append(effectList22); C.TextProperties textProperties6 = new C.TextProperties(); A.BodyProperties bodyProperties12 = new A.BodyProperties(){ Rotation = -60000000, UseParagraphSpacing = true, VerticalOverflow = A.TextVerticalOverflowValues.Ellipsis, Vertical = A.TextVerticalValues.Horizontal, Wrap = A.TextWrappingValues.Square, Anchor = A.TextAnchoringTypeValues.Center, AnchorCenter = true }; A.ListStyle listStyle12 = new A.ListStyle(); A.Paragraph paragraph12 = new A.Paragraph(); A.ParagraphProperties paragraphProperties6 = new A.ParagraphProperties(); A.DefaultRunProperties defaultRunProperties6 = new A.DefaultRunProperties(){ FontSize = 900, Kerning = 1200 }; A.SolidFill solidFill35 = new A.SolidFill(); A.SchemeColor schemeColor23 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; A.LuminanceModulation luminanceModulation8 = new A.LuminanceModulation(){ Val = 65000 }; A.LuminanceOffset luminanceOffset8 = new A.LuminanceOffset(){ Val = 35000 }; schemeColor23.Append(luminanceModulation8); schemeColor23.Append(luminanceOffset8); solidFill35.Append(schemeColor23); A.LatinFont latinFont5 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont5 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont5 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties6.Append(solidFill35); defaultRunProperties6.Append(latinFont5); defaultRunProperties6.Append(eastAsianFont5); defaultRunProperties6.Append(complexScriptFont5); paragraphProperties6.Append(defaultRunProperties6); A.EndParagraphRunProperties endParagraphRunProperties6 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph12.Append(paragraphProperties6); paragraph12.Append(endParagraphRunProperties6); textProperties6.Append(bodyProperties12); textProperties6.Append(listStyle12); textProperties6.Append(paragraph12); C.CrossingAxis crossingAxis6 = new C.CrossingAxis(){ Val = (UInt32Value)209979552U }; C.Crosses crosses6 = new C.Crosses(){ Val = C.CrossesValues.AutoZero }; C.CrossBetween crossBetween3 = new C.CrossBetween(){ Val = C.CrossBetweenValues.Between }; valueAxis3.Append(axisId12); valueAxis3.Append(scaling6); valueAxis3.Append(delete6); valueAxis3.Append(axisPosition6); valueAxis3.Append(majorGridlines3); valueAxis3.Append(numberingFormat6); valueAxis3.Append(majorTickMark6); valueAxis3.Append(minorTickMark6); valueAxis3.Append(tickLabelPosition6); valueAxis3.Append(chartShapeProperties9); valueAxis3.Append(textProperties6); valueAxis3.Append(crossingAxis6); valueAxis3.Append(crosses6); valueAxis3.Append(crossBetween3); C.ShapeProperties shapeProperties20 = new C.ShapeProperties(); A.SolidFill solidFill36 = new A.SolidFill(); A.SchemeColor schemeColor24 = new A.SchemeColor(){ Val = A.SchemeColorValues.Background1 }; solidFill36.Append(schemeColor24); A.Outline outline29 = new A.Outline(); A.NoFill noFill25 = new A.NoFill(); outline29.Append(noFill25); A.EffectList effectList23 = new A.EffectList(); shapeProperties20.Append(solidFill36); shapeProperties20.Append(outline29); shapeProperties20.Append(effectList23); plotArea6.Append(layout6); plotArea6.Append(barChart3); plotArea6.Append(categoryAxis3); plotArea6.Append(valueAxis3); plotArea6.Append(shapeProperties20); C.Legend legend6 = new C.Legend(); C.LegendPosition legendPosition6 = new C.LegendPosition(){ Val = C.LegendPositionValues.Bottom }; C.Overlay overlay12 = new C.Overlay(){ Val = false }; C.ChartShapeProperties chartShapeProperties10 = new C.ChartShapeProperties(); A.NoFill noFill26 = new A.NoFill(); A.Outline outline30 = new A.Outline(); A.NoFill noFill27 = new A.NoFill(); outline30.Append(noFill27); A.EffectList effectList24 = new A.EffectList(); chartShapeProperties10.Append(noFill26); chartShapeProperties10.Append(outline30); chartShapeProperties10.Append(effectList24); C.TextProperties textProperties7 = new C.TextProperties(); A.BodyProperties bodyProperties13 = new A.BodyProperties(){ Rotation = 0, UseParagraphSpacing = true, VerticalOverflow = A.TextVerticalOverflowValues.Ellipsis, Vertical = A.TextVerticalValues.Horizontal, Wrap = A.TextWrappingValues.Square, Anchor = A.TextAnchoringTypeValues.Center, AnchorCenter = true }; A.ListStyle listStyle13 = new A.ListStyle(); A.Paragraph paragraph13 = new A.Paragraph(); A.ParagraphProperties paragraphProperties7 = new A.ParagraphProperties(); A.DefaultRunProperties defaultRunProperties7 = new A.DefaultRunProperties(){ FontSize = 900, Kerning = 1200 }; A.SolidFill solidFill37 = new A.SolidFill(); A.SchemeColor schemeColor25 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; A.LuminanceModulation luminanceModulation9 = new A.LuminanceModulation(){ Val = 65000 }; A.LuminanceOffset luminanceOffset9 = new A.LuminanceOffset(){ Val = 35000 }; schemeColor25.Append(luminanceModulation9); schemeColor25.Append(luminanceOffset9); solidFill37.Append(schemeColor25); A.LatinFont latinFont6 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont6 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont6 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties7.Append(solidFill37); defaultRunProperties7.Append(latinFont6); defaultRunProperties7.Append(eastAsianFont6); defaultRunProperties7.Append(complexScriptFont6); paragraphProperties7.Append(defaultRunProperties7); A.EndParagraphRunProperties endParagraphRunProperties7 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph13.Append(paragraphProperties7); paragraph13.Append(endParagraphRunProperties7); textProperties7.Append(bodyProperties13); textProperties7.Append(listStyle13); textProperties7.Append(paragraph13); legend6.Append(legendPosition6); legend6.Append(overlay12); legend6.Append(chartShapeProperties10); legend6.Append(textProperties7); C.PlotVisibleOnly plotVisibleOnly6 = new C.PlotVisibleOnly(){ Val = true }; C.DisplayBlanksAs displayBlanksAs6 = new C.DisplayBlanksAs(){ Val = C.DisplayBlanksAsValues.Gap }; C.ShowDataLabelsOverMaximum showDataLabelsOverMaximum6 = new C.ShowDataLabelsOverMaximum(){ Val = false }; chart6.Append(title6); chart6.Append(autoTitleDeleted6); chart6.Append(pivotFormats6); chart6.Append(plotArea6); chart6.Append(legend6); chart6.Append(plotVisibleOnly6); chart6.Append(displayBlanksAs6); chart6.Append(showDataLabelsOverMaximum6); C.ShapeProperties shapeProperties21 = new C.ShapeProperties(); A.SolidFill solidFill38 = new A.SolidFill(); A.SchemeColor schemeColor26 = new A.SchemeColor(){ Val = A.SchemeColorValues.Background1 }; solidFill38.Append(schemeColor26); A.Outline outline31 = new A.Outline(){ Width = 9525, CapType = A.LineCapValues.Flat, CompoundLineType = A.CompoundLineValues.Single, Alignment = A.PenAlignmentValues.Center }; A.SolidFill solidFill39 = new A.SolidFill(); A.SchemeColor schemeColor27 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; A.LuminanceModulation luminanceModulation10 = new A.LuminanceModulation(){ Val = 15000 }; A.LuminanceOffset luminanceOffset10 = new A.LuminanceOffset(){ Val = 85000 }; schemeColor27.Append(luminanceModulation10); schemeColor27.Append(luminanceOffset10); solidFill39.Append(schemeColor27); A.Round round4 = new A.Round(); outline31.Append(solidFill39); outline31.Append(round4); A.EffectList effectList25 = new A.EffectList(); shapeProperties21.Append(solidFill38); shapeProperties21.Append(outline31); shapeProperties21.Append(effectList25); C.TextProperties textProperties8 = new C.TextProperties(); A.BodyProperties bodyProperties14 = new A.BodyProperties(); A.ListStyle listStyle14 = new A.ListStyle(); A.Paragraph paragraph14 = new A.Paragraph(); A.ParagraphProperties paragraphProperties8 = new A.ParagraphProperties(); A.DefaultRunProperties defaultRunProperties8 = new A.DefaultRunProperties(); paragraphProperties8.Append(defaultRunProperties8); A.EndParagraphRunProperties endParagraphRunProperties8 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph14.Append(paragraphProperties8); paragraph14.Append(endParagraphRunProperties8); textProperties8.Append(bodyProperties14); textProperties8.Append(listStyle14); textProperties8.Append(paragraph14); C.PrintSettings printSettings6 = new C.PrintSettings(); C.HeaderFooter headerFooter6 = new C.HeaderFooter(); C.PageMargins pageMargins9 = new C.PageMargins(){ Left = 0.7D, Right = 0.7D, Top = 0.75D, Bottom = 0.75D, Header = 0.3D, Footer = 0.3D }; C.PageSetup pageSetup6 = new C.PageSetup(); printSettings6.Append(headerFooter6); printSettings6.Append(pageMargins9); printSettings6.Append(pageSetup6); C.ChartSpaceExtensionList chartSpaceExtensionList6 = new C.ChartSpaceExtensionList(); chartSpaceExtensionList6.AddNamespaceDeclaration("c14", "http://schemas.microsoft.com/office/drawing/2007/8/2/chart"); chartSpaceExtensionList6.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); C.ChartSpaceExtension chartSpaceExtension6 = new C.ChartSpaceExtension(){ Uri = "{781A3756-C4B2-4CAC-9D66-4F8BD8637D16}" }; chartSpaceExtension6.AddNamespaceDeclaration("c14", "http://schemas.microsoft.com/office/drawing/2007/8/2/chart"); C14.PivotOptions pivotOptions6 = new C14.PivotOptions(); C14.DropZoneFilter dropZoneFilter6 = new C14.DropZoneFilter(){ Val = true }; C14.DropZoneCategories dropZoneCategories6 = new C14.DropZoneCategories(){ Val = true }; C14.DropZoneData dropZoneData6 = new C14.DropZoneData(){ Val = true }; C14.DropZoneSeries dropZoneSeries6 = new C14.DropZoneSeries(){ Val = true }; C14.DropZonesVisible dropZonesVisible6 = new C14.DropZonesVisible(){ Val = true }; pivotOptions6.Append(dropZoneFilter6); pivotOptions6.Append(dropZoneCategories6); pivotOptions6.Append(dropZoneData6); pivotOptions6.Append(dropZoneSeries6); pivotOptions6.Append(dropZonesVisible6); chartSpaceExtension6.Append(pivotOptions6); chartSpaceExtensionList6.Append(chartSpaceExtension6); chartSpace6.Append(date19046); chartSpace6.Append(editingLanguage6); chartSpace6.Append(roundedCorners6); chartSpace6.Append(alternateContent13); chartSpace6.Append(pivotSource6); chartSpace6.Append(chart6); chartSpace6.Append(shapeProperties21); chartSpace6.Append(textProperties8); chartSpace6.Append(printSettings6); chartSpace6.Append(chartSpaceExtensionList6); chartPart6.ChartSpace = chartSpace6; }
// Generates content of chartPart1. private void GenerateChartPart1Content(ChartPart chartPart1) { C.ChartSpace chartSpace1 = new C.ChartSpace(); chartSpace1.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart"); chartSpace1.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); chartSpace1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); C.Date1904 date19041 = new C.Date1904() { Val = false }; C.EditingLanguage editingLanguage1 = new C.EditingLanguage() { Val = "en-US" }; C.RoundedCorners roundedCorners1 = new C.RoundedCorners() { Val = false }; AlternateContent alternateContent1 = new AlternateContent(); alternateContent1.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); AlternateContentChoice alternateContentChoice1 = new AlternateContentChoice() { Requires = "c14" }; alternateContentChoice1.AddNamespaceDeclaration("c14", "http://schemas.microsoft.com/office/drawing/2007/8/2/chart"); C14.Style style1 = new C14.Style() { Val = 102 }; alternateContentChoice1.Append(style1); AlternateContentFallback alternateContentFallback1 = new AlternateContentFallback(); C.Style style2 = new C.Style() { Val = 2 }; alternateContentFallback1.Append(style2); alternateContent1.Append(alternateContentChoice1); alternateContent1.Append(alternateContentFallback1); C.Chart chart1 = new C.Chart(); C.AutoTitleDeleted autoTitleDeleted1 = new C.AutoTitleDeleted() { Val = true }; C.PlotArea plotArea1 = new C.PlotArea(); C.Layout layout1 = new C.Layout(); C.LineChart lineChart1 = new C.LineChart(); C.Grouping grouping1 = new C.Grouping() { Val = C.GroupingValues.Standard }; C.VaryColors varyColors1 = new C.VaryColors() { Val = false }; C.LineChartSeries lineChartSeries1 = new C.LineChartSeries(); C.Index index1 = new C.Index() { Val = (UInt32Value)0U }; C.Order order1 = new C.Order() { Val = (UInt32Value)0U }; C.SeriesText seriesText1 = new C.SeriesText(); C.StringReference stringReference1 = new C.StringReference(); C.Formula formula1 = new C.Formula(); formula1.Text = "Sheet1!$B$1"; C.StringCache stringCache1 = new C.StringCache(); C.PointCount pointCount1 = new C.PointCount() { Val = (UInt32Value)1U }; C.StringPoint stringPoint1 = new C.StringPoint() { Index = (UInt32Value)0U }; C.NumericValue numericValue1 = new C.NumericValue(); numericValue1.Text = "Series 1"; stringPoint1.Append(numericValue1); stringCache1.Append(pointCount1); stringCache1.Append(stringPoint1); stringReference1.Append(formula1); stringReference1.Append(stringCache1); seriesText1.Append(stringReference1); C.Marker marker1 = new C.Marker(); C.Symbol symbol1 = new C.Symbol() { Val = C.MarkerStyleValues.None }; marker1.Append(symbol1); C.CategoryAxisData categoryAxisData1 = new C.CategoryAxisData(); C.StringReference stringReference2 = new C.StringReference(); C.Formula formula2 = new C.Formula(); formula2.Text = "Sheet1!$A$2:$A$5"; C.StringCache stringCache2 = new C.StringCache(); C.PointCount pointCount2 = new C.PointCount() { Val = (UInt32Value)4U }; C.StringPoint stringPoint2 = new C.StringPoint() { Index = (UInt32Value)0U }; C.NumericValue numericValue2 = new C.NumericValue(); numericValue2.Text = "Category 1"; stringPoint2.Append(numericValue2); C.StringPoint stringPoint3 = new C.StringPoint() { Index = (UInt32Value)1U }; C.NumericValue numericValue3 = new C.NumericValue(); numericValue3.Text = "Category 2"; stringPoint3.Append(numericValue3); C.StringPoint stringPoint4 = new C.StringPoint() { Index = (UInt32Value)2U }; C.NumericValue numericValue4 = new C.NumericValue(); numericValue4.Text = "Category 3"; stringPoint4.Append(numericValue4); C.StringPoint stringPoint5 = new C.StringPoint() { Index = (UInt32Value)3U }; C.NumericValue numericValue5 = new C.NumericValue(); numericValue5.Text = "Category 4"; stringPoint5.Append(numericValue5); stringCache2.Append(pointCount2); stringCache2.Append(stringPoint2); stringCache2.Append(stringPoint3); stringCache2.Append(stringPoint4); stringCache2.Append(stringPoint5); stringReference2.Append(formula2); stringReference2.Append(stringCache2); categoryAxisData1.Append(stringReference2); C.Values values1 = new C.Values(); C.NumberReference numberReference1 = new C.NumberReference(); C.Formula formula3 = new C.Formula(); formula3.Text = "Sheet1!$B$2:$B$5"; C.NumberingCache numberingCache1 = new C.NumberingCache(); C.FormatCode formatCode1 = new C.FormatCode(); formatCode1.Text = "General"; C.PointCount pointCount3 = new C.PointCount() { Val = (UInt32Value)4U }; C.NumericPoint numericPoint1 = new C.NumericPoint() { Index = (UInt32Value)0U }; C.NumericValue numericValue6 = new C.NumericValue(); numericValue6.Text = "4.3"; numericPoint1.Append(numericValue6); C.NumericPoint numericPoint2 = new C.NumericPoint() { Index = (UInt32Value)1U }; C.NumericValue numericValue7 = new C.NumericValue(); numericValue7.Text = "2.5"; numericPoint2.Append(numericValue7); C.NumericPoint numericPoint3 = new C.NumericPoint() { Index = (UInt32Value)2U }; C.NumericValue numericValue8 = new C.NumericValue(); numericValue8.Text = "3.5"; numericPoint3.Append(numericValue8); C.NumericPoint numericPoint4 = new C.NumericPoint() { Index = (UInt32Value)3U }; C.NumericValue numericValue9 = new C.NumericValue(); numericValue9.Text = "4.5"; numericPoint4.Append(numericValue9); numberingCache1.Append(formatCode1); numberingCache1.Append(pointCount3); numberingCache1.Append(numericPoint1); numberingCache1.Append(numericPoint2); numberingCache1.Append(numericPoint3); numberingCache1.Append(numericPoint4); numberReference1.Append(formula3); numberReference1.Append(numberingCache1); values1.Append(numberReference1); C.Smooth smooth1 = new C.Smooth() { Val = false }; lineChartSeries1.Append(index1); lineChartSeries1.Append(order1); lineChartSeries1.Append(seriesText1); lineChartSeries1.Append(marker1); lineChartSeries1.Append(categoryAxisData1); lineChartSeries1.Append(values1); lineChartSeries1.Append(smooth1); C.LineChartSeries lineChartSeries2 = new C.LineChartSeries(); C.Index index2 = new C.Index() { Val = (UInt32Value)1U }; C.Order order2 = new C.Order() { Val = (UInt32Value)1U }; C.SeriesText seriesText2 = new C.SeriesText(); C.StringReference stringReference3 = new C.StringReference(); C.Formula formula4 = new C.Formula(); formula4.Text = "Sheet1!$C$1"; C.StringCache stringCache3 = new C.StringCache(); C.PointCount pointCount4 = new C.PointCount() { Val = (UInt32Value)1U }; C.StringPoint stringPoint6 = new C.StringPoint() { Index = (UInt32Value)0U }; C.NumericValue numericValue10 = new C.NumericValue(); numericValue10.Text = "Series 2"; stringPoint6.Append(numericValue10); stringCache3.Append(pointCount4); stringCache3.Append(stringPoint6); stringReference3.Append(formula4); stringReference3.Append(stringCache3); seriesText2.Append(stringReference3); C.Marker marker2 = new C.Marker(); C.Symbol symbol2 = new C.Symbol() { Val = C.MarkerStyleValues.None }; marker2.Append(symbol2); C.CategoryAxisData categoryAxisData2 = new C.CategoryAxisData(); C.StringReference stringReference4 = new C.StringReference(); C.Formula formula5 = new C.Formula(); formula5.Text = "Sheet1!$A$2:$A$5"; C.StringCache stringCache4 = new C.StringCache(); C.PointCount pointCount5 = new C.PointCount() { Val = (UInt32Value)4U }; C.StringPoint stringPoint7 = new C.StringPoint() { Index = (UInt32Value)0U }; C.NumericValue numericValue11 = new C.NumericValue(); numericValue11.Text = "Category 1"; stringPoint7.Append(numericValue11); C.StringPoint stringPoint8 = new C.StringPoint() { Index = (UInt32Value)1U }; C.NumericValue numericValue12 = new C.NumericValue(); numericValue12.Text = "Category 2"; stringPoint8.Append(numericValue12); C.StringPoint stringPoint9 = new C.StringPoint() { Index = (UInt32Value)2U }; C.NumericValue numericValue13 = new C.NumericValue(); numericValue13.Text = "Category 3"; stringPoint9.Append(numericValue13); C.StringPoint stringPoint10 = new C.StringPoint() { Index = (UInt32Value)3U }; C.NumericValue numericValue14 = new C.NumericValue(); numericValue14.Text = "Category 4"; stringPoint10.Append(numericValue14); stringCache4.Append(pointCount5); stringCache4.Append(stringPoint7); stringCache4.Append(stringPoint8); stringCache4.Append(stringPoint9); stringCache4.Append(stringPoint10); stringReference4.Append(formula5); stringReference4.Append(stringCache4); categoryAxisData2.Append(stringReference4); C.Values values2 = new C.Values(); C.NumberReference numberReference2 = new C.NumberReference(); C.Formula formula6 = new C.Formula(); formula6.Text = "Sheet1!$C$2:$C$5"; C.NumberingCache numberingCache2 = new C.NumberingCache(); C.FormatCode formatCode2 = new C.FormatCode(); formatCode2.Text = "General"; C.PointCount pointCount6 = new C.PointCount() { Val = (UInt32Value)4U }; C.NumericPoint numericPoint5 = new C.NumericPoint() { Index = (UInt32Value)0U }; C.NumericValue numericValue15 = new C.NumericValue(); numericValue15.Text = "2.4"; numericPoint5.Append(numericValue15); C.NumericPoint numericPoint6 = new C.NumericPoint() { Index = (UInt32Value)1U }; C.NumericValue numericValue16 = new C.NumericValue(); numericValue16.Text = "4.4000000000000004"; numericPoint6.Append(numericValue16); C.NumericPoint numericPoint7 = new C.NumericPoint() { Index = (UInt32Value)2U }; C.NumericValue numericValue17 = new C.NumericValue(); numericValue17.Text = "1.8"; numericPoint7.Append(numericValue17); C.NumericPoint numericPoint8 = new C.NumericPoint() { Index = (UInt32Value)3U }; C.NumericValue numericValue18 = new C.NumericValue(); numericValue18.Text = "2.8"; numericPoint8.Append(numericValue18); numberingCache2.Append(formatCode2); numberingCache2.Append(pointCount6); numberingCache2.Append(numericPoint5); numberingCache2.Append(numericPoint6); numberingCache2.Append(numericPoint7); numberingCache2.Append(numericPoint8); numberReference2.Append(formula6); numberReference2.Append(numberingCache2); values2.Append(numberReference2); C.Smooth smooth2 = new C.Smooth() { Val = false }; lineChartSeries2.Append(index2); lineChartSeries2.Append(order2); lineChartSeries2.Append(seriesText2); lineChartSeries2.Append(marker2); lineChartSeries2.Append(categoryAxisData2); lineChartSeries2.Append(values2); lineChartSeries2.Append(smooth2); C.LineChartSeries lineChartSeries3 = new C.LineChartSeries(); C.Index index3 = new C.Index() { Val = (UInt32Value)2U }; C.Order order3 = new C.Order() { Val = (UInt32Value)2U }; C.SeriesText seriesText3 = new C.SeriesText(); C.StringReference stringReference5 = new C.StringReference(); C.Formula formula7 = new C.Formula(); formula7.Text = "Sheet1!$D$1"; C.StringCache stringCache5 = new C.StringCache(); C.PointCount pointCount7 = new C.PointCount() { Val = (UInt32Value)1U }; C.StringPoint stringPoint11 = new C.StringPoint() { Index = (UInt32Value)0U }; C.NumericValue numericValue19 = new C.NumericValue(); numericValue19.Text = "Series 3"; stringPoint11.Append(numericValue19); stringCache5.Append(pointCount7); stringCache5.Append(stringPoint11); stringReference5.Append(formula7); stringReference5.Append(stringCache5); seriesText3.Append(stringReference5); C.Marker marker3 = new C.Marker(); C.Symbol symbol3 = new C.Symbol() { Val = C.MarkerStyleValues.None }; marker3.Append(symbol3); C.CategoryAxisData categoryAxisData3 = new C.CategoryAxisData(); C.StringReference stringReference6 = new C.StringReference(); C.Formula formula8 = new C.Formula(); formula8.Text = "Sheet1!$A$2:$A$5"; C.StringCache stringCache6 = new C.StringCache(); C.PointCount pointCount8 = new C.PointCount() { Val = (UInt32Value)4U }; C.StringPoint stringPoint12 = new C.StringPoint() { Index = (UInt32Value)0U }; C.NumericValue numericValue20 = new C.NumericValue(); numericValue20.Text = "Category 1"; stringPoint12.Append(numericValue20); C.StringPoint stringPoint13 = new C.StringPoint() { Index = (UInt32Value)1U }; C.NumericValue numericValue21 = new C.NumericValue(); numericValue21.Text = "Category 2"; stringPoint13.Append(numericValue21); C.StringPoint stringPoint14 = new C.StringPoint() { Index = (UInt32Value)2U }; C.NumericValue numericValue22 = new C.NumericValue(); numericValue22.Text = "Category 3"; stringPoint14.Append(numericValue22); C.StringPoint stringPoint15 = new C.StringPoint() { Index = (UInt32Value)3U }; C.NumericValue numericValue23 = new C.NumericValue(); numericValue23.Text = "Category 4"; stringPoint15.Append(numericValue23); stringCache6.Append(pointCount8); stringCache6.Append(stringPoint12); stringCache6.Append(stringPoint13); stringCache6.Append(stringPoint14); stringCache6.Append(stringPoint15); stringReference6.Append(formula8); stringReference6.Append(stringCache6); categoryAxisData3.Append(stringReference6); C.Values values3 = new C.Values(); C.NumberReference numberReference3 = new C.NumberReference(); C.Formula formula9 = new C.Formula(); formula9.Text = "Sheet1!$D$2:$D$5"; C.NumberingCache numberingCache3 = new C.NumberingCache(); C.FormatCode formatCode3 = new C.FormatCode(); formatCode3.Text = "General"; C.PointCount pointCount9 = new C.PointCount() { Val = (UInt32Value)4U }; C.NumericPoint numericPoint9 = new C.NumericPoint() { Index = (UInt32Value)0U }; C.NumericValue numericValue24 = new C.NumericValue(); numericValue24.Text = "2"; numericPoint9.Append(numericValue24); C.NumericPoint numericPoint10 = new C.NumericPoint() { Index = (UInt32Value)1U }; C.NumericValue numericValue25 = new C.NumericValue(); numericValue25.Text = "2"; numericPoint10.Append(numericValue25); C.NumericPoint numericPoint11 = new C.NumericPoint() { Index = (UInt32Value)2U }; C.NumericValue numericValue26 = new C.NumericValue(); numericValue26.Text = "3"; numericPoint11.Append(numericValue26); C.NumericPoint numericPoint12 = new C.NumericPoint() { Index = (UInt32Value)3U }; C.NumericValue numericValue27 = new C.NumericValue(); numericValue27.Text = "5"; numericPoint12.Append(numericValue27); numberingCache3.Append(formatCode3); numberingCache3.Append(pointCount9); numberingCache3.Append(numericPoint9); numberingCache3.Append(numericPoint10); numberingCache3.Append(numericPoint11); numberingCache3.Append(numericPoint12); numberReference3.Append(formula9); numberReference3.Append(numberingCache3); values3.Append(numberReference3); C.Smooth smooth3 = new C.Smooth() { Val = false }; lineChartSeries3.Append(index3); lineChartSeries3.Append(order3); lineChartSeries3.Append(seriesText3); lineChartSeries3.Append(marker3); lineChartSeries3.Append(categoryAxisData3); lineChartSeries3.Append(values3); lineChartSeries3.Append(smooth3); C.DataLabels dataLabels1 = new C.DataLabels(); C.ShowLegendKey showLegendKey1 = new C.ShowLegendKey() { Val = false }; C.ShowValue showValue1 = new C.ShowValue() { Val = false }; C.ShowCategoryName showCategoryName1 = new C.ShowCategoryName() { Val = false }; C.ShowSeriesName showSeriesName1 = new C.ShowSeriesName() { Val = false }; C.ShowPercent showPercent1 = new C.ShowPercent() { Val = false }; C.ShowBubbleSize showBubbleSize1 = new C.ShowBubbleSize() { Val = false }; dataLabels1.Append(showLegendKey1); dataLabels1.Append(showValue1); dataLabels1.Append(showCategoryName1); dataLabels1.Append(showSeriesName1); dataLabels1.Append(showPercent1); dataLabels1.Append(showBubbleSize1); C.ShowMarker showMarker1 = new C.ShowMarker() { Val = true }; C.Smooth smooth4 = new C.Smooth() { Val = false }; C.AxisId axisId1 = new C.AxisId() { Val = (UInt32Value)231952384U }; C.AxisId axisId2 = new C.AxisId() { Val = (UInt32Value)231953920U }; lineChart1.Append(grouping1); lineChart1.Append(varyColors1); lineChart1.Append(lineChartSeries1); lineChart1.Append(lineChartSeries2); lineChart1.Append(lineChartSeries3); lineChart1.Append(dataLabels1); lineChart1.Append(showMarker1); lineChart1.Append(smooth4); lineChart1.Append(axisId1); lineChart1.Append(axisId2); C.CategoryAxis categoryAxis1 = new C.CategoryAxis(); C.AxisId axisId3 = new C.AxisId() { Val = (UInt32Value)231952384U }; C.Scaling scaling1 = new C.Scaling(); C.Orientation orientation1 = new C.Orientation() { Val = C.OrientationValues.MinMax }; scaling1.Append(orientation1); C.Delete delete1 = new C.Delete() { Val = false }; C.AxisPosition axisPosition1 = new C.AxisPosition() { Val = C.AxisPositionValues.Bottom }; C.MajorTickMark majorTickMark1 = new C.MajorTickMark() { Val = C.TickMarkValues.Outside }; C.MinorTickMark minorTickMark1 = new C.MinorTickMark() { Val = C.TickMarkValues.None }; C.TickLabelPosition tickLabelPosition1 = new C.TickLabelPosition() { Val = C.TickLabelPositionValues.NextTo }; C.CrossingAxis crossingAxis1 = new C.CrossingAxis() { Val = (UInt32Value)231953920U }; C.Crosses crosses1 = new C.Crosses() { Val = C.CrossesValues.AutoZero }; C.AutoLabeled autoLabeled1 = new C.AutoLabeled() { Val = true }; C.LabelAlignment labelAlignment1 = new C.LabelAlignment() { Val = C.LabelAlignmentValues.Center }; C.LabelOffset labelOffset1 = new C.LabelOffset() { Val = (UInt16Value)100U }; C.NoMultiLevelLabels noMultiLevelLabels1 = new C.NoMultiLevelLabels() { Val = false }; categoryAxis1.Append(axisId3); categoryAxis1.Append(scaling1); categoryAxis1.Append(delete1); categoryAxis1.Append(axisPosition1); categoryAxis1.Append(majorTickMark1); categoryAxis1.Append(minorTickMark1); categoryAxis1.Append(tickLabelPosition1); categoryAxis1.Append(crossingAxis1); categoryAxis1.Append(crosses1); categoryAxis1.Append(autoLabeled1); categoryAxis1.Append(labelAlignment1); categoryAxis1.Append(labelOffset1); categoryAxis1.Append(noMultiLevelLabels1); C.ValueAxis valueAxis1 = new C.ValueAxis(); C.AxisId axisId4 = new C.AxisId() { Val = (UInt32Value)231953920U }; C.Scaling scaling2 = new C.Scaling(); C.Orientation orientation2 = new C.Orientation() { Val = C.OrientationValues.MinMax }; scaling2.Append(orientation2); C.Delete delete2 = new C.Delete() { Val = false }; C.AxisPosition axisPosition2 = new C.AxisPosition() { Val = C.AxisPositionValues.Left }; C.MajorGridlines majorGridlines1 = new C.MajorGridlines(); C.NumberingFormat numberingFormat1 = new C.NumberingFormat() { FormatCode = "General", SourceLinked = true }; C.MajorTickMark majorTickMark2 = new C.MajorTickMark() { Val = C.TickMarkValues.Outside }; C.MinorTickMark minorTickMark2 = new C.MinorTickMark() { Val = C.TickMarkValues.None }; C.TickLabelPosition tickLabelPosition2 = new C.TickLabelPosition() { Val = C.TickLabelPositionValues.NextTo }; C.CrossingAxis crossingAxis2 = new C.CrossingAxis() { Val = (UInt32Value)231952384U }; C.Crosses crosses2 = new C.Crosses() { Val = C.CrossesValues.AutoZero }; C.CrossBetween crossBetween1 = new C.CrossBetween() { Val = C.CrossBetweenValues.Between }; valueAxis1.Append(axisId4); valueAxis1.Append(scaling2); valueAxis1.Append(delete2); valueAxis1.Append(axisPosition2); valueAxis1.Append(majorGridlines1); valueAxis1.Append(numberingFormat1); valueAxis1.Append(majorTickMark2); valueAxis1.Append(minorTickMark2); valueAxis1.Append(tickLabelPosition2); valueAxis1.Append(crossingAxis2); valueAxis1.Append(crosses2); valueAxis1.Append(crossBetween1); plotArea1.Append(layout1); plotArea1.Append(lineChart1); plotArea1.Append(categoryAxis1); plotArea1.Append(valueAxis1); C.Legend legend1 = new C.Legend(); C.LegendPosition legendPosition1 = new C.LegendPosition() { Val = C.LegendPositionValues.Right }; C.Overlay overlay1 = new C.Overlay() { Val = false }; legend1.Append(legendPosition1); legend1.Append(overlay1); C.PlotVisibleOnly plotVisibleOnly1 = new C.PlotVisibleOnly() { Val = true }; C.DisplayBlanksAs displayBlanksAs1 = new C.DisplayBlanksAs() { Val = C.DisplayBlanksAsValues.Gap }; C.ShowDataLabelsOverMaximum showDataLabelsOverMaximum1 = new C.ShowDataLabelsOverMaximum() { Val = false }; chart1.Append(autoTitleDeleted1); chart1.Append(plotArea1); chart1.Append(legend1); chart1.Append(plotVisibleOnly1); chart1.Append(displayBlanksAs1); chart1.Append(showDataLabelsOverMaximum1); C.ExternalData externalData1 = new C.ExternalData() { Id = "rId1" }; C.AutoUpdate autoUpdate1 = new C.AutoUpdate() { Val = false }; externalData1.Append(autoUpdate1); chartSpace1.Append(date19041); chartSpace1.Append(editingLanguage1); chartSpace1.Append(roundedCorners1); chartSpace1.Append(alternateContent1); chartSpace1.Append(chart1); chartSpace1.Append(externalData1); chartPart1.ChartSpace = chartSpace1; }
// Generates content of drawingsPart1. private void GenerateDrawingsPart1Content(DrawingsPart drawingsPart1) { Xdr.WorksheetDrawing worksheetDrawing1 = new Xdr.WorksheetDrawing(); worksheetDrawing1.AddNamespaceDeclaration("xdr", "http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"); worksheetDrawing1.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); Xdr.TwoCellAnchor twoCellAnchor1 = new Xdr.TwoCellAnchor(); Xdr.FromMarker fromMarker1 = new Xdr.FromMarker(); Xdr.ColumnId columnId1 = new Xdr.ColumnId(); columnId1.Text = "2"; Xdr.ColumnOffset columnOffset1 = new Xdr.ColumnOffset(); columnOffset1.Text = "185737"; Xdr.RowId rowId1 = new Xdr.RowId(); rowId1.Text = "0"; Xdr.RowOffset rowOffset1 = new Xdr.RowOffset(); rowOffset1.Text = "0"; fromMarker1.Append(columnId1); fromMarker1.Append(columnOffset1); fromMarker1.Append(rowId1); fromMarker1.Append(rowOffset1); Xdr.ToMarker toMarker1 = new Xdr.ToMarker(); Xdr.ColumnId columnId2 = new Xdr.ColumnId(); columnId2.Text = "9"; Xdr.ColumnOffset columnOffset2 = new Xdr.ColumnOffset(); columnOffset2.Text = "90487"; Xdr.RowId rowId2 = new Xdr.RowId(); rowId2.Text = "14"; Xdr.RowOffset rowOffset2 = new Xdr.RowOffset(); rowOffset2.Text = "76200"; toMarker1.Append(columnId2); toMarker1.Append(columnOffset2); toMarker1.Append(rowId2); toMarker1.Append(rowOffset2); Xdr.GraphicFrame graphicFrame1 = new Xdr.GraphicFrame(){ Macro = "" }; Xdr.NonVisualGraphicFrameProperties nonVisualGraphicFrameProperties1 = new Xdr.NonVisualGraphicFrameProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties1 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)2U, Name = "Chart 1" }; Xdr.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties1 = new Xdr.NonVisualGraphicFrameDrawingProperties(); A.GraphicFrameLocks graphicFrameLocks1 = new A.GraphicFrameLocks(); nonVisualGraphicFrameDrawingProperties1.Append(graphicFrameLocks1); nonVisualGraphicFrameProperties1.Append(nonVisualDrawingProperties1); nonVisualGraphicFrameProperties1.Append(nonVisualGraphicFrameDrawingProperties1); Xdr.Transform transform1 = new Xdr.Transform(); A.Offset offset1 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents1 = new A.Extents(){ Cx = 0L, Cy = 0L }; transform1.Append(offset1); transform1.Append(extents1); A.Graphic graphic1 = new A.Graphic(); A.GraphicData graphicData1 = new A.GraphicData(){ Uri = "http://schemas.openxmlformats.org/drawingml/2006/chart" }; C.ChartReference chartReference1 = new C.ChartReference(){ Id = "rId1" }; chartReference1.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart"); chartReference1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); graphicData1.Append(chartReference1); graphic1.Append(graphicData1); graphicFrame1.Append(nonVisualGraphicFrameProperties1); graphicFrame1.Append(transform1); graphicFrame1.Append(graphic1); Xdr.ClientData clientData1 = new Xdr.ClientData(); twoCellAnchor1.Append(fromMarker1); twoCellAnchor1.Append(toMarker1); twoCellAnchor1.Append(graphicFrame1); twoCellAnchor1.Append(clientData1); Xdr.TwoCellAnchor twoCellAnchor2 = new Xdr.TwoCellAnchor(); Xdr.FromMarker fromMarker2 = new Xdr.FromMarker(); Xdr.ColumnId columnId3 = new Xdr.ColumnId(); columnId3.Text = "2"; Xdr.ColumnOffset columnOffset3 = new Xdr.ColumnOffset(); columnOffset3.Text = "200025"; Xdr.RowId rowId3 = new Xdr.RowId(); rowId3.Text = "14"; Xdr.RowOffset rowOffset3 = new Xdr.RowOffset(); rowOffset3.Text = "147637"; fromMarker2.Append(columnId3); fromMarker2.Append(columnOffset3); fromMarker2.Append(rowId3); fromMarker2.Append(rowOffset3); Xdr.ToMarker toMarker2 = new Xdr.ToMarker(); Xdr.ColumnId columnId4 = new Xdr.ColumnId(); columnId4.Text = "7"; Xdr.ColumnOffset columnOffset4 = new Xdr.ColumnOffset(); columnOffset4.Text = "476250"; Xdr.RowId rowId4 = new Xdr.RowId(); rowId4.Text = "29"; Xdr.RowOffset rowOffset4 = new Xdr.RowOffset(); rowOffset4.Text = "33337"; toMarker2.Append(columnId4); toMarker2.Append(columnOffset4); toMarker2.Append(rowId4); toMarker2.Append(rowOffset4); Xdr.GraphicFrame graphicFrame2 = new Xdr.GraphicFrame(){ Macro = "" }; Xdr.NonVisualGraphicFrameProperties nonVisualGraphicFrameProperties2 = new Xdr.NonVisualGraphicFrameProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties2 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)3U, Name = "グラフ 2" }; Xdr.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties2 = new Xdr.NonVisualGraphicFrameDrawingProperties(); A.GraphicFrameLocks graphicFrameLocks2 = new A.GraphicFrameLocks(); nonVisualGraphicFrameDrawingProperties2.Append(graphicFrameLocks2); nonVisualGraphicFrameProperties2.Append(nonVisualDrawingProperties2); nonVisualGraphicFrameProperties2.Append(nonVisualGraphicFrameDrawingProperties2); Xdr.Transform transform2 = new Xdr.Transform(); A.Offset offset2 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents2 = new A.Extents(){ Cx = 0L, Cy = 0L }; transform2.Append(offset2); transform2.Append(extents2); A.Graphic graphic2 = new A.Graphic(); A.GraphicData graphicData2 = new A.GraphicData(){ Uri = "http://schemas.openxmlformats.org/drawingml/2006/chart" }; C.ChartReference chartReference2 = new C.ChartReference(){ Id = "rId2" }; chartReference2.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart"); chartReference2.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); graphicData2.Append(chartReference2); graphic2.Append(graphicData2); graphicFrame2.Append(nonVisualGraphicFrameProperties2); graphicFrame2.Append(transform2); graphicFrame2.Append(graphic2); Xdr.ClientData clientData2 = new Xdr.ClientData(); twoCellAnchor2.Append(fromMarker2); twoCellAnchor2.Append(toMarker2); twoCellAnchor2.Append(graphicFrame2); twoCellAnchor2.Append(clientData2); Xdr.TwoCellAnchor twoCellAnchor3 = new Xdr.TwoCellAnchor(){ EditAs = Xdr.EditAsValues.OneCell }; Xdr.FromMarker fromMarker3 = new Xdr.FromMarker(); Xdr.ColumnId columnId5 = new Xdr.ColumnId(); columnId5.Text = "10"; Xdr.ColumnOffset columnOffset5 = new Xdr.ColumnOffset(); columnOffset5.Text = "9525"; Xdr.RowId rowId5 = new Xdr.RowId(); rowId5.Text = "0"; Xdr.RowOffset rowOffset5 = new Xdr.RowOffset(); rowOffset5.Text = "171450"; fromMarker3.Append(columnId5); fromMarker3.Append(columnOffset5); fromMarker3.Append(rowId5); fromMarker3.Append(rowOffset5); Xdr.ToMarker toMarker3 = new Xdr.ToMarker(); Xdr.ColumnId columnId6 = new Xdr.ColumnId(); columnId6.Text = "13"; Xdr.ColumnOffset columnOffset6 = new Xdr.ColumnOffset(); columnOffset6.Text = "742950"; Xdr.RowId rowId6 = new Xdr.RowId(); rowId6.Text = "7"; Xdr.RowOffset rowOffset6 = new Xdr.RowOffset(); rowOffset6.Text = "28575"; toMarker3.Append(columnId6); toMarker3.Append(columnOffset6); toMarker3.Append(rowId6); toMarker3.Append(rowOffset6); AlternateContent alternateContent2 = new AlternateContent(); alternateContent2.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); alternateContent2.AddNamespaceDeclaration("a15", "http://schemas.microsoft.com/office/drawing/2012/main"); AlternateContentChoice alternateContentChoice2 = new AlternateContentChoice(){ Requires = "a15" }; Xdr.GraphicFrame graphicFrame3 = new Xdr.GraphicFrame(){ Macro = "" }; Xdr.NonVisualGraphicFrameProperties nonVisualGraphicFrameProperties3 = new Xdr.NonVisualGraphicFrameProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties3 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)4U, Name = "DeliveryDate 10" }; Xdr.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties3 = new Xdr.NonVisualGraphicFrameDrawingProperties(); nonVisualGraphicFrameProperties3.Append(nonVisualDrawingProperties3); nonVisualGraphicFrameProperties3.Append(nonVisualGraphicFrameDrawingProperties3); Xdr.Transform transform3 = new Xdr.Transform(); A.Offset offset3 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents3 = new A.Extents(){ Cx = 0L, Cy = 0L }; transform3.Append(offset3); transform3.Append(extents3); A.Graphic graphic3 = new A.Graphic(); A.GraphicData graphicData3 = new A.GraphicData(){ Uri = "http://schemas.microsoft.com/office/drawing/2012/timeslicer" }; Tsle.TimeSlicer timeSlicer1 = new Tsle.TimeSlicer(){ Name = "DeliveryDate 10" }; timeSlicer1.AddNamespaceDeclaration("tsle", "http://schemas.microsoft.com/office/drawing/2012/timeslicer"); graphicData3.Append(timeSlicer1); graphic3.Append(graphicData3); graphicFrame3.Append(nonVisualGraphicFrameProperties3); graphicFrame3.Append(transform3); graphicFrame3.Append(graphic3); alternateContentChoice2.Append(graphicFrame3); AlternateContentFallback alternateContentFallback1 = new AlternateContentFallback(); alternateContentFallback1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); alternateContentFallback1.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart"); Xdr.Shape shape1 = new Xdr.Shape(){ Macro = "", TextLink = "" }; Xdr.NonVisualShapeProperties nonVisualShapeProperties1 = new Xdr.NonVisualShapeProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties4 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)0U, Name = "" }; Xdr.NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties1 = new Xdr.NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks1 = new A.ShapeLocks(){ NoTextEdit = true }; nonVisualShapeDrawingProperties1.Append(shapeLocks1); nonVisualShapeProperties1.Append(nonVisualDrawingProperties4); nonVisualShapeProperties1.Append(nonVisualShapeDrawingProperties1); Xdr.ShapeProperties shapeProperties1 = new Xdr.ShapeProperties(); A.Transform2D transform2D1 = new A.Transform2D(); A.Offset offset4 = new A.Offset(){ X = 8610600L, Y = 171450L }; A.Extents extents4 = new A.Extents(){ Cx = 3333750L, Cy = 1190625L }; transform2D1.Append(offset4); transform2D1.Append(extents4); A.PresetGeometry presetGeometry1 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList1 = new A.AdjustValueList(); presetGeometry1.Append(adjustValueList1); A.SolidFill solidFill1 = new A.SolidFill(); A.PresetColor presetColor1 = new A.PresetColor(){ Val = A.PresetColorValues.White }; solidFill1.Append(presetColor1); A.Outline outline1 = new A.Outline(){ Width = 1 }; A.SolidFill solidFill2 = new A.SolidFill(); A.PresetColor presetColor2 = new A.PresetColor(){ Val = A.PresetColorValues.Green }; solidFill2.Append(presetColor2); outline1.Append(solidFill2); shapeProperties1.Append(transform2D1); shapeProperties1.Append(presetGeometry1); shapeProperties1.Append(solidFill1); shapeProperties1.Append(outline1); Xdr.TextBody textBody1 = new Xdr.TextBody(); A.BodyProperties bodyProperties1 = new A.BodyProperties(){ VerticalOverflow = A.TextVerticalOverflowValues.Clip, HorizontalOverflow = A.TextHorizontalOverflowValues.Clip }; A.ListStyle listStyle1 = new A.ListStyle(); A.Paragraph paragraph1 = new A.Paragraph(); A.Run run1 = new A.Run(); A.RunProperties runProperties1 = new A.RunProperties(){ Language = "en-US", FontSize = 1100 }; A.Text text1 = new A.Text(); text1.Text = "Timeline: Works in Excel 15 or higher. Do not move or resize."; run1.Append(runProperties1); run1.Append(text1); paragraph1.Append(run1); textBody1.Append(bodyProperties1); textBody1.Append(listStyle1); textBody1.Append(paragraph1); shape1.Append(nonVisualShapeProperties1); shape1.Append(shapeProperties1); shape1.Append(textBody1); alternateContentFallback1.Append(shape1); alternateContent2.Append(alternateContentChoice2); alternateContent2.Append(alternateContentFallback1); Xdr.ClientData clientData3 = new Xdr.ClientData(); twoCellAnchor3.Append(fromMarker3); twoCellAnchor3.Append(toMarker3); twoCellAnchor3.Append(alternateContent2); twoCellAnchor3.Append(clientData3); Xdr.TwoCellAnchor twoCellAnchor4 = new Xdr.TwoCellAnchor(){ EditAs = Xdr.EditAsValues.OneCell }; Xdr.FromMarker fromMarker4 = new Xdr.FromMarker(); Xdr.ColumnId columnId7 = new Xdr.ColumnId(); columnId7.Text = "10"; Xdr.ColumnOffset columnOffset7 = new Xdr.ColumnOffset(); columnOffset7.Text = "9525"; Xdr.RowId rowId7 = new Xdr.RowId(); rowId7.Text = "8"; Xdr.RowOffset rowOffset7 = new Xdr.RowOffset(); rowOffset7.Text = "57150"; fromMarker4.Append(columnId7); fromMarker4.Append(columnOffset7); fromMarker4.Append(rowId7); fromMarker4.Append(rowOffset7); Xdr.ToMarker toMarker4 = new Xdr.ToMarker(); Xdr.ColumnId columnId8 = new Xdr.ColumnId(); columnId8.Text = "13"; Xdr.ColumnOffset columnOffset8 = new Xdr.ColumnOffset(); columnOffset8.Text = "866775"; Xdr.RowId rowId8 = new Xdr.RowId(); rowId8.Text = "14"; Xdr.RowOffset rowOffset8 = new Xdr.RowOffset(); rowOffset8.Text = "85725"; toMarker4.Append(columnId8); toMarker4.Append(columnOffset8); toMarker4.Append(rowId8); toMarker4.Append(rowOffset8); AlternateContent alternateContent3 = new AlternateContent(); alternateContent3.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); alternateContent3.AddNamespaceDeclaration("a15", "http://schemas.microsoft.com/office/drawing/2012/main"); AlternateContentChoice alternateContentChoice3 = new AlternateContentChoice(){ Requires = "a15" }; Xdr.GraphicFrame graphicFrame4 = new Xdr.GraphicFrame(){ Macro = "" }; Xdr.NonVisualGraphicFrameProperties nonVisualGraphicFrameProperties4 = new Xdr.NonVisualGraphicFrameProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties5 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)5U, Name = "DeliveryDate 11" }; Xdr.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties4 = new Xdr.NonVisualGraphicFrameDrawingProperties(); nonVisualGraphicFrameProperties4.Append(nonVisualDrawingProperties5); nonVisualGraphicFrameProperties4.Append(nonVisualGraphicFrameDrawingProperties4); Xdr.Transform transform4 = new Xdr.Transform(); A.Offset offset5 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents5 = new A.Extents(){ Cx = 0L, Cy = 0L }; transform4.Append(offset5); transform4.Append(extents5); A.Graphic graphic4 = new A.Graphic(); A.GraphicData graphicData4 = new A.GraphicData(){ Uri = "http://schemas.microsoft.com/office/drawing/2012/timeslicer" }; Tsle.TimeSlicer timeSlicer2 = new Tsle.TimeSlicer(){ Name = "DeliveryDate 11" }; timeSlicer2.AddNamespaceDeclaration("tsle", "http://schemas.microsoft.com/office/drawing/2012/timeslicer"); graphicData4.Append(timeSlicer2); graphic4.Append(graphicData4); graphicFrame4.Append(nonVisualGraphicFrameProperties4); graphicFrame4.Append(transform4); graphicFrame4.Append(graphic4); alternateContentChoice3.Append(graphicFrame4); AlternateContentFallback alternateContentFallback2 = new AlternateContentFallback(); Xdr.Shape shape2 = new Xdr.Shape(){ Macro = "", TextLink = "" }; Xdr.NonVisualShapeProperties nonVisualShapeProperties2 = new Xdr.NonVisualShapeProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties6 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)0U, Name = "" }; Xdr.NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties2 = new Xdr.NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks2 = new A.ShapeLocks(){ NoTextEdit = true }; nonVisualShapeDrawingProperties2.Append(shapeLocks2); nonVisualShapeProperties2.Append(nonVisualDrawingProperties6); nonVisualShapeProperties2.Append(nonVisualShapeDrawingProperties2); Xdr.ShapeProperties shapeProperties2 = new Xdr.ShapeProperties(); A.Transform2D transform2D2 = new A.Transform2D(); A.Offset offset6 = new A.Offset(){ X = 10296525L, Y = 1428750L }; A.Extents extents6 = new A.Extents(){ Cx = 3829050L, Cy = 1057275L }; transform2D2.Append(offset6); transform2D2.Append(extents6); A.PresetGeometry presetGeometry2 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList2 = new A.AdjustValueList(); presetGeometry2.Append(adjustValueList2); A.SolidFill solidFill3 = new A.SolidFill(); A.PresetColor presetColor3 = new A.PresetColor(){ Val = A.PresetColorValues.White }; solidFill3.Append(presetColor3); A.Outline outline2 = new A.Outline(){ Width = 1 }; A.SolidFill solidFill4 = new A.SolidFill(); A.PresetColor presetColor4 = new A.PresetColor(){ Val = A.PresetColorValues.Green }; solidFill4.Append(presetColor4); outline2.Append(solidFill4); shapeProperties2.Append(transform2D2); shapeProperties2.Append(presetGeometry2); shapeProperties2.Append(solidFill3); shapeProperties2.Append(outline2); Xdr.TextBody textBody2 = new Xdr.TextBody(); A.BodyProperties bodyProperties2 = new A.BodyProperties(){ VerticalOverflow = A.TextVerticalOverflowValues.Clip, HorizontalOverflow = A.TextHorizontalOverflowValues.Clip }; A.ListStyle listStyle2 = new A.ListStyle(); A.Paragraph paragraph2 = new A.Paragraph(); A.Run run2 = new A.Run(); A.RunProperties runProperties2 = new A.RunProperties(){ Language = "ja-JP", AlternativeLanguage = "en-US", FontSize = 1100 }; A.Text text2 = new A.Text(); text2.Text = "Timeline: Works in Excel 15 or higher. Do not move or resize."; run2.Append(runProperties2); run2.Append(text2); paragraph2.Append(run2); textBody2.Append(bodyProperties2); textBody2.Append(listStyle2); textBody2.Append(paragraph2); shape2.Append(nonVisualShapeProperties2); shape2.Append(shapeProperties2); shape2.Append(textBody2); alternateContentFallback2.Append(shape2); alternateContent3.Append(alternateContentChoice3); alternateContent3.Append(alternateContentFallback2); Xdr.ClientData clientData4 = new Xdr.ClientData(); twoCellAnchor4.Append(fromMarker4); twoCellAnchor4.Append(toMarker4); twoCellAnchor4.Append(alternateContent3); twoCellAnchor4.Append(clientData4); worksheetDrawing1.Append(twoCellAnchor1); worksheetDrawing1.Append(twoCellAnchor2); worksheetDrawing1.Append(twoCellAnchor3); worksheetDrawing1.Append(twoCellAnchor4); drawingsPart1.WorksheetDrawing = worksheetDrawing1; }
public void Bug718316() { using (WordprocessingDocument doc = WordprocessingDocument.Create("tmp.docx", WordprocessingDocumentType.Document)) { var mpart = doc.AddMainDocumentPart(); mpart.Document = new Document(); mpart.Document.Body = new Body(); var ac = new AlternateContent(); mpart.Document.Body.Append(ac); var c = new AlternateContentChoice(); c.AddNamespaceDeclaration("w13", "http://w13"); c.Requires = "w13"; ac.Append(c); } OpenSettings s = new OpenSettings(); s.MarkupCompatibilityProcessSettings = new MarkupCompatibilityProcessSettings(MarkupCompatibilityProcessMode.ProcessAllParts, FileFormatVersions.Office2007); using (var doc = WordprocessingDocument.Open("tmp.docx", true, s)) { Assert.Null(doc.MainDocumentPart.Document.Body.FirstChild); } System.IO.File.Delete("tmp.docx"); }
// Generates content of drawingsPart4. private void GenerateDrawingsPart4Content(DrawingsPart drawingsPart4) { Xdr.WorksheetDrawing worksheetDrawing4 = new Xdr.WorksheetDrawing(); worksheetDrawing4.AddNamespaceDeclaration("xdr", "http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"); worksheetDrawing4.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); Xdr.TwoCellAnchor twoCellAnchor13 = new Xdr.TwoCellAnchor(); Xdr.FromMarker fromMarker13 = new Xdr.FromMarker(); Xdr.ColumnId columnId25 = new Xdr.ColumnId(); columnId25.Text = "2"; Xdr.ColumnOffset columnOffset25 = new Xdr.ColumnOffset(); columnOffset25.Text = "185737"; Xdr.RowId rowId25 = new Xdr.RowId(); rowId25.Text = "0"; Xdr.RowOffset rowOffset25 = new Xdr.RowOffset(); rowOffset25.Text = "0"; fromMarker13.Append(columnId25); fromMarker13.Append(columnOffset25); fromMarker13.Append(rowId25); fromMarker13.Append(rowOffset25); Xdr.ToMarker toMarker13 = new Xdr.ToMarker(); Xdr.ColumnId columnId26 = new Xdr.ColumnId(); columnId26.Text = "9"; Xdr.ColumnOffset columnOffset26 = new Xdr.ColumnOffset(); columnOffset26.Text = "90487"; Xdr.RowId rowId26 = new Xdr.RowId(); rowId26.Text = "14"; Xdr.RowOffset rowOffset26 = new Xdr.RowOffset(); rowOffset26.Text = "76200"; toMarker13.Append(columnId26); toMarker13.Append(columnOffset26); toMarker13.Append(rowId26); toMarker13.Append(rowOffset26); Xdr.GraphicFrame graphicFrame13 = new Xdr.GraphicFrame(){ Macro = "" }; Xdr.NonVisualGraphicFrameProperties nonVisualGraphicFrameProperties13 = new Xdr.NonVisualGraphicFrameProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties19 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)2U, Name = "Chart 1" }; Xdr.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties13 = new Xdr.NonVisualGraphicFrameDrawingProperties(); A.GraphicFrameLocks graphicFrameLocks5 = new A.GraphicFrameLocks(); nonVisualGraphicFrameDrawingProperties13.Append(graphicFrameLocks5); nonVisualGraphicFrameProperties13.Append(nonVisualDrawingProperties19); nonVisualGraphicFrameProperties13.Append(nonVisualGraphicFrameDrawingProperties13); Xdr.Transform transform13 = new Xdr.Transform(); A.Offset offset19 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents19 = new A.Extents(){ Cx = 0L, Cy = 0L }; transform13.Append(offset19); transform13.Append(extents19); A.Graphic graphic13 = new A.Graphic(); A.GraphicData graphicData13 = new A.GraphicData(){ Uri = "http://schemas.openxmlformats.org/drawingml/2006/chart" }; C.ChartReference chartReference7 = new C.ChartReference(){ Id = "rId1" }; chartReference7.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart"); chartReference7.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); graphicData13.Append(chartReference7); graphic13.Append(graphicData13); graphicFrame13.Append(nonVisualGraphicFrameProperties13); graphicFrame13.Append(transform13); graphicFrame13.Append(graphic13); Xdr.ClientData clientData13 = new Xdr.ClientData(); twoCellAnchor13.Append(fromMarker13); twoCellAnchor13.Append(toMarker13); twoCellAnchor13.Append(graphicFrame13); twoCellAnchor13.Append(clientData13); Xdr.TwoCellAnchor twoCellAnchor14 = new Xdr.TwoCellAnchor(); Xdr.FromMarker fromMarker14 = new Xdr.FromMarker(); Xdr.ColumnId columnId27 = new Xdr.ColumnId(); columnId27.Text = "2"; Xdr.ColumnOffset columnOffset27 = new Xdr.ColumnOffset(); columnOffset27.Text = "200025"; Xdr.RowId rowId27 = new Xdr.RowId(); rowId27.Text = "14"; Xdr.RowOffset rowOffset27 = new Xdr.RowOffset(); rowOffset27.Text = "147637"; fromMarker14.Append(columnId27); fromMarker14.Append(columnOffset27); fromMarker14.Append(rowId27); fromMarker14.Append(rowOffset27); Xdr.ToMarker toMarker14 = new Xdr.ToMarker(); Xdr.ColumnId columnId28 = new Xdr.ColumnId(); columnId28.Text = "7"; Xdr.ColumnOffset columnOffset28 = new Xdr.ColumnOffset(); columnOffset28.Text = "476250"; Xdr.RowId rowId28 = new Xdr.RowId(); rowId28.Text = "29"; Xdr.RowOffset rowOffset28 = new Xdr.RowOffset(); rowOffset28.Text = "33337"; toMarker14.Append(columnId28); toMarker14.Append(columnOffset28); toMarker14.Append(rowId28); toMarker14.Append(rowOffset28); Xdr.GraphicFrame graphicFrame14 = new Xdr.GraphicFrame(){ Macro = "" }; Xdr.NonVisualGraphicFrameProperties nonVisualGraphicFrameProperties14 = new Xdr.NonVisualGraphicFrameProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties20 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)3U, Name = "グラフ 2" }; Xdr.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties14 = new Xdr.NonVisualGraphicFrameDrawingProperties(); A.GraphicFrameLocks graphicFrameLocks6 = new A.GraphicFrameLocks(); nonVisualGraphicFrameDrawingProperties14.Append(graphicFrameLocks6); nonVisualGraphicFrameProperties14.Append(nonVisualDrawingProperties20); nonVisualGraphicFrameProperties14.Append(nonVisualGraphicFrameDrawingProperties14); Xdr.Transform transform14 = new Xdr.Transform(); A.Offset offset20 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents20 = new A.Extents(){ Cx = 0L, Cy = 0L }; transform14.Append(offset20); transform14.Append(extents20); A.Graphic graphic14 = new A.Graphic(); A.GraphicData graphicData14 = new A.GraphicData(){ Uri = "http://schemas.openxmlformats.org/drawingml/2006/chart" }; C.ChartReference chartReference8 = new C.ChartReference(){ Id = "rId2" }; chartReference8.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart"); chartReference8.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); graphicData14.Append(chartReference8); graphic14.Append(graphicData14); graphicFrame14.Append(nonVisualGraphicFrameProperties14); graphicFrame14.Append(transform14); graphicFrame14.Append(graphic14); Xdr.ClientData clientData14 = new Xdr.ClientData(); twoCellAnchor14.Append(fromMarker14); twoCellAnchor14.Append(toMarker14); twoCellAnchor14.Append(graphicFrame14); twoCellAnchor14.Append(clientData14); Xdr.TwoCellAnchor twoCellAnchor15 = new Xdr.TwoCellAnchor(){ EditAs = Xdr.EditAsValues.OneCell }; Xdr.FromMarker fromMarker15 = new Xdr.FromMarker(); Xdr.ColumnId columnId29 = new Xdr.ColumnId(); columnId29.Text = "10"; Xdr.ColumnOffset columnOffset29 = new Xdr.ColumnOffset(); columnOffset29.Text = "19050"; Xdr.RowId rowId29 = new Xdr.RowId(); rowId29.Text = "1"; Xdr.RowOffset rowOffset29 = new Xdr.RowOffset(); rowOffset29.Text = "19050"; fromMarker15.Append(columnId29); fromMarker15.Append(columnOffset29); fromMarker15.Append(rowId29); fromMarker15.Append(rowOffset29); Xdr.ToMarker toMarker15 = new Xdr.ToMarker(); Xdr.ColumnId columnId30 = new Xdr.ColumnId(); columnId30.Text = "13"; Xdr.ColumnOffset columnOffset30 = new Xdr.ColumnOffset(); columnOffset30.Text = "752475"; Xdr.RowId rowId30 = new Xdr.RowId(); rowId30.Text = "7"; Xdr.RowOffset rowOffset30 = new Xdr.RowOffset(); rowOffset30.Text = "66675"; toMarker15.Append(columnId30); toMarker15.Append(columnOffset30); toMarker15.Append(rowId30); toMarker15.Append(rowOffset30); AlternateContent alternateContent14 = new AlternateContent(); alternateContent14.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); alternateContent14.AddNamespaceDeclaration("a15", "http://schemas.microsoft.com/office/drawing/2012/main"); AlternateContentChoice alternateContentChoice14 = new AlternateContentChoice(){ Requires = "a15" }; Xdr.GraphicFrame graphicFrame15 = new Xdr.GraphicFrame(){ Macro = "" }; Xdr.NonVisualGraphicFrameProperties nonVisualGraphicFrameProperties15 = new Xdr.NonVisualGraphicFrameProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties21 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)4U, Name = "DeliveryDate 6" }; Xdr.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties15 = new Xdr.NonVisualGraphicFrameDrawingProperties(); nonVisualGraphicFrameProperties15.Append(nonVisualDrawingProperties21); nonVisualGraphicFrameProperties15.Append(nonVisualGraphicFrameDrawingProperties15); Xdr.Transform transform15 = new Xdr.Transform(); A.Offset offset21 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents21 = new A.Extents(){ Cx = 0L, Cy = 0L }; transform15.Append(offset21); transform15.Append(extents21); A.Graphic graphic15 = new A.Graphic(); A.GraphicData graphicData15 = new A.GraphicData(){ Uri = "http://schemas.microsoft.com/office/drawing/2012/timeslicer" }; Tsle.TimeSlicer timeSlicer7 = new Tsle.TimeSlicer(){ Name = "DeliveryDate 6" }; timeSlicer7.AddNamespaceDeclaration("tsle", "http://schemas.microsoft.com/office/drawing/2012/timeslicer"); graphicData15.Append(timeSlicer7); graphic15.Append(graphicData15); graphicFrame15.Append(nonVisualGraphicFrameProperties15); graphicFrame15.Append(transform15); graphicFrame15.Append(graphic15); alternateContentChoice14.Append(graphicFrame15); AlternateContentFallback alternateContentFallback13 = new AlternateContentFallback(); alternateContentFallback13.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); alternateContentFallback13.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart"); Xdr.Shape shape7 = new Xdr.Shape(){ Macro = "", TextLink = "" }; Xdr.NonVisualShapeProperties nonVisualShapeProperties7 = new Xdr.NonVisualShapeProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties22 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)0U, Name = "" }; Xdr.NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties7 = new Xdr.NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks7 = new A.ShapeLocks(){ NoTextEdit = true }; nonVisualShapeDrawingProperties7.Append(shapeLocks7); nonVisualShapeProperties7.Append(nonVisualDrawingProperties22); nonVisualShapeProperties7.Append(nonVisualShapeDrawingProperties7); Xdr.ShapeProperties shapeProperties22 = new Xdr.ShapeProperties(); A.Transform2D transform2D7 = new A.Transform2D(); A.Offset offset22 = new A.Offset(){ X = 8620125L, Y = 209550L }; A.Extents extents22 = new A.Extents(){ Cx = 3333750L, Cy = 1190625L }; transform2D7.Append(offset22); transform2D7.Append(extents22); A.PresetGeometry presetGeometry7 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList7 = new A.AdjustValueList(); presetGeometry7.Append(adjustValueList7); A.SolidFill solidFill40 = new A.SolidFill(); A.PresetColor presetColor13 = new A.PresetColor(){ Val = A.PresetColorValues.White }; solidFill40.Append(presetColor13); A.Outline outline32 = new A.Outline(){ Width = 1 }; A.SolidFill solidFill41 = new A.SolidFill(); A.PresetColor presetColor14 = new A.PresetColor(){ Val = A.PresetColorValues.Green }; solidFill41.Append(presetColor14); outline32.Append(solidFill41); shapeProperties22.Append(transform2D7); shapeProperties22.Append(presetGeometry7); shapeProperties22.Append(solidFill40); shapeProperties22.Append(outline32); Xdr.TextBody textBody7 = new Xdr.TextBody(); A.BodyProperties bodyProperties15 = new A.BodyProperties(){ VerticalOverflow = A.TextVerticalOverflowValues.Clip, HorizontalOverflow = A.TextHorizontalOverflowValues.Clip }; A.ListStyle listStyle15 = new A.ListStyle(); A.Paragraph paragraph15 = new A.Paragraph(); A.Run run7 = new A.Run(); A.RunProperties runProperties7 = new A.RunProperties(){ Language = "en-US", FontSize = 1100 }; A.Text text45 = new A.Text(); text45.Text = "Timeline: Works in Excel 15 or higher. Do not move or resize."; run7.Append(runProperties7); run7.Append(text45); paragraph15.Append(run7); textBody7.Append(bodyProperties15); textBody7.Append(listStyle15); textBody7.Append(paragraph15); shape7.Append(nonVisualShapeProperties7); shape7.Append(shapeProperties22); shape7.Append(textBody7); alternateContentFallback13.Append(shape7); alternateContent14.Append(alternateContentChoice14); alternateContent14.Append(alternateContentFallback13); Xdr.ClientData clientData15 = new Xdr.ClientData(); twoCellAnchor15.Append(fromMarker15); twoCellAnchor15.Append(toMarker15); twoCellAnchor15.Append(alternateContent14); twoCellAnchor15.Append(clientData15); Xdr.TwoCellAnchor twoCellAnchor16 = new Xdr.TwoCellAnchor(){ EditAs = Xdr.EditAsValues.OneCell }; Xdr.FromMarker fromMarker16 = new Xdr.FromMarker(); Xdr.ColumnId columnId31 = new Xdr.ColumnId(); columnId31.Text = "10"; Xdr.ColumnOffset columnOffset31 = new Xdr.ColumnOffset(); columnOffset31.Text = "28575"; Xdr.RowId rowId31 = new Xdr.RowId(); rowId31.Text = "9"; Xdr.RowOffset rowOffset31 = new Xdr.RowOffset(); rowOffset31.Text = "19050"; fromMarker16.Append(columnId31); fromMarker16.Append(columnOffset31); fromMarker16.Append(rowId31); fromMarker16.Append(rowOffset31); Xdr.ToMarker toMarker16 = new Xdr.ToMarker(); Xdr.ColumnId columnId32 = new Xdr.ColumnId(); columnId32.Text = "13"; Xdr.ColumnOffset columnOffset32 = new Xdr.ColumnOffset(); columnOffset32.Text = "762000"; Xdr.RowId rowId32 = new Xdr.RowId(); rowId32.Text = "15"; Xdr.RowOffset rowOffset32 = new Xdr.RowOffset(); rowOffset32.Text = "66675"; toMarker16.Append(columnId32); toMarker16.Append(columnOffset32); toMarker16.Append(rowId32); toMarker16.Append(rowOffset32); AlternateContent alternateContent15 = new AlternateContent(); alternateContent15.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); alternateContent15.AddNamespaceDeclaration("a15", "http://schemas.microsoft.com/office/drawing/2012/main"); AlternateContentChoice alternateContentChoice15 = new AlternateContentChoice(){ Requires = "a15" }; Xdr.GraphicFrame graphicFrame16 = new Xdr.GraphicFrame(){ Macro = "" }; Xdr.NonVisualGraphicFrameProperties nonVisualGraphicFrameProperties16 = new Xdr.NonVisualGraphicFrameProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties23 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)5U, Name = "DeliveryDate 7" }; Xdr.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties16 = new Xdr.NonVisualGraphicFrameDrawingProperties(); nonVisualGraphicFrameProperties16.Append(nonVisualDrawingProperties23); nonVisualGraphicFrameProperties16.Append(nonVisualGraphicFrameDrawingProperties16); Xdr.Transform transform16 = new Xdr.Transform(); A.Offset offset23 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents23 = new A.Extents(){ Cx = 0L, Cy = 0L }; transform16.Append(offset23); transform16.Append(extents23); A.Graphic graphic16 = new A.Graphic(); A.GraphicData graphicData16 = new A.GraphicData(){ Uri = "http://schemas.microsoft.com/office/drawing/2012/timeslicer" }; Tsle.TimeSlicer timeSlicer8 = new Tsle.TimeSlicer(){ Name = "DeliveryDate 7" }; timeSlicer8.AddNamespaceDeclaration("tsle", "http://schemas.microsoft.com/office/drawing/2012/timeslicer"); graphicData16.Append(timeSlicer8); graphic16.Append(graphicData16); graphicFrame16.Append(nonVisualGraphicFrameProperties16); graphicFrame16.Append(transform16); graphicFrame16.Append(graphic16); alternateContentChoice15.Append(graphicFrame16); AlternateContentFallback alternateContentFallback14 = new AlternateContentFallback(); alternateContentFallback14.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); alternateContentFallback14.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart"); Xdr.Shape shape8 = new Xdr.Shape(){ Macro = "", TextLink = "" }; Xdr.NonVisualShapeProperties nonVisualShapeProperties8 = new Xdr.NonVisualShapeProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties24 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)0U, Name = "" }; Xdr.NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties8 = new Xdr.NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks8 = new A.ShapeLocks(){ NoTextEdit = true }; nonVisualShapeDrawingProperties8.Append(shapeLocks8); nonVisualShapeProperties8.Append(nonVisualDrawingProperties24); nonVisualShapeProperties8.Append(nonVisualShapeDrawingProperties8); Xdr.ShapeProperties shapeProperties23 = new Xdr.ShapeProperties(); A.Transform2D transform2D8 = new A.Transform2D(); A.Offset offset24 = new A.Offset(){ X = 8629650L, Y = 1733550L }; A.Extents extents24 = new A.Extents(){ Cx = 3333750L, Cy = 1190625L }; transform2D8.Append(offset24); transform2D8.Append(extents24); A.PresetGeometry presetGeometry8 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList8 = new A.AdjustValueList(); presetGeometry8.Append(adjustValueList8); A.SolidFill solidFill42 = new A.SolidFill(); A.PresetColor presetColor15 = new A.PresetColor(){ Val = A.PresetColorValues.White }; solidFill42.Append(presetColor15); A.Outline outline33 = new A.Outline(){ Width = 1 }; A.SolidFill solidFill43 = new A.SolidFill(); A.PresetColor presetColor16 = new A.PresetColor(){ Val = A.PresetColorValues.Green }; solidFill43.Append(presetColor16); outline33.Append(solidFill43); shapeProperties23.Append(transform2D8); shapeProperties23.Append(presetGeometry8); shapeProperties23.Append(solidFill42); shapeProperties23.Append(outline33); Xdr.TextBody textBody8 = new Xdr.TextBody(); A.BodyProperties bodyProperties16 = new A.BodyProperties(){ VerticalOverflow = A.TextVerticalOverflowValues.Clip, HorizontalOverflow = A.TextHorizontalOverflowValues.Clip }; A.ListStyle listStyle16 = new A.ListStyle(); A.Paragraph paragraph16 = new A.Paragraph(); A.Run run8 = new A.Run(); A.RunProperties runProperties8 = new A.RunProperties(){ Language = "en-US", FontSize = 1100 }; A.Text text46 = new A.Text(); text46.Text = "Timeline: Works in Excel 15 or higher. Do not move or resize."; run8.Append(runProperties8); run8.Append(text46); paragraph16.Append(run8); textBody8.Append(bodyProperties16); textBody8.Append(listStyle16); textBody8.Append(paragraph16); shape8.Append(nonVisualShapeProperties8); shape8.Append(shapeProperties23); shape8.Append(textBody8); alternateContentFallback14.Append(shape8); alternateContent15.Append(alternateContentChoice15); alternateContent15.Append(alternateContentFallback14); Xdr.ClientData clientData16 = new Xdr.ClientData(); twoCellAnchor16.Append(fromMarker16); twoCellAnchor16.Append(toMarker16); twoCellAnchor16.Append(alternateContent15); twoCellAnchor16.Append(clientData16); worksheetDrawing4.Append(twoCellAnchor13); worksheetDrawing4.Append(twoCellAnchor14); worksheetDrawing4.Append(twoCellAnchor15); worksheetDrawing4.Append(twoCellAnchor16); drawingsPart4.WorksheetDrawing = worksheetDrawing4; }
internal C.ChartSpace ToChartSpace(ref ChartPart chartp) { ImagePart imgp; C.ChartSpace cs = new C.ChartSpace(); cs.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart"); cs.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); cs.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); cs.Date1904 = new C.Date1904() { Val = this.Date1904 }; cs.EditingLanguage = new C.EditingLanguage(); cs.EditingLanguage.Val = System.Globalization.CultureInfo.CurrentCulture.Name; cs.RoundedCorners = new C.RoundedCorners() { Val = this.RoundedCorners }; AlternateContent altcontent = new AlternateContent(); altcontent.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); AlternateContentChoice altcontentchoice = new AlternateContentChoice() { Requires = "c14" }; altcontentchoice.AddNamespaceDeclaration("c14", "http://schemas.microsoft.com/office/drawing/2007/8/2/chart"); // why +100? I don't know... ask Microsoft. But there are 48 styles. Even with the // advanced "+100" version, it's 96 total. It's a byte, with 256 possibilities. // As of this writing, Excel 2013 is rumoured to dispense away with this chart styling. // So maybe all this is moot anyway... altcontentchoice.Append(new C14.Style() { Val = (byte)(this.ChartStyle + 100) }); altcontent.Append(altcontentchoice); AlternateContentFallback altcontentfallback = new AlternateContentFallback(); altcontentfallback.Append(new C.Style() { Val = (byte)this.ChartStyle }); altcontent.Append(altcontentfallback); cs.Append(altcontent); C.Chart chart = new C.Chart(); if (this.HasView3D) { chart.View3D = new C.View3D(); if (this.RotateX != null) chart.View3D.RotateX = new C.RotateX() { Val = this.RotateX.Value }; if (this.HeightPercent != null) chart.View3D.HeightPercent = new C.HeightPercent() { Val = this.HeightPercent.Value }; if (this.RotateY != null) chart.View3D.RotateY = new C.RotateY() { Val = this.RotateY.Value }; if (this.DepthPercent != null) chart.View3D.DepthPercent = new C.DepthPercent() { Val = this.DepthPercent }; if (this.RightAngleAxes != null) chart.View3D.RightAngleAxes = new C.RightAngleAxes() { Val = this.RightAngleAxes.Value }; if (this.Perspective != null) chart.View3D.Perspective = new C.Perspective() { Val = this.Perspective.Value }; } if (this.HasTitle) { if (this.Title.Fill.Type == SLA.SLFillType.BlipFill) { imgp = chartp.AddImagePart(SLA.SLDrawingTool.GetImagePartType(this.Title.Fill.BlipFileName)); using (FileStream fs = new FileStream(this.Title.Fill.BlipFileName, FileMode.Open)) { imgp.FeedData(fs); } this.Title.Fill.BlipRelationshipID = chartp.GetIdOfPart(imgp); } chart.Title = this.Title.ToTitle(); } else { chart.AutoTitleDeleted = new C.AutoTitleDeleted() { Val = true }; } if (this.Is3D) { chart.Floor = new C.Floor(); chart.Floor.Thickness = new C.Thickness() { Val = this.Floor.Thickness }; if (this.Floor.ShapeProperties.HasShapeProperties) { if (this.Floor.Fill.Type == SLA.SLFillType.BlipFill) { imgp = chartp.AddImagePart(SLA.SLDrawingTool.GetImagePartType(this.Floor.Fill.BlipFileName)); using (FileStream fs = new FileStream(this.Floor.Fill.BlipFileName, FileMode.Open)) { imgp.FeedData(fs); } this.Floor.Fill.BlipRelationshipID = chartp.GetIdOfPart(imgp); } chart.Floor.ShapeProperties = this.Floor.ShapeProperties.ToCShapeProperties(); } chart.SideWall = new C.SideWall(); chart.SideWall.Thickness = new C.Thickness() { Val = this.SideWall.Thickness }; if (this.SideWall.ShapeProperties.HasShapeProperties) { if (this.SideWall.Fill.Type == SLA.SLFillType.BlipFill) { imgp = chartp.AddImagePart(SLA.SLDrawingTool.GetImagePartType(this.SideWall.Fill.BlipFileName)); using (FileStream fs = new FileStream(this.SideWall.Fill.BlipFileName, FileMode.Open)) { imgp.FeedData(fs); } this.SideWall.Fill.BlipRelationshipID = chartp.GetIdOfPart(imgp); } chart.SideWall.ShapeProperties = this.SideWall.ShapeProperties.ToCShapeProperties(); } chart.BackWall = new C.BackWall(); chart.BackWall.Thickness = new C.Thickness() { Val = this.BackWall.Thickness }; if (this.BackWall.ShapeProperties.HasShapeProperties) { if (this.BackWall.Fill.Type == SLA.SLFillType.BlipFill) { imgp = chartp.AddImagePart(SLA.SLDrawingTool.GetImagePartType(this.BackWall.Fill.BlipFileName)); using (FileStream fs = new FileStream(this.BackWall.Fill.BlipFileName, FileMode.Open)) { imgp.FeedData(fs); } this.BackWall.Fill.BlipRelationshipID = chartp.GetIdOfPart(imgp); } chart.BackWall.ShapeProperties = this.BackWall.ShapeProperties.ToCShapeProperties(); } } if (this.PlotArea.Fill.Type == SLA.SLFillType.BlipFill) { imgp = chartp.AddImagePart(SLA.SLDrawingTool.GetImagePartType(this.PlotArea.Fill.BlipFileName)); using (FileStream fs = new FileStream(this.PlotArea.Fill.BlipFileName, FileMode.Open)) { imgp.FeedData(fs); } this.PlotArea.Fill.BlipRelationshipID = chartp.GetIdOfPart(imgp); } chart.PlotArea = this.PlotArea.ToPlotArea(); if (this.ShowLegend) { if (this.Legend.Fill.Type == SLA.SLFillType.BlipFill) { imgp = chartp.AddImagePart(SLA.SLDrawingTool.GetImagePartType(this.Legend.Fill.BlipFileName)); using (FileStream fs = new FileStream(this.Legend.Fill.BlipFileName, FileMode.Open)) { imgp.FeedData(fs); } this.Legend.Fill.BlipRelationshipID = chartp.GetIdOfPart(imgp); } chart.Legend = this.Legend.ToLegend(); } if (this.ShowHiddenData == false) { chart.PlotVisibleOnly = new C.PlotVisibleOnly() { Val = true }; } else { //don't do anything } chart.DisplayBlanksAs = new C.DisplayBlanksAs() { Val = this.ShowEmptyCellsAs }; cs.Append(chart); if (this.ShapeProperties.HasShapeProperties) { cs.Append(this.ShapeProperties.ToCShapeProperties()); } return cs; }
// Generates content of chartPart7. private void GenerateChartPart7Content(ChartPart chartPart7) { C.ChartSpace chartSpace7 = new C.ChartSpace(); chartSpace7.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart"); chartSpace7.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); chartSpace7.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); C.Date1904 date19047 = new C.Date1904(){ Val = false }; C.EditingLanguage editingLanguage7 = new C.EditingLanguage(){ Val = "en-US" }; C.RoundedCorners roundedCorners7 = new C.RoundedCorners(){ Val = false }; AlternateContent alternateContent16 = new AlternateContent(); alternateContent16.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); AlternateContentChoice alternateContentChoice16 = new AlternateContentChoice(){ Requires = "c14" }; alternateContentChoice16.AddNamespaceDeclaration("c14", "http://schemas.microsoft.com/office/drawing/2007/8/2/chart"); C14.Style style13 = new C14.Style(){ Val = 102 }; alternateContentChoice16.Append(style13); AlternateContentFallback alternateContentFallback15 = new AlternateContentFallback(); C.Style style14 = new C.Style(){ Val = 2 }; alternateContentFallback15.Append(style14); alternateContent16.Append(alternateContentChoice16); alternateContent16.Append(alternateContentFallback15); C.PivotSource pivotSource7 = new C.PivotSource(); C.PivotTableName pivotTableName7 = new C.PivotTableName(); pivotTableName7.Text = "[GeneratedDocument.xlsx]ShowHeader!PivotTable1"; C.FormatId formatId7 = new C.FormatId(){ Val = (UInt32Value)10U }; pivotSource7.Append(pivotTableName7); pivotSource7.Append(formatId7); C.Chart chart7 = new C.Chart(); C.Title title7 = new C.Title(); C.Overlay overlay13 = new C.Overlay(){ Val = false }; title7.Append(overlay13); C.AutoTitleDeleted autoTitleDeleted7 = new C.AutoTitleDeleted(){ Val = false }; C.PivotFormats pivotFormats7 = new C.PivotFormats(); C.PivotFormat pivotFormat47 = new C.PivotFormat(); C.Index index53 = new C.Index(){ Val = (UInt32Value)0U }; C.Marker marker47 = new C.Marker(); C.Symbol symbol47 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker47.Append(symbol47); pivotFormat47.Append(index53); pivotFormat47.Append(marker47); C.PivotFormat pivotFormat48 = new C.PivotFormat(); C.Index index54 = new C.Index(){ Val = (UInt32Value)1U }; C.Marker marker48 = new C.Marker(); C.Symbol symbol48 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker48.Append(symbol48); pivotFormat48.Append(index54); pivotFormat48.Append(marker48); C.PivotFormat pivotFormat49 = new C.PivotFormat(); C.Index index55 = new C.Index(){ Val = (UInt32Value)2U }; C.Marker marker49 = new C.Marker(); C.Symbol symbol49 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker49.Append(symbol49); pivotFormat49.Append(index55); pivotFormat49.Append(marker49); pivotFormats7.Append(pivotFormat47); pivotFormats7.Append(pivotFormat48); pivotFormats7.Append(pivotFormat49); C.PlotArea plotArea7 = new C.PlotArea(); C.Layout layout7 = new C.Layout(); C.PieChart pieChart4 = new C.PieChart(); C.VaryColors varyColors7 = new C.VaryColors(){ Val = true }; C.PieChartSeries pieChartSeries4 = new C.PieChartSeries(); C.Index index56 = new C.Index(){ Val = (UInt32Value)0U }; C.Order order7 = new C.Order(){ Val = (UInt32Value)0U }; C.SeriesText seriesText7 = new C.SeriesText(); C.StringReference stringReference13 = new C.StringReference(); C.Formula formula19 = new C.Formula(); formula19.Text = "ShowHeader!$B$1"; C.StringCache stringCache13 = new C.StringCache(); C.PointCount pointCount19 = new C.PointCount(){ Val = (UInt32Value)1U }; C.StringPoint stringPoint25 = new C.StringPoint(){ Index = (UInt32Value)0U }; C.NumericValue numericValue43 = new C.NumericValue(); numericValue43.Text = "Total"; stringPoint25.Append(numericValue43); stringCache13.Append(pointCount19); stringCache13.Append(stringPoint25); stringReference13.Append(formula19); stringReference13.Append(stringCache13); seriesText7.Append(stringReference13); C.CategoryAxisData categoryAxisData7 = new C.CategoryAxisData(); C.StringReference stringReference14 = new C.StringReference(); C.Formula formula20 = new C.Formula(); formula20.Text = "ShowHeader!$A$2:$A$5"; C.StringCache stringCache14 = new C.StringCache(); C.PointCount pointCount20 = new C.PointCount(){ Val = (UInt32Value)3U }; C.StringPoint stringPoint26 = new C.StringPoint(){ Index = (UInt32Value)0U }; C.NumericValue numericValue44 = new C.NumericValue(); numericValue44.Text = "product_A"; stringPoint26.Append(numericValue44); C.StringPoint stringPoint27 = new C.StringPoint(){ Index = (UInt32Value)1U }; C.NumericValue numericValue45 = new C.NumericValue(); numericValue45.Text = "product_D"; stringPoint27.Append(numericValue45); C.StringPoint stringPoint28 = new C.StringPoint(){ Index = (UInt32Value)2U }; C.NumericValue numericValue46 = new C.NumericValue(); numericValue46.Text = "product_E"; stringPoint28.Append(numericValue46); stringCache14.Append(pointCount20); stringCache14.Append(stringPoint26); stringCache14.Append(stringPoint27); stringCache14.Append(stringPoint28); stringReference14.Append(formula20); stringReference14.Append(stringCache14); categoryAxisData7.Append(stringReference14); C.Values values7 = new C.Values(); C.NumberReference numberReference7 = new C.NumberReference(); C.Formula formula21 = new C.Formula(); formula21.Text = "ShowHeader!$B$2:$B$5"; C.NumberingCache numberingCache7 = new C.NumberingCache(); C.FormatCode formatCode7 = new C.FormatCode(); formatCode7.Text = "General"; C.PointCount pointCount21 = new C.PointCount(){ Val = (UInt32Value)3U }; C.NumericPoint numericPoint19 = new C.NumericPoint(){ Index = (UInt32Value)0U }; C.NumericValue numericValue47 = new C.NumericValue(); numericValue47.Text = "19"; numericPoint19.Append(numericValue47); C.NumericPoint numericPoint20 = new C.NumericPoint(){ Index = (UInt32Value)1U }; C.NumericValue numericValue48 = new C.NumericValue(); numericValue48.Text = "13"; numericPoint20.Append(numericValue48); C.NumericPoint numericPoint21 = new C.NumericPoint(){ Index = (UInt32Value)2U }; C.NumericValue numericValue49 = new C.NumericValue(); numericValue49.Text = "33"; numericPoint21.Append(numericValue49); numberingCache7.Append(formatCode7); numberingCache7.Append(pointCount21); numberingCache7.Append(numericPoint19); numberingCache7.Append(numericPoint20); numberingCache7.Append(numericPoint21); numberReference7.Append(formula21); numberReference7.Append(numberingCache7); values7.Append(numberReference7); pieChartSeries4.Append(index56); pieChartSeries4.Append(order7); pieChartSeries4.Append(seriesText7); pieChartSeries4.Append(categoryAxisData7); pieChartSeries4.Append(values7); C.DataLabels dataLabels7 = new C.DataLabels(); C.ShowLegendKey showLegendKey7 = new C.ShowLegendKey(){ Val = false }; C.ShowValue showValue7 = new C.ShowValue(){ Val = false }; C.ShowCategoryName showCategoryName7 = new C.ShowCategoryName(){ Val = false }; C.ShowSeriesName showSeriesName7 = new C.ShowSeriesName(){ Val = false }; C.ShowPercent showPercent7 = new C.ShowPercent(){ Val = false }; C.ShowBubbleSize showBubbleSize7 = new C.ShowBubbleSize(){ Val = false }; C.ShowLeaderLines showLeaderLines4 = new C.ShowLeaderLines(){ Val = true }; dataLabels7.Append(showLegendKey7); dataLabels7.Append(showValue7); dataLabels7.Append(showCategoryName7); dataLabels7.Append(showSeriesName7); dataLabels7.Append(showPercent7); dataLabels7.Append(showBubbleSize7); dataLabels7.Append(showLeaderLines4); C.FirstSliceAngle firstSliceAngle4 = new C.FirstSliceAngle(){ Val = (UInt16Value)0U }; pieChart4.Append(varyColors7); pieChart4.Append(pieChartSeries4); pieChart4.Append(dataLabels7); pieChart4.Append(firstSliceAngle4); plotArea7.Append(layout7); plotArea7.Append(pieChart4); C.Legend legend7 = new C.Legend(); C.LegendPosition legendPosition7 = new C.LegendPosition(){ Val = C.LegendPositionValues.Right }; C.Overlay overlay14 = new C.Overlay(){ Val = false }; legend7.Append(legendPosition7); legend7.Append(overlay14); C.PlotVisibleOnly plotVisibleOnly7 = new C.PlotVisibleOnly(){ Val = true }; C.DisplayBlanksAs displayBlanksAs7 = new C.DisplayBlanksAs(){ Val = C.DisplayBlanksAsValues.Gap }; C.ShowDataLabelsOverMaximum showDataLabelsOverMaximum7 = new C.ShowDataLabelsOverMaximum(){ Val = false }; chart7.Append(title7); chart7.Append(autoTitleDeleted7); chart7.Append(pivotFormats7); chart7.Append(plotArea7); chart7.Append(legend7); chart7.Append(plotVisibleOnly7); chart7.Append(displayBlanksAs7); chart7.Append(showDataLabelsOverMaximum7); C.PrintSettings printSettings7 = new C.PrintSettings(); C.HeaderFooter headerFooter7 = new C.HeaderFooter(); C.PageMargins pageMargins13 = new C.PageMargins(){ Left = 0.7D, Right = 0.7D, Top = 0.75D, Bottom = 0.75D, Header = 0.3D, Footer = 0.3D }; C.PageSetup pageSetup7 = new C.PageSetup(); printSettings7.Append(headerFooter7); printSettings7.Append(pageMargins13); printSettings7.Append(pageSetup7); C.ChartSpaceExtensionList chartSpaceExtensionList7 = new C.ChartSpaceExtensionList(); chartSpaceExtensionList7.AddNamespaceDeclaration("c14", "http://schemas.microsoft.com/office/drawing/2007/8/2/chart"); chartSpaceExtensionList7.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); C.ChartSpaceExtension chartSpaceExtension7 = new C.ChartSpaceExtension(){ Uri = "{781A3756-C4B2-4CAC-9D66-4F8BD8637D16}" }; chartSpaceExtension7.AddNamespaceDeclaration("c14", "http://schemas.microsoft.com/office/drawing/2007/8/2/chart"); C14.PivotOptions pivotOptions7 = new C14.PivotOptions(); C14.DropZoneFilter dropZoneFilter7 = new C14.DropZoneFilter(){ Val = true }; C14.DropZoneCategories dropZoneCategories7 = new C14.DropZoneCategories(){ Val = true }; C14.DropZoneData dropZoneData7 = new C14.DropZoneData(){ Val = true }; C14.DropZoneSeries dropZoneSeries7 = new C14.DropZoneSeries(){ Val = true }; C14.DropZonesVisible dropZonesVisible7 = new C14.DropZonesVisible(){ Val = true }; pivotOptions7.Append(dropZoneFilter7); pivotOptions7.Append(dropZoneCategories7); pivotOptions7.Append(dropZoneData7); pivotOptions7.Append(dropZoneSeries7); pivotOptions7.Append(dropZonesVisible7); chartSpaceExtension7.Append(pivotOptions7); chartSpaceExtensionList7.Append(chartSpaceExtension7); chartSpace7.Append(date19047); chartSpace7.Append(editingLanguage7); chartSpace7.Append(roundedCorners7); chartSpace7.Append(alternateContent16); chartSpace7.Append(pivotSource7); chartSpace7.Append(chart7); chartSpace7.Append(printSettings7); chartSpace7.Append(chartSpaceExtensionList7); chartPart7.ChartSpace = chartSpace7; }
/// <summary> /// Append the workbookpr element /// </summary> /// <param name="filePath">Target excel faile path</param> /// <param name="log">Logger</param> public void AddElement(string filePath, VerifiableLog log) { using (SpreadsheetDocument package = SpreadsheetDocument.Open(filePath, true, new OpenSettings() { MarkupCompatibilityProcessSettings = new MarkupCompatibilityProcessSettings(MarkupCompatibilityProcessMode.ProcessAllParts, FileFormatVersions.Office2013) })) { try { package.WorkbookPart.Workbook.AbsolutePath = null; X15ac.AbsolutePath absolutePath = new X15ac.AbsolutePath() { Url = this.AbsolutePathUri }; absolutePath.AddNamespaceDeclaration("x15ac", "http://schemas.microsoft.com/office/spreadsheetml/2010/11/ac"); AlternateContentChoice alternateContentChoice = new AlternateContentChoice() { Requires = "x15" }; alternateContentChoice.Append(absolutePath); log.Pass("Added AbsolutePath element."); AlternateContent alternateContent = new AlternateContent(); alternateContent.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); alternateContent.Append(alternateContentChoice); package.WorkbookPart.Workbook.InsertAfter(alternateContent, package.WorkbookPart.Workbook.Descendants<WorkbookProperties>().First()); //package.WorkbookPart.Workbook.Append(alternateContent); log.Pass("Added AlternateContentChoice element."); WorkbookExtensionList workbookExtensionList = package.WorkbookPart.Workbook.Descendants<WorkbookExtensionList>().Single(); WorkbookExtension workbookExtension = new WorkbookExtension() { Uri = this.workbookPrExtUri }; workbookExtension.AddNamespaceDeclaration("x15", "http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"); X15.WorkbookProperties workbookProperties = new X15.WorkbookProperties(); workbookProperties.ChartTrackingReferenceBase = false; workbookExtension.AppendChild<X15.WorkbookProperties>(workbookProperties); workbookExtensionList.AppendChild<WorkbookExtension>(workbookExtension); log.Pass("Added workbookPr element."); } catch (Exception e) { log.Fail(e.Message); } } }
// Generates content of chartPart8. private void GenerateChartPart8Content(ChartPart chartPart8) { C.ChartSpace chartSpace8 = new C.ChartSpace(); chartSpace8.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart"); chartSpace8.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); chartSpace8.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); C.Date1904 date19048 = new C.Date1904(){ Val = false }; C.EditingLanguage editingLanguage8 = new C.EditingLanguage(){ Val = "en-US" }; C.RoundedCorners roundedCorners8 = new C.RoundedCorners(){ Val = false }; AlternateContent alternateContent17 = new AlternateContent(); alternateContent17.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); AlternateContentChoice alternateContentChoice17 = new AlternateContentChoice(){ Requires = "c14" }; alternateContentChoice17.AddNamespaceDeclaration("c14", "http://schemas.microsoft.com/office/drawing/2007/8/2/chart"); C14.Style style15 = new C14.Style(){ Val = 101 }; alternateContentChoice17.Append(style15); AlternateContentFallback alternateContentFallback16 = new AlternateContentFallback(); C.Style style16 = new C.Style(){ Val = 1 }; alternateContentFallback16.Append(style16); alternateContent17.Append(alternateContentChoice17); alternateContent17.Append(alternateContentFallback16); C.PivotSource pivotSource8 = new C.PivotSource(); C.PivotTableName pivotTableName8 = new C.PivotTableName(); pivotTableName8.Text = "[GeneratedDocument.xlsx]ShowHeader!PivotTable1"; C.FormatId formatId8 = new C.FormatId(){ Val = (UInt32Value)9U }; pivotSource8.Append(pivotTableName8); pivotSource8.Append(formatId8); C.Chart chart8 = new C.Chart(); C.Title title8 = new C.Title(); C.Overlay overlay15 = new C.Overlay(){ Val = false }; title8.Append(overlay15); C.AutoTitleDeleted autoTitleDeleted8 = new C.AutoTitleDeleted(){ Val = false }; C.PivotFormats pivotFormats8 = new C.PivotFormats(); C.PivotFormat pivotFormat50 = new C.PivotFormat(); C.Index index57 = new C.Index(){ Val = (UInt32Value)0U }; C.ShapeProperties shapeProperties24 = new C.ShapeProperties(); A.SolidFill solidFill44 = new A.SolidFill(); A.SchemeColor schemeColor28 = new A.SchemeColor(){ Val = A.SchemeColorValues.Accent1 }; A.Tint tint14 = new A.Tint(){ Val = 100000 }; schemeColor28.Append(tint14); solidFill44.Append(schemeColor28); A.Outline outline34 = new A.Outline(); A.NoFill noFill28 = new A.NoFill(); outline34.Append(noFill28); A.EffectList effectList26 = new A.EffectList(); shapeProperties24.Append(solidFill44); shapeProperties24.Append(outline34); shapeProperties24.Append(effectList26); C.Marker marker50 = new C.Marker(); C.Symbol symbol50 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker50.Append(symbol50); pivotFormat50.Append(index57); pivotFormat50.Append(shapeProperties24); pivotFormat50.Append(marker50); C.PivotFormat pivotFormat51 = new C.PivotFormat(); C.Index index58 = new C.Index(){ Val = (UInt32Value)1U }; C.ShapeProperties shapeProperties25 = new C.ShapeProperties(); A.SolidFill solidFill45 = new A.SolidFill(); A.SchemeColor schemeColor29 = new A.SchemeColor(){ Val = A.SchemeColorValues.Accent2 }; A.Tint tint15 = new A.Tint(){ Val = 100000 }; schemeColor29.Append(tint15); solidFill45.Append(schemeColor29); A.Outline outline35 = new A.Outline(); A.NoFill noFill29 = new A.NoFill(); outline35.Append(noFill29); A.EffectList effectList27 = new A.EffectList(); shapeProperties25.Append(solidFill45); shapeProperties25.Append(outline35); shapeProperties25.Append(effectList27); C.Marker marker51 = new C.Marker(); C.Symbol symbol51 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker51.Append(symbol51); pivotFormat51.Append(index58); pivotFormat51.Append(shapeProperties25); pivotFormat51.Append(marker51); C.PivotFormat pivotFormat52 = new C.PivotFormat(); C.Index index59 = new C.Index(){ Val = (UInt32Value)2U }; C.Marker marker52 = new C.Marker(); C.Symbol symbol52 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker52.Append(symbol52); pivotFormat52.Append(index59); pivotFormat52.Append(marker52); C.PivotFormat pivotFormat53 = new C.PivotFormat(); C.Index index60 = new C.Index(){ Val = (UInt32Value)3U }; C.Marker marker53 = new C.Marker(); C.Symbol symbol53 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker53.Append(symbol53); pivotFormat53.Append(index60); pivotFormat53.Append(marker53); C.PivotFormat pivotFormat54 = new C.PivotFormat(); C.Index index61 = new C.Index(){ Val = (UInt32Value)4U }; C.Marker marker54 = new C.Marker(); C.Symbol symbol54 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker54.Append(symbol54); pivotFormat54.Append(index61); pivotFormat54.Append(marker54); C.PivotFormat pivotFormat55 = new C.PivotFormat(); C.Index index62 = new C.Index(){ Val = (UInt32Value)5U }; C.Marker marker55 = new C.Marker(); C.Symbol symbol55 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker55.Append(symbol55); pivotFormat55.Append(index62); pivotFormat55.Append(marker55); C.PivotFormat pivotFormat56 = new C.PivotFormat(); C.Index index63 = new C.Index(){ Val = (UInt32Value)6U }; C.Marker marker56 = new C.Marker(); C.Symbol symbol56 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker56.Append(symbol56); pivotFormat56.Append(index63); pivotFormat56.Append(marker56); C.PivotFormat pivotFormat57 = new C.PivotFormat(); C.Index index64 = new C.Index(){ Val = (UInt32Value)7U }; C.Marker marker57 = new C.Marker(); C.Symbol symbol57 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker57.Append(symbol57); pivotFormat57.Append(index64); pivotFormat57.Append(marker57); C.PivotFormat pivotFormat58 = new C.PivotFormat(); C.Index index65 = new C.Index(){ Val = (UInt32Value)8U }; C.Marker marker58 = new C.Marker(); C.Symbol symbol58 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker58.Append(symbol58); pivotFormat58.Append(index65); pivotFormat58.Append(marker58); C.PivotFormat pivotFormat59 = new C.PivotFormat(); C.Index index66 = new C.Index(){ Val = (UInt32Value)9U }; C.Marker marker59 = new C.Marker(); C.Symbol symbol59 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker59.Append(symbol59); pivotFormat59.Append(index66); pivotFormat59.Append(marker59); C.PivotFormat pivotFormat60 = new C.PivotFormat(); C.Index index67 = new C.Index(){ Val = (UInt32Value)10U }; C.Marker marker60 = new C.Marker(); C.Symbol symbol60 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker60.Append(symbol60); pivotFormat60.Append(index67); pivotFormat60.Append(marker60); C.PivotFormat pivotFormat61 = new C.PivotFormat(); C.Index index68 = new C.Index(){ Val = (UInt32Value)11U }; C.Marker marker61 = new C.Marker(); C.Symbol symbol61 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker61.Append(symbol61); pivotFormat61.Append(index68); pivotFormat61.Append(marker61); C.PivotFormat pivotFormat62 = new C.PivotFormat(); C.Index index69 = new C.Index(){ Val = (UInt32Value)12U }; C.Marker marker62 = new C.Marker(); C.Symbol symbol62 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker62.Append(symbol62); pivotFormat62.Append(index69); pivotFormat62.Append(marker62); C.PivotFormat pivotFormat63 = new C.PivotFormat(); C.Index index70 = new C.Index(){ Val = (UInt32Value)13U }; C.Marker marker63 = new C.Marker(); C.Symbol symbol63 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker63.Append(symbol63); pivotFormat63.Append(index70); pivotFormat63.Append(marker63); C.PivotFormat pivotFormat64 = new C.PivotFormat(); C.Index index71 = new C.Index(){ Val = (UInt32Value)14U }; C.ShapeProperties shapeProperties26 = new C.ShapeProperties(); A.SolidFill solidFill46 = new A.SolidFill(); A.SchemeColor schemeColor30 = new A.SchemeColor(){ Val = A.SchemeColorValues.Accent1 }; A.Tint tint16 = new A.Tint(){ Val = 100000 }; schemeColor30.Append(tint16); solidFill46.Append(schemeColor30); A.Outline outline36 = new A.Outline(); A.NoFill noFill30 = new A.NoFill(); outline36.Append(noFill30); A.EffectList effectList28 = new A.EffectList(); shapeProperties26.Append(solidFill46); shapeProperties26.Append(outline36); shapeProperties26.Append(effectList28); C.Marker marker64 = new C.Marker(); C.Symbol symbol64 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker64.Append(symbol64); pivotFormat64.Append(index71); pivotFormat64.Append(shapeProperties26); pivotFormat64.Append(marker64); C.PivotFormat pivotFormat65 = new C.PivotFormat(); C.Index index72 = new C.Index(){ Val = (UInt32Value)15U }; C.ShapeProperties shapeProperties27 = new C.ShapeProperties(); A.SolidFill solidFill47 = new A.SolidFill(); A.SchemeColor schemeColor31 = new A.SchemeColor(){ Val = A.SchemeColorValues.Accent1 }; A.Tint tint17 = new A.Tint(){ Val = 100000 }; schemeColor31.Append(tint17); solidFill47.Append(schemeColor31); A.Outline outline37 = new A.Outline(); A.NoFill noFill31 = new A.NoFill(); outline37.Append(noFill31); A.EffectList effectList29 = new A.EffectList(); shapeProperties27.Append(solidFill47); shapeProperties27.Append(outline37); shapeProperties27.Append(effectList29); C.Marker marker65 = new C.Marker(); C.Symbol symbol65 = new C.Symbol(){ Val = C.MarkerStyleValues.None }; marker65.Append(symbol65); pivotFormat65.Append(index72); pivotFormat65.Append(shapeProperties27); pivotFormat65.Append(marker65); pivotFormats8.Append(pivotFormat50); pivotFormats8.Append(pivotFormat51); pivotFormats8.Append(pivotFormat52); pivotFormats8.Append(pivotFormat53); pivotFormats8.Append(pivotFormat54); pivotFormats8.Append(pivotFormat55); pivotFormats8.Append(pivotFormat56); pivotFormats8.Append(pivotFormat57); pivotFormats8.Append(pivotFormat58); pivotFormats8.Append(pivotFormat59); pivotFormats8.Append(pivotFormat60); pivotFormats8.Append(pivotFormat61); pivotFormats8.Append(pivotFormat62); pivotFormats8.Append(pivotFormat63); pivotFormats8.Append(pivotFormat64); pivotFormats8.Append(pivotFormat65); C.PlotArea plotArea8 = new C.PlotArea(); C.Layout layout8 = new C.Layout(); C.BarChart barChart4 = new C.BarChart(); C.BarDirection barDirection4 = new C.BarDirection(){ Val = C.BarDirectionValues.Column }; C.BarGrouping barGrouping4 = new C.BarGrouping(){ Val = C.BarGroupingValues.Clustered }; C.VaryColors varyColors8 = new C.VaryColors(){ Val = false }; C.BarChartSeries barChartSeries4 = new C.BarChartSeries(); C.Index index73 = new C.Index(){ Val = (UInt32Value)0U }; C.Order order8 = new C.Order(){ Val = (UInt32Value)0U }; C.SeriesText seriesText8 = new C.SeriesText(); C.StringReference stringReference15 = new C.StringReference(); C.Formula formula22 = new C.Formula(); formula22.Text = "ShowHeader!$B$1"; C.StringCache stringCache15 = new C.StringCache(); C.PointCount pointCount22 = new C.PointCount(){ Val = (UInt32Value)1U }; C.StringPoint stringPoint29 = new C.StringPoint(){ Index = (UInt32Value)0U }; C.NumericValue numericValue50 = new C.NumericValue(); numericValue50.Text = "Total"; stringPoint29.Append(numericValue50); stringCache15.Append(pointCount22); stringCache15.Append(stringPoint29); stringReference15.Append(formula22); stringReference15.Append(stringCache15); seriesText8.Append(stringReference15); C.ChartShapeProperties chartShapeProperties11 = new C.ChartShapeProperties(); A.SolidFill solidFill48 = new A.SolidFill(); A.SchemeColor schemeColor32 = new A.SchemeColor(){ Val = A.SchemeColorValues.Accent1 }; A.Tint tint18 = new A.Tint(){ Val = 100000 }; schemeColor32.Append(tint18); solidFill48.Append(schemeColor32); A.Outline outline38 = new A.Outline(); A.NoFill noFill32 = new A.NoFill(); outline38.Append(noFill32); A.EffectList effectList30 = new A.EffectList(); chartShapeProperties11.Append(solidFill48); chartShapeProperties11.Append(outline38); chartShapeProperties11.Append(effectList30); C.InvertIfNegative invertIfNegative4 = new C.InvertIfNegative(){ Val = false }; C.CategoryAxisData categoryAxisData8 = new C.CategoryAxisData(); C.StringReference stringReference16 = new C.StringReference(); C.Formula formula23 = new C.Formula(); formula23.Text = "ShowHeader!$A$2:$A$5"; C.StringCache stringCache16 = new C.StringCache(); C.PointCount pointCount23 = new C.PointCount(){ Val = (UInt32Value)3U }; C.StringPoint stringPoint30 = new C.StringPoint(){ Index = (UInt32Value)0U }; C.NumericValue numericValue51 = new C.NumericValue(); numericValue51.Text = "product_A"; stringPoint30.Append(numericValue51); C.StringPoint stringPoint31 = new C.StringPoint(){ Index = (UInt32Value)1U }; C.NumericValue numericValue52 = new C.NumericValue(); numericValue52.Text = "product_D"; stringPoint31.Append(numericValue52); C.StringPoint stringPoint32 = new C.StringPoint(){ Index = (UInt32Value)2U }; C.NumericValue numericValue53 = new C.NumericValue(); numericValue53.Text = "product_E"; stringPoint32.Append(numericValue53); stringCache16.Append(pointCount23); stringCache16.Append(stringPoint30); stringCache16.Append(stringPoint31); stringCache16.Append(stringPoint32); stringReference16.Append(formula23); stringReference16.Append(stringCache16); categoryAxisData8.Append(stringReference16); C.Values values8 = new C.Values(); C.NumberReference numberReference8 = new C.NumberReference(); C.Formula formula24 = new C.Formula(); formula24.Text = "ShowHeader!$B$2:$B$5"; C.NumberingCache numberingCache8 = new C.NumberingCache(); C.FormatCode formatCode8 = new C.FormatCode(); formatCode8.Text = "General"; C.PointCount pointCount24 = new C.PointCount(){ Val = (UInt32Value)3U }; C.NumericPoint numericPoint22 = new C.NumericPoint(){ Index = (UInt32Value)0U }; C.NumericValue numericValue54 = new C.NumericValue(); numericValue54.Text = "19"; numericPoint22.Append(numericValue54); C.NumericPoint numericPoint23 = new C.NumericPoint(){ Index = (UInt32Value)1U }; C.NumericValue numericValue55 = new C.NumericValue(); numericValue55.Text = "13"; numericPoint23.Append(numericValue55); C.NumericPoint numericPoint24 = new C.NumericPoint(){ Index = (UInt32Value)2U }; C.NumericValue numericValue56 = new C.NumericValue(); numericValue56.Text = "33"; numericPoint24.Append(numericValue56); numberingCache8.Append(formatCode8); numberingCache8.Append(pointCount24); numberingCache8.Append(numericPoint22); numberingCache8.Append(numericPoint23); numberingCache8.Append(numericPoint24); numberReference8.Append(formula24); numberReference8.Append(numberingCache8); values8.Append(numberReference8); barChartSeries4.Append(index73); barChartSeries4.Append(order8); barChartSeries4.Append(seriesText8); barChartSeries4.Append(chartShapeProperties11); barChartSeries4.Append(invertIfNegative4); barChartSeries4.Append(categoryAxisData8); barChartSeries4.Append(values8); C.DataLabels dataLabels8 = new C.DataLabels(); C.ShowLegendKey showLegendKey8 = new C.ShowLegendKey(){ Val = false }; C.ShowValue showValue8 = new C.ShowValue(){ Val = false }; C.ShowCategoryName showCategoryName8 = new C.ShowCategoryName(){ Val = false }; C.ShowSeriesName showSeriesName8 = new C.ShowSeriesName(){ Val = false }; C.ShowPercent showPercent8 = new C.ShowPercent(){ Val = false }; C.ShowBubbleSize showBubbleSize8 = new C.ShowBubbleSize(){ Val = false }; dataLabels8.Append(showLegendKey8); dataLabels8.Append(showValue8); dataLabels8.Append(showCategoryName8); dataLabels8.Append(showSeriesName8); dataLabels8.Append(showPercent8); dataLabels8.Append(showBubbleSize8); C.GapWidth gapWidth4 = new C.GapWidth(){ Val = (UInt16Value)219U }; C.Overlap overlap3 = new C.Overlap(){ Val = -27 }; C.AxisId axisId13 = new C.AxisId(){ Val = (UInt32Value)209618640U }; C.AxisId axisId14 = new C.AxisId(){ Val = (UInt32Value)209382248U }; barChart4.Append(barDirection4); barChart4.Append(barGrouping4); barChart4.Append(varyColors8); barChart4.Append(barChartSeries4); barChart4.Append(dataLabels8); barChart4.Append(gapWidth4); barChart4.Append(overlap3); barChart4.Append(axisId13); barChart4.Append(axisId14); C.CategoryAxis categoryAxis4 = new C.CategoryAxis(); C.AxisId axisId15 = new C.AxisId(){ Val = (UInt32Value)209618640U }; C.Scaling scaling7 = new C.Scaling(); C.Orientation orientation7 = new C.Orientation(){ Val = C.OrientationValues.MinMax }; scaling7.Append(orientation7); C.Delete delete7 = new C.Delete(){ Val = false }; C.AxisPosition axisPosition7 = new C.AxisPosition(){ Val = C.AxisPositionValues.Bottom }; C.NumberingFormat numberingFormat7 = new C.NumberingFormat(){ FormatCode = "General", SourceLinked = false }; C.MajorTickMark majorTickMark7 = new C.MajorTickMark(){ Val = C.TickMarkValues.None }; C.MinorTickMark minorTickMark7 = new C.MinorTickMark(){ Val = C.TickMarkValues.None }; C.TickLabelPosition tickLabelPosition7 = new C.TickLabelPosition(){ Val = C.TickLabelPositionValues.NextTo }; C.ChartShapeProperties chartShapeProperties12 = new C.ChartShapeProperties(); A.NoFill noFill33 = new A.NoFill(); A.Outline outline39 = new A.Outline(); A.NoFill noFill34 = new A.NoFill(); outline39.Append(noFill34); A.EffectList effectList31 = new A.EffectList(); chartShapeProperties12.Append(noFill33); chartShapeProperties12.Append(outline39); chartShapeProperties12.Append(effectList31); C.TextProperties textProperties9 = new C.TextProperties(); A.BodyProperties bodyProperties17 = new A.BodyProperties(){ Rotation = -60000000, UseParagraphSpacing = true, VerticalOverflow = A.TextVerticalOverflowValues.Ellipsis, Vertical = A.TextVerticalValues.Horizontal, Wrap = A.TextWrappingValues.Square, Anchor = A.TextAnchoringTypeValues.Center, AnchorCenter = true }; A.ListStyle listStyle17 = new A.ListStyle(); A.Paragraph paragraph17 = new A.Paragraph(); A.ParagraphProperties paragraphProperties9 = new A.ParagraphProperties(); A.DefaultRunProperties defaultRunProperties9 = new A.DefaultRunProperties(){ FontSize = 900, Kerning = 1200 }; A.SolidFill solidFill49 = new A.SolidFill(); A.SchemeColor schemeColor33 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; A.LuminanceModulation luminanceModulation11 = new A.LuminanceModulation(){ Val = 65000 }; A.LuminanceOffset luminanceOffset11 = new A.LuminanceOffset(){ Val = 35000 }; schemeColor33.Append(luminanceModulation11); schemeColor33.Append(luminanceOffset11); solidFill49.Append(schemeColor33); A.LatinFont latinFont7 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont7 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont7 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties9.Append(solidFill49); defaultRunProperties9.Append(latinFont7); defaultRunProperties9.Append(eastAsianFont7); defaultRunProperties9.Append(complexScriptFont7); paragraphProperties9.Append(defaultRunProperties9); A.EndParagraphRunProperties endParagraphRunProperties9 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph17.Append(paragraphProperties9); paragraph17.Append(endParagraphRunProperties9); textProperties9.Append(bodyProperties17); textProperties9.Append(listStyle17); textProperties9.Append(paragraph17); C.CrossingAxis crossingAxis7 = new C.CrossingAxis(){ Val = (UInt32Value)209382248U }; C.Crosses crosses7 = new C.Crosses(){ Val = C.CrossesValues.AutoZero }; C.AutoLabeled autoLabeled4 = new C.AutoLabeled(){ Val = true }; C.LabelAlignment labelAlignment4 = new C.LabelAlignment(){ Val = C.LabelAlignmentValues.Center }; C.LabelOffset labelOffset4 = new C.LabelOffset(){ Val = (UInt16Value)100U }; C.NoMultiLevelLabels noMultiLevelLabels4 = new C.NoMultiLevelLabels(){ Val = false }; categoryAxis4.Append(axisId15); categoryAxis4.Append(scaling7); categoryAxis4.Append(delete7); categoryAxis4.Append(axisPosition7); categoryAxis4.Append(numberingFormat7); categoryAxis4.Append(majorTickMark7); categoryAxis4.Append(minorTickMark7); categoryAxis4.Append(tickLabelPosition7); categoryAxis4.Append(chartShapeProperties12); categoryAxis4.Append(textProperties9); categoryAxis4.Append(crossingAxis7); categoryAxis4.Append(crosses7); categoryAxis4.Append(autoLabeled4); categoryAxis4.Append(labelAlignment4); categoryAxis4.Append(labelOffset4); categoryAxis4.Append(noMultiLevelLabels4); C.ValueAxis valueAxis4 = new C.ValueAxis(); C.AxisId axisId16 = new C.AxisId(){ Val = (UInt32Value)209382248U }; C.Scaling scaling8 = new C.Scaling(); C.Orientation orientation8 = new C.Orientation(){ Val = C.OrientationValues.MinMax }; scaling8.Append(orientation8); C.Delete delete8 = new C.Delete(){ Val = false }; C.AxisPosition axisPosition8 = new C.AxisPosition(){ Val = C.AxisPositionValues.Left }; C.MajorGridlines majorGridlines4 = new C.MajorGridlines(); C.ChartShapeProperties chartShapeProperties13 = new C.ChartShapeProperties(); A.Outline outline40 = new A.Outline(){ Width = 9525, CapType = A.LineCapValues.Flat, CompoundLineType = A.CompoundLineValues.Single, Alignment = A.PenAlignmentValues.Center }; A.SolidFill solidFill50 = new A.SolidFill(); A.SchemeColor schemeColor34 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; A.LuminanceModulation luminanceModulation12 = new A.LuminanceModulation(){ Val = 15000 }; A.LuminanceOffset luminanceOffset12 = new A.LuminanceOffset(){ Val = 85000 }; schemeColor34.Append(luminanceModulation12); schemeColor34.Append(luminanceOffset12); solidFill50.Append(schemeColor34); A.Round round5 = new A.Round(); outline40.Append(solidFill50); outline40.Append(round5); A.EffectList effectList32 = new A.EffectList(); chartShapeProperties13.Append(outline40); chartShapeProperties13.Append(effectList32); majorGridlines4.Append(chartShapeProperties13); C.NumberingFormat numberingFormat8 = new C.NumberingFormat(){ FormatCode = "General", SourceLinked = true }; C.MajorTickMark majorTickMark8 = new C.MajorTickMark(){ Val = C.TickMarkValues.None }; C.MinorTickMark minorTickMark8 = new C.MinorTickMark(){ Val = C.TickMarkValues.None }; C.TickLabelPosition tickLabelPosition8 = new C.TickLabelPosition(){ Val = C.TickLabelPositionValues.NextTo }; C.ChartShapeProperties chartShapeProperties14 = new C.ChartShapeProperties(); A.NoFill noFill35 = new A.NoFill(); A.Outline outline41 = new A.Outline(); A.NoFill noFill36 = new A.NoFill(); outline41.Append(noFill36); A.EffectList effectList33 = new A.EffectList(); chartShapeProperties14.Append(noFill35); chartShapeProperties14.Append(outline41); chartShapeProperties14.Append(effectList33); C.TextProperties textProperties10 = new C.TextProperties(); A.BodyProperties bodyProperties18 = new A.BodyProperties(){ Rotation = -60000000, UseParagraphSpacing = true, VerticalOverflow = A.TextVerticalOverflowValues.Ellipsis, Vertical = A.TextVerticalValues.Horizontal, Wrap = A.TextWrappingValues.Square, Anchor = A.TextAnchoringTypeValues.Center, AnchorCenter = true }; A.ListStyle listStyle18 = new A.ListStyle(); A.Paragraph paragraph18 = new A.Paragraph(); A.ParagraphProperties paragraphProperties10 = new A.ParagraphProperties(); A.DefaultRunProperties defaultRunProperties10 = new A.DefaultRunProperties(){ FontSize = 900, Kerning = 1200 }; A.SolidFill solidFill51 = new A.SolidFill(); A.SchemeColor schemeColor35 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; A.LuminanceModulation luminanceModulation13 = new A.LuminanceModulation(){ Val = 65000 }; A.LuminanceOffset luminanceOffset13 = new A.LuminanceOffset(){ Val = 35000 }; schemeColor35.Append(luminanceModulation13); schemeColor35.Append(luminanceOffset13); solidFill51.Append(schemeColor35); A.LatinFont latinFont8 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont8 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont8 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties10.Append(solidFill51); defaultRunProperties10.Append(latinFont8); defaultRunProperties10.Append(eastAsianFont8); defaultRunProperties10.Append(complexScriptFont8); paragraphProperties10.Append(defaultRunProperties10); A.EndParagraphRunProperties endParagraphRunProperties10 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph18.Append(paragraphProperties10); paragraph18.Append(endParagraphRunProperties10); textProperties10.Append(bodyProperties18); textProperties10.Append(listStyle18); textProperties10.Append(paragraph18); C.CrossingAxis crossingAxis8 = new C.CrossingAxis(){ Val = (UInt32Value)209618640U }; C.Crosses crosses8 = new C.Crosses(){ Val = C.CrossesValues.AutoZero }; C.CrossBetween crossBetween4 = new C.CrossBetween(){ Val = C.CrossBetweenValues.Between }; valueAxis4.Append(axisId16); valueAxis4.Append(scaling8); valueAxis4.Append(delete8); valueAxis4.Append(axisPosition8); valueAxis4.Append(majorGridlines4); valueAxis4.Append(numberingFormat8); valueAxis4.Append(majorTickMark8); valueAxis4.Append(minorTickMark8); valueAxis4.Append(tickLabelPosition8); valueAxis4.Append(chartShapeProperties14); valueAxis4.Append(textProperties10); valueAxis4.Append(crossingAxis8); valueAxis4.Append(crosses8); valueAxis4.Append(crossBetween4); C.ShapeProperties shapeProperties28 = new C.ShapeProperties(); A.SolidFill solidFill52 = new A.SolidFill(); A.SchemeColor schemeColor36 = new A.SchemeColor(){ Val = A.SchemeColorValues.Background1 }; solidFill52.Append(schemeColor36); A.Outline outline42 = new A.Outline(); A.NoFill noFill37 = new A.NoFill(); outline42.Append(noFill37); A.EffectList effectList34 = new A.EffectList(); shapeProperties28.Append(solidFill52); shapeProperties28.Append(outline42); shapeProperties28.Append(effectList34); plotArea8.Append(layout8); plotArea8.Append(barChart4); plotArea8.Append(categoryAxis4); plotArea8.Append(valueAxis4); plotArea8.Append(shapeProperties28); C.Legend legend8 = new C.Legend(); C.LegendPosition legendPosition8 = new C.LegendPosition(){ Val = C.LegendPositionValues.Bottom }; C.Overlay overlay16 = new C.Overlay(){ Val = false }; C.ChartShapeProperties chartShapeProperties15 = new C.ChartShapeProperties(); A.NoFill noFill38 = new A.NoFill(); A.Outline outline43 = new A.Outline(); A.NoFill noFill39 = new A.NoFill(); outline43.Append(noFill39); A.EffectList effectList35 = new A.EffectList(); chartShapeProperties15.Append(noFill38); chartShapeProperties15.Append(outline43); chartShapeProperties15.Append(effectList35); C.TextProperties textProperties11 = new C.TextProperties(); A.BodyProperties bodyProperties19 = new A.BodyProperties(){ Rotation = 0, UseParagraphSpacing = true, VerticalOverflow = A.TextVerticalOverflowValues.Ellipsis, Vertical = A.TextVerticalValues.Horizontal, Wrap = A.TextWrappingValues.Square, Anchor = A.TextAnchoringTypeValues.Center, AnchorCenter = true }; A.ListStyle listStyle19 = new A.ListStyle(); A.Paragraph paragraph19 = new A.Paragraph(); A.ParagraphProperties paragraphProperties11 = new A.ParagraphProperties(); A.DefaultRunProperties defaultRunProperties11 = new A.DefaultRunProperties(){ FontSize = 900, Kerning = 1200 }; A.SolidFill solidFill53 = new A.SolidFill(); A.SchemeColor schemeColor37 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; A.LuminanceModulation luminanceModulation14 = new A.LuminanceModulation(){ Val = 65000 }; A.LuminanceOffset luminanceOffset14 = new A.LuminanceOffset(){ Val = 35000 }; schemeColor37.Append(luminanceModulation14); schemeColor37.Append(luminanceOffset14); solidFill53.Append(schemeColor37); A.LatinFont latinFont9 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont9 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont9 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties11.Append(solidFill53); defaultRunProperties11.Append(latinFont9); defaultRunProperties11.Append(eastAsianFont9); defaultRunProperties11.Append(complexScriptFont9); paragraphProperties11.Append(defaultRunProperties11); A.EndParagraphRunProperties endParagraphRunProperties11 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph19.Append(paragraphProperties11); paragraph19.Append(endParagraphRunProperties11); textProperties11.Append(bodyProperties19); textProperties11.Append(listStyle19); textProperties11.Append(paragraph19); legend8.Append(legendPosition8); legend8.Append(overlay16); legend8.Append(chartShapeProperties15); legend8.Append(textProperties11); C.PlotVisibleOnly plotVisibleOnly8 = new C.PlotVisibleOnly(){ Val = true }; C.DisplayBlanksAs displayBlanksAs8 = new C.DisplayBlanksAs(){ Val = C.DisplayBlanksAsValues.Gap }; C.ShowDataLabelsOverMaximum showDataLabelsOverMaximum8 = new C.ShowDataLabelsOverMaximum(){ Val = false }; chart8.Append(title8); chart8.Append(autoTitleDeleted8); chart8.Append(pivotFormats8); chart8.Append(plotArea8); chart8.Append(legend8); chart8.Append(plotVisibleOnly8); chart8.Append(displayBlanksAs8); chart8.Append(showDataLabelsOverMaximum8); C.ShapeProperties shapeProperties29 = new C.ShapeProperties(); A.SolidFill solidFill54 = new A.SolidFill(); A.SchemeColor schemeColor38 = new A.SchemeColor(){ Val = A.SchemeColorValues.Background1 }; solidFill54.Append(schemeColor38); A.Outline outline44 = new A.Outline(){ Width = 9525, CapType = A.LineCapValues.Flat, CompoundLineType = A.CompoundLineValues.Single, Alignment = A.PenAlignmentValues.Center }; A.SolidFill solidFill55 = new A.SolidFill(); A.SchemeColor schemeColor39 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; A.LuminanceModulation luminanceModulation15 = new A.LuminanceModulation(){ Val = 15000 }; A.LuminanceOffset luminanceOffset15 = new A.LuminanceOffset(){ Val = 85000 }; schemeColor39.Append(luminanceModulation15); schemeColor39.Append(luminanceOffset15); solidFill55.Append(schemeColor39); A.Round round6 = new A.Round(); outline44.Append(solidFill55); outline44.Append(round6); A.EffectList effectList36 = new A.EffectList(); shapeProperties29.Append(solidFill54); shapeProperties29.Append(outline44); shapeProperties29.Append(effectList36); C.TextProperties textProperties12 = new C.TextProperties(); A.BodyProperties bodyProperties20 = new A.BodyProperties(); A.ListStyle listStyle20 = new A.ListStyle(); A.Paragraph paragraph20 = new A.Paragraph(); A.ParagraphProperties paragraphProperties12 = new A.ParagraphProperties(); A.DefaultRunProperties defaultRunProperties12 = new A.DefaultRunProperties(); paragraphProperties12.Append(defaultRunProperties12); A.EndParagraphRunProperties endParagraphRunProperties12 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph20.Append(paragraphProperties12); paragraph20.Append(endParagraphRunProperties12); textProperties12.Append(bodyProperties20); textProperties12.Append(listStyle20); textProperties12.Append(paragraph20); C.PrintSettings printSettings8 = new C.PrintSettings(); C.HeaderFooter headerFooter8 = new C.HeaderFooter(); C.PageMargins pageMargins14 = new C.PageMargins(){ Left = 0.7D, Right = 0.7D, Top = 0.75D, Bottom = 0.75D, Header = 0.3D, Footer = 0.3D }; C.PageSetup pageSetup8 = new C.PageSetup(); printSettings8.Append(headerFooter8); printSettings8.Append(pageMargins14); printSettings8.Append(pageSetup8); C.ChartSpaceExtensionList chartSpaceExtensionList8 = new C.ChartSpaceExtensionList(); chartSpaceExtensionList8.AddNamespaceDeclaration("c14", "http://schemas.microsoft.com/office/drawing/2007/8/2/chart"); chartSpaceExtensionList8.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); C.ChartSpaceExtension chartSpaceExtension8 = new C.ChartSpaceExtension(){ Uri = "{781A3756-C4B2-4CAC-9D66-4F8BD8637D16}" }; chartSpaceExtension8.AddNamespaceDeclaration("c14", "http://schemas.microsoft.com/office/drawing/2007/8/2/chart"); C14.PivotOptions pivotOptions8 = new C14.PivotOptions(); C14.DropZoneFilter dropZoneFilter8 = new C14.DropZoneFilter(){ Val = true }; C14.DropZoneCategories dropZoneCategories8 = new C14.DropZoneCategories(){ Val = true }; C14.DropZoneData dropZoneData8 = new C14.DropZoneData(){ Val = true }; C14.DropZoneSeries dropZoneSeries8 = new C14.DropZoneSeries(){ Val = true }; C14.DropZonesVisible dropZonesVisible8 = new C14.DropZonesVisible(){ Val = true }; pivotOptions8.Append(dropZoneFilter8); pivotOptions8.Append(dropZoneCategories8); pivotOptions8.Append(dropZoneData8); pivotOptions8.Append(dropZoneSeries8); pivotOptions8.Append(dropZonesVisible8); chartSpaceExtension8.Append(pivotOptions8); chartSpaceExtensionList8.Append(chartSpaceExtension8); chartSpace8.Append(date19048); chartSpace8.Append(editingLanguage8); chartSpace8.Append(roundedCorners8); chartSpace8.Append(alternateContent17); chartSpace8.Append(pivotSource8); chartSpace8.Append(chart8); chartSpace8.Append(shapeProperties29); chartSpace8.Append(textProperties12); chartSpace8.Append(printSettings8); chartSpace8.Append(chartSpaceExtensionList8); chartPart8.ChartSpace = chartSpace8; }
// Generates content of slidePart1. private void GenerateSlidePart1Content(SlidePart slidePart1) { Slide slide1 = new Slide(); slide1.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); slide1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); slide1.AddNamespaceDeclaration("p", "http://schemas.openxmlformats.org/presentationml/2006/main"); CommonSlideData commonSlideData1 = new CommonSlideData(); ShapeTree shapeTree1 = new ShapeTree(); NonVisualGroupShapeProperties nonVisualGroupShapeProperties1 = new NonVisualGroupShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties1 = new NonVisualDrawingProperties(){ Id = (UInt32Value)1U, Name = "" }; NonVisualGroupShapeDrawingProperties nonVisualGroupShapeDrawingProperties1 = new NonVisualGroupShapeDrawingProperties(); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties1 = new ApplicationNonVisualDrawingProperties(); nonVisualGroupShapeProperties1.Append(nonVisualDrawingProperties1); nonVisualGroupShapeProperties1.Append(nonVisualGroupShapeDrawingProperties1); nonVisualGroupShapeProperties1.Append(applicationNonVisualDrawingProperties1); GroupShapeProperties groupShapeProperties1 = new GroupShapeProperties(); A.TransformGroup transformGroup1 = new A.TransformGroup(); A.Offset offset1 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents1 = new A.Extents(){ Cx = 0L, Cy = 0L }; A.ChildOffset childOffset1 = new A.ChildOffset(){ X = 0L, Y = 0L }; A.ChildExtents childExtents1 = new A.ChildExtents(){ Cx = 0L, Cy = 0L }; transformGroup1.Append(offset1); transformGroup1.Append(extents1); transformGroup1.Append(childOffset1); transformGroup1.Append(childExtents1); groupShapeProperties1.Append(transformGroup1); Shape shape1 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties1 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties2 = new NonVisualDrawingProperties(){ Id = (UInt32Value)2U, Name = "タイトル 1" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties1 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks1 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties1.Append(shapeLocks1); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties2 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape1 = new PlaceholderShape(){ Type = PlaceholderValues.CenteredTitle }; applicationNonVisualDrawingProperties2.Append(placeholderShape1); nonVisualShapeProperties1.Append(nonVisualDrawingProperties2); nonVisualShapeProperties1.Append(nonVisualShapeDrawingProperties1); nonVisualShapeProperties1.Append(applicationNonVisualDrawingProperties2); ShapeProperties shapeProperties1 = new ShapeProperties(); TextBody textBody1 = new TextBody(); A.BodyProperties bodyProperties1 = new A.BodyProperties(); A.ListStyle listStyle1 = new A.ListStyle(); A.Paragraph paragraph1 = new A.Paragraph(); A.Run run1 = new A.Run(); A.RunProperties runProperties1 = new A.RunProperties(){ Kumimoji = true, Language = "en-US", AlternativeLanguage = "ja-JP", Dirty = false }; runProperties1.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text1 = new A.Text(); text1.Text = "TEST"; run1.Append(runProperties1); run1.Append(text1); A.EndParagraphRunProperties endParagraphRunProperties1 = new A.EndParagraphRunProperties(){ Kumimoji = true, Language = "ja-JP", AlternativeLanguage = "en-US", Dirty = false }; paragraph1.Append(run1); paragraph1.Append(endParagraphRunProperties1); textBody1.Append(bodyProperties1); textBody1.Append(listStyle1); textBody1.Append(paragraph1); shape1.Append(nonVisualShapeProperties1); shape1.Append(shapeProperties1); shape1.Append(textBody1); Shape shape2 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties2 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties3 = new NonVisualDrawingProperties(){ Id = (UInt32Value)3U, Name = "サブタイトル 2" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties2 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks2 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties2.Append(shapeLocks2); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties3 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape2 = new PlaceholderShape(){ Type = PlaceholderValues.SubTitle, Index = (UInt32Value)1U }; applicationNonVisualDrawingProperties3.Append(placeholderShape2); nonVisualShapeProperties2.Append(nonVisualDrawingProperties3); nonVisualShapeProperties2.Append(nonVisualShapeDrawingProperties2); nonVisualShapeProperties2.Append(applicationNonVisualDrawingProperties3); ShapeProperties shapeProperties2 = new ShapeProperties(); TextBody textBody2 = new TextBody(); A.BodyProperties bodyProperties2 = new A.BodyProperties(); A.ListStyle listStyle2 = new A.ListStyle(); A.Paragraph paragraph2 = new A.Paragraph(); A.Run run2 = new A.Run(); A.RunProperties runProperties2 = new A.RunProperties(){ Kumimoji = true, Language = "en-US", AlternativeLanguage = "ja-JP", Dirty = false }; runProperties2.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text2 = new A.Text(); text2.Text = "Preset "; run2.Append(runProperties2); run2.Append(text2); A.Run run3 = new A.Run(); A.RunProperties runProperties3 = new A.RunProperties(){ Kumimoji = true, Language = "en-US", AlternativeLanguage = "ja-JP" }; runProperties3.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text3 = new A.Text(); text3.Text = "Transition Element…"; run3.Append(runProperties3); run3.Append(text3); A.EndParagraphRunProperties endParagraphRunProperties2 = new A.EndParagraphRunProperties(){ Kumimoji = true, Language = "ja-JP", AlternativeLanguage = "en-US", Dirty = false }; paragraph2.Append(run2); paragraph2.Append(run3); paragraph2.Append(endParagraphRunProperties2); textBody2.Append(bodyProperties2); textBody2.Append(listStyle2); textBody2.Append(paragraph2); shape2.Append(nonVisualShapeProperties2); shape2.Append(shapeProperties2); shape2.Append(textBody2); shapeTree1.Append(nonVisualGroupShapeProperties1); shapeTree1.Append(groupShapeProperties1); shapeTree1.Append(shape1); shapeTree1.Append(shape2); CommonSlideDataExtensionList commonSlideDataExtensionList1 = new CommonSlideDataExtensionList(); CommonSlideDataExtension commonSlideDataExtension1 = new CommonSlideDataExtension(){ Uri = "{BB962C8B-B14F-4D97-AF65-F5344CB8AC3E}" }; P14.CreationId creationId1 = new P14.CreationId(){ Val = (UInt32Value)392542647U }; creationId1.AddNamespaceDeclaration("p14", "http://schemas.microsoft.com/office/powerpoint/2010/main"); commonSlideDataExtension1.Append(creationId1); commonSlideDataExtensionList1.Append(commonSlideDataExtension1); commonSlideData1.Append(shapeTree1); commonSlideData1.Append(commonSlideDataExtensionList1); ColorMapOverride colorMapOverride1 = new ColorMapOverride(); A.MasterColorMapping masterColorMapping1 = new A.MasterColorMapping(); colorMapOverride1.Append(masterColorMapping1); AlternateContent alternateContent1 = new AlternateContent(); alternateContent1.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); alternateContent1.AddNamespaceDeclaration("p15", "http://schemas.microsoft.com/office/powerpoint/2012/main"); AlternateContentChoice alternateContentChoice1 = new AlternateContentChoice(){ Requires = "p15" }; Transition transition1 = new Transition(){ Speed = TransitionSpeedValues.Slow, Duration = "1250" }; transition1.AddNamespaceDeclaration("p14", "http://schemas.microsoft.com/office/powerpoint/2010/main"); P15.PresetTransition presetTransition1 = new P15.PresetTransition(){ Preset = "pageCurlDouble", InvX = true }; transition1.Append(presetTransition1); alternateContentChoice1.Append(transition1); AlternateContentFallback alternateContentFallback1 = new AlternateContentFallback(); Transition transition2 = new Transition(){ Speed = TransitionSpeedValues.Slow }; FadeTransition fadeTransition1 = new FadeTransition(); transition2.Append(fadeTransition1); alternateContentFallback1.Append(transition2); alternateContent1.Append(alternateContentChoice1); alternateContent1.Append(alternateContentFallback1); Timing timing1 = new Timing(); TimeNodeList timeNodeList1 = new TimeNodeList(); ParallelTimeNode parallelTimeNode1 = new ParallelTimeNode(); CommonTimeNode commonTimeNode1 = new CommonTimeNode(){ Id = (UInt32Value)1U, Duration = "indefinite", Restart = TimeNodeRestartValues.Never, NodeType = TimeNodeValues.TmingRoot }; parallelTimeNode1.Append(commonTimeNode1); timeNodeList1.Append(parallelTimeNode1); timing1.Append(timeNodeList1); slide1.Append(commonSlideData1); slide1.Append(colorMapOverride1); slide1.Append(alternateContent1); slide1.Append(timing1); slidePart1.Slide = slide1; }
// Generates content of drawingsPart7. private void GenerateDrawingsPart7Content(DrawingsPart drawingsPart7) { Xdr.WorksheetDrawing worksheetDrawing7 = new Xdr.WorksheetDrawing(); worksheetDrawing7.AddNamespaceDeclaration("xdr", "http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"); worksheetDrawing7.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); Xdr.TwoCellAnchor twoCellAnchor25 = new Xdr.TwoCellAnchor(); Xdr.FromMarker fromMarker25 = new Xdr.FromMarker(); Xdr.ColumnId columnId49 = new Xdr.ColumnId(); columnId49.Text = "2"; Xdr.ColumnOffset columnOffset49 = new Xdr.ColumnOffset(); columnOffset49.Text = "185737"; Xdr.RowId rowId49 = new Xdr.RowId(); rowId49.Text = "0"; Xdr.RowOffset rowOffset49 = new Xdr.RowOffset(); rowOffset49.Text = "0"; fromMarker25.Append(columnId49); fromMarker25.Append(columnOffset49); fromMarker25.Append(rowId49); fromMarker25.Append(rowOffset49); Xdr.ToMarker toMarker25 = new Xdr.ToMarker(); Xdr.ColumnId columnId50 = new Xdr.ColumnId(); columnId50.Text = "9"; Xdr.ColumnOffset columnOffset50 = new Xdr.ColumnOffset(); columnOffset50.Text = "90487"; Xdr.RowId rowId50 = new Xdr.RowId(); rowId50.Text = "14"; Xdr.RowOffset rowOffset50 = new Xdr.RowOffset(); rowOffset50.Text = "76200"; toMarker25.Append(columnId50); toMarker25.Append(columnOffset50); toMarker25.Append(rowId50); toMarker25.Append(rowOffset50); Xdr.GraphicFrame graphicFrame25 = new Xdr.GraphicFrame(){ Macro = "" }; Xdr.NonVisualGraphicFrameProperties nonVisualGraphicFrameProperties25 = new Xdr.NonVisualGraphicFrameProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties37 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)2U, Name = "Chart 1" }; Xdr.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties25 = new Xdr.NonVisualGraphicFrameDrawingProperties(); A.GraphicFrameLocks graphicFrameLocks11 = new A.GraphicFrameLocks(); nonVisualGraphicFrameDrawingProperties25.Append(graphicFrameLocks11); nonVisualGraphicFrameProperties25.Append(nonVisualDrawingProperties37); nonVisualGraphicFrameProperties25.Append(nonVisualGraphicFrameDrawingProperties25); Xdr.Transform transform25 = new Xdr.Transform(); A.Offset offset37 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents37 = new A.Extents(){ Cx = 0L, Cy = 0L }; transform25.Append(offset37); transform25.Append(extents37); A.Graphic graphic25 = new A.Graphic(); A.GraphicData graphicData25 = new A.GraphicData(){ Uri = "http://schemas.openxmlformats.org/drawingml/2006/chart" }; C.ChartReference chartReference13 = new C.ChartReference(){ Id = "rId1" }; chartReference13.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart"); chartReference13.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); graphicData25.Append(chartReference13); graphic25.Append(graphicData25); graphicFrame25.Append(nonVisualGraphicFrameProperties25); graphicFrame25.Append(transform25); graphicFrame25.Append(graphic25); Xdr.ClientData clientData25 = new Xdr.ClientData(); twoCellAnchor25.Append(fromMarker25); twoCellAnchor25.Append(toMarker25); twoCellAnchor25.Append(graphicFrame25); twoCellAnchor25.Append(clientData25); Xdr.TwoCellAnchor twoCellAnchor26 = new Xdr.TwoCellAnchor(); Xdr.FromMarker fromMarker26 = new Xdr.FromMarker(); Xdr.ColumnId columnId51 = new Xdr.ColumnId(); columnId51.Text = "2"; Xdr.ColumnOffset columnOffset51 = new Xdr.ColumnOffset(); columnOffset51.Text = "200025"; Xdr.RowId rowId51 = new Xdr.RowId(); rowId51.Text = "14"; Xdr.RowOffset rowOffset51 = new Xdr.RowOffset(); rowOffset51.Text = "147637"; fromMarker26.Append(columnId51); fromMarker26.Append(columnOffset51); fromMarker26.Append(rowId51); fromMarker26.Append(rowOffset51); Xdr.ToMarker toMarker26 = new Xdr.ToMarker(); Xdr.ColumnId columnId52 = new Xdr.ColumnId(); columnId52.Text = "7"; Xdr.ColumnOffset columnOffset52 = new Xdr.ColumnOffset(); columnOffset52.Text = "476250"; Xdr.RowId rowId52 = new Xdr.RowId(); rowId52.Text = "29"; Xdr.RowOffset rowOffset52 = new Xdr.RowOffset(); rowOffset52.Text = "33337"; toMarker26.Append(columnId52); toMarker26.Append(columnOffset52); toMarker26.Append(rowId52); toMarker26.Append(rowOffset52); Xdr.GraphicFrame graphicFrame26 = new Xdr.GraphicFrame(){ Macro = "" }; Xdr.NonVisualGraphicFrameProperties nonVisualGraphicFrameProperties26 = new Xdr.NonVisualGraphicFrameProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties38 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)3U, Name = "グラフ 2" }; Xdr.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties26 = new Xdr.NonVisualGraphicFrameDrawingProperties(); A.GraphicFrameLocks graphicFrameLocks12 = new A.GraphicFrameLocks(); nonVisualGraphicFrameDrawingProperties26.Append(graphicFrameLocks12); nonVisualGraphicFrameProperties26.Append(nonVisualDrawingProperties38); nonVisualGraphicFrameProperties26.Append(nonVisualGraphicFrameDrawingProperties26); Xdr.Transform transform26 = new Xdr.Transform(); A.Offset offset38 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents38 = new A.Extents(){ Cx = 0L, Cy = 0L }; transform26.Append(offset38); transform26.Append(extents38); A.Graphic graphic26 = new A.Graphic(); A.GraphicData graphicData26 = new A.GraphicData(){ Uri = "http://schemas.openxmlformats.org/drawingml/2006/chart" }; C.ChartReference chartReference14 = new C.ChartReference(){ Id = "rId2" }; chartReference14.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart"); chartReference14.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); graphicData26.Append(chartReference14); graphic26.Append(graphicData26); graphicFrame26.Append(nonVisualGraphicFrameProperties26); graphicFrame26.Append(transform26); graphicFrame26.Append(graphic26); Xdr.ClientData clientData26 = new Xdr.ClientData(); twoCellAnchor26.Append(fromMarker26); twoCellAnchor26.Append(toMarker26); twoCellAnchor26.Append(graphicFrame26); twoCellAnchor26.Append(clientData26); Xdr.TwoCellAnchor twoCellAnchor27 = new Xdr.TwoCellAnchor(){ EditAs = Xdr.EditAsValues.OneCell }; Xdr.FromMarker fromMarker27 = new Xdr.FromMarker(); Xdr.ColumnId columnId53 = new Xdr.ColumnId(); columnId53.Text = "10"; Xdr.ColumnOffset columnOffset53 = new Xdr.ColumnOffset(); columnOffset53.Text = "9525"; Xdr.RowId rowId53 = new Xdr.RowId(); rowId53.Text = "1"; Xdr.RowOffset rowOffset53 = new Xdr.RowOffset(); rowOffset53.Text = "0"; fromMarker27.Append(columnId53); fromMarker27.Append(columnOffset53); fromMarker27.Append(rowId53); fromMarker27.Append(rowOffset53); Xdr.ToMarker toMarker27 = new Xdr.ToMarker(); Xdr.ColumnId columnId54 = new Xdr.ColumnId(); columnId54.Text = "13"; Xdr.ColumnOffset columnOffset54 = new Xdr.ColumnOffset(); columnOffset54.Text = "742950"; Xdr.RowId rowId54 = new Xdr.RowId(); rowId54.Text = "7"; Xdr.RowOffset rowOffset54 = new Xdr.RowOffset(); rowOffset54.Text = "47625"; toMarker27.Append(columnId54); toMarker27.Append(columnOffset54); toMarker27.Append(rowId54); toMarker27.Append(rowOffset54); AlternateContent alternateContent26 = new AlternateContent(); alternateContent26.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); alternateContent26.AddNamespaceDeclaration("a15", "http://schemas.microsoft.com/office/drawing/2012/main"); AlternateContentChoice alternateContentChoice26 = new AlternateContentChoice(){ Requires = "a15" }; Xdr.GraphicFrame graphicFrame27 = new Xdr.GraphicFrame(){ Macro = "" }; Xdr.NonVisualGraphicFrameProperties nonVisualGraphicFrameProperties27 = new Xdr.NonVisualGraphicFrameProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties39 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)4U, Name = "DeliveryDate 14" }; Xdr.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties27 = new Xdr.NonVisualGraphicFrameDrawingProperties(); nonVisualGraphicFrameProperties27.Append(nonVisualDrawingProperties39); nonVisualGraphicFrameProperties27.Append(nonVisualGraphicFrameDrawingProperties27); Xdr.Transform transform27 = new Xdr.Transform(); A.Offset offset39 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents39 = new A.Extents(){ Cx = 0L, Cy = 0L }; transform27.Append(offset39); transform27.Append(extents39); A.Graphic graphic27 = new A.Graphic(); A.GraphicData graphicData27 = new A.GraphicData(){ Uri = "http://schemas.microsoft.com/office/drawing/2012/timeslicer" }; Tsle.TimeSlicer timeSlicer13 = new Tsle.TimeSlicer(){ Name = "DeliveryDate 14" }; timeSlicer13.AddNamespaceDeclaration("tsle", "http://schemas.microsoft.com/office/drawing/2012/timeslicer"); graphicData27.Append(timeSlicer13); graphic27.Append(graphicData27); graphicFrame27.Append(nonVisualGraphicFrameProperties27); graphicFrame27.Append(transform27); graphicFrame27.Append(graphic27); alternateContentChoice26.Append(graphicFrame27); AlternateContentFallback alternateContentFallback25 = new AlternateContentFallback(); alternateContentFallback25.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); alternateContentFallback25.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart"); Xdr.Shape shape13 = new Xdr.Shape(){ Macro = "", TextLink = "" }; Xdr.NonVisualShapeProperties nonVisualShapeProperties13 = new Xdr.NonVisualShapeProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties40 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)0U, Name = "" }; Xdr.NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties13 = new Xdr.NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks13 = new A.ShapeLocks(){ NoTextEdit = true }; nonVisualShapeDrawingProperties13.Append(shapeLocks13); nonVisualShapeProperties13.Append(nonVisualDrawingProperties40); nonVisualShapeProperties13.Append(nonVisualShapeDrawingProperties13); Xdr.ShapeProperties shapeProperties50 = new Xdr.ShapeProperties(); A.Transform2D transform2D13 = new A.Transform2D(); A.Offset offset40 = new A.Offset(){ X = 8610600L, Y = 190500L }; A.Extents extents40 = new A.Extents(){ Cx = 3333750L, Cy = 1190625L }; transform2D13.Append(offset40); transform2D13.Append(extents40); A.PresetGeometry presetGeometry13 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList13 = new A.AdjustValueList(); presetGeometry13.Append(adjustValueList13); A.SolidFill solidFill97 = new A.SolidFill(); A.PresetColor presetColor25 = new A.PresetColor(){ Val = A.PresetColorValues.White }; solidFill97.Append(presetColor25); A.Outline outline78 = new A.Outline(){ Width = 1 }; A.SolidFill solidFill98 = new A.SolidFill(); A.PresetColor presetColor26 = new A.PresetColor(){ Val = A.PresetColorValues.Green }; solidFill98.Append(presetColor26); outline78.Append(solidFill98); shapeProperties50.Append(transform2D13); shapeProperties50.Append(presetGeometry13); shapeProperties50.Append(solidFill97); shapeProperties50.Append(outline78); Xdr.TextBody textBody13 = new Xdr.TextBody(); A.BodyProperties bodyProperties33 = new A.BodyProperties(){ VerticalOverflow = A.TextVerticalOverflowValues.Clip, HorizontalOverflow = A.TextHorizontalOverflowValues.Clip }; A.ListStyle listStyle33 = new A.ListStyle(); A.Paragraph paragraph33 = new A.Paragraph(); A.Run run13 = new A.Run(); A.RunProperties runProperties13 = new A.RunProperties(){ Language = "en-US", FontSize = 1100 }; A.Text text51 = new A.Text(); text51.Text = "Timeline: Works in Excel 15 or higher. Do not move or resize."; run13.Append(runProperties13); run13.Append(text51); paragraph33.Append(run13); textBody13.Append(bodyProperties33); textBody13.Append(listStyle33); textBody13.Append(paragraph33); shape13.Append(nonVisualShapeProperties13); shape13.Append(shapeProperties50); shape13.Append(textBody13); alternateContentFallback25.Append(shape13); alternateContent26.Append(alternateContentChoice26); alternateContent26.Append(alternateContentFallback25); Xdr.ClientData clientData27 = new Xdr.ClientData(); twoCellAnchor27.Append(fromMarker27); twoCellAnchor27.Append(toMarker27); twoCellAnchor27.Append(alternateContent26); twoCellAnchor27.Append(clientData27); Xdr.TwoCellAnchor twoCellAnchor28 = new Xdr.TwoCellAnchor(){ EditAs = Xdr.EditAsValues.OneCell }; Xdr.FromMarker fromMarker28 = new Xdr.FromMarker(); Xdr.ColumnId columnId55 = new Xdr.ColumnId(); columnId55.Text = "10"; Xdr.ColumnOffset columnOffset55 = new Xdr.ColumnOffset(); columnOffset55.Text = "19050"; Xdr.RowId rowId55 = new Xdr.RowId(); rowId55.Text = "9"; Xdr.RowOffset rowOffset55 = new Xdr.RowOffset(); rowOffset55.Text = "9525"; fromMarker28.Append(columnId55); fromMarker28.Append(columnOffset55); fromMarker28.Append(rowId55); fromMarker28.Append(rowOffset55); Xdr.ToMarker toMarker28 = new Xdr.ToMarker(); Xdr.ColumnId columnId56 = new Xdr.ColumnId(); columnId56.Text = "13"; Xdr.ColumnOffset columnOffset56 = new Xdr.ColumnOffset(); columnOffset56.Text = "752475"; Xdr.RowId rowId56 = new Xdr.RowId(); rowId56.Text = "15"; Xdr.RowOffset rowOffset56 = new Xdr.RowOffset(); rowOffset56.Text = "57150"; toMarker28.Append(columnId56); toMarker28.Append(columnOffset56); toMarker28.Append(rowId56); toMarker28.Append(rowOffset56); AlternateContent alternateContent27 = new AlternateContent(); alternateContent27.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); alternateContent27.AddNamespaceDeclaration("a15", "http://schemas.microsoft.com/office/drawing/2012/main"); AlternateContentChoice alternateContentChoice27 = new AlternateContentChoice(){ Requires = "a15" }; Xdr.GraphicFrame graphicFrame28 = new Xdr.GraphicFrame(){ Macro = "" }; Xdr.NonVisualGraphicFrameProperties nonVisualGraphicFrameProperties28 = new Xdr.NonVisualGraphicFrameProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties41 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)5U, Name = "DeliveryDate 15" }; Xdr.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties28 = new Xdr.NonVisualGraphicFrameDrawingProperties(); nonVisualGraphicFrameProperties28.Append(nonVisualDrawingProperties41); nonVisualGraphicFrameProperties28.Append(nonVisualGraphicFrameDrawingProperties28); Xdr.Transform transform28 = new Xdr.Transform(); A.Offset offset41 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents41 = new A.Extents(){ Cx = 0L, Cy = 0L }; transform28.Append(offset41); transform28.Append(extents41); A.Graphic graphic28 = new A.Graphic(); A.GraphicData graphicData28 = new A.GraphicData(){ Uri = "http://schemas.microsoft.com/office/drawing/2012/timeslicer" }; Tsle.TimeSlicer timeSlicer14 = new Tsle.TimeSlicer(){ Name = "DeliveryDate 15" }; timeSlicer14.AddNamespaceDeclaration("tsle", "http://schemas.microsoft.com/office/drawing/2012/timeslicer"); graphicData28.Append(timeSlicer14); graphic28.Append(graphicData28); graphicFrame28.Append(nonVisualGraphicFrameProperties28); graphicFrame28.Append(transform28); graphicFrame28.Append(graphic28); alternateContentChoice27.Append(graphicFrame28); AlternateContentFallback alternateContentFallback26 = new AlternateContentFallback(); alternateContentFallback26.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); alternateContentFallback26.AddNamespaceDeclaration("c", "http://schemas.openxmlformats.org/drawingml/2006/chart"); Xdr.Shape shape14 = new Xdr.Shape(){ Macro = "", TextLink = "" }; Xdr.NonVisualShapeProperties nonVisualShapeProperties14 = new Xdr.NonVisualShapeProperties(); Xdr.NonVisualDrawingProperties nonVisualDrawingProperties42 = new Xdr.NonVisualDrawingProperties(){ Id = (UInt32Value)0U, Name = "" }; Xdr.NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties14 = new Xdr.NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks14 = new A.ShapeLocks(){ NoTextEdit = true }; nonVisualShapeDrawingProperties14.Append(shapeLocks14); nonVisualShapeProperties14.Append(nonVisualDrawingProperties42); nonVisualShapeProperties14.Append(nonVisualShapeDrawingProperties14); Xdr.ShapeProperties shapeProperties51 = new Xdr.ShapeProperties(); A.Transform2D transform2D14 = new A.Transform2D(); A.Offset offset42 = new A.Offset(){ X = 8620125L, Y = 1724025L }; A.Extents extents42 = new A.Extents(){ Cx = 3333750L, Cy = 1190625L }; transform2D14.Append(offset42); transform2D14.Append(extents42); A.PresetGeometry presetGeometry14 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList14 = new A.AdjustValueList(); presetGeometry14.Append(adjustValueList14); A.SolidFill solidFill99 = new A.SolidFill(); A.PresetColor presetColor27 = new A.PresetColor(){ Val = A.PresetColorValues.White }; solidFill99.Append(presetColor27); A.Outline outline79 = new A.Outline(){ Width = 1 }; A.SolidFill solidFill100 = new A.SolidFill(); A.PresetColor presetColor28 = new A.PresetColor(){ Val = A.PresetColorValues.Green }; solidFill100.Append(presetColor28); outline79.Append(solidFill100); shapeProperties51.Append(transform2D14); shapeProperties51.Append(presetGeometry14); shapeProperties51.Append(solidFill99); shapeProperties51.Append(outline79); Xdr.TextBody textBody14 = new Xdr.TextBody(); A.BodyProperties bodyProperties34 = new A.BodyProperties(){ VerticalOverflow = A.TextVerticalOverflowValues.Clip, HorizontalOverflow = A.TextHorizontalOverflowValues.Clip }; A.ListStyle listStyle34 = new A.ListStyle(); A.Paragraph paragraph34 = new A.Paragraph(); A.Run run14 = new A.Run(); A.RunProperties runProperties14 = new A.RunProperties(){ Language = "en-US", FontSize = 1100 }; A.Text text52 = new A.Text(); text52.Text = "Timeline: Works in Excel 15 or higher. Do not move or resize."; run14.Append(runProperties14); run14.Append(text52); paragraph34.Append(run14); textBody14.Append(bodyProperties34); textBody14.Append(listStyle34); textBody14.Append(paragraph34); shape14.Append(nonVisualShapeProperties14); shape14.Append(shapeProperties51); shape14.Append(textBody14); alternateContentFallback26.Append(shape14); alternateContent27.Append(alternateContentChoice27); alternateContent27.Append(alternateContentFallback26); Xdr.ClientData clientData28 = new Xdr.ClientData(); twoCellAnchor28.Append(fromMarker28); twoCellAnchor28.Append(toMarker28); twoCellAnchor28.Append(alternateContent27); twoCellAnchor28.Append(clientData28); worksheetDrawing7.Append(twoCellAnchor25); worksheetDrawing7.Append(twoCellAnchor26); worksheetDrawing7.Append(twoCellAnchor27); worksheetDrawing7.Append(twoCellAnchor28); drawingsPart7.WorksheetDrawing = worksheetDrawing7; }