示例#1
0
        private static void GeneratePartContent(ThemePart themePart1)
        {
            A.Theme theme1 = new A.Theme()
            {
                Name = "Office テーマ"
            };
            theme1.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main");

            A.ThemeElements themeElements1 = new A.ThemeElements();

            A.ColorScheme colorScheme1 = new A.ColorScheme()
            {
                Name = "Office テーマ"
            };

            A.Dark1Color  dark1Color1  = new A.Dark1Color();
            A.SystemColor systemColor1 = new A.SystemColor()
            {
                Val = A.SystemColorValues.WindowText, LastColor = "000000"
            };

            dark1Color1.Append(systemColor1);

            A.Light1Color light1Color1 = new A.Light1Color();
            A.SystemColor systemColor2 = new A.SystemColor()
            {
                Val = A.SystemColorValues.Window, LastColor = "FFFFFF"
            };

            light1Color1.Append(systemColor2);

            A.Dark2Color       dark2Color1       = new A.Dark2Color();
            A.RgbColorModelHex rgbColorModelHex1 = new A.RgbColorModelHex()
            {
                Val = "44546A"
            };

            dark2Color1.Append(rgbColorModelHex1);

            A.Light2Color      light2Color1      = new A.Light2Color();
            A.RgbColorModelHex rgbColorModelHex2 = new A.RgbColorModelHex()
            {
                Val = "E7E6E6"
            };

            light2Color1.Append(rgbColorModelHex2);

            A.Accent1Color     accent1Color1     = new A.Accent1Color();
            A.RgbColorModelHex rgbColorModelHex3 = new A.RgbColorModelHex()
            {
                Val = "4472C4"
            };

            accent1Color1.Append(rgbColorModelHex3);

            A.Accent2Color     accent2Color1     = new A.Accent2Color();
            A.RgbColorModelHex rgbColorModelHex4 = new A.RgbColorModelHex()
            {
                Val = "ED7D31"
            };

            accent2Color1.Append(rgbColorModelHex4);

            A.Accent3Color     accent3Color1     = new A.Accent3Color();
            A.RgbColorModelHex rgbColorModelHex5 = new A.RgbColorModelHex()
            {
                Val = "A5A5A5"
            };

            accent3Color1.Append(rgbColorModelHex5);

            A.Accent4Color     accent4Color1     = new A.Accent4Color();
            A.RgbColorModelHex rgbColorModelHex6 = new A.RgbColorModelHex()
            {
                Val = "FFC000"
            };

            accent4Color1.Append(rgbColorModelHex6);

            A.Accent5Color     accent5Color1     = new A.Accent5Color();
            A.RgbColorModelHex rgbColorModelHex7 = new A.RgbColorModelHex()
            {
                Val = "5B9BD5"
            };

            accent5Color1.Append(rgbColorModelHex7);

            A.Accent6Color     accent6Color1     = new A.Accent6Color();
            A.RgbColorModelHex rgbColorModelHex8 = new A.RgbColorModelHex()
            {
                Val = "70AD47"
            };

            accent6Color1.Append(rgbColorModelHex8);

            A.Hyperlink        hyperlink1        = new A.Hyperlink();
            A.RgbColorModelHex rgbColorModelHex9 = new A.RgbColorModelHex()
            {
                Val = "0563C1"
            };

            hyperlink1.Append(rgbColorModelHex9);

            A.FollowedHyperlinkColor followedHyperlinkColor1 = new A.FollowedHyperlinkColor();
            A.RgbColorModelHex       rgbColorModelHex10      = new A.RgbColorModelHex()
            {
                Val = "954F72"
            };

            followedHyperlinkColor1.Append(rgbColorModelHex10);

            colorScheme1.Append(dark1Color1);
            colorScheme1.Append(light1Color1);
            colorScheme1.Append(dark2Color1);
            colorScheme1.Append(light2Color1);
            colorScheme1.Append(accent1Color1);
            colorScheme1.Append(accent2Color1);
            colorScheme1.Append(accent3Color1);
            colorScheme1.Append(accent4Color1);
            colorScheme1.Append(accent5Color1);
            colorScheme1.Append(accent6Color1);
            colorScheme1.Append(hyperlink1);
            colorScheme1.Append(followedHyperlinkColor1);

            A.FontScheme fontScheme1 = new A.FontScheme()
            {
                Name = "Office テーマ"
            };

            A.MajorFont majorFont1  = new A.MajorFont();
            A.LatinFont latinFont20 = new A.LatinFont()
            {
                Typeface = "Calibri Light", Panose = "020F0302020204030204"
            };
            A.EastAsianFont eastAsianFont20 = new A.EastAsianFont()
            {
                Typeface = ""
            };
            A.ComplexScriptFont complexScriptFont20 = new A.ComplexScriptFont()
            {
                Typeface = ""
            };
            A.SupplementalFont supplementalFont1 = new A.SupplementalFont()
            {
                Script = "Jpan", Typeface = "游ゴシック Light"
            };
            A.SupplementalFont supplementalFont2 = new A.SupplementalFont()
            {
                Script = "Hang", Typeface = "맑은 고딕"
            };
            A.SupplementalFont supplementalFont3 = new A.SupplementalFont()
            {
                Script = "Hans", Typeface = "等线 Light"
            };
            A.SupplementalFont supplementalFont4 = new A.SupplementalFont()
            {
                Script = "Hant", Typeface = "新細明體"
            };
            A.SupplementalFont supplementalFont5 = new A.SupplementalFont()
            {
                Script = "Arab", Typeface = "Times New Roman"
            };
            A.SupplementalFont supplementalFont6 = new A.SupplementalFont()
            {
                Script = "Hebr", Typeface = "Times New Roman"
            };
            A.SupplementalFont supplementalFont7 = new A.SupplementalFont()
            {
                Script = "Thai", Typeface = "Angsana New"
            };
            A.SupplementalFont supplementalFont8 = new A.SupplementalFont()
            {
                Script = "Ethi", Typeface = "Nyala"
            };
            A.SupplementalFont supplementalFont9 = new A.SupplementalFont()
            {
                Script = "Beng", Typeface = "Vrinda"
            };
            A.SupplementalFont supplementalFont10 = new A.SupplementalFont()
            {
                Script = "Gujr", Typeface = "Shruti"
            };
            A.SupplementalFont supplementalFont11 = new A.SupplementalFont()
            {
                Script = "Khmr", Typeface = "MoolBoran"
            };
            A.SupplementalFont supplementalFont12 = new A.SupplementalFont()
            {
                Script = "Knda", Typeface = "Tunga"
            };
            A.SupplementalFont supplementalFont13 = new A.SupplementalFont()
            {
                Script = "Guru", Typeface = "Raavi"
            };
            A.SupplementalFont supplementalFont14 = new A.SupplementalFont()
            {
                Script = "Cans", Typeface = "Euphemia"
            };
            A.SupplementalFont supplementalFont15 = new A.SupplementalFont()
            {
                Script = "Cher", Typeface = "Plantagenet Cherokee"
            };
            A.SupplementalFont supplementalFont16 = new A.SupplementalFont()
            {
                Script = "Yiii", Typeface = "Microsoft Yi Baiti"
            };
            A.SupplementalFont supplementalFont17 = new A.SupplementalFont()
            {
                Script = "Tibt", Typeface = "Microsoft Himalaya"
            };
            A.SupplementalFont supplementalFont18 = new A.SupplementalFont()
            {
                Script = "Thaa", Typeface = "MV Boli"
            };
            A.SupplementalFont supplementalFont19 = new A.SupplementalFont()
            {
                Script = "Deva", Typeface = "Mangal"
            };
            A.SupplementalFont supplementalFont20 = new A.SupplementalFont()
            {
                Script = "Telu", Typeface = "Gautami"
            };
            A.SupplementalFont supplementalFont21 = new A.SupplementalFont()
            {
                Script = "Taml", Typeface = "Latha"
            };
            A.SupplementalFont supplementalFont22 = new A.SupplementalFont()
            {
                Script = "Syrc", Typeface = "Estrangelo Edessa"
            };
            A.SupplementalFont supplementalFont23 = new A.SupplementalFont()
            {
                Script = "Orya", Typeface = "Kalinga"
            };
            A.SupplementalFont supplementalFont24 = new A.SupplementalFont()
            {
                Script = "Mlym", Typeface = "Kartika"
            };
            A.SupplementalFont supplementalFont25 = new A.SupplementalFont()
            {
                Script = "Laoo", Typeface = "DokChampa"
            };
            A.SupplementalFont supplementalFont26 = new A.SupplementalFont()
            {
                Script = "Sinh", Typeface = "Iskoola Pota"
            };
            A.SupplementalFont supplementalFont27 = new A.SupplementalFont()
            {
                Script = "Mong", Typeface = "Mongolian Baiti"
            };
            A.SupplementalFont supplementalFont28 = new A.SupplementalFont()
            {
                Script = "Viet", Typeface = "Times New Roman"
            };
            A.SupplementalFont supplementalFont29 = new A.SupplementalFont()
            {
                Script = "Uigh", Typeface = "Microsoft Uighur"
            };
            A.SupplementalFont supplementalFont30 = new A.SupplementalFont()
            {
                Script = "Geor", Typeface = "Sylfaen"
            };

            majorFont1.Append(latinFont20);
            majorFont1.Append(eastAsianFont20);
            majorFont1.Append(complexScriptFont20);
            majorFont1.Append(supplementalFont1);
            majorFont1.Append(supplementalFont2);
            majorFont1.Append(supplementalFont3);
            majorFont1.Append(supplementalFont4);
            majorFont1.Append(supplementalFont5);
            majorFont1.Append(supplementalFont6);
            majorFont1.Append(supplementalFont7);
            majorFont1.Append(supplementalFont8);
            majorFont1.Append(supplementalFont9);
            majorFont1.Append(supplementalFont10);
            majorFont1.Append(supplementalFont11);
            majorFont1.Append(supplementalFont12);
            majorFont1.Append(supplementalFont13);
            majorFont1.Append(supplementalFont14);
            majorFont1.Append(supplementalFont15);
            majorFont1.Append(supplementalFont16);
            majorFont1.Append(supplementalFont17);
            majorFont1.Append(supplementalFont18);
            majorFont1.Append(supplementalFont19);
            majorFont1.Append(supplementalFont20);
            majorFont1.Append(supplementalFont21);
            majorFont1.Append(supplementalFont22);
            majorFont1.Append(supplementalFont23);
            majorFont1.Append(supplementalFont24);
            majorFont1.Append(supplementalFont25);
            majorFont1.Append(supplementalFont26);
            majorFont1.Append(supplementalFont27);
            majorFont1.Append(supplementalFont28);
            majorFont1.Append(supplementalFont29);
            majorFont1.Append(supplementalFont30);

            A.MinorFont minorFont1  = new A.MinorFont();
            A.LatinFont latinFont21 = new A.LatinFont()
            {
                Typeface = "Calibri", Panose = "020F0502020204030204"
            };
            A.EastAsianFont eastAsianFont21 = new A.EastAsianFont()
            {
                Typeface = ""
            };
            A.ComplexScriptFont complexScriptFont21 = new A.ComplexScriptFont()
            {
                Typeface = ""
            };
            A.SupplementalFont supplementalFont31 = new A.SupplementalFont()
            {
                Script = "Jpan", Typeface = "游ゴシック"
            };
            A.SupplementalFont supplementalFont32 = new A.SupplementalFont()
            {
                Script = "Hang", Typeface = "맑은 고딕"
            };
            A.SupplementalFont supplementalFont33 = new A.SupplementalFont()
            {
                Script = "Hans", Typeface = "等线"
            };
            A.SupplementalFont supplementalFont34 = new A.SupplementalFont()
            {
                Script = "Hant", Typeface = "新細明體"
            };
            A.SupplementalFont supplementalFont35 = new A.SupplementalFont()
            {
                Script = "Arab", Typeface = "Arial"
            };
            A.SupplementalFont supplementalFont36 = new A.SupplementalFont()
            {
                Script = "Hebr", Typeface = "Arial"
            };
            A.SupplementalFont supplementalFont37 = new A.SupplementalFont()
            {
                Script = "Thai", Typeface = "Cordia New"
            };
            A.SupplementalFont supplementalFont38 = new A.SupplementalFont()
            {
                Script = "Ethi", Typeface = "Nyala"
            };
            A.SupplementalFont supplementalFont39 = new A.SupplementalFont()
            {
                Script = "Beng", Typeface = "Vrinda"
            };
            A.SupplementalFont supplementalFont40 = new A.SupplementalFont()
            {
                Script = "Gujr", Typeface = "Shruti"
            };
            A.SupplementalFont supplementalFont41 = new A.SupplementalFont()
            {
                Script = "Khmr", Typeface = "DaunPenh"
            };
            A.SupplementalFont supplementalFont42 = new A.SupplementalFont()
            {
                Script = "Knda", Typeface = "Tunga"
            };
            A.SupplementalFont supplementalFont43 = new A.SupplementalFont()
            {
                Script = "Guru", Typeface = "Raavi"
            };
            A.SupplementalFont supplementalFont44 = new A.SupplementalFont()
            {
                Script = "Cans", Typeface = "Euphemia"
            };
            A.SupplementalFont supplementalFont45 = new A.SupplementalFont()
            {
                Script = "Cher", Typeface = "Plantagenet Cherokee"
            };
            A.SupplementalFont supplementalFont46 = new A.SupplementalFont()
            {
                Script = "Yiii", Typeface = "Microsoft Yi Baiti"
            };
            A.SupplementalFont supplementalFont47 = new A.SupplementalFont()
            {
                Script = "Tibt", Typeface = "Microsoft Himalaya"
            };
            A.SupplementalFont supplementalFont48 = new A.SupplementalFont()
            {
                Script = "Thaa", Typeface = "MV Boli"
            };
            A.SupplementalFont supplementalFont49 = new A.SupplementalFont()
            {
                Script = "Deva", Typeface = "Mangal"
            };
            A.SupplementalFont supplementalFont50 = new A.SupplementalFont()
            {
                Script = "Telu", Typeface = "Gautami"
            };
            A.SupplementalFont supplementalFont51 = new A.SupplementalFont()
            {
                Script = "Taml", Typeface = "Latha"
            };
            A.SupplementalFont supplementalFont52 = new A.SupplementalFont()
            {
                Script = "Syrc", Typeface = "Estrangelo Edessa"
            };
            A.SupplementalFont supplementalFont53 = new A.SupplementalFont()
            {
                Script = "Orya", Typeface = "Kalinga"
            };
            A.SupplementalFont supplementalFont54 = new A.SupplementalFont()
            {
                Script = "Mlym", Typeface = "Kartika"
            };
            A.SupplementalFont supplementalFont55 = new A.SupplementalFont()
            {
                Script = "Laoo", Typeface = "DokChampa"
            };
            A.SupplementalFont supplementalFont56 = new A.SupplementalFont()
            {
                Script = "Sinh", Typeface = "Iskoola Pota"
            };
            A.SupplementalFont supplementalFont57 = new A.SupplementalFont()
            {
                Script = "Mong", Typeface = "Mongolian Baiti"
            };
            A.SupplementalFont supplementalFont58 = new A.SupplementalFont()
            {
                Script = "Viet", Typeface = "Arial"
            };
            A.SupplementalFont supplementalFont59 = new A.SupplementalFont()
            {
                Script = "Uigh", Typeface = "Microsoft Uighur"
            };
            A.SupplementalFont supplementalFont60 = new A.SupplementalFont()
            {
                Script = "Geor", Typeface = "Sylfaen"
            };

            minorFont1.Append(latinFont21);
            minorFont1.Append(eastAsianFont21);
            minorFont1.Append(complexScriptFont21);
            minorFont1.Append(supplementalFont31);
            minorFont1.Append(supplementalFont32);
            minorFont1.Append(supplementalFont33);
            minorFont1.Append(supplementalFont34);
            minorFont1.Append(supplementalFont35);
            minorFont1.Append(supplementalFont36);
            minorFont1.Append(supplementalFont37);
            minorFont1.Append(supplementalFont38);
            minorFont1.Append(supplementalFont39);
            minorFont1.Append(supplementalFont40);
            minorFont1.Append(supplementalFont41);
            minorFont1.Append(supplementalFont42);
            minorFont1.Append(supplementalFont43);
            minorFont1.Append(supplementalFont44);
            minorFont1.Append(supplementalFont45);
            minorFont1.Append(supplementalFont46);
            minorFont1.Append(supplementalFont47);
            minorFont1.Append(supplementalFont48);
            minorFont1.Append(supplementalFont49);
            minorFont1.Append(supplementalFont50);
            minorFont1.Append(supplementalFont51);
            minorFont1.Append(supplementalFont52);
            minorFont1.Append(supplementalFont53);
            minorFont1.Append(supplementalFont54);
            minorFont1.Append(supplementalFont55);
            minorFont1.Append(supplementalFont56);
            minorFont1.Append(supplementalFont57);
            minorFont1.Append(supplementalFont58);
            minorFont1.Append(supplementalFont59);
            minorFont1.Append(supplementalFont60);

            fontScheme1.Append(majorFont1);
            fontScheme1.Append(minorFont1);

            A.FormatScheme formatScheme1 = new A.FormatScheme()
            {
                Name = "Office テーマ"
            };

            A.FillStyleList fillStyleList1 = new A.FillStyleList();

            A.SolidFill   solidFill32   = new A.SolidFill();
            A.SchemeColor schemeColor33 = new A.SchemeColor()
            {
                Val = A.SchemeColorValues.PhColor
            };

            solidFill32.Append(schemeColor33);

            A.GradientFill gradientFill1 = new A.GradientFill()
            {
                RotateWithShape = true
            };

            A.GradientStopList gradientStopList1 = new A.GradientStopList();

            A.GradientStop gradientStop1 = new A.GradientStop()
            {
                Position = 0
            };

            A.SchemeColor schemeColor34 = new A.SchemeColor()
            {
                Val = A.SchemeColorValues.PhColor
            };
            A.LuminanceModulation luminanceModulation1 = new A.LuminanceModulation()
            {
                Val = 110000
            };
            A.SaturationModulation saturationModulation1 = new A.SaturationModulation()
            {
                Val = 105000
            };
            A.Tint tint12 = new A.Tint()
            {
                Val = 67000
            };

            schemeColor34.Append(luminanceModulation1);
            schemeColor34.Append(saturationModulation1);
            schemeColor34.Append(tint12);

            gradientStop1.Append(schemeColor34);

            A.GradientStop gradientStop2 = new A.GradientStop()
            {
                Position = 50000
            };

            A.SchemeColor schemeColor35 = new A.SchemeColor()
            {
                Val = A.SchemeColorValues.PhColor
            };
            A.LuminanceModulation luminanceModulation2 = new A.LuminanceModulation()
            {
                Val = 105000
            };
            A.SaturationModulation saturationModulation2 = new A.SaturationModulation()
            {
                Val = 103000
            };
            A.Tint tint13 = new A.Tint()
            {
                Val = 73000
            };

            schemeColor35.Append(luminanceModulation2);
            schemeColor35.Append(saturationModulation2);
            schemeColor35.Append(tint13);

            gradientStop2.Append(schemeColor35);

            A.GradientStop gradientStop3 = new A.GradientStop()
            {
                Position = 100000
            };

            A.SchemeColor schemeColor36 = new A.SchemeColor()
            {
                Val = A.SchemeColorValues.PhColor
            };
            A.LuminanceModulation luminanceModulation3 = new A.LuminanceModulation()
            {
                Val = 105000
            };
            A.SaturationModulation saturationModulation3 = new A.SaturationModulation()
            {
                Val = 109000
            };
            A.Tint tint14 = new A.Tint()
            {
                Val = 81000
            };

            schemeColor36.Append(luminanceModulation3);
            schemeColor36.Append(saturationModulation3);
            schemeColor36.Append(tint14);

            gradientStop3.Append(schemeColor36);

            gradientStopList1.Append(gradientStop1);
            gradientStopList1.Append(gradientStop2);
            gradientStopList1.Append(gradientStop3);
            A.LinearGradientFill linearGradientFill1 = new A.LinearGradientFill()
            {
                Angle = 5400000, Scaled = false
            };

            gradientFill1.Append(gradientStopList1);
            gradientFill1.Append(linearGradientFill1);

            A.GradientFill gradientFill2 = new A.GradientFill()
            {
                RotateWithShape = true
            };

            A.GradientStopList gradientStopList2 = new A.GradientStopList();

            A.GradientStop gradientStop4 = new A.GradientStop()
            {
                Position = 0
            };

            A.SchemeColor schemeColor37 = new A.SchemeColor()
            {
                Val = A.SchemeColorValues.PhColor
            };
            A.SaturationModulation saturationModulation4 = new A.SaturationModulation()
            {
                Val = 103000
            };
            A.LuminanceModulation luminanceModulation4 = new A.LuminanceModulation()
            {
                Val = 102000
            };
            A.Tint tint15 = new A.Tint()
            {
                Val = 94000
            };

            schemeColor37.Append(saturationModulation4);
            schemeColor37.Append(luminanceModulation4);
            schemeColor37.Append(tint15);

            gradientStop4.Append(schemeColor37);

            A.GradientStop gradientStop5 = new A.GradientStop()
            {
                Position = 50000
            };

            A.SchemeColor schemeColor38 = new A.SchemeColor()
            {
                Val = A.SchemeColorValues.PhColor
            };
            A.SaturationModulation saturationModulation5 = new A.SaturationModulation()
            {
                Val = 110000
            };
            A.LuminanceModulation luminanceModulation5 = new A.LuminanceModulation()
            {
                Val = 100000
            };
            A.Shade shade1 = new A.Shade()
            {
                Val = 100000
            };

            schemeColor38.Append(saturationModulation5);
            schemeColor38.Append(luminanceModulation5);
            schemeColor38.Append(shade1);

            gradientStop5.Append(schemeColor38);

            A.GradientStop gradientStop6 = new A.GradientStop()
            {
                Position = 100000
            };

            A.SchemeColor schemeColor39 = new A.SchemeColor()
            {
                Val = A.SchemeColorValues.PhColor
            };
            A.LuminanceModulation luminanceModulation6 = new A.LuminanceModulation()
            {
                Val = 99000
            };
            A.SaturationModulation saturationModulation6 = new A.SaturationModulation()
            {
                Val = 120000
            };
            A.Shade shade2 = new A.Shade()
            {
                Val = 78000
            };

            schemeColor39.Append(luminanceModulation6);
            schemeColor39.Append(saturationModulation6);
            schemeColor39.Append(shade2);

            gradientStop6.Append(schemeColor39);

            gradientStopList2.Append(gradientStop4);
            gradientStopList2.Append(gradientStop5);
            gradientStopList2.Append(gradientStop6);
            A.LinearGradientFill linearGradientFill2 = new A.LinearGradientFill()
            {
                Angle = 5400000, Scaled = false
            };

            gradientFill2.Append(gradientStopList2);
            gradientFill2.Append(linearGradientFill2);

            fillStyleList1.Append(solidFill32);
            fillStyleList1.Append(gradientFill1);
            fillStyleList1.Append(gradientFill2);

            A.LineStyleList lineStyleList1 = new A.LineStyleList();

            A.Outline outline1 = new A.Outline()
            {
                Width = 6350, CapType = A.LineCapValues.Flat, CompoundLineType = A.CompoundLineValues.Single, Alignment = A.PenAlignmentValues.Center
            };

            A.SolidFill   solidFill33   = new A.SolidFill();
            A.SchemeColor schemeColor40 = new A.SchemeColor()
            {
                Val = A.SchemeColorValues.PhColor
            };

            solidFill33.Append(schemeColor40);
            A.PresetDash presetDash1 = new A.PresetDash()
            {
                Val = A.PresetLineDashValues.Solid
            };
            A.Miter miter1 = new A.Miter()
            {
                Limit = 800000
            };

            outline1.Append(solidFill33);
            outline1.Append(presetDash1);
            outline1.Append(miter1);

            A.Outline outline2 = new A.Outline()
            {
                Width = 12700, CapType = A.LineCapValues.Flat, CompoundLineType = A.CompoundLineValues.Single, Alignment = A.PenAlignmentValues.Center
            };

            A.SolidFill   solidFill34   = new A.SolidFill();
            A.SchemeColor schemeColor41 = new A.SchemeColor()
            {
                Val = A.SchemeColorValues.PhColor
            };

            solidFill34.Append(schemeColor41);
            A.PresetDash presetDash2 = new A.PresetDash()
            {
                Val = A.PresetLineDashValues.Solid
            };
            A.Miter miter2 = new A.Miter()
            {
                Limit = 800000
            };

            outline2.Append(solidFill34);
            outline2.Append(presetDash2);
            outline2.Append(miter2);

            A.Outline outline3 = new A.Outline()
            {
                Width = 19050, CapType = A.LineCapValues.Flat, CompoundLineType = A.CompoundLineValues.Single, Alignment = A.PenAlignmentValues.Center
            };

            A.SolidFill   solidFill35   = new A.SolidFill();
            A.SchemeColor schemeColor42 = new A.SchemeColor()
            {
                Val = A.SchemeColorValues.PhColor
            };

            solidFill35.Append(schemeColor42);
            A.PresetDash presetDash3 = new A.PresetDash()
            {
                Val = A.PresetLineDashValues.Solid
            };
            A.Miter miter3 = new A.Miter()
            {
                Limit = 800000
            };

            outline3.Append(solidFill35);
            outline3.Append(presetDash3);
            outline3.Append(miter3);

            lineStyleList1.Append(outline1);
            lineStyleList1.Append(outline2);
            lineStyleList1.Append(outline3);

            A.EffectStyleList effectStyleList1 = new A.EffectStyleList();

            A.EffectStyle effectStyle1 = new A.EffectStyle();
            A.EffectList  effectList1  = new A.EffectList();

            effectStyle1.Append(effectList1);

            A.EffectStyle effectStyle2 = new A.EffectStyle();
            A.EffectList  effectList2  = new A.EffectList();

            effectStyle2.Append(effectList2);

            A.EffectStyle effectStyle3 = new A.EffectStyle();

            A.EffectList effectList3 = new A.EffectList();

            A.OuterShadow outerShadow1 = new A.OuterShadow()
            {
                BlurRadius = 57150L, Distance = 19050L, Direction = 5400000, Alignment = A.RectangleAlignmentValues.Center, RotateWithShape = false
            };

            A.RgbColorModelHex rgbColorModelHex11 = new A.RgbColorModelHex()
            {
                Val = "000000"
            };
            A.Alpha alpha1 = new A.Alpha()
            {
                Val = 63000
            };

            rgbColorModelHex11.Append(alpha1);

            outerShadow1.Append(rgbColorModelHex11);

            effectList3.Append(outerShadow1);

            effectStyle3.Append(effectList3);

            effectStyleList1.Append(effectStyle1);
            effectStyleList1.Append(effectStyle2);
            effectStyleList1.Append(effectStyle3);

            A.BackgroundFillStyleList backgroundFillStyleList1 = new A.BackgroundFillStyleList();

            A.SolidFill   solidFill36   = new A.SolidFill();
            A.SchemeColor schemeColor43 = new A.SchemeColor()
            {
                Val = A.SchemeColorValues.PhColor
            };

            solidFill36.Append(schemeColor43);

            A.SolidFill solidFill37 = new A.SolidFill();

            A.SchemeColor schemeColor44 = new A.SchemeColor()
            {
                Val = A.SchemeColorValues.PhColor
            };
            A.Tint tint16 = new A.Tint()
            {
                Val = 95000
            };
            A.SaturationModulation saturationModulation7 = new A.SaturationModulation()
            {
                Val = 170000
            };

            schemeColor44.Append(tint16);
            schemeColor44.Append(saturationModulation7);

            solidFill37.Append(schemeColor44);

            A.GradientFill gradientFill3 = new A.GradientFill()
            {
                RotateWithShape = true
            };

            A.GradientStopList gradientStopList3 = new A.GradientStopList();

            A.GradientStop gradientStop7 = new A.GradientStop()
            {
                Position = 0
            };

            A.SchemeColor schemeColor45 = new A.SchemeColor()
            {
                Val = A.SchemeColorValues.PhColor
            };
            A.Tint tint17 = new A.Tint()
            {
                Val = 93000
            };
            A.SaturationModulation saturationModulation8 = new A.SaturationModulation()
            {
                Val = 150000
            };
            A.Shade shade3 = new A.Shade()
            {
                Val = 98000
            };
            A.LuminanceModulation luminanceModulation7 = new A.LuminanceModulation()
            {
                Val = 102000
            };

            schemeColor45.Append(tint17);
            schemeColor45.Append(saturationModulation8);
            schemeColor45.Append(shade3);
            schemeColor45.Append(luminanceModulation7);

            gradientStop7.Append(schemeColor45);

            A.GradientStop gradientStop8 = new A.GradientStop()
            {
                Position = 50000
            };

            A.SchemeColor schemeColor46 = new A.SchemeColor()
            {
                Val = A.SchemeColorValues.PhColor
            };
            A.Tint tint18 = new A.Tint()
            {
                Val = 98000
            };
            A.SaturationModulation saturationModulation9 = new A.SaturationModulation()
            {
                Val = 130000
            };
            A.Shade shade4 = new A.Shade()
            {
                Val = 90000
            };
            A.LuminanceModulation luminanceModulation8 = new A.LuminanceModulation()
            {
                Val = 103000
            };

            schemeColor46.Append(tint18);
            schemeColor46.Append(saturationModulation9);
            schemeColor46.Append(shade4);
            schemeColor46.Append(luminanceModulation8);

            gradientStop8.Append(schemeColor46);

            A.GradientStop gradientStop9 = new A.GradientStop()
            {
                Position = 100000
            };

            A.SchemeColor schemeColor47 = new A.SchemeColor()
            {
                Val = A.SchemeColorValues.PhColor
            };
            A.Shade shade5 = new A.Shade()
            {
                Val = 63000
            };
            A.SaturationModulation saturationModulation10 = new A.SaturationModulation()
            {
                Val = 120000
            };

            schemeColor47.Append(shade5);
            schemeColor47.Append(saturationModulation10);

            gradientStop9.Append(schemeColor47);

            gradientStopList3.Append(gradientStop7);
            gradientStopList3.Append(gradientStop8);
            gradientStopList3.Append(gradientStop9);
            A.LinearGradientFill linearGradientFill3 = new A.LinearGradientFill()
            {
                Angle = 5400000, Scaled = false
            };

            gradientFill3.Append(gradientStopList3);
            gradientFill3.Append(linearGradientFill3);

            backgroundFillStyleList1.Append(solidFill36);
            backgroundFillStyleList1.Append(solidFill37);
            backgroundFillStyleList1.Append(gradientFill3);

            formatScheme1.Append(fillStyleList1);
            formatScheme1.Append(lineStyleList1);
            formatScheme1.Append(effectStyleList1);
            formatScheme1.Append(backgroundFillStyleList1);

            themeElements1.Append(colorScheme1);
            themeElements1.Append(fontScheme1);
            themeElements1.Append(formatScheme1);
            A.ObjectDefaults       objectDefaults1       = new A.ObjectDefaults();
            A.ExtraColorSchemeList extraColorSchemeList1 = new A.ExtraColorSchemeList();

            A.OfficeStyleSheetExtensionList officeStyleSheetExtensionList1 = new A.OfficeStyleSheetExtensionList();

            A.OfficeStyleSheetExtension officeStyleSheetExtension1 = new A.OfficeStyleSheetExtension()
            {
                Uri = "{05A4C25C-085E-4340-85A3-A5531E510DB2}"
            };

            Thm15.ThemeFamily themeFamily1 = new Thm15.ThemeFamily()
            {
                Name = "Office Theme", Id = "{62F939B6-93AF-4DB8-9C6B-D6C7DFDC589F}", Vid = "{4A3C46E8-61CC-4603-A589-7422A47A8E4A}"
            };
            themeFamily1.AddNamespaceDeclaration("thm15", "http://schemas.microsoft.com/office/thememl/2012/main");

            officeStyleSheetExtension1.Append(themeFamily1);

            officeStyleSheetExtensionList1.Append(officeStyleSheetExtension1);

            theme1.Append(themeElements1);
            theme1.Append(objectDefaults1);
            theme1.Append(extraColorSchemeList1);
            theme1.Append(officeStyleSheetExtensionList1);

            themePart1.Theme = theme1;
        }
