/// <summary> /// Sets a background picture for a table cell (a:tc). /// </summary> /// <remarks> /// <![CDATA[ /// <a:tc> /// <a:txBody> /// <a:bodyPr/> /// <a:lstStyle/> /// <a:p> /// <a:endParaRPr lang="fr-FR" dirty="0"/> /// </a:p> /// </a:txBody> /// <a:tcPr> (TableCellProperties) /// <a:blipFill dpi="0" rotWithShape="1"> /// <a:blip r:embed="rId2"/> /// <a:srcRect/> /// <a:stretch> /// <a:fillRect b="12000" r="90000" t="14000"/> /// </a:stretch> /// </a:blipFill> /// </a:tcPr> /// </a:tc> /// ]]> /// </remarks> private static void SetTableCellPropertiesWithBackgroundPicture(PptxSlide slide, A.TableCellProperties tcPr, Cell.BackgroundPicture backgroundPicture) { if (backgroundPicture.Content == null) { return; } ImagePart imagePart = slide.AddPicture(backgroundPicture.Content, backgroundPicture.ContentType); A.BlipFill blipFill = new A.BlipFill(); A.Blip blip = new A.Blip() { Embed = slide.GetIdOfImagePart(imagePart) }; A.SourceRectangle srcRect = new A.SourceRectangle(); A.Stretch stretch = new A.Stretch(); A.FillRectangle fillRect = new A.FillRectangle() { Top = backgroundPicture.Top, Right = backgroundPicture.Right, Bottom = backgroundPicture.Bottom, Left = backgroundPicture.Left }; stretch.AppendChild(fillRect); blipFill.AppendChild(blip); blipFill.AppendChild(srcRect); blipFill.AppendChild(stretch); tcPr.AppendChild(blipFill); }
public SCImage FromSlidePart(SlidePart slidePart, OpenXmlCompositeElement compositeElement) { P.Shape pShape = (P.Shape)compositeElement; A.BlipFill aBlipFill = pShape.ShapeProperties.GetFirstChild <A.BlipFill>(); SCImage backgroundImage = TryFromBlipFill(slidePart, aBlipFill); return(backgroundImage); }
private static ImageEx TryFromBlipFill(SlidePart sldPart, A.BlipFill aBlipFill) { ImageEx backgroundImage = null; var blipRelateId = aBlipFill?.Blip?.Embed?.Value; // try to get blip relationship ID if (blipRelateId != null) { backgroundImage = new ImageEx(sldPart, blipRelateId); } return(backgroundImage); }
public SCImage FromSlidePart(SlidePart slidePart) { SCImage backgroundImage = null; P.Background pBackground = slidePart.Slide.CommonSlideData.Background; if (pBackground != null) { A.BlipFill aBlipFill = pBackground.Descendants <A.BlipFill>().SingleOrDefault(); backgroundImage = TryFromBlipFill(slidePart, aBlipFill); } return(backgroundImage); }
internal OpenXmlElement ToFill() { OpenXmlElement oxe = new A.NoFill(); if (this.Type == SLFillType.NoFill) { return(new A.NoFill()); } else if (this.Type == SLFillType.SolidFill) { A.SolidFill sf = new A.SolidFill(); if (this.SolidColor.IsRgbColorModelHex) { sf.RgbColorModelHex = this.SolidColor.ToRgbColorModelHex(); } else { sf.SchemeColor = this.SolidColor.ToSchemeColor(); } return(sf); } else if (this.Type == SLFillType.GradientFill) { return(this.GradientColor.ToGradientFill()); } else if (this.Type == SLFillType.BlipFill) { A.BlipFill bf = new A.BlipFill(); if (this.BlipDpi != null) { bf.Dpi = this.BlipDpi.Value; } if (this.BlipRotateWithShape != null) { bf.RotateWithShape = this.BlipRotateWithShape.Value; } bf.Blip = new A.Blip(); bf.Blip.Embed = this.BlipRelationshipID; if (this.BlipTransparency > 0m) { bf.Blip.Append(new A.AlphaModulationFixed() { Amount = SLA.SLDrawingTool.CalculateAlpha(this.BlipTransparency) }); } bf.Append(new A.SourceRectangle()); if (this.BlipTile) { bf.Append(new A.Tile() { HorizontalOffset = SLA.SLDrawingTool.CalculateCoordinate(this.BlipOffsetX), VerticalOffset = SLA.SLDrawingTool.CalculateCoordinate(this.BlipOffsetY), HorizontalRatio = SLA.SLDrawingTool.CalculatePercentage(this.BlipScaleX), VerticalRatio = SLA.SLDrawingTool.CalculatePercentage(this.BlipScaleY), Flip = this.BlipMirrorType, Alignment = this.BlipAlignment }); } else { bf.Append(new A.Stretch() { FillRectangle = new A.FillRectangle() { Left = SLA.SLDrawingTool.CalculatePercentage(this.BlipLeftOffset), Top = SLA.SLDrawingTool.CalculatePercentage(this.BlipTopOffset), Right = SLA.SLDrawingTool.CalculatePercentage(this.BlipRightOffset), Bottom = SLA.SLDrawingTool.CalculatePercentage(this.BlipBottomOffset) } }); } return(bf); } else if (this.Type == SLFillType.PatternFill) { A.PatternFill pf = new A.PatternFill(); pf.Preset = A.PresetPatternValues.Trellis; pf.ForegroundColor = new A.ForegroundColor(); if (this.PatternForegroundColor.IsRgbColorModelHex) { pf.ForegroundColor.RgbColorModelHex = this.PatternForegroundColor.ToRgbColorModelHex(); } else { pf.ForegroundColor.SchemeColor = this.PatternForegroundColor.ToSchemeColor(); } pf.BackgroundColor = new A.BackgroundColor(); if (this.PatternBackgroundColor.IsRgbColorModelHex) { pf.BackgroundColor.RgbColorModelHex = this.PatternBackgroundColor.ToRgbColorModelHex(); } else { pf.BackgroundColor.SchemeColor = this.PatternBackgroundColor.ToSchemeColor(); } return(pf); } return(oxe); }
internal OpenXmlElement ToFill() { OpenXmlElement oxe = new A.NoFill(); if (this.Type == SLFillType.NoFill) { return new A.NoFill(); } else if (this.Type == SLFillType.SolidFill) { A.SolidFill sf = new A.SolidFill(); if (this.SolidColor.IsRgbColorModelHex) { sf.RgbColorModelHex = this.SolidColor.ToRgbColorModelHex(); } else { sf.SchemeColor = this.SolidColor.ToSchemeColor(); } return sf; } else if (this.Type == SLFillType.GradientFill) { return this.GradientColor.ToGradientFill(); } else if (this.Type == SLFillType.BlipFill) { A.BlipFill bf = new A.BlipFill(); if (this.BlipDpi != null) bf.Dpi = this.BlipDpi.Value; if (this.BlipRotateWithShape != null) bf.RotateWithShape = this.BlipRotateWithShape.Value; bf.Blip = new A.Blip(); bf.Blip.Embed = this.BlipRelationshipID; if (this.BlipTransparency > 0m) { bf.Blip.Append(new A.AlphaModulationFixed() { Amount = SLA.SLDrawingTool.CalculateAlpha(this.BlipTransparency) }); } bf.Append(new A.SourceRectangle()); if (this.BlipTile) { bf.Append(new A.Tile() { HorizontalOffset = SLA.SLDrawingTool.CalculateCoordinate(this.BlipOffsetX), VerticalOffset = SLA.SLDrawingTool.CalculateCoordinate(this.BlipOffsetY), HorizontalRatio = SLA.SLDrawingTool.CalculatePercentage(this.BlipScaleX), VerticalRatio = SLA.SLDrawingTool.CalculatePercentage(this.BlipScaleY), Flip = this.BlipMirrorType, Alignment = this.BlipAlignment }); } else { bf.Append(new A.Stretch() { FillRectangle = new A.FillRectangle() { Left = SLA.SLDrawingTool.CalculatePercentage(this.BlipLeftOffset), Top = SLA.SLDrawingTool.CalculatePercentage(this.BlipTopOffset), Right = SLA.SLDrawingTool.CalculatePercentage(this.BlipRightOffset), Bottom = SLA.SLDrawingTool.CalculatePercentage(this.BlipBottomOffset) } }); } return bf; } else if (this.Type == SLFillType.PatternFill) { A.PatternFill pf = new A.PatternFill(); pf.Preset = A.PresetPatternValues.Trellis; pf.ForegroundColor = new A.ForegroundColor(); if (this.PatternForegroundColor.IsRgbColorModelHex) { pf.ForegroundColor.RgbColorModelHex = this.PatternForegroundColor.ToRgbColorModelHex(); } else { pf.ForegroundColor.SchemeColor = this.PatternForegroundColor.ToSchemeColor(); } pf.BackgroundColor = new A.BackgroundColor(); if (this.PatternBackgroundColor.IsRgbColorModelHex) { pf.BackgroundColor.RgbColorModelHex = this.PatternBackgroundColor.ToRgbColorModelHex(); } else { pf.BackgroundColor.SchemeColor = this.PatternBackgroundColor.ToSchemeColor(); } return pf; } return oxe; }
/// <summary> /// Sets a background picture for a table cell (a:tc). /// </summary> /// <remarks> /// <![CDATA[ /// <a:tc> /// <a:txBody> /// <a:bodyPr/> /// <a:lstStyle/> /// <a:p> /// <a:endParaRPr lang="fr-FR" dirty="0"/> /// </a:p> /// </a:txBody> /// <a:tcPr> (TableCellProperties) /// <a:blipFill dpi="0" rotWithShape="1"> /// <a:blip r:embed="rId2"/> /// <a:srcRect/> /// <a:stretch> /// <a:fillRect b="12000" r="90000" t="14000"/> /// </a:stretch> /// </a:blipFill> /// </a:tcPr> /// </a:tc> /// ]]> /// </remarks> private static void SetTableCellPropertiesWithBackgroundPicture(PptxSlide slide, A.TableCellProperties tcPr, Cell.BackgroundPicture backgroundPicture) { if (backgroundPicture.Content == null) { return; } ImagePart imagePart = slide.AddPicture(backgroundPicture.Content, backgroundPicture.ContentType); A.BlipFill blipFill = new A.BlipFill(); A.Blip blip = new A.Blip() { Embed = slide.GetIdOfImagePart(imagePart) }; A.SourceRectangle srcRect = new A.SourceRectangle(); A.Stretch stretch = new A.Stretch(); A.FillRectangle fillRect = new A.FillRectangle() { Top = backgroundPicture.Top, Right = backgroundPicture.Right, Bottom = backgroundPicture.Bottom, Left = backgroundPicture.Left }; stretch.AppendChild(fillRect); blipFill.AppendChild(blip); blipFill.AppendChild(srcRect); blipFill.AppendChild(stretch); tcPr.AppendChild(blipFill); }
// Generates content of themePart1. private void GenerateThemePart1Content(ThemePart themePart1) { A.Theme theme1 = new A.Theme(){ Name = "Apex" }; theme1.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); A.ThemeElements themeElements1 = new A.ThemeElements(); A.ColorScheme colorScheme1 = new A.ColorScheme(){ Name = "Apex" }; 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 rgbColorModelHex4 = new A.RgbColorModelHex(){ Val = "69676D" }; dark2Color1.Append(rgbColorModelHex4); A.Light2Color light2Color1 = new A.Light2Color(); A.RgbColorModelHex rgbColorModelHex5 = new A.RgbColorModelHex(){ Val = "C9C2D1" }; light2Color1.Append(rgbColorModelHex5); A.Accent1Color accent1Color1 = new A.Accent1Color(); A.RgbColorModelHex rgbColorModelHex6 = new A.RgbColorModelHex(){ Val = "CEB966" }; accent1Color1.Append(rgbColorModelHex6); A.Accent2Color accent2Color1 = new A.Accent2Color(); A.RgbColorModelHex rgbColorModelHex7 = new A.RgbColorModelHex(){ Val = "9CB084" }; accent2Color1.Append(rgbColorModelHex7); A.Accent3Color accent3Color1 = new A.Accent3Color(); A.RgbColorModelHex rgbColorModelHex8 = new A.RgbColorModelHex(){ Val = "6BB1C9" }; accent3Color1.Append(rgbColorModelHex8); A.Accent4Color accent4Color1 = new A.Accent4Color(); A.RgbColorModelHex rgbColorModelHex9 = new A.RgbColorModelHex(){ Val = "6585CF" }; accent4Color1.Append(rgbColorModelHex9); A.Accent5Color accent5Color1 = new A.Accent5Color(); A.RgbColorModelHex rgbColorModelHex10 = new A.RgbColorModelHex(){ Val = "7E6BC9" }; accent5Color1.Append(rgbColorModelHex10); A.Accent6Color accent6Color1 = new A.Accent6Color(); A.RgbColorModelHex rgbColorModelHex11 = new A.RgbColorModelHex(){ Val = "A379BB" }; accent6Color1.Append(rgbColorModelHex11); A.Hyperlink hyperlink1 = new A.Hyperlink(); A.RgbColorModelHex rgbColorModelHex12 = new A.RgbColorModelHex(){ Val = "410082" }; hyperlink1.Append(rgbColorModelHex12); A.FollowedHyperlinkColor followedHyperlinkColor1 = new A.FollowedHyperlinkColor(); A.RgbColorModelHex rgbColorModelHex13 = new A.RgbColorModelHex(){ Val = "932968" }; followedHyperlinkColor1.Append(rgbColorModelHex13); 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 = "Apex" }; A.MajorFont majorFont1 = new A.MajorFont(); A.LatinFont latinFont30 = new A.LatinFont(){ Typeface = "Lucida Sans" }; A.EastAsianFont eastAsianFont30 = new A.EastAsianFont(){ Typeface = "" }; A.ComplexScriptFont complexScriptFont30 = new A.ComplexScriptFont(){ Typeface = "" }; A.SupplementalFont supplementalFont1 = new A.SupplementalFont(){ Script = "Grek", Typeface = "Arial" }; A.SupplementalFont supplementalFont2 = new A.SupplementalFont(){ Script = "Cyrl", Typeface = "Arial" }; A.SupplementalFont supplementalFont3 = new A.SupplementalFont(){ Script = "Jpan", Typeface = "HG丸ゴシックM-PRO" }; A.SupplementalFont supplementalFont4 = new A.SupplementalFont(){ Script = "Hang", Typeface = "휴먼옛체" }; A.SupplementalFont supplementalFont5 = new A.SupplementalFont(){ Script = "Hans", Typeface = "黑体" }; A.SupplementalFont supplementalFont6 = new A.SupplementalFont(){ Script = "Hant", Typeface = "微軟正黑體" }; A.SupplementalFont supplementalFont7 = new A.SupplementalFont(){ Script = "Arab", Typeface = "Tahoma" }; A.SupplementalFont supplementalFont8 = new A.SupplementalFont(){ Script = "Hebr", Typeface = "Levenim MT" }; A.SupplementalFont supplementalFont9 = new A.SupplementalFont(){ Script = "Thai", Typeface = "FreesiaUPC" }; A.SupplementalFont supplementalFont10 = new A.SupplementalFont(){ Script = "Ethi", Typeface = "Nyala" }; A.SupplementalFont supplementalFont11 = new A.SupplementalFont(){ Script = "Beng", Typeface = "Vrinda" }; A.SupplementalFont supplementalFont12 = new A.SupplementalFont(){ Script = "Gujr", Typeface = "Shruti" }; A.SupplementalFont supplementalFont13 = new A.SupplementalFont(){ Script = "Khmr", Typeface = "DaunPenh" }; A.SupplementalFont supplementalFont14 = new A.SupplementalFont(){ Script = "Knda", Typeface = "Tunga" }; A.SupplementalFont supplementalFont15 = new A.SupplementalFont(){ Script = "Guru", Typeface = "Raavi" }; A.SupplementalFont supplementalFont16 = new A.SupplementalFont(){ Script = "Cans", Typeface = "Euphemia" }; A.SupplementalFont supplementalFont17 = new A.SupplementalFont(){ Script = "Cher", Typeface = "Plantagenet Cherokee" }; A.SupplementalFont supplementalFont18 = new A.SupplementalFont(){ Script = "Yiii", Typeface = "Microsoft Yi Baiti" }; A.SupplementalFont supplementalFont19 = new A.SupplementalFont(){ Script = "Tibt", Typeface = "Microsoft Himalaya" }; A.SupplementalFont supplementalFont20 = new A.SupplementalFont(){ Script = "Thaa", Typeface = "MV Boli" }; A.SupplementalFont supplementalFont21 = new A.SupplementalFont(){ Script = "Deva", Typeface = "Mangal" }; A.SupplementalFont supplementalFont22 = new A.SupplementalFont(){ Script = "Telu", Typeface = "Gautami" }; A.SupplementalFont supplementalFont23 = new A.SupplementalFont(){ Script = "Taml", Typeface = "Latha" }; A.SupplementalFont supplementalFont24 = new A.SupplementalFont(){ Script = "Syrc", Typeface = "Estrangelo Edessa" }; A.SupplementalFont supplementalFont25 = new A.SupplementalFont(){ Script = "Orya", Typeface = "Kalinga" }; A.SupplementalFont supplementalFont26 = new A.SupplementalFont(){ Script = "Mlym", Typeface = "Kartika" }; A.SupplementalFont supplementalFont27 = new A.SupplementalFont(){ Script = "Laoo", Typeface = "DokChampa" }; A.SupplementalFont supplementalFont28 = new A.SupplementalFont(){ Script = "Sinh", Typeface = "Iskoola Pota" }; A.SupplementalFont supplementalFont29 = new A.SupplementalFont(){ Script = "Mong", Typeface = "Mongolian Baiti" }; A.SupplementalFont supplementalFont30 = new A.SupplementalFont(){ Script = "Viet", Typeface = "Tahoma" }; A.SupplementalFont supplementalFont31 = new A.SupplementalFont(){ Script = "Uigh", Typeface = "Microsoft Uighur" }; A.SupplementalFont supplementalFont32 = new A.SupplementalFont(){ Script = "Geor", Typeface = "Sylfaen" }; majorFont1.Append(latinFont30); majorFont1.Append(eastAsianFont30); majorFont1.Append(complexScriptFont30); 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); majorFont1.Append(supplementalFont31); majorFont1.Append(supplementalFont32); A.MinorFont minorFont1 = new A.MinorFont(); A.LatinFont latinFont31 = new A.LatinFont(){ Typeface = "Book Antiqua" }; A.EastAsianFont eastAsianFont31 = new A.EastAsianFont(){ Typeface = "" }; A.ComplexScriptFont complexScriptFont31 = new A.ComplexScriptFont(){ Typeface = "" }; A.SupplementalFont supplementalFont33 = new A.SupplementalFont(){ Script = "Grek", Typeface = "Times New Roman" }; A.SupplementalFont supplementalFont34 = new A.SupplementalFont(){ Script = "Cyrl", Typeface = "Times New Roman" }; A.SupplementalFont supplementalFont35 = new A.SupplementalFont(){ Script = "Jpan", Typeface = "HG明朝B" }; A.SupplementalFont supplementalFont36 = new A.SupplementalFont(){ Script = "Hang", Typeface = "돋움" }; A.SupplementalFont supplementalFont37 = new A.SupplementalFont(){ Script = "Hans", Typeface = "宋体" }; A.SupplementalFont supplementalFont38 = new A.SupplementalFont(){ Script = "Hant", Typeface = "新細明體" }; A.SupplementalFont supplementalFont39 = new A.SupplementalFont(){ Script = "Arab", Typeface = "Times New Roman" }; A.SupplementalFont supplementalFont40 = new A.SupplementalFont(){ Script = "Hebr", Typeface = "David" }; A.SupplementalFont supplementalFont41 = new A.SupplementalFont(){ Script = "Thai", Typeface = "EucrosiaUPC" }; A.SupplementalFont supplementalFont42 = new A.SupplementalFont(){ Script = "Ethi", Typeface = "Nyala" }; A.SupplementalFont supplementalFont43 = new A.SupplementalFont(){ Script = "Beng", Typeface = "Vrinda" }; A.SupplementalFont supplementalFont44 = new A.SupplementalFont(){ Script = "Gujr", Typeface = "Shruti" }; A.SupplementalFont supplementalFont45 = new A.SupplementalFont(){ Script = "Khmr", Typeface = "MoolBoran" }; A.SupplementalFont supplementalFont46 = new A.SupplementalFont(){ Script = "Knda", Typeface = "Tunga" }; A.SupplementalFont supplementalFont47 = new A.SupplementalFont(){ Script = "Guru", Typeface = "Raavi" }; A.SupplementalFont supplementalFont48 = new A.SupplementalFont(){ Script = "Cans", Typeface = "Euphemia" }; A.SupplementalFont supplementalFont49 = new A.SupplementalFont(){ Script = "Cher", Typeface = "Plantagenet Cherokee" }; A.SupplementalFont supplementalFont50 = new A.SupplementalFont(){ Script = "Yiii", Typeface = "Microsoft Yi Baiti" }; A.SupplementalFont supplementalFont51 = new A.SupplementalFont(){ Script = "Tibt", Typeface = "Microsoft Himalaya" }; A.SupplementalFont supplementalFont52 = new A.SupplementalFont(){ Script = "Thaa", Typeface = "MV Boli" }; A.SupplementalFont supplementalFont53 = new A.SupplementalFont(){ Script = "Deva", Typeface = "Mangal" }; A.SupplementalFont supplementalFont54 = new A.SupplementalFont(){ Script = "Telu", Typeface = "Gautami" }; A.SupplementalFont supplementalFont55 = new A.SupplementalFont(){ Script = "Taml", Typeface = "Latha" }; A.SupplementalFont supplementalFont56 = new A.SupplementalFont(){ Script = "Syrc", Typeface = "Estrangelo Edessa" }; A.SupplementalFont supplementalFont57 = new A.SupplementalFont(){ Script = "Orya", Typeface = "Kalinga" }; A.SupplementalFont supplementalFont58 = new A.SupplementalFont(){ Script = "Mlym", Typeface = "Kartika" }; A.SupplementalFont supplementalFont59 = new A.SupplementalFont(){ Script = "Laoo", Typeface = "DokChampa" }; A.SupplementalFont supplementalFont60 = new A.SupplementalFont(){ Script = "Sinh", Typeface = "Iskoola Pota" }; A.SupplementalFont supplementalFont61 = new A.SupplementalFont(){ Script = "Mong", Typeface = "Mongolian Baiti" }; A.SupplementalFont supplementalFont62 = new A.SupplementalFont(){ Script = "Viet", Typeface = "Times New Roman" }; A.SupplementalFont supplementalFont63 = new A.SupplementalFont(){ Script = "Uigh", Typeface = "Microsoft Uighur" }; A.SupplementalFont supplementalFont64 = new A.SupplementalFont(){ Script = "Geor", Typeface = "Sylfaen" }; minorFont1.Append(latinFont31); minorFont1.Append(eastAsianFont31); minorFont1.Append(complexScriptFont31); 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); minorFont1.Append(supplementalFont61); minorFont1.Append(supplementalFont62); minorFont1.Append(supplementalFont63); minorFont1.Append(supplementalFont64); fontScheme1.Append(majorFont1); fontScheme1.Append(minorFont1); A.FormatScheme formatScheme1 = new A.FormatScheme(){ Name = "Apex" }; A.FillStyleList fillStyleList1 = new A.FillStyleList(); A.SolidFill solidFill39 = new A.SolidFill(); A.SchemeColor schemeColor57 = new A.SchemeColor(){ Val = A.SchemeColorValues.PhColor }; solidFill39.Append(schemeColor57); A.GradientFill gradientFill3 = new A.GradientFill(){ RotateWithShape = true }; A.GradientStopList gradientStopList3 = new A.GradientStopList(); A.GradientStop gradientStop7 = new A.GradientStop(){ Position = 20000 }; A.SchemeColor schemeColor58 = new A.SchemeColor(){ Val = A.SchemeColorValues.PhColor }; A.Tint tint13 = new A.Tint(){ Val = 9000 }; schemeColor58.Append(tint13); gradientStop7.Append(schemeColor58); A.GradientStop gradientStop8 = new A.GradientStop(){ Position = 100000 }; A.SchemeColor schemeColor59 = new A.SchemeColor(){ Val = A.SchemeColorValues.PhColor }; A.Tint tint14 = new A.Tint(){ Val = 70000 }; A.SaturationModulation saturationModulation9 = new A.SaturationModulation(){ Val = 100000 }; schemeColor59.Append(tint14); schemeColor59.Append(saturationModulation9); gradientStop8.Append(schemeColor59); gradientStopList3.Append(gradientStop7); gradientStopList3.Append(gradientStop8); A.PathGradientFill pathGradientFill1 = new A.PathGradientFill(){ Path = A.PathShadeValues.Circle }; A.FillToRectangle fillToRectangle1 = new A.FillToRectangle(){ Left = -15000, Top = -15000, Right = 115000, Bottom = 115000 }; pathGradientFill1.Append(fillToRectangle1); gradientFill3.Append(gradientStopList3); gradientFill3.Append(pathGradientFill1); A.GradientFill gradientFill4 = new A.GradientFill(){ RotateWithShape = true }; A.GradientStopList gradientStopList4 = new A.GradientStopList(); A.GradientStop gradientStop9 = new A.GradientStop(){ Position = 0 }; A.SchemeColor schemeColor60 = new A.SchemeColor(){ Val = A.SchemeColorValues.PhColor }; A.Shade shade6 = new A.Shade(){ Val = 60000 }; schemeColor60.Append(shade6); gradientStop9.Append(schemeColor60); A.GradientStop gradientStop10 = new A.GradientStop(){ Position = 33000 }; A.SchemeColor schemeColor61 = new A.SchemeColor(){ Val = A.SchemeColorValues.PhColor }; A.Tint tint15 = new A.Tint(){ Val = 86500 }; schemeColor61.Append(tint15); gradientStop10.Append(schemeColor61); A.GradientStop gradientStop11 = new A.GradientStop(){ Position = 46750 }; A.SchemeColor schemeColor62 = new A.SchemeColor(){ Val = A.SchemeColorValues.PhColor }; A.Tint tint16 = new A.Tint(){ Val = 71000 }; A.SaturationModulation saturationModulation10 = new A.SaturationModulation(){ Val = 112000 }; schemeColor62.Append(tint16); schemeColor62.Append(saturationModulation10); gradientStop11.Append(schemeColor62); A.GradientStop gradientStop12 = new A.GradientStop(){ Position = 53000 }; A.SchemeColor schemeColor63 = new A.SchemeColor(){ Val = A.SchemeColorValues.PhColor }; A.Tint tint17 = new A.Tint(){ Val = 71000 }; A.SaturationModulation saturationModulation11 = new A.SaturationModulation(){ Val = 112000 }; schemeColor63.Append(tint17); schemeColor63.Append(saturationModulation11); gradientStop12.Append(schemeColor63); A.GradientStop gradientStop13 = new A.GradientStop(){ Position = 68000 }; A.SchemeColor schemeColor64 = new A.SchemeColor(){ Val = A.SchemeColorValues.PhColor }; A.Tint tint18 = new A.Tint(){ Val = 86000 }; schemeColor64.Append(tint18); gradientStop13.Append(schemeColor64); A.GradientStop gradientStop14 = new A.GradientStop(){ Position = 100000 }; A.SchemeColor schemeColor65 = new A.SchemeColor(){ Val = A.SchemeColorValues.PhColor }; A.Shade shade7 = new A.Shade(){ Val = 60000 }; schemeColor65.Append(shade7); gradientStop14.Append(schemeColor65); gradientStopList4.Append(gradientStop9); gradientStopList4.Append(gradientStop10); gradientStopList4.Append(gradientStop11); gradientStopList4.Append(gradientStop12); gradientStopList4.Append(gradientStop13); gradientStopList4.Append(gradientStop14); A.LinearGradientFill linearGradientFill3 = new A.LinearGradientFill(){ Angle = 8350000, Scaled = true }; gradientFill4.Append(gradientStopList4); gradientFill4.Append(linearGradientFill3); fillStyleList1.Append(solidFill39); fillStyleList1.Append(gradientFill3); fillStyleList1.Append(gradientFill4); A.LineStyleList lineStyleList1 = new A.LineStyleList(); A.Outline outline5 = new A.Outline(){ Width = 9525, CapType = A.LineCapValues.Flat, CompoundLineType = A.CompoundLineValues.Single, Alignment = A.PenAlignmentValues.Center }; A.SolidFill solidFill40 = new A.SolidFill(); A.SchemeColor schemeColor66 = new A.SchemeColor(){ Val = A.SchemeColorValues.PhColor }; A.Shade shade8 = new A.Shade(){ Val = 48000 }; A.SaturationModulation saturationModulation12 = new A.SaturationModulation(){ Val = 110000 }; schemeColor66.Append(shade8); schemeColor66.Append(saturationModulation12); solidFill40.Append(schemeColor66); A.PresetDash presetDash1 = new A.PresetDash(){ Val = A.PresetLineDashValues.Solid }; outline5.Append(solidFill40); outline5.Append(presetDash1); A.Outline outline6 = new A.Outline(){ Width = 25400, CapType = A.LineCapValues.Flat, CompoundLineType = A.CompoundLineValues.Single, Alignment = A.PenAlignmentValues.Center }; A.SolidFill solidFill41 = new A.SolidFill(); A.SchemeColor schemeColor67 = new A.SchemeColor(){ Val = A.SchemeColorValues.PhColor }; solidFill41.Append(schemeColor67); A.PresetDash presetDash2 = new A.PresetDash(){ Val = A.PresetLineDashValues.Solid }; outline6.Append(solidFill41); outline6.Append(presetDash2); A.Outline outline7 = new A.Outline(){ Width = 38100, CapType = A.LineCapValues.Flat, CompoundLineType = A.CompoundLineValues.Single, Alignment = A.PenAlignmentValues.Center }; A.SolidFill solidFill42 = new A.SolidFill(); A.SchemeColor schemeColor68 = new A.SchemeColor(){ Val = A.SchemeColorValues.PhColor }; solidFill42.Append(schemeColor68); A.PresetDash presetDash3 = new A.PresetDash(){ Val = A.PresetLineDashValues.Solid }; outline7.Append(solidFill42); outline7.Append(presetDash3); lineStyleList1.Append(outline5); lineStyleList1.Append(outline6); lineStyleList1.Append(outline7); A.EffectStyleList effectStyleList1 = new A.EffectStyleList(); A.EffectStyle effectStyle1 = new A.EffectStyle(); A.EffectList effectList4 = new A.EffectList(); A.OuterShadow outerShadow4 = new A.OuterShadow(){ BlurRadius = 130000L, Distance = 101600L, Direction = 2700000, Alignment = A.RectangleAlignmentValues.TopLeft, RotateWithShape = false }; A.RgbColorModelHex rgbColorModelHex14 = new A.RgbColorModelHex(){ Val = "000000" }; A.Alpha alpha4 = new A.Alpha(){ Val = 35000 }; rgbColorModelHex14.Append(alpha4); outerShadow4.Append(rgbColorModelHex14); effectList4.Append(outerShadow4); effectStyle1.Append(effectList4); A.EffectStyle effectStyle2 = new A.EffectStyle(); A.EffectList effectList5 = new A.EffectList(); A.OuterShadow outerShadow5 = new A.OuterShadow(){ BlurRadius = 190500L, Distance = 228600L, Direction = 2700000, VerticalRatio = 90000, RotateWithShape = false }; A.RgbColorModelHex rgbColorModelHex15 = new A.RgbColorModelHex(){ Val = "000000" }; A.Alpha alpha5 = new A.Alpha(){ Val = 25500 }; rgbColorModelHex15.Append(alpha5); outerShadow5.Append(rgbColorModelHex15); effectList5.Append(outerShadow5); effectStyle2.Append(effectList5); A.EffectStyle effectStyle3 = new A.EffectStyle(); A.EffectList effectList6 = new A.EffectList(); A.OuterShadow outerShadow6 = new A.OuterShadow(){ BlurRadius = 190500L, Distance = 228600L, Direction = 2700000, VerticalRatio = 90000, RotateWithShape = false }; A.RgbColorModelHex rgbColorModelHex16 = new A.RgbColorModelHex(){ Val = "000000" }; A.Alpha alpha6 = new A.Alpha(){ Val = 25500 }; rgbColorModelHex16.Append(alpha6); outerShadow6.Append(rgbColorModelHex16); effectList6.Append(outerShadow6); A.Scene3DType scene3DType4 = new A.Scene3DType(); A.Camera camera4 = new A.Camera(){ Preset = A.PresetCameraValues.OrthographicFront, FieldOfView = 0 }; A.Rotation rotation4 = new A.Rotation(){ Latitude = 0, Longitude = 0, Revolution = 0 }; camera4.Append(rotation4); A.LightRig lightRig4 = new A.LightRig(){ Rig = A.LightRigValues.Soft, Direction = A.LightRigDirectionValues.TopLeft }; A.Rotation rotation5 = new A.Rotation(){ Latitude = 0, Longitude = 0, Revolution = 20100000 }; lightRig4.Append(rotation5); scene3DType4.Append(camera4); scene3DType4.Append(lightRig4); A.Shape3DType shape3DType5 = new A.Shape3DType(); A.BevelTop bevelTop4 = new A.BevelTop(){ Width = 50800L, Height = 50800L }; shape3DType5.Append(bevelTop4); effectStyle3.Append(effectList6); effectStyle3.Append(scene3DType4); effectStyle3.Append(shape3DType5); effectStyleList1.Append(effectStyle1); effectStyleList1.Append(effectStyle2); effectStyleList1.Append(effectStyle3); A.BackgroundFillStyleList backgroundFillStyleList1 = new A.BackgroundFillStyleList(); A.SolidFill solidFill43 = new A.SolidFill(); A.SchemeColor schemeColor69 = new A.SchemeColor(){ Val = A.SchemeColorValues.PhColor }; solidFill43.Append(schemeColor69); A.GradientFill gradientFill5 = new A.GradientFill(){ RotateWithShape = true }; A.GradientStopList gradientStopList5 = new A.GradientStopList(); A.GradientStop gradientStop15 = new A.GradientStop(){ Position = 0 }; A.SchemeColor schemeColor70 = new A.SchemeColor(){ Val = A.SchemeColorValues.PhColor }; A.Tint tint19 = new A.Tint(){ Val = 50000 }; A.SaturationModulation saturationModulation13 = new A.SaturationModulation(){ Val = 180000 }; schemeColor70.Append(tint19); schemeColor70.Append(saturationModulation13); gradientStop15.Append(schemeColor70); A.GradientStop gradientStop16 = new A.GradientStop(){ Position = 100000 }; A.SchemeColor schemeColor71 = new A.SchemeColor(){ Val = A.SchemeColorValues.PhColor }; A.Shade shade9 = new A.Shade(){ Val = 45000 }; A.SaturationModulation saturationModulation14 = new A.SaturationModulation(){ Val = 120000 }; schemeColor71.Append(shade9); schemeColor71.Append(saturationModulation14); gradientStop16.Append(schemeColor71); gradientStopList5.Append(gradientStop15); gradientStopList5.Append(gradientStop16); A.PathGradientFill pathGradientFill2 = new A.PathGradientFill(){ Path = A.PathShadeValues.Circle }; A.FillToRectangle fillToRectangle2 = new A.FillToRectangle(){ Right = 100000, Bottom = 100000 }; pathGradientFill2.Append(fillToRectangle2); gradientFill5.Append(gradientStopList5); gradientFill5.Append(pathGradientFill2); A.BlipFill blipFill1 = new A.BlipFill(); A.Blip blip1 = new A.Blip(){ Embed = "rId1" }; blip1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); A.Duotone duotone1 = new A.Duotone(); A.SchemeColor schemeColor72 = new A.SchemeColor(){ Val = A.SchemeColorValues.PhColor }; A.Shade shade10 = new A.Shade(){ Val = 3000 }; A.SaturationModulation saturationModulation15 = new A.SaturationModulation(){ Val = 110000 }; schemeColor72.Append(shade10); schemeColor72.Append(saturationModulation15); A.SchemeColor schemeColor73 = new A.SchemeColor(){ Val = A.SchemeColorValues.PhColor }; A.Tint tint20 = new A.Tint(){ Val = 60000 }; A.SaturationModulation saturationModulation16 = new A.SaturationModulation(){ Val = 425000 }; schemeColor73.Append(tint20); schemeColor73.Append(saturationModulation16); duotone1.Append(schemeColor72); duotone1.Append(schemeColor73); blip1.Append(duotone1); A.Stretch stretch1 = new A.Stretch(); A.FillRectangle fillRectangle1 = new A.FillRectangle(); stretch1.Append(fillRectangle1); blipFill1.Append(blip1); blipFill1.Append(stretch1); backgroundFillStyleList1.Append(solidFill43); backgroundFillStyleList1.Append(gradientFill5); backgroundFillStyleList1.Append(blipFill1); 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(); theme1.Append(themeElements1); theme1.Append(objectDefaults1); theme1.Append(extraColorSchemeList1); themePart1.Theme = theme1; }