示例#2
0
文件: Memo.cs 项目: crazytan/Memo
        // Generates content of themePart1.
        private static void GenerateThemePart1Content(ThemePart themePart1)
        {
            A.Theme theme1 = new A.Theme() { Name = "Office 主题" };
            theme1.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main");

            A.ThemeElements themeElements1 = new A.ThemeElements();

            A.ColorScheme colorScheme1 = new A.ColorScheme() { Name = "Office" };

            A.Dark1Color dark1Color1 = new A.Dark1Color();
            A.SystemColor systemColor1 = new A.SystemColor() { Val = A.SystemColorValues.WindowText, LastColor = "000000" };

            dark1Color1.Append(systemColor1);

            A.Light1Color light1Color1 = new A.Light1Color();
            A.SystemColor systemColor2 = new A.SystemColor() { Val = A.SystemColorValues.Window, LastColor = "FFFFFF" };

            light1Color1.Append(systemColor2);

            A.Dark2Color dark2Color1 = new A.Dark2Color();
            A.RgbColorModelHex rgbColorModelHex1 = new A.RgbColorModelHex() { Val = "44546A" };

            dark2Color1.Append(rgbColorModelHex1);

            A.Light2Color light2Color1 = new A.Light2Color();
            A.RgbColorModelHex rgbColorModelHex2 = new A.RgbColorModelHex() { Val = "E7E6E6" };

            light2Color1.Append(rgbColorModelHex2);

            A.Accent1Color accent1Color1 = new A.Accent1Color();
            A.RgbColorModelHex rgbColorModelHex3 = new A.RgbColorModelHex() { Val = "5B9BD5" };

            accent1Color1.Append(rgbColorModelHex3);

            A.Accent2Color accent2Color1 = new A.Accent2Color();
            A.RgbColorModelHex rgbColorModelHex4 = new A.RgbColorModelHex() { Val = "ED7D31" };

            accent2Color1.Append(rgbColorModelHex4);

            A.Accent3Color accent3Color1 = new A.Accent3Color();
            A.RgbColorModelHex rgbColorModelHex5 = new A.RgbColorModelHex() { Val = "A5A5A5" };

            accent3Color1.Append(rgbColorModelHex5);

            A.Accent4Color accent4Color1 = new A.Accent4Color();
            A.RgbColorModelHex rgbColorModelHex6 = new A.RgbColorModelHex() { Val = "FFC000" };

            accent4Color1.Append(rgbColorModelHex6);

            A.Accent5Color accent5Color1 = new A.Accent5Color();
            A.RgbColorModelHex rgbColorModelHex7 = new A.RgbColorModelHex() { Val = "4472C4" };

            accent5Color1.Append(rgbColorModelHex7);

            A.Accent6Color accent6Color1 = new A.Accent6Color();
            A.RgbColorModelHex rgbColorModelHex8 = new A.RgbColorModelHex() { Val = "70AD47" };

            accent6Color1.Append(rgbColorModelHex8);

            A.Hyperlink hyperlink1 = new A.Hyperlink();
            A.RgbColorModelHex rgbColorModelHex9 = new A.RgbColorModelHex() { Val = "0563C1" };

            hyperlink1.Append(rgbColorModelHex9);

            A.FollowedHyperlinkColor followedHyperlinkColor1 = new A.FollowedHyperlinkColor();
            A.RgbColorModelHex rgbColorModelHex10 = new A.RgbColorModelHex() { Val = "954F72" };

            followedHyperlinkColor1.Append(rgbColorModelHex10);

            colorScheme1.Append(dark1Color1);
            colorScheme1.Append(light1Color1);
            colorScheme1.Append(dark2Color1);
            colorScheme1.Append(light2Color1);
            colorScheme1.Append(accent1Color1);
            colorScheme1.Append(accent2Color1);
            colorScheme1.Append(accent3Color1);
            colorScheme1.Append(accent4Color1);
            colorScheme1.Append(accent5Color1);
            colorScheme1.Append(accent6Color1);
            colorScheme1.Append(hyperlink1);
            colorScheme1.Append(followedHyperlinkColor1);

            A.FontScheme fontScheme1 = new A.FontScheme() { Name = "Office" };

            A.MajorFont majorFont1 = new A.MajorFont();
            A.LatinFont latinFont1 = new A.LatinFont() { Typeface = "Calibri Light", Panose = "020F0302020204030204" };
            A.EastAsianFont eastAsianFont1 = new A.EastAsianFont() { Typeface = "" };
            A.ComplexScriptFont complexScriptFont1 = new A.ComplexScriptFont() { Typeface = "" };
            A.SupplementalFont supplementalFont1 = new A.SupplementalFont() { Script = "Jpan", Typeface = "MS ゴシック" };
            A.SupplementalFont supplementalFont2 = new A.SupplementalFont() { Script = "Hang", Typeface = "맑은 고딕" };
            A.SupplementalFont supplementalFont3 = new A.SupplementalFont() { Script = "Hans", Typeface = "宋体" };
            A.SupplementalFont supplementalFont4 = new A.SupplementalFont() { Script = "Hant", Typeface = "新細明體" };
            A.SupplementalFont supplementalFont5 = new A.SupplementalFont() { Script = "Arab", Typeface = "Times New Roman" };
            A.SupplementalFont supplementalFont6 = new A.SupplementalFont() { Script = "Hebr", Typeface = "Times New Roman" };
            A.SupplementalFont supplementalFont7 = new A.SupplementalFont() { Script = "Thai", Typeface = "Angsana New" };
            A.SupplementalFont supplementalFont8 = new A.SupplementalFont() { Script = "Ethi", Typeface = "Nyala" };
            A.SupplementalFont supplementalFont9 = new A.SupplementalFont() { Script = "Beng", Typeface = "Vrinda" };
            A.SupplementalFont supplementalFont10 = new A.SupplementalFont() { Script = "Gujr", Typeface = "Shruti" };
            A.SupplementalFont supplementalFont11 = new A.SupplementalFont() { Script = "Khmr", Typeface = "MoolBoran" };
            A.SupplementalFont supplementalFont12 = new A.SupplementalFont() { Script = "Knda", Typeface = "Tunga" };
            A.SupplementalFont supplementalFont13 = new A.SupplementalFont() { Script = "Guru", Typeface = "Raavi" };
            A.SupplementalFont supplementalFont14 = new A.SupplementalFont() { Script = "Cans", Typeface = "Euphemia" };
            A.SupplementalFont supplementalFont15 = new A.SupplementalFont() { Script = "Cher", Typeface = "Plantagenet Cherokee" };
            A.SupplementalFont supplementalFont16 = new A.SupplementalFont() { Script = "Yiii", Typeface = "Microsoft Yi Baiti" };
            A.SupplementalFont supplementalFont17 = new A.SupplementalFont() { Script = "Tibt", Typeface = "Microsoft Himalaya" };
            A.SupplementalFont supplementalFont18 = new A.SupplementalFont() { Script = "Thaa", Typeface = "MV Boli" };
            A.SupplementalFont supplementalFont19 = new A.SupplementalFont() { Script = "Deva", Typeface = "Mangal" };
            A.SupplementalFont supplementalFont20 = new A.SupplementalFont() { Script = "Telu", Typeface = "Gautami" };
            A.SupplementalFont supplementalFont21 = new A.SupplementalFont() { Script = "Taml", Typeface = "Latha" };
            A.SupplementalFont supplementalFont22 = new A.SupplementalFont() { Script = "Syrc", Typeface = "Estrangelo Edessa" };
            A.SupplementalFont supplementalFont23 = new A.SupplementalFont() { Script = "Orya", Typeface = "Kalinga" };
            A.SupplementalFont supplementalFont24 = new A.SupplementalFont() { Script = "Mlym", Typeface = "Kartika" };
            A.SupplementalFont supplementalFont25 = new A.SupplementalFont() { Script = "Laoo", Typeface = "DokChampa" };
            A.SupplementalFont supplementalFont26 = new A.SupplementalFont() { Script = "Sinh", Typeface = "Iskoola Pota" };
            A.SupplementalFont supplementalFont27 = new A.SupplementalFont() { Script = "Mong", Typeface = "Mongolian Baiti" };
            A.SupplementalFont supplementalFont28 = new A.SupplementalFont() { Script = "Viet", Typeface = "Times New Roman" };
            A.SupplementalFont supplementalFont29 = new A.SupplementalFont() { Script = "Uigh", Typeface = "Microsoft Uighur" };
            A.SupplementalFont supplementalFont30 = new A.SupplementalFont() { Script = "Geor", Typeface = "Sylfaen" };

            majorFont1.Append(latinFont1);
            majorFont1.Append(eastAsianFont1);
            majorFont1.Append(complexScriptFont1);
            majorFont1.Append(supplementalFont1);
            majorFont1.Append(supplementalFont2);
            majorFont1.Append(supplementalFont3);
            majorFont1.Append(supplementalFont4);
            majorFont1.Append(supplementalFont5);
            majorFont1.Append(supplementalFont6);
            majorFont1.Append(supplementalFont7);
            majorFont1.Append(supplementalFont8);
            majorFont1.Append(supplementalFont9);
            majorFont1.Append(supplementalFont10);
            majorFont1.Append(supplementalFont11);
            majorFont1.Append(supplementalFont12);
            majorFont1.Append(supplementalFont13);
            majorFont1.Append(supplementalFont14);
            majorFont1.Append(supplementalFont15);
            majorFont1.Append(supplementalFont16);
            majorFont1.Append(supplementalFont17);
            majorFont1.Append(supplementalFont18);
            majorFont1.Append(supplementalFont19);
            majorFont1.Append(supplementalFont20);
            majorFont1.Append(supplementalFont21);
            majorFont1.Append(supplementalFont22);
            majorFont1.Append(supplementalFont23);
            majorFont1.Append(supplementalFont24);
            majorFont1.Append(supplementalFont25);
            majorFont1.Append(supplementalFont26);
            majorFont1.Append(supplementalFont27);
            majorFont1.Append(supplementalFont28);
            majorFont1.Append(supplementalFont29);
            majorFont1.Append(supplementalFont30);

            A.MinorFont minorFont1 = new A.MinorFont();
            A.LatinFont latinFont2 = new A.LatinFont() { Typeface = "Calibri", Panose = "020F0502020204030204" };
            A.EastAsianFont eastAsianFont2 = new A.EastAsianFont() { Typeface = "" };
            A.ComplexScriptFont complexScriptFont2 = new A.ComplexScriptFont() { Typeface = "" };
            A.SupplementalFont supplementalFont31 = new A.SupplementalFont() { Script = "Jpan", Typeface = "MS 明朝" };
            A.SupplementalFont supplementalFont32 = new A.SupplementalFont() { Script = "Hang", Typeface = "맑은 고딕" };
            A.SupplementalFont supplementalFont33 = new A.SupplementalFont() { Script = "Hans", Typeface = "宋体" };
            A.SupplementalFont supplementalFont34 = new A.SupplementalFont() { Script = "Hant", Typeface = "新細明體" };
            A.SupplementalFont supplementalFont35 = new A.SupplementalFont() { Script = "Arab", Typeface = "Arial" };
            A.SupplementalFont supplementalFont36 = new A.SupplementalFont() { Script = "Hebr", Typeface = "Arial" };
            A.SupplementalFont supplementalFont37 = new A.SupplementalFont() { Script = "Thai", Typeface = "Cordia New" };
            A.SupplementalFont supplementalFont38 = new A.SupplementalFont() { Script = "Ethi", Typeface = "Nyala" };
            A.SupplementalFont supplementalFont39 = new A.SupplementalFont() { Script = "Beng", Typeface = "Vrinda" };
            A.SupplementalFont supplementalFont40 = new A.SupplementalFont() { Script = "Gujr", Typeface = "Shruti" };
            A.SupplementalFont supplementalFont41 = new A.SupplementalFont() { Script = "Khmr", Typeface = "DaunPenh" };
            A.SupplementalFont supplementalFont42 = new A.SupplementalFont() { Script = "Knda", Typeface = "Tunga" };
            A.SupplementalFont supplementalFont43 = new A.SupplementalFont() { Script = "Guru", Typeface = "Raavi" };
            A.SupplementalFont supplementalFont44 = new A.SupplementalFont() { Script = "Cans", Typeface = "Euphemia" };
            A.SupplementalFont supplementalFont45 = new A.SupplementalFont() { Script = "Cher", Typeface = "Plantagenet Cherokee" };
            A.SupplementalFont supplementalFont46 = new A.SupplementalFont() { Script = "Yiii", Typeface = "Microsoft Yi Baiti" };
            A.SupplementalFont supplementalFont47 = new A.SupplementalFont() { Script = "Tibt", Typeface = "Microsoft Himalaya" };
            A.SupplementalFont supplementalFont48 = new A.SupplementalFont() { Script = "Thaa", Typeface = "MV Boli" };
            A.SupplementalFont supplementalFont49 = new A.SupplementalFont() { Script = "Deva", Typeface = "Mangal" };
            A.SupplementalFont supplementalFont50 = new A.SupplementalFont() { Script = "Telu", Typeface = "Gautami" };
            A.SupplementalFont supplementalFont51 = new A.SupplementalFont() { Script = "Taml", Typeface = "Latha" };
            A.SupplementalFont supplementalFont52 = new A.SupplementalFont() { Script = "Syrc", Typeface = "Estrangelo Edessa" };
            A.SupplementalFont supplementalFont53 = new A.SupplementalFont() { Script = "Orya", Typeface = "Kalinga" };
            A.SupplementalFont supplementalFont54 = new A.SupplementalFont() { Script = "Mlym", Typeface = "Kartika" };
            A.SupplementalFont supplementalFont55 = new A.SupplementalFont() { Script = "Laoo", Typeface = "DokChampa" };
            A.SupplementalFont supplementalFont56 = new A.SupplementalFont() { Script = "Sinh", Typeface = "Iskoola Pota" };
            A.SupplementalFont supplementalFont57 = new A.SupplementalFont() { Script = "Mong", Typeface = "Mongolian Baiti" };
            A.SupplementalFont supplementalFont58 = new A.SupplementalFont() { Script = "Viet", Typeface = "Arial" };
            A.SupplementalFont supplementalFont59 = new A.SupplementalFont() { Script = "Uigh", Typeface = "Microsoft Uighur" };
            A.SupplementalFont supplementalFont60 = new A.SupplementalFont() { Script = "Geor", Typeface = "Sylfaen" };

            minorFont1.Append(latinFont2);
            minorFont1.Append(eastAsianFont2);
            minorFont1.Append(complexScriptFont2);
            minorFont1.Append(supplementalFont31);
            minorFont1.Append(supplementalFont32);
            minorFont1.Append(supplementalFont33);
            minorFont1.Append(supplementalFont34);
            minorFont1.Append(supplementalFont35);
            minorFont1.Append(supplementalFont36);
            minorFont1.Append(supplementalFont37);
            minorFont1.Append(supplementalFont38);
            minorFont1.Append(supplementalFont39);
            minorFont1.Append(supplementalFont40);
            minorFont1.Append(supplementalFont41);
            minorFont1.Append(supplementalFont42);
            minorFont1.Append(supplementalFont43);
            minorFont1.Append(supplementalFont44);
            minorFont1.Append(supplementalFont45);
            minorFont1.Append(supplementalFont46);
            minorFont1.Append(supplementalFont47);
            minorFont1.Append(supplementalFont48);
            minorFont1.Append(supplementalFont49);
            minorFont1.Append(supplementalFont50);
            minorFont1.Append(supplementalFont51);
            minorFont1.Append(supplementalFont52);
            minorFont1.Append(supplementalFont53);
            minorFont1.Append(supplementalFont54);
            minorFont1.Append(supplementalFont55);
            minorFont1.Append(supplementalFont56);
            minorFont1.Append(supplementalFont57);
            minorFont1.Append(supplementalFont58);
            minorFont1.Append(supplementalFont59);
            minorFont1.Append(supplementalFont60);

            fontScheme1.Append(majorFont1);
            fontScheme1.Append(minorFont1);

            A.FormatScheme formatScheme1 = new A.FormatScheme() { Name = "Office" };

            A.FillStyleList fillStyleList1 = new A.FillStyleList();

            A.SolidFill solidFill1 = new A.SolidFill();
            A.SchemeColor schemeColor1 = new A.SchemeColor() { Val = A.SchemeColorValues.PhColor };

            solidFill1.Append(schemeColor1);

            A.GradientFill gradientFill1 = new A.GradientFill() { RotateWithShape = true };

            A.GradientStopList gradientStopList1 = new A.GradientStopList();

            A.GradientStop gradientStop1 = new A.GradientStop() { Position = 0 };

            A.SchemeColor schemeColor2 = new A.SchemeColor() { Val = A.SchemeColorValues.PhColor };
            A.LuminanceModulation luminanceModulation1 = new A.LuminanceModulation() { Val = 110000 };
            A.SaturationModulation saturationModulation1 = new A.SaturationModulation() { Val = 105000 };
            A.Tint tint1 = new A.Tint() { Val = 67000 };

            schemeColor2.Append(luminanceModulation1);
            schemeColor2.Append(saturationModulation1);
            schemeColor2.Append(tint1);

            gradientStop1.Append(schemeColor2);

            A.GradientStop gradientStop2 = new A.GradientStop() { Position = 50000 };

            A.SchemeColor schemeColor3 = new A.SchemeColor() { Val = A.SchemeColorValues.PhColor };
            A.LuminanceModulation luminanceModulation2 = new A.LuminanceModulation() { Val = 105000 };
            A.SaturationModulation saturationModulation2 = new A.SaturationModulation() { Val = 103000 };
            A.Tint tint2 = new A.Tint() { Val = 73000 };

            schemeColor3.Append(luminanceModulation2);
            schemeColor3.Append(saturationModulation2);
            schemeColor3.Append(tint2);

            gradientStop2.Append(schemeColor3);

            A.GradientStop gradientStop3 = new A.GradientStop() { Position = 100000 };

            A.SchemeColor schemeColor4 = new A.SchemeColor() { Val = A.SchemeColorValues.PhColor };
            A.LuminanceModulation luminanceModulation3 = new A.LuminanceModulation() { Val = 105000 };
            A.SaturationModulation saturationModulation3 = new A.SaturationModulation() { Val = 109000 };
            A.Tint tint3 = new A.Tint() { Val = 81000 };

            schemeColor4.Append(luminanceModulation3);
            schemeColor4.Append(saturationModulation3);
            schemeColor4.Append(tint3);

            gradientStop3.Append(schemeColor4);

            gradientStopList1.Append(gradientStop1);
            gradientStopList1.Append(gradientStop2);
            gradientStopList1.Append(gradientStop3);
            A.LinearGradientFill linearGradientFill1 = new A.LinearGradientFill() { Angle = 5400000, Scaled = false };

            gradientFill1.Append(gradientStopList1);
            gradientFill1.Append(linearGradientFill1);

            A.GradientFill gradientFill2 = new A.GradientFill() { RotateWithShape = true };

            A.GradientStopList gradientStopList2 = new A.GradientStopList();

            A.GradientStop gradientStop4 = new A.GradientStop() { Position = 0 };

            A.SchemeColor schemeColor5 = new A.SchemeColor() { Val = A.SchemeColorValues.PhColor };
            A.SaturationModulation saturationModulation4 = new A.SaturationModulation() { Val = 103000 };
            A.LuminanceModulation luminanceModulation4 = new A.LuminanceModulation() { Val = 102000 };
            A.Tint tint4 = new A.Tint() { Val = 94000 };

            schemeColor5.Append(saturationModulation4);
            schemeColor5.Append(luminanceModulation4);
            schemeColor5.Append(tint4);

            gradientStop4.Append(schemeColor5);

            A.GradientStop gradientStop5 = new A.GradientStop() { Position = 50000 };

            A.SchemeColor schemeColor6 = new A.SchemeColor() { Val = A.SchemeColorValues.PhColor };
            A.SaturationModulation saturationModulation5 = new A.SaturationModulation() { Val = 110000 };
            A.LuminanceModulation luminanceModulation5 = new A.LuminanceModulation() { Val = 100000 };
            A.Shade shade1 = new A.Shade() { Val = 100000 };

            schemeColor6.Append(saturationModulation5);
            schemeColor6.Append(luminanceModulation5);
            schemeColor6.Append(shade1);

            gradientStop5.Append(schemeColor6);

            A.GradientStop gradientStop6 = new A.GradientStop() { Position = 100000 };

            A.SchemeColor schemeColor7 = new A.SchemeColor() { Val = A.SchemeColorValues.PhColor };
            A.LuminanceModulation luminanceModulation6 = new A.LuminanceModulation() { Val = 99000 };
            A.SaturationModulation saturationModulation6 = new A.SaturationModulation() { Val = 120000 };
            A.Shade shade2 = new A.Shade() { Val = 78000 };

            schemeColor7.Append(luminanceModulation6);
            schemeColor7.Append(saturationModulation6);
            schemeColor7.Append(shade2);

            gradientStop6.Append(schemeColor7);

            gradientStopList2.Append(gradientStop4);
            gradientStopList2.Append(gradientStop5);
            gradientStopList2.Append(gradientStop6);
            A.LinearGradientFill linearGradientFill2 = new A.LinearGradientFill() { Angle = 5400000, Scaled = false };

            gradientFill2.Append(gradientStopList2);
            gradientFill2.Append(linearGradientFill2);

            fillStyleList1.Append(solidFill1);
            fillStyleList1.Append(gradientFill1);
            fillStyleList1.Append(gradientFill2);

            A.LineStyleList lineStyleList1 = new A.LineStyleList();

            A.Outline outline1 = new A.Outline() { Width = 6350, CapType = A.LineCapValues.Flat, CompoundLineType = A.CompoundLineValues.Single, Alignment = A.PenAlignmentValues.Center };

            A.SolidFill solidFill2 = new A.SolidFill();
            A.SchemeColor schemeColor8 = new A.SchemeColor() { Val = A.SchemeColorValues.PhColor };

            solidFill2.Append(schemeColor8);
            A.PresetDash presetDash1 = new A.PresetDash() { Val = A.PresetLineDashValues.Solid };
            A.Miter miter1 = new A.Miter() { Limit = 800000 };

            outline1.Append(solidFill2);
            outline1.Append(presetDash1);
            outline1.Append(miter1);

            A.Outline outline2 = new A.Outline() { Width = 12700, CapType = A.LineCapValues.Flat, CompoundLineType = A.CompoundLineValues.Single, Alignment = A.PenAlignmentValues.Center };

            A.SolidFill solidFill3 = new A.SolidFill();
            A.SchemeColor schemeColor9 = new A.SchemeColor() { Val = A.SchemeColorValues.PhColor };

            solidFill3.Append(schemeColor9);
            A.PresetDash presetDash2 = new A.PresetDash() { Val = A.PresetLineDashValues.Solid };
            A.Miter miter2 = new A.Miter() { Limit = 800000 };

            outline2.Append(solidFill3);
            outline2.Append(presetDash2);
            outline2.Append(miter2);

            A.Outline outline3 = new A.Outline() { Width = 19050, CapType = A.LineCapValues.Flat, CompoundLineType = A.CompoundLineValues.Single, Alignment = A.PenAlignmentValues.Center };

            A.SolidFill solidFill4 = new A.SolidFill();
            A.SchemeColor schemeColor10 = new A.SchemeColor() { Val = A.SchemeColorValues.PhColor };

            solidFill4.Append(schemeColor10);
            A.PresetDash presetDash3 = new A.PresetDash() { Val = A.PresetLineDashValues.Solid };
            A.Miter miter3 = new A.Miter() { Limit = 800000 };

            outline3.Append(solidFill4);
            outline3.Append(presetDash3);
            outline3.Append(miter3);

            lineStyleList1.Append(outline1);
            lineStyleList1.Append(outline2);
            lineStyleList1.Append(outline3);

            A.EffectStyleList effectStyleList1 = new A.EffectStyleList();

            A.EffectStyle effectStyle1 = new A.EffectStyle();
            A.EffectList effectList1 = new A.EffectList();

            effectStyle1.Append(effectList1);

            A.EffectStyle effectStyle2 = new A.EffectStyle();
            A.EffectList effectList2 = new A.EffectList();

            effectStyle2.Append(effectList2);

            A.EffectStyle effectStyle3 = new A.EffectStyle();

            A.EffectList effectList3 = new A.EffectList();

            A.OuterShadow outerShadow1 = new A.OuterShadow() { BlurRadius = 57150L, Distance = 19050L, Direction = 5400000, Alignment = A.RectangleAlignmentValues.Center, RotateWithShape = false };

            A.RgbColorModelHex rgbColorModelHex11 = new A.RgbColorModelHex() { Val = "000000" };
            A.Alpha alpha1 = new A.Alpha() { Val = 63000 };

            rgbColorModelHex11.Append(alpha1);

            outerShadow1.Append(rgbColorModelHex11);

            effectList3.Append(outerShadow1);

            effectStyle3.Append(effectList3);

            effectStyleList1.Append(effectStyle1);
            effectStyleList1.Append(effectStyle2);
            effectStyleList1.Append(effectStyle3);

            A.BackgroundFillStyleList backgroundFillStyleList1 = new A.BackgroundFillStyleList();

            A.SolidFill solidFill5 = new A.SolidFill();
            A.SchemeColor schemeColor11 = new A.SchemeColor() { Val = A.SchemeColorValues.PhColor };

            solidFill5.Append(schemeColor11);

            A.SolidFill solidFill6 = new A.SolidFill();

            A.SchemeColor schemeColor12 = new A.SchemeColor() { Val = A.SchemeColorValues.PhColor };
            A.Tint tint5 = new A.Tint() { Val = 95000 };
            A.SaturationModulation saturationModulation7 = new A.SaturationModulation() { Val = 170000 };

            schemeColor12.Append(tint5);
            schemeColor12.Append(saturationModulation7);

            solidFill6.Append(schemeColor12);

            A.GradientFill gradientFill3 = new A.GradientFill() { RotateWithShape = true };

            A.GradientStopList gradientStopList3 = new A.GradientStopList();

            A.GradientStop gradientStop7 = new A.GradientStop() { Position = 0 };

            A.SchemeColor schemeColor13 = new A.SchemeColor() { Val = A.SchemeColorValues.PhColor };
            A.Tint tint6 = new A.Tint() { Val = 93000 };
            A.SaturationModulation saturationModulation8 = new A.SaturationModulation() { Val = 150000 };
            A.Shade shade3 = new A.Shade() { Val = 98000 };
            A.LuminanceModulation luminanceModulation7 = new A.LuminanceModulation() { Val = 102000 };

            schemeColor13.Append(tint6);
            schemeColor13.Append(saturationModulation8);
            schemeColor13.Append(shade3);
            schemeColor13.Append(luminanceModulation7);

            gradientStop7.Append(schemeColor13);

            A.GradientStop gradientStop8 = new A.GradientStop() { Position = 50000 };

            A.SchemeColor schemeColor14 = new A.SchemeColor() { Val = A.SchemeColorValues.PhColor };
            A.Tint tint7 = new A.Tint() { Val = 98000 };
            A.SaturationModulation saturationModulation9 = new A.SaturationModulation() { Val = 130000 };
            A.Shade shade4 = new A.Shade() { Val = 90000 };
            A.LuminanceModulation luminanceModulation8 = new A.LuminanceModulation() { Val = 103000 };

            schemeColor14.Append(tint7);
            schemeColor14.Append(saturationModulation9);
            schemeColor14.Append(shade4);
            schemeColor14.Append(luminanceModulation8);

            gradientStop8.Append(schemeColor14);

            A.GradientStop gradientStop9 = new A.GradientStop() { Position = 100000 };

            A.SchemeColor schemeColor15 = new A.SchemeColor() { Val = A.SchemeColorValues.PhColor };
            A.Shade shade5 = new A.Shade() { Val = 63000 };
            A.SaturationModulation saturationModulation10 = new A.SaturationModulation() { Val = 120000 };

            schemeColor15.Append(shade5);
            schemeColor15.Append(saturationModulation10);

            gradientStop9.Append(schemeColor15);

            gradientStopList3.Append(gradientStop7);
            gradientStopList3.Append(gradientStop8);
            gradientStopList3.Append(gradientStop9);
            A.LinearGradientFill linearGradientFill3 = new A.LinearGradientFill() { Angle = 5400000, Scaled = false };

            gradientFill3.Append(gradientStopList3);
            gradientFill3.Append(linearGradientFill3);

            backgroundFillStyleList1.Append(solidFill5);
            backgroundFillStyleList1.Append(solidFill6);
            backgroundFillStyleList1.Append(gradientFill3);

            formatScheme1.Append(fillStyleList1);
            formatScheme1.Append(lineStyleList1);
            formatScheme1.Append(effectStyleList1);
            formatScheme1.Append(backgroundFillStyleList1);

            themeElements1.Append(colorScheme1);
            themeElements1.Append(fontScheme1);
            themeElements1.Append(formatScheme1);
            A.ObjectDefaults objectDefaults1 = new A.ObjectDefaults();
            A.ExtraColorSchemeList extraColorSchemeList1 = new A.ExtraColorSchemeList();

            A.OfficeStyleSheetExtensionList officeStyleSheetExtensionList1 = new A.OfficeStyleSheetExtensionList();

            A.OfficeStyleSheetExtension officeStyleSheetExtension1 = new A.OfficeStyleSheetExtension() { Uri = "{05A4C25C-085E-4340-85A3-A5531E510DB2}" };

            Thm15.ThemeFamily themeFamily1 = new Thm15.ThemeFamily() { Name = "Office Theme", Id = "{62F939B6-93AF-4DB8-9C6B-D6C7DFDC589F}", Vid = "{4A3C46E8-61CC-4603-A589-7422A47A8E4A}" };
            themeFamily1.AddNamespaceDeclaration("thm15", "http://schemas.microsoft.com/office/thememl/2012/main");

            officeStyleSheetExtension1.Append(themeFamily1);

            officeStyleSheetExtensionList1.Append(officeStyleSheetExtension1);

            theme1.Append(themeElements1);
            theme1.Append(objectDefaults1);
            theme1.Append(extraColorSchemeList1);
            theme1.Append(officeStyleSheetExtensionList1);

            themePart1.Theme = theme1;
        }
示例#3
0
        // Generates content of themePart1.
        private void GenerateThemePart1Content(ThemePart themePart1)
        {
            A.Theme theme1 = new A.Theme(){ Name = "Slice" };
            theme1.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main");

            A.ThemeElements themeElements1 = new A.ThemeElements();

            A.ColorScheme colorScheme1 = new A.ColorScheme(){ Name = "Slice HD-RCA" };

            A.Dark1Color dark1Color1 = new A.Dark1Color();
            A.SystemColor systemColor1 = new A.SystemColor(){ Val = A.SystemColorValues.WindowText, LastColor = "000000" };

            dark1Color1.Append(systemColor1);

            A.Light1Color light1Color1 = new A.Light1Color();
            A.SystemColor systemColor2 = new A.SystemColor(){ Val = A.SystemColorValues.Window, LastColor = "FFFFFF" };

            light1Color1.Append(systemColor2);

            A.Dark2Color dark2Color1 = new A.Dark2Color();
            A.RgbColorModelHex rgbColorModelHex1 = new A.RgbColorModelHex(){ Val = "537D0B" };

            dark2Color1.Append(rgbColorModelHex1);

            A.Light2Color light2Color1 = new A.Light2Color();
            A.RgbColorModelHex rgbColorModelHex2 = new A.RgbColorModelHex(){ Val = "A9E257" };

            light2Color1.Append(rgbColorModelHex2);

            A.Accent1Color accent1Color1 = new A.Accent1Color();
            A.RgbColorModelHex rgbColorModelHex3 = new A.RgbColorModelHex(){ Val = "38540A" };

            accent1Color1.Append(rgbColorModelHex3);

            A.Accent2Color accent2Color1 = new A.Accent2Color();
            A.RgbColorModelHex rgbColorModelHex4 = new A.RgbColorModelHex(){ Val = "31A274" };

            accent2Color1.Append(rgbColorModelHex4);

            A.Accent3Color accent3Color1 = new A.Accent3Color();
            A.RgbColorModelHex rgbColorModelHex5 = new A.RgbColorModelHex(){ Val = "236073" };

            accent3Color1.Append(rgbColorModelHex5);

            A.Accent4Color accent4Color1 = new A.Accent4Color();
            A.RgbColorModelHex rgbColorModelHex6 = new A.RgbColorModelHex(){ Val = "6C4D90" };

            accent4Color1.Append(rgbColorModelHex6);

            A.Accent5Color accent5Color1 = new A.Accent5Color();
            A.RgbColorModelHex rgbColorModelHex7 = new A.RgbColorModelHex(){ Val = "983C27" };

            accent5Color1.Append(rgbColorModelHex7);

            A.Accent6Color accent6Color1 = new A.Accent6Color();
            A.RgbColorModelHex rgbColorModelHex8 = new A.RgbColorModelHex(){ Val = "CD811F" };

            accent6Color1.Append(rgbColorModelHex8);

            A.Hyperlink hyperlink1 = new A.Hyperlink();
            A.RgbColorModelHex rgbColorModelHex9 = new A.RgbColorModelHex(){ Val = "293F06" };

            hyperlink1.Append(rgbColorModelHex9);

            A.FollowedHyperlinkColor followedHyperlinkColor1 = new A.FollowedHyperlinkColor();
            A.RgbColorModelHex rgbColorModelHex10 = new A.RgbColorModelHex(){ Val = "68883A" };

            followedHyperlinkColor1.Append(rgbColorModelHex10);

            colorScheme1.Append(dark1Color1);
            colorScheme1.Append(light1Color1);
            colorScheme1.Append(dark2Color1);
            colorScheme1.Append(light2Color1);
            colorScheme1.Append(accent1Color1);
            colorScheme1.Append(accent2Color1);
            colorScheme1.Append(accent3Color1);
            colorScheme1.Append(accent4Color1);
            colorScheme1.Append(accent5Color1);
            colorScheme1.Append(accent6Color1);
            colorScheme1.Append(hyperlink1);
            colorScheme1.Append(followedHyperlinkColor1);

            A.FontScheme fontScheme1 = new A.FontScheme(){ Name = "Slice HD-RCA" };

            A.MajorFont majorFont1 = new A.MajorFont();
            A.LatinFont latinFont32 = new A.LatinFont(){ Typeface = "Century Gothic", Panose = "020B0502020202020204" };
            A.EastAsianFont eastAsianFont29 = new A.EastAsianFont(){ Typeface = "" };
            A.ComplexScriptFont complexScriptFont29 = new A.ComplexScriptFont(){ Typeface = "" };

            majorFont1.Append(latinFont32);
            majorFont1.Append(eastAsianFont29);
            majorFont1.Append(complexScriptFont29);

            A.MinorFont minorFont1 = new A.MinorFont();
            A.LatinFont latinFont33 = new A.LatinFont(){ Typeface = "Century Gothic", Panose = "020B0502020202020204" };
            A.EastAsianFont eastAsianFont30 = new A.EastAsianFont(){ Typeface = "" };
            A.ComplexScriptFont complexScriptFont30 = new A.ComplexScriptFont(){ Typeface = "" };

            minorFont1.Append(latinFont33);
            minorFont1.Append(eastAsianFont30);
            minorFont1.Append(complexScriptFont30);

            fontScheme1.Append(majorFont1);
            fontScheme1.Append(minorFont1);

            A.FormatScheme formatScheme1 = new A.FormatScheme(){ Name = "Slice HD-RCA" };

            A.FillStyleList fillStyleList1 = new A.FillStyleList();

            A.SolidFill solidFill73 = new A.SolidFill();
            A.SchemeColor schemeColor139 = new A.SchemeColor(){ Val = A.SchemeColorValues.PhColor };

            solidFill73.Append(schemeColor139);

            A.GradientFill gradientFill1 = new A.GradientFill(){ RotateWithShape = true };

            A.GradientStopList gradientStopList1 = new A.GradientStopList();

            A.GradientStop gradientStop1 = new A.GradientStop(){ Position = 0 };

            A.SchemeColor schemeColor140 = new A.SchemeColor(){ Val = A.SchemeColorValues.PhColor };
            A.Tint tint17 = new A.Tint(){ Val = 62000 };
            A.HueModulation hueModulation1 = new A.HueModulation(){ Val = 94000 };
            A.SaturationModulation saturationModulation1 = new A.SaturationModulation(){ Val = 140000 };
            A.LuminanceModulation luminanceModulation11 = new A.LuminanceModulation(){ Val = 110000 };

            schemeColor140.Append(tint17);
            schemeColor140.Append(hueModulation1);
            schemeColor140.Append(saturationModulation1);
            schemeColor140.Append(luminanceModulation11);

            gradientStop1.Append(schemeColor140);

            A.GradientStop gradientStop2 = new A.GradientStop(){ Position = 100000 };

            A.SchemeColor schemeColor141 = new A.SchemeColor(){ Val = A.SchemeColorValues.PhColor };
            A.Tint tint18 = new A.Tint(){ Val = 84000 };
            A.SaturationModulation saturationModulation2 = new A.SaturationModulation(){ Val = 160000 };

            schemeColor141.Append(tint18);
            schemeColor141.Append(saturationModulation2);

            gradientStop2.Append(schemeColor141);

            gradientStopList1.Append(gradientStop1);
            gradientStopList1.Append(gradientStop2);
            A.LinearGradientFill linearGradientFill1 = new A.LinearGradientFill(){ Angle = 5400000, Scaled = false };

            gradientFill1.Append(gradientStopList1);
            gradientFill1.Append(linearGradientFill1);

            A.GradientFill gradientFill2 = new A.GradientFill(){ RotateWithShape = true };

            A.GradientStopList gradientStopList2 = new A.GradientStopList();

            A.GradientStop gradientStop3 = new A.GradientStop(){ Position = 0 };

            A.SchemeColor schemeColor142 = new A.SchemeColor(){ Val = A.SchemeColorValues.PhColor };
            A.Tint tint19 = new A.Tint(){ Val = 98000 };
            A.HueModulation hueModulation2 = new A.HueModulation(){ Val = 94000 };
            A.SaturationModulation saturationModulation3 = new A.SaturationModulation(){ Val = 130000 };
            A.LuminanceModulation luminanceModulation12 = new A.LuminanceModulation(){ Val = 128000 };

            schemeColor142.Append(tint19);
            schemeColor142.Append(hueModulation2);
            schemeColor142.Append(saturationModulation3);
            schemeColor142.Append(luminanceModulation12);

            gradientStop3.Append(schemeColor142);

            A.GradientStop gradientStop4 = new A.GradientStop(){ Position = 100000 };

            A.SchemeColor schemeColor143 = new A.SchemeColor(){ Val = A.SchemeColorValues.PhColor };
            A.Shade shade1 = new A.Shade(){ Val = 94000 };
            A.LuminanceModulation luminanceModulation13 = new A.LuminanceModulation(){ Val = 88000 };

            schemeColor143.Append(shade1);
            schemeColor143.Append(luminanceModulation13);

            gradientStop4.Append(schemeColor143);

            gradientStopList2.Append(gradientStop3);
            gradientStopList2.Append(gradientStop4);
            A.LinearGradientFill linearGradientFill2 = new A.LinearGradientFill(){ Angle = 5400000, Scaled = false };

            gradientFill2.Append(gradientStopList2);
            gradientFill2.Append(linearGradientFill2);

            fillStyleList1.Append(solidFill73);
            fillStyleList1.Append(gradientFill1);
            fillStyleList1.Append(gradientFill2);

            A.LineStyleList lineStyleList1 = new A.LineStyleList();

            A.Outline outline17 = new A.Outline(){ Width = 9525, CapType = A.LineCapValues.Round, CompoundLineType = A.CompoundLineValues.Single, Alignment = A.PenAlignmentValues.Center };

            A.SolidFill solidFill74 = new A.SolidFill();

            A.SchemeColor schemeColor144 = new A.SchemeColor(){ Val = A.SchemeColorValues.PhColor };
            A.Tint tint20 = new A.Tint(){ Val = 76000 };
            A.Alpha alpha1 = new A.Alpha(){ Val = 60000 };
            A.HueModulation hueModulation3 = new A.HueModulation(){ Val = 94000 };

            schemeColor144.Append(tint20);
            schemeColor144.Append(alpha1);
            schemeColor144.Append(hueModulation3);

            solidFill74.Append(schemeColor144);
            A.PresetDash presetDash1 = new A.PresetDash(){ Val = A.PresetLineDashValues.Solid };

            outline17.Append(solidFill74);
            outline17.Append(presetDash1);

            A.Outline outline18 = new A.Outline(){ Width = 15875, CapType = A.LineCapValues.Round, CompoundLineType = A.CompoundLineValues.Single, Alignment = A.PenAlignmentValues.Center };

            A.SolidFill solidFill75 = new A.SolidFill();

            A.SchemeColor schemeColor145 = new A.SchemeColor(){ Val = A.SchemeColorValues.PhColor };
            A.HueModulation hueModulation4 = new A.HueModulation(){ Val = 94000 };

            schemeColor145.Append(hueModulation4);

            solidFill75.Append(schemeColor145);
            A.PresetDash presetDash2 = new A.PresetDash(){ Val = A.PresetLineDashValues.Solid };

            outline18.Append(solidFill75);
            outline18.Append(presetDash2);

            A.Outline outline19 = new A.Outline(){ Width = 28575, CapType = A.LineCapValues.Round, CompoundLineType = A.CompoundLineValues.Single, Alignment = A.PenAlignmentValues.Center };

            A.SolidFill solidFill76 = new A.SolidFill();
            A.SchemeColor schemeColor146 = new A.SchemeColor(){ Val = A.SchemeColorValues.PhColor };

            solidFill76.Append(schemeColor146);
            A.PresetDash presetDash3 = new A.PresetDash(){ Val = A.PresetLineDashValues.Solid };

            outline19.Append(solidFill76);
            outline19.Append(presetDash3);

            lineStyleList1.Append(outline17);
            lineStyleList1.Append(outline18);
            lineStyleList1.Append(outline19);

            A.EffectStyleList effectStyleList1 = new A.EffectStyleList();

            A.EffectStyle effectStyle1 = new A.EffectStyle();
            A.EffectList effectList12 = new A.EffectList();

            effectStyle1.Append(effectList12);

            A.EffectStyle effectStyle2 = new A.EffectStyle();

            A.EffectList effectList13 = new A.EffectList();

            A.InnerShadow innerShadow1 = new A.InnerShadow(){ BlurRadius = 25400L, Distance = 12700L, Direction = 13500000 };

            A.RgbColorModelHex rgbColorModelHex11 = new A.RgbColorModelHex(){ Val = "000000" };
            A.Alpha alpha2 = new A.Alpha(){ Val = 45000 };

            rgbColorModelHex11.Append(alpha2);

            innerShadow1.Append(rgbColorModelHex11);

            effectList13.Append(innerShadow1);

            effectStyle2.Append(effectList13);

            A.EffectStyle effectStyle3 = new A.EffectStyle();

            A.EffectList effectList14 = new A.EffectList();

            A.OuterShadow outerShadow1 = new A.OuterShadow(){ BlurRadius = 50800L, Distance = 38100L, Direction = 5400000, RotateWithShape = false };

            A.RgbColorModelHex rgbColorModelHex12 = new A.RgbColorModelHex(){ Val = "000000" };
            A.Alpha alpha3 = new A.Alpha(){ Val = 46000 };

            rgbColorModelHex12.Append(alpha3);

            outerShadow1.Append(rgbColorModelHex12);

            effectList14.Append(outerShadow1);

            A.Scene3DType scene3DType1 = new A.Scene3DType();

            A.Camera camera1 = new A.Camera(){ Preset = A.PresetCameraValues.OrthographicFront };
            A.Rotation rotation1 = new A.Rotation(){ Latitude = 0, Longitude = 0, Revolution = 0 };

            camera1.Append(rotation1);
            A.LightRig lightRig1 = new A.LightRig(){ Rig = A.LightRigValues.ThreePoints, Direction = A.LightRigDirectionValues.Top };

            scene3DType1.Append(camera1);
            scene3DType1.Append(lightRig1);

            A.Shape3DType shape3DType1 = new A.Shape3DType(){ PresetMaterial = A.PresetMaterialTypeValues.Plastic };
            A.BevelTop bevelTop1 = new A.BevelTop(){ Width = 25400L, Height = 25400L };

            shape3DType1.Append(bevelTop1);

            effectStyle3.Append(effectList14);
            effectStyle3.Append(scene3DType1);
            effectStyle3.Append(shape3DType1);

            effectStyleList1.Append(effectStyle1);
            effectStyleList1.Append(effectStyle2);
            effectStyleList1.Append(effectStyle3);

            A.BackgroundFillStyleList backgroundFillStyleList1 = new A.BackgroundFillStyleList();

            A.SolidFill solidFill77 = new A.SolidFill();
            A.SchemeColor schemeColor147 = new A.SchemeColor(){ Val = A.SchemeColorValues.PhColor };

            solidFill77.Append(schemeColor147);

            A.GradientFill gradientFill3 = new A.GradientFill(){ RotateWithShape = true };

            A.GradientStopList gradientStopList3 = new A.GradientStopList();

            A.GradientStop gradientStop5 = new A.GradientStop(){ Position = 10000 };

            A.SchemeColor schemeColor148 = new A.SchemeColor(){ Val = A.SchemeColorValues.PhColor };
            A.Tint tint21 = new A.Tint(){ Val = 97000 };
            A.HueModulation hueModulation5 = new A.HueModulation(){ Val = 92000 };
            A.SaturationModulation saturationModulation4 = new A.SaturationModulation(){ Val = 169000 };
            A.LuminanceModulation luminanceModulation14 = new A.LuminanceModulation(){ Val = 164000 };

            schemeColor148.Append(tint21);
            schemeColor148.Append(hueModulation5);
            schemeColor148.Append(saturationModulation4);
            schemeColor148.Append(luminanceModulation14);

            gradientStop5.Append(schemeColor148);

            A.GradientStop gradientStop6 = new A.GradientStop(){ Position = 100000 };

            A.SchemeColor schemeColor149 = new A.SchemeColor(){ Val = A.SchemeColorValues.PhColor };
            A.Shade shade2 = new A.Shade(){ Val = 96000 };
            A.SaturationModulation saturationModulation5 = new A.SaturationModulation(){ Val = 120000 };
            A.LuminanceModulation luminanceModulation15 = new A.LuminanceModulation(){ Val = 90000 };

            schemeColor149.Append(shade2);
            schemeColor149.Append(saturationModulation5);
            schemeColor149.Append(luminanceModulation15);

            gradientStop6.Append(schemeColor149);

            gradientStopList3.Append(gradientStop5);
            gradientStopList3.Append(gradientStop6);
            A.LinearGradientFill linearGradientFill3 = new A.LinearGradientFill(){ Angle = 6120000, Scaled = true };

            gradientFill3.Append(gradientStopList3);
            gradientFill3.Append(linearGradientFill3);

            A.GradientFill gradientFill4 = new A.GradientFill(){ RotateWithShape = true };

            A.GradientStopList gradientStopList4 = new A.GradientStopList();

            A.GradientStop gradientStop7 = new A.GradientStop(){ Position = 0 };

            A.SchemeColor schemeColor150 = new A.SchemeColor(){ Val = A.SchemeColorValues.PhColor };
            A.Tint tint22 = new A.Tint(){ Val = 97000 };
            A.HueModulation hueModulation6 = new A.HueModulation(){ Val = 92000 };
            A.SaturationModulation saturationModulation6 = new A.SaturationModulation(){ Val = 169000 };
            A.LuminanceModulation luminanceModulation16 = new A.LuminanceModulation(){ Val = 164000 };

            schemeColor150.Append(tint22);
            schemeColor150.Append(hueModulation6);
            schemeColor150.Append(saturationModulation6);
            schemeColor150.Append(luminanceModulation16);

            gradientStop7.Append(schemeColor150);

            A.GradientStop gradientStop8 = new A.GradientStop(){ Position = 100000 };

            A.SchemeColor schemeColor151 = new A.SchemeColor(){ Val = A.SchemeColorValues.PhColor };
            A.Shade shade3 = new A.Shade(){ Val = 96000 };
            A.SaturationModulation saturationModulation7 = new A.SaturationModulation(){ Val = 120000 };
            A.LuminanceModulation luminanceModulation17 = new A.LuminanceModulation(){ Val = 90000 };

            schemeColor151.Append(shade3);
            schemeColor151.Append(saturationModulation7);
            schemeColor151.Append(luminanceModulation17);

            gradientStop8.Append(schemeColor151);

            gradientStopList4.Append(gradientStop7);
            gradientStopList4.Append(gradientStop8);

            A.PathGradientFill pathGradientFill1 = new A.PathGradientFill(){ Path = A.PathShadeValues.Circle };
            A.FillToRectangle fillToRectangle1 = new A.FillToRectangle(){ Bottom = 100000 };

            pathGradientFill1.Append(fillToRectangle1);

            gradientFill4.Append(gradientStopList4);
            gradientFill4.Append(pathGradientFill1);

            backgroundFillStyleList1.Append(solidFill77);
            backgroundFillStyleList1.Append(gradientFill3);
            backgroundFillStyleList1.Append(gradientFill4);

            formatScheme1.Append(fillStyleList1);
            formatScheme1.Append(lineStyleList1);
            formatScheme1.Append(effectStyleList1);
            formatScheme1.Append(backgroundFillStyleList1);

            themeElements1.Append(colorScheme1);
            themeElements1.Append(fontScheme1);
            themeElements1.Append(formatScheme1);
            A.ObjectDefaults objectDefaults1 = new A.ObjectDefaults();
            A.ExtraColorSchemeList extraColorSchemeList1 = new A.ExtraColorSchemeList();

            A.OfficeStyleSheetExtensionList officeStyleSheetExtensionList1 = new A.OfficeStyleSheetExtensionList();

            A.OfficeStyleSheetExtension officeStyleSheetExtension1 = new A.OfficeStyleSheetExtension(){ Uri = "{05A4C25C-085E-4340-85A3-A5531E510DB2}" };

            Thm15.ThemeFamily themeFamily1 = new Thm15.ThemeFamily(){ Name = "Slice", Id = "{0507925B-6AC9-4358-8E18-C330545D08F8}", Vid = "{24C90B2D-6D41-4755-90A4-ED86E7EA9F03}" };
            themeFamily1.AddNamespaceDeclaration("thm15", "http://schemas.microsoft.com/office/thememl/2012/main");

            officeStyleSheetExtension1.Append(themeFamily1);

            officeStyleSheetExtensionList1.Append(officeStyleSheetExtension1);

            theme1.Append(themeElements1);
            theme1.Append(objectDefaults1);
            theme1.Append(extraColorSchemeList1);
            theme1.Append(officeStyleSheetExtensionList1);

            themePart1.Theme = theme1;
        }