public void addHeading1Style(MainDocumentPart mainPart) { // we have to set the properties RunProperties rPr = new RunProperties(); Color color = new Color() { Val = "FF0000" }; // the color is red RunFonts rFont = new RunFonts(); rFont.Ascii = "Arial"; // the font is Arial rPr.Append(color); rPr.Append(rFont); rPr.Append(new Bold()); // it is Bold rPr.Append(new FontSize() { Val = "28" }); //font size (in 1/72 of an inch) Style style = new Style(); style.StyleId = "MyHeading1"; //this is the ID of the style style.Append(new Name() { Val = "My Heading 1" }); //this is the name of the new style style.Append(rPr); //we are adding properties previously defined // we have to add style that we have created to the StylePart StyleDefinitionsPart stylePart = mainPart.AddNewPart <StyleDefinitionsPart>(); stylePart.Styles = new Styles(); stylePart.Styles.Append(style); stylePart.Styles.Save(); // we save the style part }
// Create a new style with the specified styleid and stylename and add it to the specified // style definitions part. private static void AddNewStyle(StyleDefinitionsPart styleDefinitionsPart, string styleid, string stylename) { // Get access to the root element of the styles part. Styles styles = styleDefinitionsPart.Styles; // Create a new paragraph style and specify some of the properties. Style style = new Style() { Type = StyleValues.Paragraph, StyleId = styleid, CustomStyle = true }; StyleName styleName1 = new StyleName() { Val = stylename }; BasedOn basedOn1 = new BasedOn() { Val = "Normal" }; NextParagraphStyle nextParagraphStyle1 = new NextParagraphStyle() { Val = "Normal" }; style.Append(styleName1); style.Append(basedOn1); style.Append(nextParagraphStyle1); // Create the StyleRunProperties object and specify some of the run properties. StyleRunProperties styleRunProperties1 = new StyleRunProperties(); Bold bold1 = new Bold(); Color color1 = new Color() { ThemeColor = ThemeColorValues.Accent2 }; RunFonts font1 = new RunFonts() { Ascii = "Lucida Console" }; Italic italic1 = new Italic(); // Specify a 12 point size. FontSize fontSize1 = new FontSize() { Val = "24" }; styleRunProperties1.Append(bold1); styleRunProperties1.Append(color1); styleRunProperties1.Append(font1); styleRunProperties1.Append(fontSize1); styleRunProperties1.Append(italic1); // Add the run properties to the style. style.Append(styleRunProperties1); // Add the style to the styles part. styles.Append(style); }
private static Style CreateHeaderOneStyle() { Style style = new Style() { Type = StyleValues.Paragraph, StyleId = "Heading1", CustomStyle = true }; var styleName1 = new StyleName() { Val = "Heading1" }; style.Append(styleName1); var styleRunProperties1 = new StyleRunProperties(); styleRunProperties1.Append(new RunFonts() { Ascii = "Calibri Light (Headings)" }); styleRunProperties1.Append(new FontSize() { Val = "32" }); // Sizes are in half-points. Oy! style.Append(styleRunProperties1); return(style); }
public static Style CreateStyle(string name, StyleValues styleType, string fontName = null, int? fontSize = null, bool bold = false, bool italic = false, string hexColour = null, Tabs tabs = null) { var style = new Style { Type = styleType, StyleId = name }; var runProps = new StyleRunProperties(); if (fontName != null) runProps.Append(new RunFonts { Ascii = fontName }); if (fontSize.HasValue) runProps.Append(new FontSize { Val = fontSize.Value.ToString() }); if (bold) runProps.Append(new Bold()); //?? this doesn't create bold text, it inverts the existing bold setting if (italic) runProps.Append(new Italic()); style.Append(new Name { Val = name }); if (hexColour != null) runProps.Append(new Color { Val = hexColour }); //style.Append(new BasedOn { Val = "Heading1" }); //style.Append(new NextParagraphStyle { Val = "Normal" }); style.Append(runProps); if (tabs != null) { var paragraphProps = new StyleParagraphProperties(tabs); style.Append(paragraphProps); } return style; }
public static void CreateAndAddCharacterStyle(WordprocessingDocument doc, string styleId, string styleName, string aliases, string linkedStyle, IEnumerable <OpenXmlElement> wordStyles) { // Get the Styles part for this document. StyleDefinitionsPart part = doc.MainDocumentPart.StyleDefinitionsPart; // If the Styles part does not exist, add it. if (part == null) { part = AddStylesPartToPackage(doc); } // Get access to the root element of the styles part. Styles styles = part.Styles; // Create a new character style and specify some of the attributes. Style style = new Style() { Type = StyleValues.Character, StyleId = styleId, CustomStyle = true }; // Create and add the child elements (properties of the style). Aliases aliases1 = new Aliases() { Val = aliases }; StyleName styleName1 = new StyleName() { Val = styleName }; LinkedStyle linkedStyle1 = new LinkedStyle() { Val = linkedStyle }; if (aliases != "") { style.Append(aliases1); } style.Append(styleName1); style.Append(linkedStyle1); // Create the StyleRunProperties object and specify some of the run properties. StyleRunProperties styleRunProperties1 = new StyleRunProperties(); foreach (var wordStyle in wordStyles) { styleRunProperties1.Append(wordStyle); } // Add the run properties to the style. style.Append(styleRunProperties1); // Add the style to the styles part. styles.Append(style); }
public static void AddStyle(MainDocumentPart mainPart, string styleId, string styleName, string fontName, int fontSize, string rgbColor, bool isBold, bool isItalic, bool isUnderlined) { // we have to set the properties RunProperties rPr = new RunProperties(); Color color = new Color() { Val = rgbColor }; // the color is red RunFonts rFont = new RunFonts(); rFont.Ascii = fontName; // the font is Arial rPr.Append(color); rPr.Append(rFont); rPr.Append(new FontSize() { Val = (fontSize * 2).ToString() }); //font size (in 1/72 of an inch) if (isBold) { rPr.Append(new Bold()); // it is Bold } if (isItalic) { rPr.Append(new Italic()); } if (isUnderlined) { rPr.Append(new Underline() { Val = UnderlineValues.Single }); } Style style = new Style(); style.StyleId = styleId; //this is the ID of the style style.Append(new Name() { Val = styleName }); //this is the name of the new style style.Append(rPr); //we are adding properties previously defined // we have to add style that we have created to the StylePart StyleDefinitionsPart stylePart; if (mainPart.StyleDefinitionsPart == null) { stylePart = mainPart.AddNewPart <StyleDefinitionsPart>(); stylePart.Styles = new Styles(); } else { stylePart = mainPart.StyleDefinitionsPart; } stylePart.Styles.Append(style); stylePart.Styles.Save(); // we save the style part }
public static Style GenerateTableBaseStyle() { Style style1 = new Style() { Type = StyleValues.Table, StyleId = "a1", Default = true }; StyleName styleName1 = new StyleName() { Val = "Normal Table" }; UIPriority uIPriority1 = new UIPriority() { Val = 99 }; SemiHidden semiHidden1 = new SemiHidden(); UnhideWhenUsed unhideWhenUsed1 = new UnhideWhenUsed(); StyleTableProperties styleTableProperties1 = new StyleTableProperties(); TableIndentation tableIndentation1 = new TableIndentation() { Width = 0, Type = TableWidthUnitValues.Dxa }; TableCellMarginDefault tableCellMarginDefault1 = new TableCellMarginDefault(); TopMargin topMargin1 = new TopMargin() { Width = "0", Type = TableWidthUnitValues.Dxa }; TableCellLeftMargin tableCellLeftMargin1 = new TableCellLeftMargin() { Width = 108, Type = TableWidthValues.Dxa }; BottomMargin bottomMargin1 = new BottomMargin() { Width = "0", Type = TableWidthUnitValues.Dxa }; TableCellRightMargin tableCellRightMargin1 = new TableCellRightMargin() { Width = 108, Type = TableWidthValues.Dxa }; tableCellMarginDefault1.Append(topMargin1); tableCellMarginDefault1.Append(tableCellLeftMargin1); tableCellMarginDefault1.Append(bottomMargin1); tableCellMarginDefault1.Append(tableCellRightMargin1); styleTableProperties1.Append(tableIndentation1); styleTableProperties1.Append(tableCellMarginDefault1); style1.Append(styleName1); style1.Append(uIPriority1); style1.Append(semiHidden1); style1.Append(unhideWhenUsed1); style1.Append(styleTableProperties1); return(style1); }
private static void AddNewStyle(StyleDefinitionsPart styleDefinitionsPart, string styleid, string stylename) { Styles styles = styleDefinitionsPart.Styles; //创建一个新的段落style 并且配置一些新属性 Style style = new Style() { Type = StyleValues.Paragraph, StyleId = styleid, CustomStyle = true }; StyleName styleName1 = new StyleName() { Val = stylename }; BasedOn basedOn1 = new BasedOn() { Val = "Normal" }; NextParagraphStyle nextParagraphStyle1 = new NextParagraphStyle() { Val = "Normal" }; style.Append(styleName1); style.Append(basedOn1); style.Append(nextParagraphStyle1); //字体 StyleRunProperties styleRunProperties1 = new StyleRunProperties(); Bold bold1 = new Bold(); Color color1 = new Color() { ThemeColor = ThemeColorValues.Accent2 }; RunFonts font1 = new RunFonts() { Ascii = "Lucida Console", EastAsia = "宋体" }; Italic italic1 = new Italic(); //字体大小 FontSize fontSize1 = new FontSize() { Val = "24" }; styleRunProperties1.Append(bold1); styleRunProperties1.Append(color1); styleRunProperties1.Append(font1); styleRunProperties1.Append(fontSize1); styleRunProperties1.Append(italic1); style.Append(styleRunProperties1); styles.Append(style); }
// Create a new style with the specified styleid and stylename and add it to the specified // style definitions part. private static void AddNewStyle(StyleDefinitionsPart styleDefinitionsPart, string styleid, string stylename, StyleValues type, Action <StyleRunProperties> prepareRunStyle, Action <StyleParagraphProperties> prepareParagraphStyle, string basedOn = "Normal") { // Get access to the root element of the styles part. Styles styles = styleDefinitionsPart.Styles; // Create a new paragraph style and specify some of the properties. Style style = new Style() { Type = type, StyleId = styleid, CustomStyle = true }; StyleName styleName1 = new StyleName() { Val = stylename }; BasedOn basedOn1 = new BasedOn() { Val = basedOn }; NextParagraphStyle nextParagraphStyle1 = new NextParagraphStyle() { Val = "Normal" }; style.Append(styleName1); if (!string.IsNullOrEmpty(basedOn)) { style.Append(basedOn1); } //style.Append(nextParagraphStyle1); // Create the StyleRunProperties object and specify some of the run properties. StyleRunProperties styleRunProperties = new StyleRunProperties(); prepareRunStyle(styleRunProperties); // Add the run properties to the style. style.Append(styleRunProperties); StyleParagraphProperties styleParaProperties = new StyleParagraphProperties(); prepareParagraphStyle(styleParaProperties); style.Append(styleParaProperties); // Add the style to the styles part. styles.Append(style); }
// Create a new style with the specified styleid and stylename and add it to the specified // style definitions part. private static void AddNewStyle(StyleDefinitionsPart styleDefinitionsPart, string styleid, string stylename) { // Get access to the root element of the styles part. Styles styles = styleDefinitionsPart.Styles; // Create a new paragraph style and specify some of the properties. Style style = new Style() { Type = StyleValues.Paragraph, StyleId = styleid, CustomStyle = true }; StyleName styleName1 = new StyleName() { Val = stylename }; //The styles set below probably should be passed in as a parameter and not hard coded, but //I only care about the Titles that are being append, so just leaving it for now. BasedOn basedOn1 = new BasedOn() { Val = "Normal" }; NextParagraphStyle nextParagraphStyle1 = new NextParagraphStyle() { Val = "Normal" }; style.Append(styleName1); style.Append(basedOn1); style.Append(nextParagraphStyle1); // Create the StyleRunProperties object and specify some of the run properties. StyleRunProperties styleRunProperties1 = new StyleRunProperties(); // Specify a 12 point size. FontSize fontSize1 = new FontSize() { Val = "24" }; styleRunProperties1.Append(fontSize1); // Add the run properties to the style. style.Append(styleRunProperties1); // Add the style to the styles part. styles.Append(style); }
private Style GenerateDefaultParagraphFontStyle() { Style style1 = new Style() { Type = StyleValues.Character, StyleId = DefaultParagraphFontStyle, Default = true }; StyleName styleName1 = new StyleName() { Val = "Default Paragraph Font" }; UIPriority uIPriority1 = new UIPriority() { Val = 1 }; SemiHidden semiHidden1 = new SemiHidden(); UnhideWhenUsed unhideWhenUsed1 = new UnhideWhenUsed(); style1.Append(styleName1); style1.Append(uIPriority1); style1.Append(semiHidden1); style1.Append(unhideWhenUsed1); return style1; }
/// <summary> /// Header Style name will be "MyHeading1" /// </summary> /// <param name="mainPart"></param> public static void AddHeaderStylePart(ref MainDocumentPart mainPart) { StyleDefinitionsPart stylePart = mainPart.AddNewPart <StyleDefinitionsPart>(); // we have to set the properties RunProperties rPr = new RunProperties(); Color color = new Color() { Val = "black" }; // the color is red RunFonts rFont = new RunFonts(); rFont.Ascii = "Arial"; // the font is Arial rPr.Append(color); rPr.Append(rFont); rPr.Append(new Bold()); // it is Bold rPr.Append(new FontSize() { Val = "28" }); //font size (in 1/72 of an inch) //creation of a style Style style = new Style(); style.StyleId = "MyHeading1"; //this is the ID of the style style.Append(new Name() { Val = "My Heading 1" }); //this is name // our style based on Normal style style.Append(new BasedOn() { Val = "Heading1" }); // the next paragraph is Normal type style.Append(new NextParagraphStyle() { Val = "Normal" }); style.Append(rPr);//we are adding properties previously defined // we have to add style that we have created to the StylePart stylePart.Styles = new Styles(); stylePart.Styles.Append(style); stylePart.Styles.Save(); // we save the style part }
// // // // // // 6th test // // // // // // public static void CreateFileAndAddDocumentDefaultStyles() // create new OpenXML doc with document default styles { string outputFileNameAndPath = Path.Combine(Program.outputFilePath, Guid.NewGuid().ToString() + "_file_with_added_doc_default_styles" + ".docx"); using (WordprocessingDocument wordDocument = WordprocessingDocument.Create(outputFileNameAndPath, WordprocessingDocumentType.Document, true)) { MainDocumentPart mainPart = wordDocument.AddMainDocumentPart(); mainPart.Document = new Document(); StyleDefinitionsPart stylePart = mainPart.StyleDefinitionsPart; // get the Styles part for this document stylePart = AddStylesPartToPackage(mainPart); Style style = new Style(); style.Append(GenerateDocDefaults()); stylePart.Styles = new Styles(); // add style to the StylePart stylePart.Styles.Append(style); stylePart.Styles.Save(); Body body = new Body(); mainPart.Document.Append(body); } Console.WriteLine(string.Format("{0}:{1}{2}{1}{3}", "6. File with document default styles added", Environment.NewLine, outputFileNameAndPath, new string('-', 80))); }
//..................................................................... /// <summary> /// /// </summary> private void MakeNewStyleH1( ) { string stylename = "heading"; //create styles definitions wbookpart StyleDefinitionsPart styleDefinitions = this.wordocument .MainDocumentPart .AddNewPart <StyleDefinitionsPart>( ); //create style var style = new Style( ) { Type = StyleValues.Paragraph, StyleId = stylename + "1", CustomStyle = true, Default = false }; style.Append(new StyleName( ) { Val = stylename + " 1" }); var styleRunProperties = new StyleRunProperties( ); styleRunProperties.Append(new Bold( )); styleRunProperties.Append(new RunFonts( ) { Ascii = "Arial" }); styleRunProperties.Append(new FontSize( ) { Val = "24" }); style.Append(styleRunProperties); //create styles var styles = new Styles( ); styles.Save(styleDefinitions); styles = styleDefinitions.Styles; styles.Append(style); return; }
private Style GenerateNormal() { Style Style_Normal = new Style() { Type = StyleValues.Paragraph, StyleId = "Normal", Default = true }; Style_Normal.Append(new StyleName() { Val = "Normal" }); Style_Normal.Append(new PrimaryStyle()); return(Style_Normal); }
private void ApplyLinkStyle(bool muted) { if (muted) { Style.Append("color:#95a5a6;"); } else { Style.Append("color:#3498db;"); } }
private static Style GenerateReportHeadingStyle( ) { //set the run properties. RunProperties rPr = new RunProperties( ); Color color = new Color { Val = "365F91", ThemeColor = ThemeColorValues.Accent1, ThemeShade = "BF" }; // the color is dark blue RunFonts rFont = new RunFonts( ); rFont.Ascii = "Cambria"; // the font is Cambria rPr.Append(color); rPr.Append(rFont); rPr.Append(new Bold( )); // it is Bold rPr.Append(new FontSize { Val = "28" }); Style style = new Style( ); style.StyleId = "Heading1"; //this is the ID of the style style.Append(new Name { Val = "Heading 1" }); //this is name // our style based on Normal style style.Append(new BasedOn { Val = "Heading1" }); // the next paragraph is Normal type style.Append(new NextParagraphStyle { Val = "Normal" }); style.Append(rPr); return(style); }
public static void AddNewStyle(StyleDefinitionsPart styleDefinitionsPart, string styleid, string stylename) { Styles styles = styleDefinitionsPart.Styles; Style style = new Style() { Type = StyleValues.Paragraph, StyleId = styleid, CustomStyle = true }; StyleName styname = new StyleName() { Val = stylename }; BasedOn basedOn1 = new BasedOn() { Val = "Normal" }; style.Append(styname); style.Append(basedOn1); }
/// <summary> /// This demo shows the usage of style appending /// </summary> private static void Demo10() { Workbook wb = new Workbook("demo10.xlsx", "styleAppending"); // Create a new workbook Style style = new Style(); // Create a new style style.Append(Style.BasicStyles.Bold); // Append a basic style (bold) style.Append(Style.BasicStyles.Underline); // Append a basic style (underline) style.Append(Style.BasicStyles.Font("Arial Black", 20)); // Append a basic style (custom font) wb.WS.Value("THIS IS A TEST", style); // Add text and the appended style wb.WS.Down(); // Go to a new row Style chainedStyle = new Style() // Create a new style... .Append(Style.BasicStyles.Underline) // ... and append another part (chaining underline) .Append(Style.BasicStyles.ColorizedText("FF00FF")) // ... and append another part (chaining colorized text) .Append(Style.BasicStyles.ColorizedBackground("AAFFAA")); // ... and append another part (chaining colorized background) wb.WS.Value("Another test", chainedStyle); // Add text and the appended style wb.Save(); // Save the workbook }
private static void ChangeStyleDefinitionsPart1(StyleDefinitionsPart styleDefinitionsPart1) { Styles styles1 = styleDefinitionsPart1.Styles; Style style1 = styles1.GetFirstChild <Style>(); //get the specifc style Rsid rsid1 = new Rsid() { Val = "00B10D4B" }; style1.Append(rsid1); StyleRunProperties styleRunProperties1 = new StyleRunProperties(); var runFont = new RunFonts { Ascii = "Time New Roman" }; FontSize fontSize1 = new FontSize() { Val = "28" }; styleRunProperties1.Append(fontSize1, runFont); style1.Append(styleRunProperties1); }
/// <summary> /// Add a Style to the document with the given name and style properties. After adding the style it can be referenced by using AddTextWithStyle /// </summary> /// <param name="styleId">The Style id</param> /// <param name="styleName">The Style name</param> /// <param name="properties">Properties</param> public void AddStyle(string styleId, string styleName, List <string> properties) { Style style = new Style() { Type = StyleValues.Paragraph, StyleId = styleId, CustomStyle = true }; StyleName styleName1 = new StyleName() { Val = styleName }; style.Append(styleName1); StyleRunProperties styleRunProperties1 = new StyleRunProperties(); styleRunProperties1.Append(Helper.GetProperties(properties)); style.Append(styleRunProperties1); m_Styles.Append(style); m_Styles.Save(m_StylesPart); }
private static Style CreateStyle(string fontcolor, string styleid, string stylename, string stylebasedon, string stylenextpara, string fontname, int fontsize, JustificationValues just, bool isBold, int spacing) { // we have to set the properties RunProperties rPr = new RunProperties(); Color color = new Color() { Val = fontcolor }; // the color RunFonts rFont = new RunFonts(); rFont.Ascii = fontname; // the font rPr.Append(color); rPr.Append(rFont); if (isBold) { rPr.Append(new Bold()); } rPr.Append(new FontSize() { Val = fontsize.ToString() }); //font size (in 1/72 of an inch) ParagraphProperties pPr = new ParagraphProperties(); if (spacing > 0) { pPr.Append(new SpacingBetweenLines() { Line = spacing.ToString(), LineRule = LineSpacingRuleValues.Auto, BeforeAutoSpacing = OnOffValue.FromBoolean(true) }); } //creation of a style Style style = new Style(); style.StyleId = styleid; //this is the ID of the style style.Append(new Name() { Val = stylename }); //this is name style.Append(new BasedOn() { Val = stylebasedon }); // our style based on ... style style.Append(new NextParagraphStyle() { Val = stylenextpara }); // the next paragraph is ... type style.Append(pPr); //we are adding properties previously defined style.Append(rPr); //we are adding properties previously defined //lets make it centered) style.Append(new ParagraphProperties( new Justification() { Val = just })); return(style); }
private void addHeading1Style(MainDocumentPart mainPart, string colore, string font, string fontSize, bool isBold) { // we have to set the properties RunProperties rPr = new RunProperties(); Color color = new Color() { Val = colore }; RunFonts rFont = new RunFonts(); rFont.Ascii = font; rPr.Append(color); rPr.Append(rFont); if (isBold) { rPr.Append(new Bold()); } rPr.Append(new FontSize() { Val = fontSize }); Style style = new Style(); style.StyleId = "MyHeading" + i; style.Append(new Name() { Val = "My Heading " + i }); style.Append(rPr); // we have to add style that we have created to the StylePart StyleDefinitionsPart stylePart = mainPart.AddNewPart <StyleDefinitionsPart>(); stylePart.Styles = new Styles(); stylePart.Styles.Append(style); stylePart.Styles.Save(); i++; }
public static Style Generate_Heading1Char() { Style style1 = new Style() { Type = StyleValues.Character, StyleId = "Heading1Char", CustomStyle = true }; StyleName styleName1 = new StyleName() { Val = "Heading 1 Char" }; BasedOn basedOn1 = new BasedOn() { Val = "DefaultParagraphFont" }; LinkedStyle linkedStyle1 = new LinkedStyle() { Val = "Heading1" }; UIPriority uIPriority1 = new UIPriority() { Val = 9 }; Rsid rsid1 = new Rsid() { Val = "0052463A" }; StyleRunProperties styleRunProperties1 = new StyleRunProperties(); RunFonts runFonts1 = new RunFonts() { AsciiTheme = ThemeFontValues.MajorHighAnsi, HighAnsiTheme = ThemeFontValues.MajorHighAnsi, EastAsiaTheme = ThemeFontValues.MajorEastAsia, ComplexScriptTheme = ThemeFontValues.MajorBidi }; Color color1 = new Color() { Val = "2F5496", ThemeColor = ThemeColorValues.Accent1, ThemeShade = "BF" }; FontSize fontSize1 = new FontSize() { Val = "32" }; FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript() { Val = "32" }; styleRunProperties1.Append(runFonts1); styleRunProperties1.Append(color1); styleRunProperties1.Append(fontSize1); styleRunProperties1.Append(fontSizeComplexScript1); style1.Append(styleName1); style1.Append(basedOn1); style1.Append(linkedStyle1); style1.Append(uIPriority1); style1.Append(rsid1); style1.Append(styleRunProperties1); return(style1); }
private void InitStylesFor(WordprocessingDocument wordDocument) { StyleDefinitionsPart styleDefinitions = wordDocument.MainDocumentPart.AddNewPart <StyleDefinitionsPart>(); var styles = new Styles(); styles.Save(styleDefinitions); styles = styleDefinitions.Styles; var style = new Style() { Type = StyleValues.Paragraph, StyleId = "Heading1", CustomStyle = true, Default = false }; style.Append(new StyleName() { Val = "Heading 1" }); var styleRunProperties = new StyleRunProperties(); styleRunProperties.Append(new Bold()); styleRunProperties.Append(new RunFonts() { Ascii = "Calibri" }); styleRunProperties.Append(new FontSize() { Val = "40" }); style.Append(styleRunProperties); styles.Append(style); }
private Style SetStyle() { Style style2 = new Style() { Type = StyleValues.Character, StyleId = "DefaultParagraphFont", Default = true }; StyleName styleName2 = new StyleName() { Val = "Default Paragraph Font" }; UIPriority uIPriority1 = new UIPriority() { Val = 1 }; SemiHidden semiHidden1 = new SemiHidden(); UnhideWhenUsed unhideWhenUsed1 = new UnhideWhenUsed(); style2.Append(styleName2); style2.Append(uIPriority1); style2.Append(semiHidden1); style2.Append(unhideWhenUsed1); return(style2); }
/// <summary> /// This demo shows the usage of the SetStyle methods on worksheets /// </summary> private static void Demo11() { Workbook wb = new Workbook("demo11.xlsx", "setStyles"); // Create a new workbook Style style = new Style(); // Create a new style style.Append(Style.BasicStyles.ColorizedBackground("FF0000")); // Append a visible style component wb.CurrentWorksheet.AddCell("Test", "C3", Style.BasicStyles.Bold); // Define a cell with a style (will be replaced) wb.CurrentWorksheet.SetStyle("A1", style); // Set style based on a string address wb.CurrentWorksheet.SetStyle("A3:B6", style); // Set style based on a string address range wb.CurrentWorksheet.SetStyle(new Cell.Address(0, 7), style); // Set style based on a address object wb.CurrentWorksheet.SetStyle(new Cell.Range(new Cell.Address("C1"), new Cell.Address(4, 8)), style); // Set style based on a range object (overwrites style on C3) wb.CurrentWorksheet.SetStyle(new Cell.Address("F6"), new Cell.Address("F10"), style); // Set style based on a two address objects as range wb.Save(); // Save the workbook }
private void ApplyAsButtonStyle() { Style .Append("border-bottom-width:2px;") .Append("border-bottom-style:solid;") .Append("color:#fff;") .Append("display:inline-block;") .Append("font-size:14px;") .Append("line-height:18px;") .Append("padding:8px 15px;"); if (AsButton == "danger") { Style.Append("background-color:#e74c3c;") .Append("border-bottom-color:#c0392b;"); } else { Style.Append("background-color:#3498db;") .Append("border-bottom-color:#2980b9;"); } }
private void GenerateDefaultStyleHeader() { Style style1 = new Style(){ Type = StyleValues.Paragraph, StyleId = "1" }; StyleName styleName1 = new StyleName(){ Val = "heading 1" }; BasedOn basedOn1 = new BasedOn(){ Val = "a" }; NextParagraphStyle nextParagraphStyle1 = new NextParagraphStyle(){ Val = "a" }; LinkedStyle linkedStyle1 = new LinkedStyle(){ Val = "10" }; UIPriority uIPriority1 = new UIPriority(){ Val = 9 }; PrimaryStyle primaryStyle1 = new PrimaryStyle(); Rsid rsid1 = new Rsid(){ Val = "004A6073" }; StyleParagraphProperties styleParagraphProperties1 = new StyleParagraphProperties(); KeepNext keepNext1 = new KeepNext(); KeepLines keepLines1 = new KeepLines(); SpacingBetweenLines spacingBetweenLines1 = new SpacingBetweenLines(){ Before = "240", After = "0" }; OutlineLevel outlineLevel1 = new OutlineLevel(){ Val = 0 }; styleParagraphProperties1.Append(keepNext1); styleParagraphProperties1.Append(keepLines1); styleParagraphProperties1.Append(spacingBetweenLines1); styleParagraphProperties1.Append(outlineLevel1); StyleRunProperties styleRunProperties1 = new StyleRunProperties(); RunFonts runFonts1 = new RunFonts(){ AsciiTheme = ThemeFontValues.MajorHighAnsi, HighAnsiTheme = ThemeFontValues.MajorHighAnsi, EastAsiaTheme = ThemeFontValues.MajorEastAsia, ComplexScriptTheme = ThemeFontValues.MajorBidi }; Color color1 = new Color(){ Val = "2E74B5", ThemeColor = ThemeColorValues.Accent1, ThemeShade = "BF" }; FontSize fontSize1 = new FontSize(){ Val = "32" }; FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript(){ Val = "32" }; styleRunProperties1.Append(runFonts1); styleRunProperties1.Append(color1); styleRunProperties1.Append(fontSize1); styleRunProperties1.Append(fontSizeComplexScript1); style1.Append(styleName1); style1.Append(basedOn1); style1.Append(nextParagraphStyle1); style1.Append(linkedStyle1); style1.Append(uIPriority1); style1.Append(primaryStyle1); style1.Append(rsid1); style1.Append(styleParagraphProperties1); style1.Append(styleRunProperties1); Styles.Add(style1); }
public Style GenerateFooterStyle() { Style style1 = new Style() { Type = StyleValues.Paragraph, StyleId = "Footer" }; StyleName styleName1 = new StyleName() { Val = "footer" }; BasedOn basedOn1 = new BasedOn() { Val = "Normal" }; LinkedStyle linkedStyle1 = new LinkedStyle() { Val = "FooterChar" }; UIPriority uIPriority1 = new UIPriority() { Val = 99 }; SemiHidden semiHidden1 = new SemiHidden(); UnhideWhenUsed unhideWhenUsed1 = new UnhideWhenUsed(); Rsid rsid1 = new Rsid() { Val = "005641D2" }; StyleParagraphProperties styleParagraphProperties1 = new StyleParagraphProperties(); Tabs tabs1 = new Tabs(); TabStop tabStop1 = new TabStop() { Val = TabStopValues.Center, Position = 4680 }; TabStop tabStop2 = new TabStop() { Val = TabStopValues.Right, Position = 9360 }; tabs1.Append(tabStop1); tabs1.Append(tabStop2); SpacingBetweenLines spacingBetweenLines1 = new SpacingBetweenLines() { Line = "240", LineRule = LineSpacingRuleValues.Auto }; styleParagraphProperties1.Append(tabs1); styleParagraphProperties1.Append(spacingBetweenLines1); style1.Append(styleName1); style1.Append(basedOn1); style1.Append(linkedStyle1); style1.Append(uIPriority1); style1.Append(semiHidden1); style1.Append(unhideWhenUsed1); style1.Append(rsid1); style1.Append(styleParagraphProperties1); return style1; }
public Style GenerateFooterCharStyle() { Style style1 = new Style() { Type = StyleValues.Character, StyleId = "FooterChar", CustomStyle = true }; StyleName styleName1 = new StyleName() { Val = "Footer Char" }; BasedOn basedOn1 = new BasedOn() { Val = "DefaultParagraphFont" }; LinkedStyle linkedStyle1 = new LinkedStyle() { Val = "Footer" }; UIPriority uIPriority1 = new UIPriority() { Val = 99 }; SemiHidden semiHidden1 = new SemiHidden(); Rsid rsid1 = new Rsid() { Val = "005641D2" }; style1.Append(styleName1); style1.Append(basedOn1); style1.Append(linkedStyle1); style1.Append(uIPriority1); style1.Append(semiHidden1); style1.Append(rsid1); return style1; }
// Create a new style with the specified styleid and stylename and add it to the specified // style definitions part. private static void AddNewStyle(StyleDefinitionsPart styleDefinitionsPart, string styleid, string stylename) { // Get access to the root element of the styles part. Styles styles = styleDefinitionsPart.Styles; // Create a new paragraph style and specify some of the properties. Style style = new Style() { Type = StyleValues.Paragraph, StyleId = styleid, CustomStyle = true }; StyleName styleName1 = new StyleName() { Val = stylename }; BasedOn basedOn1 = new BasedOn() { Val = "Normal" }; NextParagraphStyle nextParagraphStyle1 = new NextParagraphStyle() { Val = "Normal" }; style.Append(styleName1); style.Append(basedOn1); style.Append(nextParagraphStyle1); // Create the StyleRunProperties object and specify some of the run properties. StyleRunProperties styleRunProperties1 = new StyleRunProperties(); Bold bold1 = new Bold(); Color color1 = new Color() { ThemeColor = ThemeColorValues.Accent2 }; RunFonts font1 = new RunFonts() { Ascii = "Lucida Console" }; Italic italic1 = new Italic(); // Specify a 12 point size. FontSize fontSize1 = new FontSize() { Val = "24" }; styleRunProperties1.Append(bold1); styleRunProperties1.Append(color1); styleRunProperties1.Append(font1); styleRunProperties1.Append(fontSize1); styleRunProperties1.Append(italic1); // Add the run properties to the style. style.Append(styleRunProperties1); // Add the style to the styles part. styles.Append(style); }
// Generates content of part. private void GeneratePartContent(StyleDefinitionsPart part) { Styles styles1 = new Styles(); styles1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); styles1.AddNamespaceDeclaration("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main"); DocDefaults docDefaults1 = new DocDefaults(); RunPropertiesDefault runPropertiesDefault1 = new RunPropertiesDefault(); RunPropertiesBaseStyle runPropertiesBaseStyle1 = new RunPropertiesBaseStyle(); RunFonts runFonts1 = new RunFonts() { AsciiTheme = ThemeFontValues.MinorHighAnsi, HighAnsiTheme = ThemeFontValues.MinorHighAnsi, EastAsiaTheme = ThemeFontValues.MinorHighAnsi, ComplexScriptTheme = ThemeFontValues.MinorBidi }; FontSize fontSize1 = new FontSize() { Val = "22" }; FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript() { Val = "22" }; Languages languages1 = new Languages() { Val = "en-US", EastAsia = "en-US", Bidi = "ar-SA" }; runPropertiesBaseStyle1.Append(runFonts1); runPropertiesBaseStyle1.Append(fontSize1); runPropertiesBaseStyle1.Append(fontSizeComplexScript1); runPropertiesBaseStyle1.Append(languages1); runPropertiesDefault1.Append(runPropertiesBaseStyle1); ParagraphPropertiesDefault paragraphPropertiesDefault1 = new ParagraphPropertiesDefault(); ParagraphPropertiesBaseStyle paragraphPropertiesBaseStyle1 = new ParagraphPropertiesBaseStyle(); SpacingBetweenLines spacingBetweenLines1 = new SpacingBetweenLines() { After = "200", Line = "276", LineRule = LineSpacingRuleValues.Auto }; paragraphPropertiesBaseStyle1.Append(spacingBetweenLines1); paragraphPropertiesDefault1.Append(paragraphPropertiesBaseStyle1); docDefaults1.Append(runPropertiesDefault1); docDefaults1.Append(paragraphPropertiesDefault1); LatentStyles latentStyles1 = new LatentStyles() { DefaultLockedState = false, DefaultUiPriority = 99, DefaultSemiHidden = true, DefaultUnhideWhenUsed = true, DefaultPrimaryStyle = false, Count = 267 }; LatentStyleExceptionInfo latentStyleExceptionInfo1 = new LatentStyleExceptionInfo() { Name = "Normal", UiPriority = 0, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo2 = new LatentStyleExceptionInfo() { Name = "heading 1", UiPriority = 9, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo3 = new LatentStyleExceptionInfo() { Name = "heading 2", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo4 = new LatentStyleExceptionInfo() { Name = "heading 3", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo5 = new LatentStyleExceptionInfo() { Name = "heading 4", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo6 = new LatentStyleExceptionInfo() { Name = "heading 5", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo7 = new LatentStyleExceptionInfo() { Name = "heading 6", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo8 = new LatentStyleExceptionInfo() { Name = "heading 7", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo9 = new LatentStyleExceptionInfo() { Name = "heading 8", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo10 = new LatentStyleExceptionInfo() { Name = "heading 9", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo11 = new LatentStyleExceptionInfo() { Name = "toc 1", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo12 = new LatentStyleExceptionInfo() { Name = "toc 2", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo13 = new LatentStyleExceptionInfo() { Name = "toc 3", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo14 = new LatentStyleExceptionInfo() { Name = "toc 4", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo15 = new LatentStyleExceptionInfo() { Name = "toc 5", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo16 = new LatentStyleExceptionInfo() { Name = "toc 6", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo17 = new LatentStyleExceptionInfo() { Name = "toc 7", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo18 = new LatentStyleExceptionInfo() { Name = "toc 8", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo19 = new LatentStyleExceptionInfo() { Name = "toc 9", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo20 = new LatentStyleExceptionInfo() { Name = "caption", UiPriority = 35, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo21 = new LatentStyleExceptionInfo() { Name = "Title", UiPriority = 10, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo22 = new LatentStyleExceptionInfo() { Name = "Default Paragraph Font", UiPriority = 1 }; LatentStyleExceptionInfo latentStyleExceptionInfo23 = new LatentStyleExceptionInfo() { Name = "Subtitle", UiPriority = 11, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo24 = new LatentStyleExceptionInfo() { Name = "Strong", UiPriority = 22, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo25 = new LatentStyleExceptionInfo() { Name = "Emphasis", UiPriority = 20, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo26 = new LatentStyleExceptionInfo() { Name = "Table Grid", UiPriority = 59, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo27 = new LatentStyleExceptionInfo() { Name = "Placeholder Text", UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo28 = new LatentStyleExceptionInfo() { Name = "No Spacing", UiPriority = 1, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo29 = new LatentStyleExceptionInfo() { Name = "Light Shading", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo30 = new LatentStyleExceptionInfo() { Name = "Light List", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo31 = new LatentStyleExceptionInfo() { Name = "Light Grid", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo32 = new LatentStyleExceptionInfo() { Name = "Medium Shading 1", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo33 = new LatentStyleExceptionInfo() { Name = "Medium Shading 2", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo34 = new LatentStyleExceptionInfo() { Name = "Medium List 1", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo35 = new LatentStyleExceptionInfo() { Name = "Medium List 2", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo36 = new LatentStyleExceptionInfo() { Name = "Medium Grid 1", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo37 = new LatentStyleExceptionInfo() { Name = "Medium Grid 2", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo38 = new LatentStyleExceptionInfo() { Name = "Medium Grid 3", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo39 = new LatentStyleExceptionInfo() { Name = "Dark List", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo40 = new LatentStyleExceptionInfo() { Name = "Colorful Shading", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo41 = new LatentStyleExceptionInfo() { Name = "Colorful List", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo42 = new LatentStyleExceptionInfo() { Name = "Colorful Grid", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo43 = new LatentStyleExceptionInfo() { Name = "Light Shading Accent 1", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo44 = new LatentStyleExceptionInfo() { Name = "Light List Accent 1", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo45 = new LatentStyleExceptionInfo() { Name = "Light Grid Accent 1", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo46 = new LatentStyleExceptionInfo() { Name = "Medium Shading 1 Accent 1", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo47 = new LatentStyleExceptionInfo() { Name = "Medium Shading 2 Accent 1", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo48 = new LatentStyleExceptionInfo() { Name = "Medium List 1 Accent 1", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo49 = new LatentStyleExceptionInfo() { Name = "Revision", UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo50 = new LatentStyleExceptionInfo() { Name = "List Paragraph", UiPriority = 34, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo51 = new LatentStyleExceptionInfo() { Name = "Quote", UiPriority = 29, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo52 = new LatentStyleExceptionInfo() { Name = "Intense Quote", UiPriority = 30, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo53 = new LatentStyleExceptionInfo() { Name = "Medium List 2 Accent 1", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo54 = new LatentStyleExceptionInfo() { Name = "Medium Grid 1 Accent 1", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo55 = new LatentStyleExceptionInfo() { Name = "Medium Grid 2 Accent 1", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo56 = new LatentStyleExceptionInfo() { Name = "Medium Grid 3 Accent 1", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo57 = new LatentStyleExceptionInfo() { Name = "Dark List Accent 1", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo58 = new LatentStyleExceptionInfo() { Name = "Colorful Shading Accent 1", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo59 = new LatentStyleExceptionInfo() { Name = "Colorful List Accent 1", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo60 = new LatentStyleExceptionInfo() { Name = "Colorful Grid Accent 1", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo61 = new LatentStyleExceptionInfo() { Name = "Light Shading Accent 2", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo62 = new LatentStyleExceptionInfo() { Name = "Light List Accent 2", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo63 = new LatentStyleExceptionInfo() { Name = "Light Grid Accent 2", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo64 = new LatentStyleExceptionInfo() { Name = "Medium Shading 1 Accent 2", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo65 = new LatentStyleExceptionInfo() { Name = "Medium Shading 2 Accent 2", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo66 = new LatentStyleExceptionInfo() { Name = "Medium List 1 Accent 2", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo67 = new LatentStyleExceptionInfo() { Name = "Medium List 2 Accent 2", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo68 = new LatentStyleExceptionInfo() { Name = "Medium Grid 1 Accent 2", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo69 = new LatentStyleExceptionInfo() { Name = "Medium Grid 2 Accent 2", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo70 = new LatentStyleExceptionInfo() { Name = "Medium Grid 3 Accent 2", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo71 = new LatentStyleExceptionInfo() { Name = "Dark List Accent 2", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo72 = new LatentStyleExceptionInfo() { Name = "Colorful Shading Accent 2", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo73 = new LatentStyleExceptionInfo() { Name = "Colorful List Accent 2", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo74 = new LatentStyleExceptionInfo() { Name = "Colorful Grid Accent 2", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo75 = new LatentStyleExceptionInfo() { Name = "Light Shading Accent 3", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo76 = new LatentStyleExceptionInfo() { Name = "Light List Accent 3", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo77 = new LatentStyleExceptionInfo() { Name = "Light Grid Accent 3", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo78 = new LatentStyleExceptionInfo() { Name = "Medium Shading 1 Accent 3", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo79 = new LatentStyleExceptionInfo() { Name = "Medium Shading 2 Accent 3", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo80 = new LatentStyleExceptionInfo() { Name = "Medium List 1 Accent 3", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo81 = new LatentStyleExceptionInfo() { Name = "Medium List 2 Accent 3", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo82 = new LatentStyleExceptionInfo() { Name = "Medium Grid 1 Accent 3", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo83 = new LatentStyleExceptionInfo() { Name = "Medium Grid 2 Accent 3", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo84 = new LatentStyleExceptionInfo() { Name = "Medium Grid 3 Accent 3", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo85 = new LatentStyleExceptionInfo() { Name = "Dark List Accent 3", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo86 = new LatentStyleExceptionInfo() { Name = "Colorful Shading Accent 3", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo87 = new LatentStyleExceptionInfo() { Name = "Colorful List Accent 3", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo88 = new LatentStyleExceptionInfo() { Name = "Colorful Grid Accent 3", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo89 = new LatentStyleExceptionInfo() { Name = "Light Shading Accent 4", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo90 = new LatentStyleExceptionInfo() { Name = "Light List Accent 4", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo91 = new LatentStyleExceptionInfo() { Name = "Light Grid Accent 4", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo92 = new LatentStyleExceptionInfo() { Name = "Medium Shading 1 Accent 4", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo93 = new LatentStyleExceptionInfo() { Name = "Medium Shading 2 Accent 4", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo94 = new LatentStyleExceptionInfo() { Name = "Medium List 1 Accent 4", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo95 = new LatentStyleExceptionInfo() { Name = "Medium List 2 Accent 4", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo96 = new LatentStyleExceptionInfo() { Name = "Medium Grid 1 Accent 4", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo97 = new LatentStyleExceptionInfo() { Name = "Medium Grid 2 Accent 4", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo98 = new LatentStyleExceptionInfo() { Name = "Medium Grid 3 Accent 4", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo99 = new LatentStyleExceptionInfo() { Name = "Dark List Accent 4", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo100 = new LatentStyleExceptionInfo() { Name = "Colorful Shading Accent 4", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo101 = new LatentStyleExceptionInfo() { Name = "Colorful List Accent 4", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo102 = new LatentStyleExceptionInfo() { Name = "Colorful Grid Accent 4", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo103 = new LatentStyleExceptionInfo() { Name = "Light Shading Accent 5", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo104 = new LatentStyleExceptionInfo() { Name = "Light List Accent 5", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo105 = new LatentStyleExceptionInfo() { Name = "Light Grid Accent 5", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo106 = new LatentStyleExceptionInfo() { Name = "Medium Shading 1 Accent 5", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo107 = new LatentStyleExceptionInfo() { Name = "Medium Shading 2 Accent 5", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo108 = new LatentStyleExceptionInfo() { Name = "Medium List 1 Accent 5", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo109 = new LatentStyleExceptionInfo() { Name = "Medium List 2 Accent 5", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo110 = new LatentStyleExceptionInfo() { Name = "Medium Grid 1 Accent 5", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo111 = new LatentStyleExceptionInfo() { Name = "Medium Grid 2 Accent 5", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo112 = new LatentStyleExceptionInfo() { Name = "Medium Grid 3 Accent 5", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo113 = new LatentStyleExceptionInfo() { Name = "Dark List Accent 5", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo114 = new LatentStyleExceptionInfo() { Name = "Colorful Shading Accent 5", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo115 = new LatentStyleExceptionInfo() { Name = "Colorful List Accent 5", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo116 = new LatentStyleExceptionInfo() { Name = "Colorful Grid Accent 5", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo117 = new LatentStyleExceptionInfo() { Name = "Light Shading Accent 6", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo118 = new LatentStyleExceptionInfo() { Name = "Light List Accent 6", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo119 = new LatentStyleExceptionInfo() { Name = "Light Grid Accent 6", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo120 = new LatentStyleExceptionInfo() { Name = "Medium Shading 1 Accent 6", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo121 = new LatentStyleExceptionInfo() { Name = "Medium Shading 2 Accent 6", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo122 = new LatentStyleExceptionInfo() { Name = "Medium List 1 Accent 6", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo123 = new LatentStyleExceptionInfo() { Name = "Medium List 2 Accent 6", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo124 = new LatentStyleExceptionInfo() { Name = "Medium Grid 1 Accent 6", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo125 = new LatentStyleExceptionInfo() { Name = "Medium Grid 2 Accent 6", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo126 = new LatentStyleExceptionInfo() { Name = "Medium Grid 3 Accent 6", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo127 = new LatentStyleExceptionInfo() { Name = "Dark List Accent 6", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo128 = new LatentStyleExceptionInfo() { Name = "Colorful Shading Accent 6", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo129 = new LatentStyleExceptionInfo() { Name = "Colorful List Accent 6", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo130 = new LatentStyleExceptionInfo() { Name = "Colorful Grid Accent 6", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo131 = new LatentStyleExceptionInfo() { Name = "Subtle Emphasis", UiPriority = 19, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo132 = new LatentStyleExceptionInfo() { Name = "Intense Emphasis", UiPriority = 21, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo133 = new LatentStyleExceptionInfo() { Name = "Subtle Reference", UiPriority = 31, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo134 = new LatentStyleExceptionInfo() { Name = "Intense Reference", UiPriority = 32, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo135 = new LatentStyleExceptionInfo() { Name = "Book Title", UiPriority = 33, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo136 = new LatentStyleExceptionInfo() { Name = "Bibliography", UiPriority = 37 }; LatentStyleExceptionInfo latentStyleExceptionInfo137 = new LatentStyleExceptionInfo() { Name = "TOC Heading", UiPriority = 39, PrimaryStyle = true }; latentStyles1.Append(latentStyleExceptionInfo1); latentStyles1.Append(latentStyleExceptionInfo2); latentStyles1.Append(latentStyleExceptionInfo3); latentStyles1.Append(latentStyleExceptionInfo4); latentStyles1.Append(latentStyleExceptionInfo5); latentStyles1.Append(latentStyleExceptionInfo6); latentStyles1.Append(latentStyleExceptionInfo7); latentStyles1.Append(latentStyleExceptionInfo8); latentStyles1.Append(latentStyleExceptionInfo9); latentStyles1.Append(latentStyleExceptionInfo10); latentStyles1.Append(latentStyleExceptionInfo11); latentStyles1.Append(latentStyleExceptionInfo12); latentStyles1.Append(latentStyleExceptionInfo13); latentStyles1.Append(latentStyleExceptionInfo14); latentStyles1.Append(latentStyleExceptionInfo15); latentStyles1.Append(latentStyleExceptionInfo16); latentStyles1.Append(latentStyleExceptionInfo17); latentStyles1.Append(latentStyleExceptionInfo18); latentStyles1.Append(latentStyleExceptionInfo19); latentStyles1.Append(latentStyleExceptionInfo20); latentStyles1.Append(latentStyleExceptionInfo21); latentStyles1.Append(latentStyleExceptionInfo22); latentStyles1.Append(latentStyleExceptionInfo23); latentStyles1.Append(latentStyleExceptionInfo24); latentStyles1.Append(latentStyleExceptionInfo25); latentStyles1.Append(latentStyleExceptionInfo26); latentStyles1.Append(latentStyleExceptionInfo27); latentStyles1.Append(latentStyleExceptionInfo28); latentStyles1.Append(latentStyleExceptionInfo29); latentStyles1.Append(latentStyleExceptionInfo30); latentStyles1.Append(latentStyleExceptionInfo31); latentStyles1.Append(latentStyleExceptionInfo32); latentStyles1.Append(latentStyleExceptionInfo33); latentStyles1.Append(latentStyleExceptionInfo34); latentStyles1.Append(latentStyleExceptionInfo35); latentStyles1.Append(latentStyleExceptionInfo36); latentStyles1.Append(latentStyleExceptionInfo37); latentStyles1.Append(latentStyleExceptionInfo38); latentStyles1.Append(latentStyleExceptionInfo39); latentStyles1.Append(latentStyleExceptionInfo40); latentStyles1.Append(latentStyleExceptionInfo41); latentStyles1.Append(latentStyleExceptionInfo42); latentStyles1.Append(latentStyleExceptionInfo43); latentStyles1.Append(latentStyleExceptionInfo44); latentStyles1.Append(latentStyleExceptionInfo45); latentStyles1.Append(latentStyleExceptionInfo46); latentStyles1.Append(latentStyleExceptionInfo47); latentStyles1.Append(latentStyleExceptionInfo48); latentStyles1.Append(latentStyleExceptionInfo49); latentStyles1.Append(latentStyleExceptionInfo50); latentStyles1.Append(latentStyleExceptionInfo51); latentStyles1.Append(latentStyleExceptionInfo52); latentStyles1.Append(latentStyleExceptionInfo53); latentStyles1.Append(latentStyleExceptionInfo54); latentStyles1.Append(latentStyleExceptionInfo55); latentStyles1.Append(latentStyleExceptionInfo56); latentStyles1.Append(latentStyleExceptionInfo57); latentStyles1.Append(latentStyleExceptionInfo58); latentStyles1.Append(latentStyleExceptionInfo59); latentStyles1.Append(latentStyleExceptionInfo60); latentStyles1.Append(latentStyleExceptionInfo61); latentStyles1.Append(latentStyleExceptionInfo62); latentStyles1.Append(latentStyleExceptionInfo63); latentStyles1.Append(latentStyleExceptionInfo64); latentStyles1.Append(latentStyleExceptionInfo65); latentStyles1.Append(latentStyleExceptionInfo66); latentStyles1.Append(latentStyleExceptionInfo67); latentStyles1.Append(latentStyleExceptionInfo68); latentStyles1.Append(latentStyleExceptionInfo69); latentStyles1.Append(latentStyleExceptionInfo70); latentStyles1.Append(latentStyleExceptionInfo71); latentStyles1.Append(latentStyleExceptionInfo72); latentStyles1.Append(latentStyleExceptionInfo73); latentStyles1.Append(latentStyleExceptionInfo74); latentStyles1.Append(latentStyleExceptionInfo75); latentStyles1.Append(latentStyleExceptionInfo76); latentStyles1.Append(latentStyleExceptionInfo77); latentStyles1.Append(latentStyleExceptionInfo78); latentStyles1.Append(latentStyleExceptionInfo79); latentStyles1.Append(latentStyleExceptionInfo80); latentStyles1.Append(latentStyleExceptionInfo81); latentStyles1.Append(latentStyleExceptionInfo82); latentStyles1.Append(latentStyleExceptionInfo83); latentStyles1.Append(latentStyleExceptionInfo84); latentStyles1.Append(latentStyleExceptionInfo85); latentStyles1.Append(latentStyleExceptionInfo86); latentStyles1.Append(latentStyleExceptionInfo87); latentStyles1.Append(latentStyleExceptionInfo88); latentStyles1.Append(latentStyleExceptionInfo89); latentStyles1.Append(latentStyleExceptionInfo90); latentStyles1.Append(latentStyleExceptionInfo91); latentStyles1.Append(latentStyleExceptionInfo92); latentStyles1.Append(latentStyleExceptionInfo93); latentStyles1.Append(latentStyleExceptionInfo94); latentStyles1.Append(latentStyleExceptionInfo95); latentStyles1.Append(latentStyleExceptionInfo96); latentStyles1.Append(latentStyleExceptionInfo97); latentStyles1.Append(latentStyleExceptionInfo98); latentStyles1.Append(latentStyleExceptionInfo99); latentStyles1.Append(latentStyleExceptionInfo100); latentStyles1.Append(latentStyleExceptionInfo101); latentStyles1.Append(latentStyleExceptionInfo102); latentStyles1.Append(latentStyleExceptionInfo103); latentStyles1.Append(latentStyleExceptionInfo104); latentStyles1.Append(latentStyleExceptionInfo105); latentStyles1.Append(latentStyleExceptionInfo106); latentStyles1.Append(latentStyleExceptionInfo107); latentStyles1.Append(latentStyleExceptionInfo108); latentStyles1.Append(latentStyleExceptionInfo109); latentStyles1.Append(latentStyleExceptionInfo110); latentStyles1.Append(latentStyleExceptionInfo111); latentStyles1.Append(latentStyleExceptionInfo112); latentStyles1.Append(latentStyleExceptionInfo113); latentStyles1.Append(latentStyleExceptionInfo114); latentStyles1.Append(latentStyleExceptionInfo115); latentStyles1.Append(latentStyleExceptionInfo116); latentStyles1.Append(latentStyleExceptionInfo117); latentStyles1.Append(latentStyleExceptionInfo118); latentStyles1.Append(latentStyleExceptionInfo119); latentStyles1.Append(latentStyleExceptionInfo120); latentStyles1.Append(latentStyleExceptionInfo121); latentStyles1.Append(latentStyleExceptionInfo122); latentStyles1.Append(latentStyleExceptionInfo123); latentStyles1.Append(latentStyleExceptionInfo124); latentStyles1.Append(latentStyleExceptionInfo125); latentStyles1.Append(latentStyleExceptionInfo126); latentStyles1.Append(latentStyleExceptionInfo127); latentStyles1.Append(latentStyleExceptionInfo128); latentStyles1.Append(latentStyleExceptionInfo129); latentStyles1.Append(latentStyleExceptionInfo130); latentStyles1.Append(latentStyleExceptionInfo131); latentStyles1.Append(latentStyleExceptionInfo132); latentStyles1.Append(latentStyleExceptionInfo133); latentStyles1.Append(latentStyleExceptionInfo134); latentStyles1.Append(latentStyleExceptionInfo135); latentStyles1.Append(latentStyleExceptionInfo136); latentStyles1.Append(latentStyleExceptionInfo137); Style style1 = new Style() { Type = StyleValues.Paragraph, StyleId = "Normal", Default = true }; StyleName styleName1 = new StyleName() { Val = "Normal" }; PrimaryStyle primaryStyle1 = new PrimaryStyle(); Rsid rsid1 = new Rsid() { Val = "00BA40EF" }; StyleParagraphProperties styleParagraphProperties1 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines2 = new SpacingBetweenLines() { After = "0" }; styleParagraphProperties1.Append(spacingBetweenLines2); style1.Append(styleName1); style1.Append(primaryStyle1); style1.Append(rsid1); style1.Append(styleParagraphProperties1); Style style2 = new Style() { Type = StyleValues.Paragraph, StyleId = "Heading1" }; StyleName styleName2 = new StyleName() { Val = "heading 1" }; BasedOn basedOn1 = new BasedOn() { Val = "Normal" }; NextParagraphStyle nextParagraphStyle1 = new NextParagraphStyle() { Val = "Normal" }; LinkedStyle linkedStyle1 = new LinkedStyle() { Val = "Heading1Char" }; UIPriority uIPriority1 = new UIPriority() { Val = 9 }; PrimaryStyle primaryStyle2 = new PrimaryStyle(); Rsid rsid2 = new Rsid() { Val = "0016335E" }; StyleParagraphProperties styleParagraphProperties2 = new StyleParagraphProperties(); KeepNext keepNext1 = new KeepNext(); KeepLines keepLines1 = new KeepLines(); SpacingBetweenLines spacingBetweenLines3 = new SpacingBetweenLines() { Before = "480" }; OutlineLevel outlineLevel1 = new OutlineLevel() { Val = 0 }; styleParagraphProperties2.Append(keepNext1); styleParagraphProperties2.Append(keepLines1); styleParagraphProperties2.Append(spacingBetweenLines3); styleParagraphProperties2.Append(outlineLevel1); StyleRunProperties styleRunProperties1 = new StyleRunProperties(); RunFonts runFonts2 = new RunFonts() { AsciiTheme = ThemeFontValues.MajorHighAnsi, HighAnsiTheme = ThemeFontValues.MajorHighAnsi, EastAsiaTheme = ThemeFontValues.MajorEastAsia, ComplexScriptTheme = ThemeFontValues.MajorBidi }; Bold bold1 = new Bold(); BoldComplexScript boldComplexScript1 = new BoldComplexScript(); Color color1 = new Color() { Val = "365F91", ThemeColor = ThemeColorValues.Accent1, ThemeShade = "BF" }; FontSize fontSize2 = new FontSize() { Val = "28" }; FontSizeComplexScript fontSizeComplexScript2 = new FontSizeComplexScript() { Val = "28" }; styleRunProperties1.Append(runFonts2); styleRunProperties1.Append(bold1); styleRunProperties1.Append(boldComplexScript1); styleRunProperties1.Append(color1); styleRunProperties1.Append(fontSize2); styleRunProperties1.Append(fontSizeComplexScript2); style2.Append(styleName2); style2.Append(basedOn1); style2.Append(nextParagraphStyle1); style2.Append(linkedStyle1); style2.Append(uIPriority1); style2.Append(primaryStyle2); style2.Append(rsid2); style2.Append(styleParagraphProperties2); style2.Append(styleRunProperties1); Style style3 = new Style() { Type = StyleValues.Paragraph, StyleId = "Heading2" }; StyleName styleName3 = new StyleName() { Val = "heading 2" }; BasedOn basedOn2 = new BasedOn() { Val = "Normal" }; NextParagraphStyle nextParagraphStyle2 = new NextParagraphStyle() { Val = "Normal" }; LinkedStyle linkedStyle2 = new LinkedStyle() { Val = "Heading2Char" }; UIPriority uIPriority2 = new UIPriority() { Val = 9 }; UnhideWhenUsed unhideWhenUsed1 = new UnhideWhenUsed(); PrimaryStyle primaryStyle3 = new PrimaryStyle(); Rsid rsid3 = new Rsid() { Val = "0016335E" }; StyleParagraphProperties styleParagraphProperties3 = new StyleParagraphProperties(); KeepNext keepNext2 = new KeepNext(); KeepLines keepLines2 = new KeepLines(); SpacingBetweenLines spacingBetweenLines4 = new SpacingBetweenLines() { Before = "200" }; OutlineLevel outlineLevel2 = new OutlineLevel() { Val = 1 }; styleParagraphProperties3.Append(keepNext2); styleParagraphProperties3.Append(keepLines2); styleParagraphProperties3.Append(spacingBetweenLines4); styleParagraphProperties3.Append(outlineLevel2); StyleRunProperties styleRunProperties2 = new StyleRunProperties(); RunFonts runFonts3 = new RunFonts() { AsciiTheme = ThemeFontValues.MajorHighAnsi, HighAnsiTheme = ThemeFontValues.MajorHighAnsi, EastAsiaTheme = ThemeFontValues.MajorEastAsia, ComplexScriptTheme = ThemeFontValues.MajorBidi }; Bold bold2 = new Bold(); BoldComplexScript boldComplexScript2 = new BoldComplexScript(); Color color2 = new Color() { Val = "4F81BD", ThemeColor = ThemeColorValues.Accent1 }; FontSize fontSize3 = new FontSize() { Val = "26" }; FontSizeComplexScript fontSizeComplexScript3 = new FontSizeComplexScript() { Val = "26" }; styleRunProperties2.Append(runFonts3); styleRunProperties2.Append(bold2); styleRunProperties2.Append(boldComplexScript2); styleRunProperties2.Append(color2); styleRunProperties2.Append(fontSize3); styleRunProperties2.Append(fontSizeComplexScript3); style3.Append(styleName3); style3.Append(basedOn2); style3.Append(nextParagraphStyle2); style3.Append(linkedStyle2); style3.Append(uIPriority2); style3.Append(unhideWhenUsed1); style3.Append(primaryStyle3); style3.Append(rsid3); style3.Append(styleParagraphProperties3); style3.Append(styleRunProperties2); Style style4 = new Style() { Type = StyleValues.Paragraph, StyleId = "Heading3" }; StyleName styleName4 = new StyleName() { Val = "heading 3" }; BasedOn basedOn3 = new BasedOn() { Val = "Normal" }; NextParagraphStyle nextParagraphStyle3 = new NextParagraphStyle() { Val = "Normal" }; LinkedStyle linkedStyle3 = new LinkedStyle() { Val = "Heading3Char" }; UIPriority uIPriority3 = new UIPriority() { Val = 9 }; UnhideWhenUsed unhideWhenUsed2 = new UnhideWhenUsed(); PrimaryStyle primaryStyle4 = new PrimaryStyle(); Rsid rsid4 = new Rsid() { Val = "0016335E" }; StyleParagraphProperties styleParagraphProperties4 = new StyleParagraphProperties(); KeepNext keepNext3 = new KeepNext(); KeepLines keepLines3 = new KeepLines(); SpacingBetweenLines spacingBetweenLines5 = new SpacingBetweenLines() { Before = "200" }; OutlineLevel outlineLevel3 = new OutlineLevel() { Val = 2 }; styleParagraphProperties4.Append(keepNext3); styleParagraphProperties4.Append(keepLines3); styleParagraphProperties4.Append(spacingBetweenLines5); styleParagraphProperties4.Append(outlineLevel3); StyleRunProperties styleRunProperties3 = new StyleRunProperties(); RunFonts runFonts4 = new RunFonts() { AsciiTheme = ThemeFontValues.MajorHighAnsi, HighAnsiTheme = ThemeFontValues.MajorHighAnsi, EastAsiaTheme = ThemeFontValues.MajorEastAsia, ComplexScriptTheme = ThemeFontValues.MajorBidi }; Bold bold3 = new Bold(); BoldComplexScript boldComplexScript3 = new BoldComplexScript(); Color color3 = new Color() { Val = "4F81BD", ThemeColor = ThemeColorValues.Accent1 }; styleRunProperties3.Append(runFonts4); styleRunProperties3.Append(bold3); styleRunProperties3.Append(boldComplexScript3); styleRunProperties3.Append(color3); style4.Append(styleName4); style4.Append(basedOn3); style4.Append(nextParagraphStyle3); style4.Append(linkedStyle3); style4.Append(uIPriority3); style4.Append(unhideWhenUsed2); style4.Append(primaryStyle4); style4.Append(rsid4); style4.Append(styleParagraphProperties4); style4.Append(styleRunProperties3); Style style5 = new Style() { Type = StyleValues.Character, StyleId = "DefaultParagraphFont", Default = true }; StyleName styleName5 = new StyleName() { Val = "Default Paragraph Font" }; UIPriority uIPriority4 = new UIPriority() { Val = 1 }; SemiHidden semiHidden1 = new SemiHidden(); UnhideWhenUsed unhideWhenUsed3 = new UnhideWhenUsed(); style5.Append(styleName5); style5.Append(uIPriority4); style5.Append(semiHidden1); style5.Append(unhideWhenUsed3); Style style6 = new Style() { Type = StyleValues.Table, StyleId = "TableNormal", Default = true }; StyleName styleName6 = new StyleName() { Val = "Normal Table" }; UIPriority uIPriority5 = new UIPriority() { Val = 99 }; SemiHidden semiHidden2 = new SemiHidden(); UnhideWhenUsed unhideWhenUsed4 = new UnhideWhenUsed(); PrimaryStyle primaryStyle5 = new PrimaryStyle(); StyleTableProperties styleTableProperties1 = new StyleTableProperties(); TableIndentation tableIndentation1 = new TableIndentation() { Width = 0, Type = TableWidthUnitValues.Dxa }; TableCellMarginDefault tableCellMarginDefault1 = new TableCellMarginDefault(); TopMargin topMargin1 = new TopMargin() { Width = "0", Type = TableWidthUnitValues.Dxa }; TableCellLeftMargin tableCellLeftMargin1 = new TableCellLeftMargin() { Width = 108, Type = TableWidthValues.Dxa }; BottomMargin bottomMargin1 = new BottomMargin() { Width = "0", Type = TableWidthUnitValues.Dxa }; TableCellRightMargin tableCellRightMargin1 = new TableCellRightMargin() { Width = 108, Type = TableWidthValues.Dxa }; tableCellMarginDefault1.Append(topMargin1); tableCellMarginDefault1.Append(tableCellLeftMargin1); tableCellMarginDefault1.Append(bottomMargin1); tableCellMarginDefault1.Append(tableCellRightMargin1); styleTableProperties1.Append(tableIndentation1); styleTableProperties1.Append(tableCellMarginDefault1); style6.Append(styleName6); style6.Append(uIPriority5); style6.Append(semiHidden2); style6.Append(unhideWhenUsed4); style6.Append(primaryStyle5); style6.Append(styleTableProperties1); Style style7 = new Style() { Type = StyleValues.Numbering, StyleId = "NoList", Default = true }; StyleName styleName7 = new StyleName() { Val = "No List" }; UIPriority uIPriority6 = new UIPriority() { Val = 99 }; SemiHidden semiHidden3 = new SemiHidden(); UnhideWhenUsed unhideWhenUsed5 = new UnhideWhenUsed(); style7.Append(styleName7); style7.Append(uIPriority6); style7.Append(semiHidden3); style7.Append(unhideWhenUsed5); Style style8 = new Style() { Type = StyleValues.Character, StyleId = "Heading1Char", CustomStyle = true }; StyleName styleName8 = new StyleName() { Val = "Heading 1 Char" }; BasedOn basedOn4 = new BasedOn() { Val = "DefaultParagraphFont" }; LinkedStyle linkedStyle4 = new LinkedStyle() { Val = "Heading1" }; UIPriority uIPriority7 = new UIPriority() { Val = 9 }; Rsid rsid5 = new Rsid() { Val = "0016335E" }; StyleRunProperties styleRunProperties4 = new StyleRunProperties(); RunFonts runFonts5 = new RunFonts() { AsciiTheme = ThemeFontValues.MajorHighAnsi, HighAnsiTheme = ThemeFontValues.MajorHighAnsi, EastAsiaTheme = ThemeFontValues.MajorEastAsia, ComplexScriptTheme = ThemeFontValues.MajorBidi }; Bold bold4 = new Bold(); BoldComplexScript boldComplexScript4 = new BoldComplexScript(); Color color4 = new Color() { Val = "365F91", ThemeColor = ThemeColorValues.Accent1, ThemeShade = "BF" }; FontSize fontSize4 = new FontSize() { Val = "28" }; FontSizeComplexScript fontSizeComplexScript4 = new FontSizeComplexScript() { Val = "28" }; styleRunProperties4.Append(runFonts5); styleRunProperties4.Append(bold4); styleRunProperties4.Append(boldComplexScript4); styleRunProperties4.Append(color4); styleRunProperties4.Append(fontSize4); styleRunProperties4.Append(fontSizeComplexScript4); style8.Append(styleName8); style8.Append(basedOn4); style8.Append(linkedStyle4); style8.Append(uIPriority7); style8.Append(rsid5); style8.Append(styleRunProperties4); Style style9 = new Style() { Type = StyleValues.Character, StyleId = "Heading2Char", CustomStyle = true }; StyleName styleName9 = new StyleName() { Val = "Heading 2 Char" }; BasedOn basedOn5 = new BasedOn() { Val = "DefaultParagraphFont" }; LinkedStyle linkedStyle5 = new LinkedStyle() { Val = "Heading2" }; UIPriority uIPriority8 = new UIPriority() { Val = 9 }; Rsid rsid6 = new Rsid() { Val = "0016335E" }; StyleRunProperties styleRunProperties5 = new StyleRunProperties(); RunFonts runFonts6 = new RunFonts() { AsciiTheme = ThemeFontValues.MajorHighAnsi, HighAnsiTheme = ThemeFontValues.MajorHighAnsi, EastAsiaTheme = ThemeFontValues.MajorEastAsia, ComplexScriptTheme = ThemeFontValues.MajorBidi }; Bold bold5 = new Bold(); BoldComplexScript boldComplexScript5 = new BoldComplexScript(); Color color5 = new Color() { Val = "4F81BD", ThemeColor = ThemeColorValues.Accent1 }; FontSize fontSize5 = new FontSize() { Val = "26" }; FontSizeComplexScript fontSizeComplexScript5 = new FontSizeComplexScript() { Val = "26" }; styleRunProperties5.Append(runFonts6); styleRunProperties5.Append(bold5); styleRunProperties5.Append(boldComplexScript5); styleRunProperties5.Append(color5); styleRunProperties5.Append(fontSize5); styleRunProperties5.Append(fontSizeComplexScript5); style9.Append(styleName9); style9.Append(basedOn5); style9.Append(linkedStyle5); style9.Append(uIPriority8); style9.Append(rsid6); style9.Append(styleRunProperties5); Style style10 = new Style() { Type = StyleValues.Character, StyleId = "Heading3Char", CustomStyle = true }; StyleName styleName10 = new StyleName() { Val = "Heading 3 Char" }; BasedOn basedOn6 = new BasedOn() { Val = "DefaultParagraphFont" }; LinkedStyle linkedStyle6 = new LinkedStyle() { Val = "Heading3" }; UIPriority uIPriority9 = new UIPriority() { Val = 9 }; Rsid rsid7 = new Rsid() { Val = "0016335E" }; StyleRunProperties styleRunProperties6 = new StyleRunProperties(); RunFonts runFonts7 = new RunFonts() { AsciiTheme = ThemeFontValues.MajorHighAnsi, HighAnsiTheme = ThemeFontValues.MajorHighAnsi, EastAsiaTheme = ThemeFontValues.MajorEastAsia, ComplexScriptTheme = ThemeFontValues.MajorBidi }; Bold bold6 = new Bold(); BoldComplexScript boldComplexScript6 = new BoldComplexScript(); Color color6 = new Color() { Val = "4F81BD", ThemeColor = ThemeColorValues.Accent1 }; styleRunProperties6.Append(runFonts7); styleRunProperties6.Append(bold6); styleRunProperties6.Append(boldComplexScript6); styleRunProperties6.Append(color6); style10.Append(styleName10); style10.Append(basedOn6); style10.Append(linkedStyle6); style10.Append(uIPriority9); style10.Append(rsid7); style10.Append(styleRunProperties6); Style style11 = new Style() { Type = StyleValues.Table, StyleId = "TableGrid" }; StyleName styleName11 = new StyleName() { Val = "Table Grid" }; BasedOn basedOn7 = new BasedOn() { Val = "TableNormal" }; UIPriority uIPriority10 = new UIPriority() { Val = 59 }; Rsid rsid8 = new Rsid() { Val = "00BA40EF" }; StyleParagraphProperties styleParagraphProperties5 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines6 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; styleParagraphProperties5.Append(spacingBetweenLines6); StyleTableProperties styleTableProperties2 = new StyleTableProperties(); TableIndentation tableIndentation2 = new TableIndentation() { Width = 0, Type = TableWidthUnitValues.Dxa }; TableBorders tableBorders1 = new TableBorders(); TopBorder topBorder1 = new TopBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; LeftBorder leftBorder1 = new LeftBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; BottomBorder bottomBorder1 = new BottomBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; RightBorder rightBorder1 = new RightBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; InsideHorizontalBorder insideHorizontalBorder1 = new InsideHorizontalBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; InsideVerticalBorder insideVerticalBorder1 = new InsideVerticalBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; tableBorders1.Append(topBorder1); tableBorders1.Append(leftBorder1); tableBorders1.Append(bottomBorder1); tableBorders1.Append(rightBorder1); tableBorders1.Append(insideHorizontalBorder1); tableBorders1.Append(insideVerticalBorder1); TableCellMarginDefault tableCellMarginDefault2 = new TableCellMarginDefault(); TopMargin topMargin2 = new TopMargin() { Width = "0", Type = TableWidthUnitValues.Dxa }; TableCellLeftMargin tableCellLeftMargin2 = new TableCellLeftMargin() { Width = 108, Type = TableWidthValues.Dxa }; BottomMargin bottomMargin2 = new BottomMargin() { Width = "0", Type = TableWidthUnitValues.Dxa }; TableCellRightMargin tableCellRightMargin2 = new TableCellRightMargin() { Width = 108, Type = TableWidthValues.Dxa }; tableCellMarginDefault2.Append(topMargin2); tableCellMarginDefault2.Append(tableCellLeftMargin2); tableCellMarginDefault2.Append(bottomMargin2); tableCellMarginDefault2.Append(tableCellRightMargin2); styleTableProperties2.Append(tableIndentation2); styleTableProperties2.Append(tableBorders1); styleTableProperties2.Append(tableCellMarginDefault2); style11.Append(styleName11); style11.Append(basedOn7); style11.Append(uIPriority10); style11.Append(rsid8); style11.Append(styleParagraphProperties5); style11.Append(styleTableProperties2); Style style12 = new Style() { Type = StyleValues.Table, StyleId = "LightList-Accent1" }; StyleName styleName12 = new StyleName() { Val = "Light List Accent 1" }; BasedOn basedOn8 = new BasedOn() { Val = "TableNormal" }; UIPriority uIPriority11 = new UIPriority() { Val = 61 }; Rsid rsid9 = new Rsid() { Val = "00BA40EF" }; StyleParagraphProperties styleParagraphProperties6 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines7 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; styleParagraphProperties6.Append(spacingBetweenLines7); StyleTableProperties styleTableProperties3 = new StyleTableProperties(); TableStyleRowBandSize tableStyleRowBandSize1 = new TableStyleRowBandSize() { Val = 1 }; TableStyleColumnBandSize tableStyleColumnBandSize1 = new TableStyleColumnBandSize() { Val = 1 }; TableIndentation tableIndentation3 = new TableIndentation() { Width = 0, Type = TableWidthUnitValues.Dxa }; TableBorders tableBorders2 = new TableBorders(); TopBorder topBorder2 = new TopBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; LeftBorder leftBorder2 = new LeftBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; BottomBorder bottomBorder2 = new BottomBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; RightBorder rightBorder2 = new RightBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; tableBorders2.Append(topBorder2); tableBorders2.Append(leftBorder2); tableBorders2.Append(bottomBorder2); tableBorders2.Append(rightBorder2); TableCellMarginDefault tableCellMarginDefault3 = new TableCellMarginDefault(); TopMargin topMargin3 = new TopMargin() { Width = "0", Type = TableWidthUnitValues.Dxa }; TableCellLeftMargin tableCellLeftMargin3 = new TableCellLeftMargin() { Width = 108, Type = TableWidthValues.Dxa }; BottomMargin bottomMargin3 = new BottomMargin() { Width = "0", Type = TableWidthUnitValues.Dxa }; TableCellRightMargin tableCellRightMargin3 = new TableCellRightMargin() { Width = 108, Type = TableWidthValues.Dxa }; tableCellMarginDefault3.Append(topMargin3); tableCellMarginDefault3.Append(tableCellLeftMargin3); tableCellMarginDefault3.Append(bottomMargin3); tableCellMarginDefault3.Append(tableCellRightMargin3); styleTableProperties3.Append(tableStyleRowBandSize1); styleTableProperties3.Append(tableStyleColumnBandSize1); styleTableProperties3.Append(tableIndentation3); styleTableProperties3.Append(tableBorders2); styleTableProperties3.Append(tableCellMarginDefault3); TableStyleProperties tableStyleProperties1 = new TableStyleProperties() { Type = TableStyleOverrideValues.FirstRow }; StyleParagraphProperties styleParagraphProperties7 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines8 = new SpacingBetweenLines() { Before = "0", After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; styleParagraphProperties7.Append(spacingBetweenLines8); RunPropertiesBaseStyle runPropertiesBaseStyle2 = new RunPropertiesBaseStyle(); Bold bold7 = new Bold(); BoldComplexScript boldComplexScript7 = new BoldComplexScript(); Color color7 = new Color() { Val = "FFFFFF", ThemeColor = ThemeColorValues.Background1 }; runPropertiesBaseStyle2.Append(bold7); runPropertiesBaseStyle2.Append(boldComplexScript7); runPropertiesBaseStyle2.Append(color7); TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties1 = new TableStyleConditionalFormattingTableProperties(); TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties1 = new TableStyleConditionalFormattingTableCellProperties(); Shading shading1 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "4F81BD", ThemeFill = ThemeColorValues.Accent1 }; tableStyleConditionalFormattingTableCellProperties1.Append(shading1); tableStyleProperties1.Append(styleParagraphProperties7); tableStyleProperties1.Append(runPropertiesBaseStyle2); tableStyleProperties1.Append(tableStyleConditionalFormattingTableProperties1); tableStyleProperties1.Append(tableStyleConditionalFormattingTableCellProperties1); TableStyleProperties tableStyleProperties2 = new TableStyleProperties() { Type = TableStyleOverrideValues.LastRow }; StyleParagraphProperties styleParagraphProperties8 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines9 = new SpacingBetweenLines() { Before = "0", After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; styleParagraphProperties8.Append(spacingBetweenLines9); RunPropertiesBaseStyle runPropertiesBaseStyle3 = new RunPropertiesBaseStyle(); Bold bold8 = new Bold(); BoldComplexScript boldComplexScript8 = new BoldComplexScript(); runPropertiesBaseStyle3.Append(bold8); runPropertiesBaseStyle3.Append(boldComplexScript8); TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties2 = new TableStyleConditionalFormattingTableProperties(); TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties2 = new TableStyleConditionalFormattingTableCellProperties(); TableCellBorders tableCellBorders1 = new TableCellBorders(); TopBorder topBorder3 = new TopBorder() { Val = BorderValues.Double, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)6U, Space = (UInt32Value)0U }; LeftBorder leftBorder3 = new LeftBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; BottomBorder bottomBorder3 = new BottomBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; RightBorder rightBorder3 = new RightBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; tableCellBorders1.Append(topBorder3); tableCellBorders1.Append(leftBorder3); tableCellBorders1.Append(bottomBorder3); tableCellBorders1.Append(rightBorder3); tableStyleConditionalFormattingTableCellProperties2.Append(tableCellBorders1); tableStyleProperties2.Append(styleParagraphProperties8); tableStyleProperties2.Append(runPropertiesBaseStyle3); tableStyleProperties2.Append(tableStyleConditionalFormattingTableProperties2); tableStyleProperties2.Append(tableStyleConditionalFormattingTableCellProperties2); TableStyleProperties tableStyleProperties3 = new TableStyleProperties() { Type = TableStyleOverrideValues.FirstColumn }; RunPropertiesBaseStyle runPropertiesBaseStyle4 = new RunPropertiesBaseStyle(); Bold bold9 = new Bold(); BoldComplexScript boldComplexScript9 = new BoldComplexScript(); runPropertiesBaseStyle4.Append(bold9); runPropertiesBaseStyle4.Append(boldComplexScript9); tableStyleProperties3.Append(runPropertiesBaseStyle4); TableStyleProperties tableStyleProperties4 = new TableStyleProperties() { Type = TableStyleOverrideValues.LastColumn }; RunPropertiesBaseStyle runPropertiesBaseStyle5 = new RunPropertiesBaseStyle(); Bold bold10 = new Bold(); BoldComplexScript boldComplexScript10 = new BoldComplexScript(); runPropertiesBaseStyle5.Append(bold10); runPropertiesBaseStyle5.Append(boldComplexScript10); tableStyleProperties4.Append(runPropertiesBaseStyle5); TableStyleProperties tableStyleProperties5 = new TableStyleProperties() { Type = TableStyleOverrideValues.Band1Vertical }; TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties3 = new TableStyleConditionalFormattingTableProperties(); TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties3 = new TableStyleConditionalFormattingTableCellProperties(); TableCellBorders tableCellBorders2 = new TableCellBorders(); TopBorder topBorder4 = new TopBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; LeftBorder leftBorder4 = new LeftBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; BottomBorder bottomBorder4 = new BottomBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; RightBorder rightBorder4 = new RightBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; tableCellBorders2.Append(topBorder4); tableCellBorders2.Append(leftBorder4); tableCellBorders2.Append(bottomBorder4); tableCellBorders2.Append(rightBorder4); tableStyleConditionalFormattingTableCellProperties3.Append(tableCellBorders2); tableStyleProperties5.Append(tableStyleConditionalFormattingTableProperties3); tableStyleProperties5.Append(tableStyleConditionalFormattingTableCellProperties3); TableStyleProperties tableStyleProperties6 = new TableStyleProperties() { Type = TableStyleOverrideValues.Band1Horizontal }; TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties4 = new TableStyleConditionalFormattingTableProperties(); TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties4 = new TableStyleConditionalFormattingTableCellProperties(); TableCellBorders tableCellBorders3 = new TableCellBorders(); TopBorder topBorder5 = new TopBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; LeftBorder leftBorder5 = new LeftBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; BottomBorder bottomBorder5 = new BottomBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; RightBorder rightBorder5 = new RightBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; tableCellBorders3.Append(topBorder5); tableCellBorders3.Append(leftBorder5); tableCellBorders3.Append(bottomBorder5); tableCellBorders3.Append(rightBorder5); tableStyleConditionalFormattingTableCellProperties4.Append(tableCellBorders3); tableStyleProperties6.Append(tableStyleConditionalFormattingTableProperties4); tableStyleProperties6.Append(tableStyleConditionalFormattingTableCellProperties4); style12.Append(styleName12); style12.Append(basedOn8); style12.Append(uIPriority11); style12.Append(rsid9); style12.Append(styleParagraphProperties6); style12.Append(styleTableProperties3); style12.Append(tableStyleProperties1); style12.Append(tableStyleProperties2); style12.Append(tableStyleProperties3); style12.Append(tableStyleProperties4); style12.Append(tableStyleProperties5); style12.Append(tableStyleProperties6); Style style13 = new Style() { Type = StyleValues.Table, StyleId = "MediumGrid3-Accent1" }; StyleName styleName13 = new StyleName() { Val = "Medium Grid 3 Accent 1" }; BasedOn basedOn9 = new BasedOn() { Val = "TableNormal" }; UIPriority uIPriority12 = new UIPriority() { Val = 69 }; Rsid rsid10 = new Rsid() { Val = "00BA40EF" }; StyleParagraphProperties styleParagraphProperties9 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines10 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; styleParagraphProperties9.Append(spacingBetweenLines10); StyleTableProperties styleTableProperties4 = new StyleTableProperties(); TableStyleRowBandSize tableStyleRowBandSize2 = new TableStyleRowBandSize() { Val = 1 }; TableStyleColumnBandSize tableStyleColumnBandSize2 = new TableStyleColumnBandSize() { Val = 1 }; TableIndentation tableIndentation4 = new TableIndentation() { Width = 0, Type = TableWidthUnitValues.Dxa }; TableBorders tableBorders3 = new TableBorders(); TopBorder topBorder6 = new TopBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; LeftBorder leftBorder6 = new LeftBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; BottomBorder bottomBorder6 = new BottomBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; RightBorder rightBorder6 = new RightBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; InsideHorizontalBorder insideHorizontalBorder2 = new InsideHorizontalBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)6U, Space = (UInt32Value)0U }; InsideVerticalBorder insideVerticalBorder2 = new InsideVerticalBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)6U, Space = (UInt32Value)0U }; tableBorders3.Append(topBorder6); tableBorders3.Append(leftBorder6); tableBorders3.Append(bottomBorder6); tableBorders3.Append(rightBorder6); tableBorders3.Append(insideHorizontalBorder2); tableBorders3.Append(insideVerticalBorder2); TableCellMarginDefault tableCellMarginDefault4 = new TableCellMarginDefault(); TopMargin topMargin4 = new TopMargin() { Width = "0", Type = TableWidthUnitValues.Dxa }; TableCellLeftMargin tableCellLeftMargin4 = new TableCellLeftMargin() { Width = 108, Type = TableWidthValues.Dxa }; BottomMargin bottomMargin4 = new BottomMargin() { Width = "0", Type = TableWidthUnitValues.Dxa }; TableCellRightMargin tableCellRightMargin4 = new TableCellRightMargin() { Width = 108, Type = TableWidthValues.Dxa }; tableCellMarginDefault4.Append(topMargin4); tableCellMarginDefault4.Append(tableCellLeftMargin4); tableCellMarginDefault4.Append(bottomMargin4); tableCellMarginDefault4.Append(tableCellRightMargin4); styleTableProperties4.Append(tableStyleRowBandSize2); styleTableProperties4.Append(tableStyleColumnBandSize2); styleTableProperties4.Append(tableIndentation4); styleTableProperties4.Append(tableBorders3); styleTableProperties4.Append(tableCellMarginDefault4); StyleTableCellProperties styleTableCellProperties1 = new StyleTableCellProperties(); Shading shading2 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "D3DFEE", ThemeFill = ThemeColorValues.Accent1, ThemeFillTint = "3F" }; styleTableCellProperties1.Append(shading2); TableStyleProperties tableStyleProperties7 = new TableStyleProperties() { Type = TableStyleOverrideValues.FirstRow }; RunPropertiesBaseStyle runPropertiesBaseStyle6 = new RunPropertiesBaseStyle(); Bold bold11 = new Bold(); BoldComplexScript boldComplexScript11 = new BoldComplexScript(); Italic italic1 = new Italic() { Val = false }; ItalicComplexScript italicComplexScript1 = new ItalicComplexScript() { Val = false }; Color color8 = new Color() { Val = "FFFFFF", ThemeColor = ThemeColorValues.Background1 }; runPropertiesBaseStyle6.Append(bold11); runPropertiesBaseStyle6.Append(boldComplexScript11); runPropertiesBaseStyle6.Append(italic1); runPropertiesBaseStyle6.Append(italicComplexScript1); runPropertiesBaseStyle6.Append(color8); TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties5 = new TableStyleConditionalFormattingTableProperties(); TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties5 = new TableStyleConditionalFormattingTableCellProperties(); TableCellBorders tableCellBorders4 = new TableCellBorders(); TopBorder topBorder7 = new TopBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; LeftBorder leftBorder7 = new LeftBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; BottomBorder bottomBorder7 = new BottomBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)24U, Space = (UInt32Value)0U }; RightBorder rightBorder7 = new RightBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; InsideHorizontalBorder insideHorizontalBorder3 = new InsideHorizontalBorder() { Val = BorderValues.Nil }; InsideVerticalBorder insideVerticalBorder3 = new InsideVerticalBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; tableCellBorders4.Append(topBorder7); tableCellBorders4.Append(leftBorder7); tableCellBorders4.Append(bottomBorder7); tableCellBorders4.Append(rightBorder7); tableCellBorders4.Append(insideHorizontalBorder3); tableCellBorders4.Append(insideVerticalBorder3); Shading shading3 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "4F81BD", ThemeFill = ThemeColorValues.Accent1 }; tableStyleConditionalFormattingTableCellProperties5.Append(tableCellBorders4); tableStyleConditionalFormattingTableCellProperties5.Append(shading3); tableStyleProperties7.Append(runPropertiesBaseStyle6); tableStyleProperties7.Append(tableStyleConditionalFormattingTableProperties5); tableStyleProperties7.Append(tableStyleConditionalFormattingTableCellProperties5); TableStyleProperties tableStyleProperties8 = new TableStyleProperties() { Type = TableStyleOverrideValues.LastRow }; RunPropertiesBaseStyle runPropertiesBaseStyle7 = new RunPropertiesBaseStyle(); Bold bold12 = new Bold(); BoldComplexScript boldComplexScript12 = new BoldComplexScript(); Italic italic2 = new Italic() { Val = false }; ItalicComplexScript italicComplexScript2 = new ItalicComplexScript() { Val = false }; Color color9 = new Color() { Val = "FFFFFF", ThemeColor = ThemeColorValues.Background1 }; runPropertiesBaseStyle7.Append(bold12); runPropertiesBaseStyle7.Append(boldComplexScript12); runPropertiesBaseStyle7.Append(italic2); runPropertiesBaseStyle7.Append(italicComplexScript2); runPropertiesBaseStyle7.Append(color9); TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties6 = new TableStyleConditionalFormattingTableProperties(); TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties6 = new TableStyleConditionalFormattingTableCellProperties(); TableCellBorders tableCellBorders5 = new TableCellBorders(); TopBorder topBorder8 = new TopBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)24U, Space = (UInt32Value)0U }; LeftBorder leftBorder8 = new LeftBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; BottomBorder bottomBorder8 = new BottomBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; RightBorder rightBorder8 = new RightBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; InsideHorizontalBorder insideHorizontalBorder4 = new InsideHorizontalBorder() { Val = BorderValues.Nil }; InsideVerticalBorder insideVerticalBorder4 = new InsideVerticalBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; tableCellBorders5.Append(topBorder8); tableCellBorders5.Append(leftBorder8); tableCellBorders5.Append(bottomBorder8); tableCellBorders5.Append(rightBorder8); tableCellBorders5.Append(insideHorizontalBorder4); tableCellBorders5.Append(insideVerticalBorder4); Shading shading4 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "4F81BD", ThemeFill = ThemeColorValues.Accent1 }; tableStyleConditionalFormattingTableCellProperties6.Append(tableCellBorders5); tableStyleConditionalFormattingTableCellProperties6.Append(shading4); tableStyleProperties8.Append(runPropertiesBaseStyle7); tableStyleProperties8.Append(tableStyleConditionalFormattingTableProperties6); tableStyleProperties8.Append(tableStyleConditionalFormattingTableCellProperties6); TableStyleProperties tableStyleProperties9 = new TableStyleProperties() { Type = TableStyleOverrideValues.FirstColumn }; RunPropertiesBaseStyle runPropertiesBaseStyle8 = new RunPropertiesBaseStyle(); Bold bold13 = new Bold(); BoldComplexScript boldComplexScript13 = new BoldComplexScript(); Italic italic3 = new Italic() { Val = false }; ItalicComplexScript italicComplexScript3 = new ItalicComplexScript() { Val = false }; Color color10 = new Color() { Val = "FFFFFF", ThemeColor = ThemeColorValues.Background1 }; runPropertiesBaseStyle8.Append(bold13); runPropertiesBaseStyle8.Append(boldComplexScript13); runPropertiesBaseStyle8.Append(italic3); runPropertiesBaseStyle8.Append(italicComplexScript3); runPropertiesBaseStyle8.Append(color10); TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties7 = new TableStyleConditionalFormattingTableProperties(); TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties7 = new TableStyleConditionalFormattingTableCellProperties(); TableCellBorders tableCellBorders6 = new TableCellBorders(); LeftBorder leftBorder9 = new LeftBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; RightBorder rightBorder9 = new RightBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)24U, Space = (UInt32Value)0U }; InsideHorizontalBorder insideHorizontalBorder5 = new InsideHorizontalBorder() { Val = BorderValues.Nil }; InsideVerticalBorder insideVerticalBorder5 = new InsideVerticalBorder() { Val = BorderValues.Nil }; tableCellBorders6.Append(leftBorder9); tableCellBorders6.Append(rightBorder9); tableCellBorders6.Append(insideHorizontalBorder5); tableCellBorders6.Append(insideVerticalBorder5); Shading shading5 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "4F81BD", ThemeFill = ThemeColorValues.Accent1 }; tableStyleConditionalFormattingTableCellProperties7.Append(tableCellBorders6); tableStyleConditionalFormattingTableCellProperties7.Append(shading5); tableStyleProperties9.Append(runPropertiesBaseStyle8); tableStyleProperties9.Append(tableStyleConditionalFormattingTableProperties7); tableStyleProperties9.Append(tableStyleConditionalFormattingTableCellProperties7); TableStyleProperties tableStyleProperties10 = new TableStyleProperties() { Type = TableStyleOverrideValues.LastColumn }; RunPropertiesBaseStyle runPropertiesBaseStyle9 = new RunPropertiesBaseStyle(); Bold bold14 = new Bold(); BoldComplexScript boldComplexScript14 = new BoldComplexScript(); Italic italic4 = new Italic() { Val = false }; ItalicComplexScript italicComplexScript4 = new ItalicComplexScript() { Val = false }; Color color11 = new Color() { Val = "FFFFFF", ThemeColor = ThemeColorValues.Background1 }; runPropertiesBaseStyle9.Append(bold14); runPropertiesBaseStyle9.Append(boldComplexScript14); runPropertiesBaseStyle9.Append(italic4); runPropertiesBaseStyle9.Append(italicComplexScript4); runPropertiesBaseStyle9.Append(color11); TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties8 = new TableStyleConditionalFormattingTableProperties(); TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties8 = new TableStyleConditionalFormattingTableCellProperties(); TableCellBorders tableCellBorders7 = new TableCellBorders(); TopBorder topBorder9 = new TopBorder() { Val = BorderValues.Nil }; LeftBorder leftBorder10 = new LeftBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)24U, Space = (UInt32Value)0U }; BottomBorder bottomBorder9 = new BottomBorder() { Val = BorderValues.Nil }; RightBorder rightBorder10 = new RightBorder() { Val = BorderValues.Nil }; InsideHorizontalBorder insideHorizontalBorder6 = new InsideHorizontalBorder() { Val = BorderValues.Nil }; InsideVerticalBorder insideVerticalBorder6 = new InsideVerticalBorder() { Val = BorderValues.Nil }; tableCellBorders7.Append(topBorder9); tableCellBorders7.Append(leftBorder10); tableCellBorders7.Append(bottomBorder9); tableCellBorders7.Append(rightBorder10); tableCellBorders7.Append(insideHorizontalBorder6); tableCellBorders7.Append(insideVerticalBorder6); Shading shading6 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "4F81BD", ThemeFill = ThemeColorValues.Accent1 }; tableStyleConditionalFormattingTableCellProperties8.Append(tableCellBorders7); tableStyleConditionalFormattingTableCellProperties8.Append(shading6); tableStyleProperties10.Append(runPropertiesBaseStyle9); tableStyleProperties10.Append(tableStyleConditionalFormattingTableProperties8); tableStyleProperties10.Append(tableStyleConditionalFormattingTableCellProperties8); TableStyleProperties tableStyleProperties11 = new TableStyleProperties() { Type = TableStyleOverrideValues.Band1Vertical }; TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties9 = new TableStyleConditionalFormattingTableProperties(); TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties9 = new TableStyleConditionalFormattingTableCellProperties(); TableCellBorders tableCellBorders8 = new TableCellBorders(); TopBorder topBorder10 = new TopBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; LeftBorder leftBorder11 = new LeftBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; BottomBorder bottomBorder10 = new BottomBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; RightBorder rightBorder11 = new RightBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; InsideHorizontalBorder insideHorizontalBorder7 = new InsideHorizontalBorder() { Val = BorderValues.Nil }; InsideVerticalBorder insideVerticalBorder7 = new InsideVerticalBorder() { Val = BorderValues.Nil }; tableCellBorders8.Append(topBorder10); tableCellBorders8.Append(leftBorder11); tableCellBorders8.Append(bottomBorder10); tableCellBorders8.Append(rightBorder11); tableCellBorders8.Append(insideHorizontalBorder7); tableCellBorders8.Append(insideVerticalBorder7); Shading shading7 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "A7BFDE", ThemeFill = ThemeColorValues.Accent1, ThemeFillTint = "7F" }; tableStyleConditionalFormattingTableCellProperties9.Append(tableCellBorders8); tableStyleConditionalFormattingTableCellProperties9.Append(shading7); tableStyleProperties11.Append(tableStyleConditionalFormattingTableProperties9); tableStyleProperties11.Append(tableStyleConditionalFormattingTableCellProperties9); TableStyleProperties tableStyleProperties12 = new TableStyleProperties() { Type = TableStyleOverrideValues.Band1Horizontal }; TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties10 = new TableStyleConditionalFormattingTableProperties(); TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties10 = new TableStyleConditionalFormattingTableCellProperties(); TableCellBorders tableCellBorders9 = new TableCellBorders(); TopBorder topBorder11 = new TopBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; LeftBorder leftBorder12 = new LeftBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; BottomBorder bottomBorder11 = new BottomBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; RightBorder rightBorder12 = new RightBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; InsideHorizontalBorder insideHorizontalBorder8 = new InsideHorizontalBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; InsideVerticalBorder insideVerticalBorder8 = new InsideVerticalBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; tableCellBorders9.Append(topBorder11); tableCellBorders9.Append(leftBorder12); tableCellBorders9.Append(bottomBorder11); tableCellBorders9.Append(rightBorder12); tableCellBorders9.Append(insideHorizontalBorder8); tableCellBorders9.Append(insideVerticalBorder8); Shading shading8 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "A7BFDE", ThemeFill = ThemeColorValues.Accent1, ThemeFillTint = "7F" }; tableStyleConditionalFormattingTableCellProperties10.Append(tableCellBorders9); tableStyleConditionalFormattingTableCellProperties10.Append(shading8); tableStyleProperties12.Append(tableStyleConditionalFormattingTableProperties10); tableStyleProperties12.Append(tableStyleConditionalFormattingTableCellProperties10); style13.Append(styleName13); style13.Append(basedOn9); style13.Append(uIPriority12); style13.Append(rsid10); style13.Append(styleParagraphProperties9); style13.Append(styleTableProperties4); style13.Append(styleTableCellProperties1); style13.Append(tableStyleProperties7); style13.Append(tableStyleProperties8); style13.Append(tableStyleProperties9); style13.Append(tableStyleProperties10); style13.Append(tableStyleProperties11); style13.Append(tableStyleProperties12); Style style14 = new Style() { Type = StyleValues.Table, StyleId = "MediumShading1-Accent1" }; StyleName styleName14 = new StyleName() { Val = "Medium Shading 1 Accent 1" }; BasedOn basedOn10 = new BasedOn() { Val = "TableNormal" }; UIPriority uIPriority13 = new UIPriority() { Val = 63 }; Rsid rsid11 = new Rsid() { Val = "00BA40EF" }; StyleParagraphProperties styleParagraphProperties10 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines11 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; styleParagraphProperties10.Append(spacingBetweenLines11); StyleTableProperties styleTableProperties5 = new StyleTableProperties(); TableStyleRowBandSize tableStyleRowBandSize3 = new TableStyleRowBandSize() { Val = 1 }; TableStyleColumnBandSize tableStyleColumnBandSize3 = new TableStyleColumnBandSize() { Val = 1 }; TableIndentation tableIndentation5 = new TableIndentation() { Width = 0, Type = TableWidthUnitValues.Dxa }; TableBorders tableBorders4 = new TableBorders(); TopBorder topBorder12 = new TopBorder() { Val = BorderValues.Single, Color = "7BA0CD", ThemeColor = ThemeColorValues.Accent1, ThemeTint = "BF", Size = (UInt32Value)8U, Space = (UInt32Value)0U }; LeftBorder leftBorder13 = new LeftBorder() { Val = BorderValues.Single, Color = "7BA0CD", ThemeColor = ThemeColorValues.Accent1, ThemeTint = "BF", Size = (UInt32Value)8U, Space = (UInt32Value)0U }; BottomBorder bottomBorder12 = new BottomBorder() { Val = BorderValues.Single, Color = "7BA0CD", ThemeColor = ThemeColorValues.Accent1, ThemeTint = "BF", Size = (UInt32Value)8U, Space = (UInt32Value)0U }; RightBorder rightBorder13 = new RightBorder() { Val = BorderValues.Single, Color = "7BA0CD", ThemeColor = ThemeColorValues.Accent1, ThemeTint = "BF", Size = (UInt32Value)8U, Space = (UInt32Value)0U }; InsideHorizontalBorder insideHorizontalBorder9 = new InsideHorizontalBorder() { Val = BorderValues.Single, Color = "7BA0CD", ThemeColor = ThemeColorValues.Accent1, ThemeTint = "BF", Size = (UInt32Value)8U, Space = (UInt32Value)0U }; tableBorders4.Append(topBorder12); tableBorders4.Append(leftBorder13); tableBorders4.Append(bottomBorder12); tableBorders4.Append(rightBorder13); tableBorders4.Append(insideHorizontalBorder9); TableCellMarginDefault tableCellMarginDefault5 = new TableCellMarginDefault(); TopMargin topMargin5 = new TopMargin() { Width = "0", Type = TableWidthUnitValues.Dxa }; TableCellLeftMargin tableCellLeftMargin5 = new TableCellLeftMargin() { Width = 108, Type = TableWidthValues.Dxa }; BottomMargin bottomMargin5 = new BottomMargin() { Width = "0", Type = TableWidthUnitValues.Dxa }; TableCellRightMargin tableCellRightMargin5 = new TableCellRightMargin() { Width = 108, Type = TableWidthValues.Dxa }; tableCellMarginDefault5.Append(topMargin5); tableCellMarginDefault5.Append(tableCellLeftMargin5); tableCellMarginDefault5.Append(bottomMargin5); tableCellMarginDefault5.Append(tableCellRightMargin5); styleTableProperties5.Append(tableStyleRowBandSize3); styleTableProperties5.Append(tableStyleColumnBandSize3); styleTableProperties5.Append(tableIndentation5); styleTableProperties5.Append(tableBorders4); styleTableProperties5.Append(tableCellMarginDefault5); TableStyleProperties tableStyleProperties13 = new TableStyleProperties() { Type = TableStyleOverrideValues.FirstRow }; StyleParagraphProperties styleParagraphProperties11 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines12 = new SpacingBetweenLines() { Before = "0", After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; styleParagraphProperties11.Append(spacingBetweenLines12); RunPropertiesBaseStyle runPropertiesBaseStyle10 = new RunPropertiesBaseStyle(); Bold bold15 = new Bold(); BoldComplexScript boldComplexScript15 = new BoldComplexScript(); Color color12 = new Color() { Val = "FFFFFF", ThemeColor = ThemeColorValues.Background1 }; runPropertiesBaseStyle10.Append(bold15); runPropertiesBaseStyle10.Append(boldComplexScript15); runPropertiesBaseStyle10.Append(color12); TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties11 = new TableStyleConditionalFormattingTableProperties(); TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties11 = new TableStyleConditionalFormattingTableCellProperties(); TableCellBorders tableCellBorders10 = new TableCellBorders(); TopBorder topBorder13 = new TopBorder() { Val = BorderValues.Single, Color = "7BA0CD", ThemeColor = ThemeColorValues.Accent1, ThemeTint = "BF", Size = (UInt32Value)8U, Space = (UInt32Value)0U }; LeftBorder leftBorder14 = new LeftBorder() { Val = BorderValues.Single, Color = "7BA0CD", ThemeColor = ThemeColorValues.Accent1, ThemeTint = "BF", Size = (UInt32Value)8U, Space = (UInt32Value)0U }; BottomBorder bottomBorder13 = new BottomBorder() { Val = BorderValues.Single, Color = "7BA0CD", ThemeColor = ThemeColorValues.Accent1, ThemeTint = "BF", Size = (UInt32Value)8U, Space = (UInt32Value)0U }; RightBorder rightBorder14 = new RightBorder() { Val = BorderValues.Single, Color = "7BA0CD", ThemeColor = ThemeColorValues.Accent1, ThemeTint = "BF", Size = (UInt32Value)8U, Space = (UInt32Value)0U }; InsideHorizontalBorder insideHorizontalBorder10 = new InsideHorizontalBorder() { Val = BorderValues.Nil }; InsideVerticalBorder insideVerticalBorder9 = new InsideVerticalBorder() { Val = BorderValues.Nil }; tableCellBorders10.Append(topBorder13); tableCellBorders10.Append(leftBorder14); tableCellBorders10.Append(bottomBorder13); tableCellBorders10.Append(rightBorder14); tableCellBorders10.Append(insideHorizontalBorder10); tableCellBorders10.Append(insideVerticalBorder9); Shading shading9 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "4F81BD", ThemeFill = ThemeColorValues.Accent1 }; tableStyleConditionalFormattingTableCellProperties11.Append(tableCellBorders10); tableStyleConditionalFormattingTableCellProperties11.Append(shading9); tableStyleProperties13.Append(styleParagraphProperties11); tableStyleProperties13.Append(runPropertiesBaseStyle10); tableStyleProperties13.Append(tableStyleConditionalFormattingTableProperties11); tableStyleProperties13.Append(tableStyleConditionalFormattingTableCellProperties11); TableStyleProperties tableStyleProperties14 = new TableStyleProperties() { Type = TableStyleOverrideValues.LastRow }; StyleParagraphProperties styleParagraphProperties12 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines13 = new SpacingBetweenLines() { Before = "0", After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; styleParagraphProperties12.Append(spacingBetweenLines13); RunPropertiesBaseStyle runPropertiesBaseStyle11 = new RunPropertiesBaseStyle(); Bold bold16 = new Bold(); BoldComplexScript boldComplexScript16 = new BoldComplexScript(); runPropertiesBaseStyle11.Append(bold16); runPropertiesBaseStyle11.Append(boldComplexScript16); TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties12 = new TableStyleConditionalFormattingTableProperties(); TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties12 = new TableStyleConditionalFormattingTableCellProperties(); TableCellBorders tableCellBorders11 = new TableCellBorders(); TopBorder topBorder14 = new TopBorder() { Val = BorderValues.Double, Color = "7BA0CD", ThemeColor = ThemeColorValues.Accent1, ThemeTint = "BF", Size = (UInt32Value)6U, Space = (UInt32Value)0U }; LeftBorder leftBorder15 = new LeftBorder() { Val = BorderValues.Single, Color = "7BA0CD", ThemeColor = ThemeColorValues.Accent1, ThemeTint = "BF", Size = (UInt32Value)8U, Space = (UInt32Value)0U }; BottomBorder bottomBorder14 = new BottomBorder() { Val = BorderValues.Single, Color = "7BA0CD", ThemeColor = ThemeColorValues.Accent1, ThemeTint = "BF", Size = (UInt32Value)8U, Space = (UInt32Value)0U }; RightBorder rightBorder15 = new RightBorder() { Val = BorderValues.Single, Color = "7BA0CD", ThemeColor = ThemeColorValues.Accent1, ThemeTint = "BF", Size = (UInt32Value)8U, Space = (UInt32Value)0U }; InsideHorizontalBorder insideHorizontalBorder11 = new InsideHorizontalBorder() { Val = BorderValues.Nil }; InsideVerticalBorder insideVerticalBorder10 = new InsideVerticalBorder() { Val = BorderValues.Nil }; tableCellBorders11.Append(topBorder14); tableCellBorders11.Append(leftBorder15); tableCellBorders11.Append(bottomBorder14); tableCellBorders11.Append(rightBorder15); tableCellBorders11.Append(insideHorizontalBorder11); tableCellBorders11.Append(insideVerticalBorder10); tableStyleConditionalFormattingTableCellProperties12.Append(tableCellBorders11); tableStyleProperties14.Append(styleParagraphProperties12); tableStyleProperties14.Append(runPropertiesBaseStyle11); tableStyleProperties14.Append(tableStyleConditionalFormattingTableProperties12); tableStyleProperties14.Append(tableStyleConditionalFormattingTableCellProperties12); TableStyleProperties tableStyleProperties15 = new TableStyleProperties() { Type = TableStyleOverrideValues.FirstColumn }; RunPropertiesBaseStyle runPropertiesBaseStyle12 = new RunPropertiesBaseStyle(); Bold bold17 = new Bold(); BoldComplexScript boldComplexScript17 = new BoldComplexScript(); runPropertiesBaseStyle12.Append(bold17); runPropertiesBaseStyle12.Append(boldComplexScript17); tableStyleProperties15.Append(runPropertiesBaseStyle12); TableStyleProperties tableStyleProperties16 = new TableStyleProperties() { Type = TableStyleOverrideValues.LastColumn }; RunPropertiesBaseStyle runPropertiesBaseStyle13 = new RunPropertiesBaseStyle(); Bold bold18 = new Bold(); BoldComplexScript boldComplexScript18 = new BoldComplexScript(); runPropertiesBaseStyle13.Append(bold18); runPropertiesBaseStyle13.Append(boldComplexScript18); tableStyleProperties16.Append(runPropertiesBaseStyle13); TableStyleProperties tableStyleProperties17 = new TableStyleProperties() { Type = TableStyleOverrideValues.Band1Vertical }; TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties13 = new TableStyleConditionalFormattingTableProperties(); TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties13 = new TableStyleConditionalFormattingTableCellProperties(); Shading shading10 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "D3DFEE", ThemeFill = ThemeColorValues.Accent1, ThemeFillTint = "3F" }; tableStyleConditionalFormattingTableCellProperties13.Append(shading10); tableStyleProperties17.Append(tableStyleConditionalFormattingTableProperties13); tableStyleProperties17.Append(tableStyleConditionalFormattingTableCellProperties13); TableStyleProperties tableStyleProperties18 = new TableStyleProperties() { Type = TableStyleOverrideValues.Band1Horizontal }; TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties14 = new TableStyleConditionalFormattingTableProperties(); TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties14 = new TableStyleConditionalFormattingTableCellProperties(); TableCellBorders tableCellBorders12 = new TableCellBorders(); InsideHorizontalBorder insideHorizontalBorder12 = new InsideHorizontalBorder() { Val = BorderValues.Nil }; InsideVerticalBorder insideVerticalBorder11 = new InsideVerticalBorder() { Val = BorderValues.Nil }; tableCellBorders12.Append(insideHorizontalBorder12); tableCellBorders12.Append(insideVerticalBorder11); Shading shading11 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "D3DFEE", ThemeFill = ThemeColorValues.Accent1, ThemeFillTint = "3F" }; tableStyleConditionalFormattingTableCellProperties14.Append(tableCellBorders12); tableStyleConditionalFormattingTableCellProperties14.Append(shading11); tableStyleProperties18.Append(tableStyleConditionalFormattingTableProperties14); tableStyleProperties18.Append(tableStyleConditionalFormattingTableCellProperties14); TableStyleProperties tableStyleProperties19 = new TableStyleProperties() { Type = TableStyleOverrideValues.Band2Horizontal }; TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties15 = new TableStyleConditionalFormattingTableProperties(); TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties15 = new TableStyleConditionalFormattingTableCellProperties(); TableCellBorders tableCellBorders13 = new TableCellBorders(); InsideHorizontalBorder insideHorizontalBorder13 = new InsideHorizontalBorder() { Val = BorderValues.Nil }; InsideVerticalBorder insideVerticalBorder12 = new InsideVerticalBorder() { Val = BorderValues.Nil }; tableCellBorders13.Append(insideHorizontalBorder13); tableCellBorders13.Append(insideVerticalBorder12); tableStyleConditionalFormattingTableCellProperties15.Append(tableCellBorders13); tableStyleProperties19.Append(tableStyleConditionalFormattingTableProperties15); tableStyleProperties19.Append(tableStyleConditionalFormattingTableCellProperties15); style14.Append(styleName14); style14.Append(basedOn10); style14.Append(uIPriority13); style14.Append(rsid11); style14.Append(styleParagraphProperties10); style14.Append(styleTableProperties5); style14.Append(tableStyleProperties13); style14.Append(tableStyleProperties14); style14.Append(tableStyleProperties15); style14.Append(tableStyleProperties16); style14.Append(tableStyleProperties17); style14.Append(tableStyleProperties18); style14.Append(tableStyleProperties19); Style style15 = new Style() { Type = StyleValues.Table, StyleId = "LightGrid-Accent1" }; StyleName styleName15 = new StyleName() { Val = "Light Grid Accent 1" }; BasedOn basedOn11 = new BasedOn() { Val = "TableNormal" }; UIPriority uIPriority14 = new UIPriority() { Val = 62 }; Rsid rsid12 = new Rsid() { Val = "00BA40EF" }; StyleParagraphProperties styleParagraphProperties13 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines14 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; styleParagraphProperties13.Append(spacingBetweenLines14); StyleTableProperties styleTableProperties6 = new StyleTableProperties(); TableStyleRowBandSize tableStyleRowBandSize4 = new TableStyleRowBandSize() { Val = 1 }; TableStyleColumnBandSize tableStyleColumnBandSize4 = new TableStyleColumnBandSize() { Val = 1 }; TableIndentation tableIndentation6 = new TableIndentation() { Width = 0, Type = TableWidthUnitValues.Dxa }; TableBorders tableBorders5 = new TableBorders(); TopBorder topBorder15 = new TopBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; LeftBorder leftBorder16 = new LeftBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; BottomBorder bottomBorder15 = new BottomBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; RightBorder rightBorder16 = new RightBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; InsideHorizontalBorder insideHorizontalBorder14 = new InsideHorizontalBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; InsideVerticalBorder insideVerticalBorder13 = new InsideVerticalBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; tableBorders5.Append(topBorder15); tableBorders5.Append(leftBorder16); tableBorders5.Append(bottomBorder15); tableBorders5.Append(rightBorder16); tableBorders5.Append(insideHorizontalBorder14); tableBorders5.Append(insideVerticalBorder13); TableCellMarginDefault tableCellMarginDefault6 = new TableCellMarginDefault(); TopMargin topMargin6 = new TopMargin() { Width = "0", Type = TableWidthUnitValues.Dxa }; TableCellLeftMargin tableCellLeftMargin6 = new TableCellLeftMargin() { Width = 108, Type = TableWidthValues.Dxa }; BottomMargin bottomMargin6 = new BottomMargin() { Width = "0", Type = TableWidthUnitValues.Dxa }; TableCellRightMargin tableCellRightMargin6 = new TableCellRightMargin() { Width = 108, Type = TableWidthValues.Dxa }; tableCellMarginDefault6.Append(topMargin6); tableCellMarginDefault6.Append(tableCellLeftMargin6); tableCellMarginDefault6.Append(bottomMargin6); tableCellMarginDefault6.Append(tableCellRightMargin6); styleTableProperties6.Append(tableStyleRowBandSize4); styleTableProperties6.Append(tableStyleColumnBandSize4); styleTableProperties6.Append(tableIndentation6); styleTableProperties6.Append(tableBorders5); styleTableProperties6.Append(tableCellMarginDefault6); TableStyleProperties tableStyleProperties20 = new TableStyleProperties() { Type = TableStyleOverrideValues.FirstRow }; StyleParagraphProperties styleParagraphProperties14 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines15 = new SpacingBetweenLines() { Before = "0", After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; styleParagraphProperties14.Append(spacingBetweenLines15); RunPropertiesBaseStyle runPropertiesBaseStyle14 = new RunPropertiesBaseStyle(); RunFonts runFonts8 = new RunFonts() { AsciiTheme = ThemeFontValues.MajorHighAnsi, HighAnsiTheme = ThemeFontValues.MajorHighAnsi, EastAsiaTheme = ThemeFontValues.MajorEastAsia, ComplexScriptTheme = ThemeFontValues.MajorBidi }; Bold bold19 = new Bold(); BoldComplexScript boldComplexScript19 = new BoldComplexScript(); runPropertiesBaseStyle14.Append(runFonts8); runPropertiesBaseStyle14.Append(bold19); runPropertiesBaseStyle14.Append(boldComplexScript19); TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties16 = new TableStyleConditionalFormattingTableProperties(); TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties16 = new TableStyleConditionalFormattingTableCellProperties(); TableCellBorders tableCellBorders14 = new TableCellBorders(); TopBorder topBorder16 = new TopBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; LeftBorder leftBorder17 = new LeftBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; BottomBorder bottomBorder16 = new BottomBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)18U, Space = (UInt32Value)0U }; RightBorder rightBorder17 = new RightBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; InsideHorizontalBorder insideHorizontalBorder15 = new InsideHorizontalBorder() { Val = BorderValues.Nil }; InsideVerticalBorder insideVerticalBorder14 = new InsideVerticalBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; tableCellBorders14.Append(topBorder16); tableCellBorders14.Append(leftBorder17); tableCellBorders14.Append(bottomBorder16); tableCellBorders14.Append(rightBorder17); tableCellBorders14.Append(insideHorizontalBorder15); tableCellBorders14.Append(insideVerticalBorder14); tableStyleConditionalFormattingTableCellProperties16.Append(tableCellBorders14); tableStyleProperties20.Append(styleParagraphProperties14); tableStyleProperties20.Append(runPropertiesBaseStyle14); tableStyleProperties20.Append(tableStyleConditionalFormattingTableProperties16); tableStyleProperties20.Append(tableStyleConditionalFormattingTableCellProperties16); TableStyleProperties tableStyleProperties21 = new TableStyleProperties() { Type = TableStyleOverrideValues.LastRow }; StyleParagraphProperties styleParagraphProperties15 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines16 = new SpacingBetweenLines() { Before = "0", After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; styleParagraphProperties15.Append(spacingBetweenLines16); RunPropertiesBaseStyle runPropertiesBaseStyle15 = new RunPropertiesBaseStyle(); RunFonts runFonts9 = new RunFonts() { AsciiTheme = ThemeFontValues.MajorHighAnsi, HighAnsiTheme = ThemeFontValues.MajorHighAnsi, EastAsiaTheme = ThemeFontValues.MajorEastAsia, ComplexScriptTheme = ThemeFontValues.MajorBidi }; Bold bold20 = new Bold(); BoldComplexScript boldComplexScript20 = new BoldComplexScript(); runPropertiesBaseStyle15.Append(runFonts9); runPropertiesBaseStyle15.Append(bold20); runPropertiesBaseStyle15.Append(boldComplexScript20); TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties17 = new TableStyleConditionalFormattingTableProperties(); TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties17 = new TableStyleConditionalFormattingTableCellProperties(); TableCellBorders tableCellBorders15 = new TableCellBorders(); TopBorder topBorder17 = new TopBorder() { Val = BorderValues.Double, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)6U, Space = (UInt32Value)0U }; LeftBorder leftBorder18 = new LeftBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; BottomBorder bottomBorder17 = new BottomBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; RightBorder rightBorder18 = new RightBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; InsideHorizontalBorder insideHorizontalBorder16 = new InsideHorizontalBorder() { Val = BorderValues.Nil }; InsideVerticalBorder insideVerticalBorder15 = new InsideVerticalBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; tableCellBorders15.Append(topBorder17); tableCellBorders15.Append(leftBorder18); tableCellBorders15.Append(bottomBorder17); tableCellBorders15.Append(rightBorder18); tableCellBorders15.Append(insideHorizontalBorder16); tableCellBorders15.Append(insideVerticalBorder15); tableStyleConditionalFormattingTableCellProperties17.Append(tableCellBorders15); tableStyleProperties21.Append(styleParagraphProperties15); tableStyleProperties21.Append(runPropertiesBaseStyle15); tableStyleProperties21.Append(tableStyleConditionalFormattingTableProperties17); tableStyleProperties21.Append(tableStyleConditionalFormattingTableCellProperties17); TableStyleProperties tableStyleProperties22 = new TableStyleProperties() { Type = TableStyleOverrideValues.FirstColumn }; RunPropertiesBaseStyle runPropertiesBaseStyle16 = new RunPropertiesBaseStyle(); RunFonts runFonts10 = new RunFonts() { AsciiTheme = ThemeFontValues.MajorHighAnsi, HighAnsiTheme = ThemeFontValues.MajorHighAnsi, EastAsiaTheme = ThemeFontValues.MajorEastAsia, ComplexScriptTheme = ThemeFontValues.MajorBidi }; Bold bold21 = new Bold(); BoldComplexScript boldComplexScript21 = new BoldComplexScript(); runPropertiesBaseStyle16.Append(runFonts10); runPropertiesBaseStyle16.Append(bold21); runPropertiesBaseStyle16.Append(boldComplexScript21); tableStyleProperties22.Append(runPropertiesBaseStyle16); TableStyleProperties tableStyleProperties23 = new TableStyleProperties() { Type = TableStyleOverrideValues.LastColumn }; RunPropertiesBaseStyle runPropertiesBaseStyle17 = new RunPropertiesBaseStyle(); RunFonts runFonts11 = new RunFonts() { AsciiTheme = ThemeFontValues.MajorHighAnsi, HighAnsiTheme = ThemeFontValues.MajorHighAnsi, EastAsiaTheme = ThemeFontValues.MajorEastAsia, ComplexScriptTheme = ThemeFontValues.MajorBidi }; Bold bold22 = new Bold(); BoldComplexScript boldComplexScript22 = new BoldComplexScript(); runPropertiesBaseStyle17.Append(runFonts11); runPropertiesBaseStyle17.Append(bold22); runPropertiesBaseStyle17.Append(boldComplexScript22); TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties18 = new TableStyleConditionalFormattingTableProperties(); TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties18 = new TableStyleConditionalFormattingTableCellProperties(); TableCellBorders tableCellBorders16 = new TableCellBorders(); TopBorder topBorder18 = new TopBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; LeftBorder leftBorder19 = new LeftBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; BottomBorder bottomBorder18 = new BottomBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; RightBorder rightBorder19 = new RightBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; tableCellBorders16.Append(topBorder18); tableCellBorders16.Append(leftBorder19); tableCellBorders16.Append(bottomBorder18); tableCellBorders16.Append(rightBorder19); tableStyleConditionalFormattingTableCellProperties18.Append(tableCellBorders16); tableStyleProperties23.Append(runPropertiesBaseStyle17); tableStyleProperties23.Append(tableStyleConditionalFormattingTableProperties18); tableStyleProperties23.Append(tableStyleConditionalFormattingTableCellProperties18); TableStyleProperties tableStyleProperties24 = new TableStyleProperties() { Type = TableStyleOverrideValues.Band1Vertical }; TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties19 = new TableStyleConditionalFormattingTableProperties(); TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties19 = new TableStyleConditionalFormattingTableCellProperties(); TableCellBorders tableCellBorders17 = new TableCellBorders(); TopBorder topBorder19 = new TopBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; LeftBorder leftBorder20 = new LeftBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; BottomBorder bottomBorder19 = new BottomBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; RightBorder rightBorder20 = new RightBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; tableCellBorders17.Append(topBorder19); tableCellBorders17.Append(leftBorder20); tableCellBorders17.Append(bottomBorder19); tableCellBorders17.Append(rightBorder20); Shading shading12 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "D3DFEE", ThemeFill = ThemeColorValues.Accent1, ThemeFillTint = "3F" }; tableStyleConditionalFormattingTableCellProperties19.Append(tableCellBorders17); tableStyleConditionalFormattingTableCellProperties19.Append(shading12); tableStyleProperties24.Append(tableStyleConditionalFormattingTableProperties19); tableStyleProperties24.Append(tableStyleConditionalFormattingTableCellProperties19); TableStyleProperties tableStyleProperties25 = new TableStyleProperties() { Type = TableStyleOverrideValues.Band1Horizontal }; TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties20 = new TableStyleConditionalFormattingTableProperties(); TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties20 = new TableStyleConditionalFormattingTableCellProperties(); TableCellBorders tableCellBorders18 = new TableCellBorders(); TopBorder topBorder20 = new TopBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; LeftBorder leftBorder21 = new LeftBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; BottomBorder bottomBorder20 = new BottomBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; RightBorder rightBorder21 = new RightBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; InsideVerticalBorder insideVerticalBorder16 = new InsideVerticalBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; tableCellBorders18.Append(topBorder20); tableCellBorders18.Append(leftBorder21); tableCellBorders18.Append(bottomBorder20); tableCellBorders18.Append(rightBorder21); tableCellBorders18.Append(insideVerticalBorder16); Shading shading13 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "D3DFEE", ThemeFill = ThemeColorValues.Accent1, ThemeFillTint = "3F" }; tableStyleConditionalFormattingTableCellProperties20.Append(tableCellBorders18); tableStyleConditionalFormattingTableCellProperties20.Append(shading13); tableStyleProperties25.Append(tableStyleConditionalFormattingTableProperties20); tableStyleProperties25.Append(tableStyleConditionalFormattingTableCellProperties20); TableStyleProperties tableStyleProperties26 = new TableStyleProperties() { Type = TableStyleOverrideValues.Band2Horizontal }; TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties21 = new TableStyleConditionalFormattingTableProperties(); TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties21 = new TableStyleConditionalFormattingTableCellProperties(); TableCellBorders tableCellBorders19 = new TableCellBorders(); TopBorder topBorder21 = new TopBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; LeftBorder leftBorder22 = new LeftBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; BottomBorder bottomBorder21 = new BottomBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; RightBorder rightBorder22 = new RightBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; InsideVerticalBorder insideVerticalBorder17 = new InsideVerticalBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U }; tableCellBorders19.Append(topBorder21); tableCellBorders19.Append(leftBorder22); tableCellBorders19.Append(bottomBorder21); tableCellBorders19.Append(rightBorder22); tableCellBorders19.Append(insideVerticalBorder17); tableStyleConditionalFormattingTableCellProperties21.Append(tableCellBorders19); tableStyleProperties26.Append(tableStyleConditionalFormattingTableProperties21); tableStyleProperties26.Append(tableStyleConditionalFormattingTableCellProperties21); style15.Append(styleName15); style15.Append(basedOn11); style15.Append(uIPriority14); style15.Append(rsid12); style15.Append(styleParagraphProperties13); style15.Append(styleTableProperties6); style15.Append(tableStyleProperties20); style15.Append(tableStyleProperties21); style15.Append(tableStyleProperties22); style15.Append(tableStyleProperties23); style15.Append(tableStyleProperties24); style15.Append(tableStyleProperties25); style15.Append(tableStyleProperties26); Style style16 = new Style() { Type = StyleValues.Paragraph, StyleId = "Quote" }; StyleName styleName16 = new StyleName() { Val = "Quote" }; BasedOn basedOn12 = new BasedOn() { Val = "Normal" }; NextParagraphStyle nextParagraphStyle4 = new NextParagraphStyle() { Val = "Normal" }; LinkedStyle linkedStyle7 = new LinkedStyle() { Val = "QuoteChar" }; UIPriority uIPriority15 = new UIPriority() { Val = 29 }; PrimaryStyle primaryStyle6 = new PrimaryStyle(); Rsid rsid13 = new Rsid() { Val = "00851582" }; StyleParagraphProperties styleParagraphProperties16 = new StyleParagraphProperties(); ParagraphBorders paragraphBorders1 = new ParagraphBorders(); TopBorder topBorder22 = new TopBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)1U }; LeftBorder leftBorder23 = new LeftBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)4U }; BottomBorder bottomBorder22 = new BottomBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)1U }; RightBorder rightBorder23 = new RightBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)4U }; paragraphBorders1.Append(topBorder22); paragraphBorders1.Append(leftBorder23); paragraphBorders1.Append(bottomBorder22); paragraphBorders1.Append(rightBorder23); styleParagraphProperties16.Append(paragraphBorders1); StyleRunProperties styleRunProperties7 = new StyleRunProperties(); Italic italic5 = new Italic(); ItalicComplexScript italicComplexScript5 = new ItalicComplexScript(); Color color13 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 }; styleRunProperties7.Append(italic5); styleRunProperties7.Append(italicComplexScript5); styleRunProperties7.Append(color13); style16.Append(styleName16); style16.Append(basedOn12); style16.Append(nextParagraphStyle4); style16.Append(linkedStyle7); style16.Append(uIPriority15); style16.Append(primaryStyle6); style16.Append(rsid13); style16.Append(styleParagraphProperties16); style16.Append(styleRunProperties7); Style style17 = new Style() { Type = StyleValues.Character, StyleId = "QuoteChar", CustomStyle = true }; StyleName styleName17 = new StyleName() { Val = "Quote Char" }; BasedOn basedOn13 = new BasedOn() { Val = "DefaultParagraphFont" }; LinkedStyle linkedStyle8 = new LinkedStyle() { Val = "Quote" }; UIPriority uIPriority16 = new UIPriority() { Val = 29 }; Rsid rsid14 = new Rsid() { Val = "00851582" }; StyleRunProperties styleRunProperties8 = new StyleRunProperties(); Italic italic6 = new Italic(); ItalicComplexScript italicComplexScript6 = new ItalicComplexScript(); Color color14 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 }; styleRunProperties8.Append(italic6); styleRunProperties8.Append(italicComplexScript6); styleRunProperties8.Append(color14); style17.Append(styleName17); style17.Append(basedOn13); style17.Append(linkedStyle8); style17.Append(uIPriority16); style17.Append(rsid14); style17.Append(styleRunProperties8); Style style18 = new Style() { Type = StyleValues.Paragraph, StyleId = "TOCHeading" }; StyleName styleName18 = new StyleName() { Val = "TOC Heading" }; BasedOn basedOn14 = new BasedOn() { Val = "Heading1" }; NextParagraphStyle nextParagraphStyle5 = new NextParagraphStyle() { Val = "Normal" }; UIPriority uIPriority17 = new UIPriority() { Val = 39 }; SemiHidden semiHidden4 = new SemiHidden(); UnhideWhenUsed unhideWhenUsed6 = new UnhideWhenUsed(); PrimaryStyle primaryStyle7 = new PrimaryStyle(); Rsid rsid15 = new Rsid() { Val = "00A636FD" }; StyleParagraphProperties styleParagraphProperties17 = new StyleParagraphProperties(); OutlineLevel outlineLevel4 = new OutlineLevel() { Val = 9 }; styleParagraphProperties17.Append(outlineLevel4); style18.Append(styleName18); style18.Append(basedOn14); style18.Append(nextParagraphStyle5); style18.Append(uIPriority17); style18.Append(semiHidden4); style18.Append(unhideWhenUsed6); style18.Append(primaryStyle7); style18.Append(rsid15); style18.Append(styleParagraphProperties17); Style style19 = new Style() { Type = StyleValues.Paragraph, StyleId = "TOC1" }; StyleName styleName19 = new StyleName() { Val = "toc 1" }; BasedOn basedOn15 = new BasedOn() { Val = "Normal" }; NextParagraphStyle nextParagraphStyle6 = new NextParagraphStyle() { Val = "Normal" }; AutoRedefine autoRedefine1 = new AutoRedefine(); UIPriority uIPriority18 = new UIPriority() { Val = 39 }; UnhideWhenUsed unhideWhenUsed7 = new UnhideWhenUsed(); Rsid rsid16 = new Rsid() { Val = "00A636FD" }; StyleParagraphProperties styleParagraphProperties18 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines17 = new SpacingBetweenLines() { After = "100" }; styleParagraphProperties18.Append(spacingBetweenLines17); style19.Append(styleName19); style19.Append(basedOn15); style19.Append(nextParagraphStyle6); style19.Append(autoRedefine1); style19.Append(uIPriority18); style19.Append(unhideWhenUsed7); style19.Append(rsid16); style19.Append(styleParagraphProperties18); Style style20 = new Style() { Type = StyleValues.Paragraph, StyleId = "TOC2" }; StyleName styleName20 = new StyleName() { Val = "toc 2" }; BasedOn basedOn16 = new BasedOn() { Val = "Normal" }; NextParagraphStyle nextParagraphStyle7 = new NextParagraphStyle() { Val = "Normal" }; AutoRedefine autoRedefine2 = new AutoRedefine(); UIPriority uIPriority19 = new UIPriority() { Val = 39 }; UnhideWhenUsed unhideWhenUsed8 = new UnhideWhenUsed(); Rsid rsid17 = new Rsid() { Val = "00A636FD" }; StyleParagraphProperties styleParagraphProperties19 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines18 = new SpacingBetweenLines() { After = "100" }; Indentation indentation1 = new Indentation() { Left = "220" }; styleParagraphProperties19.Append(spacingBetweenLines18); styleParagraphProperties19.Append(indentation1); style20.Append(styleName20); style20.Append(basedOn16); style20.Append(nextParagraphStyle7); style20.Append(autoRedefine2); style20.Append(uIPriority19); style20.Append(unhideWhenUsed8); style20.Append(rsid17); style20.Append(styleParagraphProperties19); Style style21 = new Style() { Type = StyleValues.Paragraph, StyleId = "TOC3" }; StyleName styleName21 = new StyleName() { Val = "toc 3" }; BasedOn basedOn17 = new BasedOn() { Val = "Normal" }; NextParagraphStyle nextParagraphStyle8 = new NextParagraphStyle() { Val = "Normal" }; AutoRedefine autoRedefine3 = new AutoRedefine(); UIPriority uIPriority20 = new UIPriority() { Val = 39 }; UnhideWhenUsed unhideWhenUsed9 = new UnhideWhenUsed(); Rsid rsid18 = new Rsid() { Val = "00A636FD" }; StyleParagraphProperties styleParagraphProperties20 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines19 = new SpacingBetweenLines() { After = "100" }; Indentation indentation2 = new Indentation() { Left = "440" }; styleParagraphProperties20.Append(spacingBetweenLines19); styleParagraphProperties20.Append(indentation2); style21.Append(styleName21); style21.Append(basedOn17); style21.Append(nextParagraphStyle8); style21.Append(autoRedefine3); style21.Append(uIPriority20); style21.Append(unhideWhenUsed9); style21.Append(rsid18); style21.Append(styleParagraphProperties20); Style style22 = new Style() { Type = StyleValues.Character, StyleId = "Hyperlink" }; StyleName styleName22 = new StyleName() { Val = "Hyperlink" }; BasedOn basedOn18 = new BasedOn() { Val = "DefaultParagraphFont" }; UIPriority uIPriority21 = new UIPriority() { Val = 99 }; UnhideWhenUsed unhideWhenUsed10 = new UnhideWhenUsed(); Rsid rsid19 = new Rsid() { Val = "00A636FD" }; StyleRunProperties styleRunProperties9 = new StyleRunProperties(); Color color15 = new Color() { Val = "0000FF", ThemeColor = ThemeColorValues.Hyperlink }; Underline underline1 = new Underline() { Val = UnderlineValues.Single }; styleRunProperties9.Append(color15); styleRunProperties9.Append(underline1); style22.Append(styleName22); style22.Append(basedOn18); style22.Append(uIPriority21); style22.Append(unhideWhenUsed10); style22.Append(rsid19); style22.Append(styleRunProperties9); Style style23 = new Style() { Type = StyleValues.Paragraph, StyleId = "BalloonText" }; StyleName styleName23 = new StyleName() { Val = "Balloon Text" }; BasedOn basedOn19 = new BasedOn() { Val = "Normal" }; LinkedStyle linkedStyle9 = new LinkedStyle() { Val = "BalloonTextChar" }; UIPriority uIPriority22 = new UIPriority() { Val = 99 }; SemiHidden semiHidden5 = new SemiHidden(); UnhideWhenUsed unhideWhenUsed11 = new UnhideWhenUsed(); Rsid rsid20 = new Rsid() { Val = "00A636FD" }; StyleParagraphProperties styleParagraphProperties21 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines20 = new SpacingBetweenLines() { Line = "240", LineRule = LineSpacingRuleValues.Auto }; styleParagraphProperties21.Append(spacingBetweenLines20); StyleRunProperties styleRunProperties10 = new StyleRunProperties(); RunFonts runFonts12 = new RunFonts() { Ascii = "Tahoma", HighAnsi = "Tahoma", ComplexScript = "Tahoma" }; FontSize fontSize6 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript6 = new FontSizeComplexScript() { Val = "16" }; styleRunProperties10.Append(runFonts12); styleRunProperties10.Append(fontSize6); styleRunProperties10.Append(fontSizeComplexScript6); style23.Append(styleName23); style23.Append(basedOn19); style23.Append(linkedStyle9); style23.Append(uIPriority22); style23.Append(semiHidden5); style23.Append(unhideWhenUsed11); style23.Append(rsid20); style23.Append(styleParagraphProperties21); style23.Append(styleRunProperties10); Style style24 = new Style() { Type = StyleValues.Character, StyleId = "BalloonTextChar", CustomStyle = true }; StyleName styleName24 = new StyleName() { Val = "Balloon Text Char" }; BasedOn basedOn20 = new BasedOn() { Val = "DefaultParagraphFont" }; LinkedStyle linkedStyle10 = new LinkedStyle() { Val = "BalloonText" }; UIPriority uIPriority23 = new UIPriority() { Val = 99 }; SemiHidden semiHidden6 = new SemiHidden(); Rsid rsid21 = new Rsid() { Val = "00A636FD" }; StyleRunProperties styleRunProperties11 = new StyleRunProperties(); RunFonts runFonts13 = new RunFonts() { Ascii = "Tahoma", HighAnsi = "Tahoma", ComplexScript = "Tahoma" }; FontSize fontSize7 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript7 = new FontSizeComplexScript() { Val = "16" }; styleRunProperties11.Append(runFonts13); styleRunProperties11.Append(fontSize7); styleRunProperties11.Append(fontSizeComplexScript7); style24.Append(styleName24); style24.Append(basedOn20); style24.Append(linkedStyle10); style24.Append(uIPriority23); style24.Append(semiHidden6); style24.Append(rsid21); style24.Append(styleRunProperties11); Style style25 = new Style() { Type = StyleValues.Paragraph, StyleId = "Passed", CustomStyle = true }; StyleName styleName25 = new StyleName() { Val = "Passed" }; BasedOn basedOn21 = new BasedOn() { Val = "Normal" }; LinkedStyle linkedStyle11 = new LinkedStyle() { Val = "PassedChar" }; PrimaryStyle primaryStyle8 = new PrimaryStyle(); Rsid rsid22 = new Rsid() { Val = "005217FA" }; StyleParagraphProperties styleParagraphProperties22 = new StyleParagraphProperties(); Shading shading14 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "00B050" }; Justification justification1 = new Justification() { Val = JustificationValues.Center }; styleParagraphProperties22.Append(shading14); styleParagraphProperties22.Append(justification1); style25.Append(styleName25); style25.Append(basedOn21); style25.Append(linkedStyle11); style25.Append(primaryStyle8); style25.Append(rsid22); style25.Append(styleParagraphProperties22); Style style26 = new Style() { Type = StyleValues.Paragraph, StyleId = "Failed", CustomStyle = true }; StyleName styleName26 = new StyleName() { Val = "Failed" }; BasedOn basedOn22 = new BasedOn() { Val = "Passed" }; LinkedStyle linkedStyle12 = new LinkedStyle() { Val = "FailedChar" }; PrimaryStyle primaryStyle9 = new PrimaryStyle(); Rsid rsid23 = new Rsid() { Val = "005217FA" }; StyleParagraphProperties styleParagraphProperties23 = new StyleParagraphProperties(); Shading shading15 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "FF0000" }; styleParagraphProperties23.Append(shading15); style26.Append(styleName26); style26.Append(basedOn22); style26.Append(linkedStyle12); style26.Append(primaryStyle9); style26.Append(rsid23); style26.Append(styleParagraphProperties23); Style style27 = new Style() { Type = StyleValues.Character, StyleId = "PassedChar", CustomStyle = true }; StyleName styleName27 = new StyleName() { Val = "Passed Char" }; BasedOn basedOn23 = new BasedOn() { Val = "DefaultParagraphFont" }; LinkedStyle linkedStyle13 = new LinkedStyle() { Val = "Passed" }; Rsid rsid24 = new Rsid() { Val = "005217FA" }; StyleRunProperties styleRunProperties12 = new StyleRunProperties(); Shading shading16 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "00B050" }; styleRunProperties12.Append(shading16); style27.Append(styleName27); style27.Append(basedOn23); style27.Append(linkedStyle13); style27.Append(rsid24); style27.Append(styleRunProperties12); Style style28 = new Style() { Type = StyleValues.Character, StyleId = "FailedChar", CustomStyle = true }; StyleName styleName28 = new StyleName() { Val = "Failed Char" }; BasedOn basedOn24 = new BasedOn() { Val = "PassedChar" }; LinkedStyle linkedStyle14 = new LinkedStyle() { Val = "Failed" }; Rsid rsid25 = new Rsid() { Val = "005217FA" }; StyleRunProperties styleRunProperties13 = new StyleRunProperties(); Shading shading17 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "FF0000" }; styleRunProperties13.Append(shading17); style28.Append(styleName28); style28.Append(basedOn24); style28.Append(linkedStyle14); style28.Append(rsid25); style28.Append(styleRunProperties13); styles1.Append(docDefaults1); styles1.Append(latentStyles1); styles1.Append(style1); styles1.Append(style2); styles1.Append(style3); styles1.Append(style4); styles1.Append(style5); styles1.Append(style6); styles1.Append(style7); styles1.Append(style8); styles1.Append(style9); styles1.Append(style10); styles1.Append(style11); styles1.Append(style12); styles1.Append(style13); styles1.Append(style14); styles1.Append(style15); styles1.Append(style16); styles1.Append(style17); styles1.Append(style18); styles1.Append(style19); styles1.Append(style20); styles1.Append(style21); styles1.Append(style22); styles1.Append(style23); styles1.Append(style24); styles1.Append(style25); styles1.Append(style26); styles1.Append(style27); styles1.Append(style28); styles1.Append(GenerateHeaderStyle()); styles1.Append(GenerateHeaderCharStyle()); styles1.Append(GenerateFooterStyle()); styles1.Append(GenerateFooterCharStyle()); part.Styles = styles1; }
public void HelloWorld(string documentFileName) { // Create a Wordprocessing document. using (WordprocessingDocument myDoc = WordprocessingDocument.Create(_TemplatePath, WordprocessingDocumentType.Document)) { // Add a new main document part. MainDocumentPart mainPart = myDoc.AddMainDocumentPart(); //Create Document tree for simple document. mainPart.Document = new Document(); StyleDefinitionsPart stylePart = mainPart.AddNewPart<StyleDefinitionsPart>(); // we have to set the properties RunProperties rPr = new RunProperties(); Color color = new Color() { Val = "FF0000" }; // the color is red RunFonts rFont = new RunFonts(); rFont.Ascii = "Arial"; // the font is Arial rPr.Append(color); rPr.Append(rFont); rPr.Append(new Bold()); // it is Bold rPr.Append(new FontSize() { Val = "28" }); //font size (in 1/72 of an inch) //creation of a style Style style = new Style(); style.StyleId = "MyHeading1"; //this is the ID of the style style.Append(new Name() { Val = "My Heading 1" }); //this is name // our style based on Normal style style.Append(new BasedOn() { Val = "Heading1" }); // the next paragraph is Normal type style.Append(new NextParagraphStyle() { Val = "Normal" }); style.Append(rPr);//we are adding properties previously defined // we have to add style that we have created to the StylePart stylePart.Styles = new Styles(); stylePart.Styles.Append(style); stylePart.Styles.Save(); // we save the style part Paragraph heading = new Paragraph(); Run heading_run = new Run(); Text heading_text = new Text("This is Heading"); ParagraphProperties heading_pPr = new ParagraphProperties(); // we set the style heading_pPr.ParagraphStyleId = new ParagraphStyleId() { Val = "MyHeading1" }; heading.Append(heading_pPr); heading_run.Append(heading_text); heading.Append(heading_run); //Create Body (this element contains //other elements that we want to include Body body = new Body(); //Create paragraph Paragraph paragraph = new Paragraph(); Run run_paragraph = new Run(); // we want to put that text into the output document Text text_paragraph = new Text("Hello World!"); //Append elements appropriately. run_paragraph.Append(text_paragraph); paragraph.Append(run_paragraph); body.Append(paragraph); body.Append(heading); mainPart.Document.Append(body); // Save changes to the main document part. mainPart.Document.Save(); } }
private void GenerateDefaultStyleTextForTable() { Style style1 = new Style() { Type = StyleValues.Paragraph, StyleId = "TableStyle", CustomStyle = true }; StyleName styleName1 = new StyleName() { Val = "TableStyle" }; BasedOn basedOn1 = new BasedOn() { Val = "StyleWithoutIndentation" }; LinkedStyle linkedStyle1 = new LinkedStyle() { Val = "DefaultStyleTextForTable0" }; PrimaryStyle primaryStyle1 = new PrimaryStyle(); Rsid rsid1 = new Rsid() { Val = "00E72C62" }; StyleRunProperties styleRunProperties1 = new StyleRunProperties(); FontSize fontSize1 = new FontSize() { Val = "24" }; styleRunProperties1.Append(fontSize1); style1.Append(styleName1); style1.Append(basedOn1); style1.Append(linkedStyle1); style1.Append(primaryStyle1); style1.Append(rsid1); style1.Append(styleRunProperties1); Styles.Add(style1); }
// Generates content of styleDefinitionsPart1. private void GenerateStyleDefinitionsPart1Content(StyleDefinitionsPart styleDefinitionsPart1) { Styles styles2 = new Styles() { MCAttributes = new MarkupCompatibilityAttributes() { Ignorable = "w14" } }; styles2.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); styles2.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); styles2.AddNamespaceDeclaration("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main"); styles2.AddNamespaceDeclaration("w14", "http://schemas.microsoft.com/office/word/2010/wordml"); DocDefaults docDefaults2 = new DocDefaults(); RunPropertiesDefault runPropertiesDefault2 = new RunPropertiesDefault(); RunPropertiesBaseStyle runPropertiesBaseStyle2 = new RunPropertiesBaseStyle(); RunFonts runFonts133 = new RunFonts() { AsciiTheme = ThemeFontValues.MinorHighAnsi, HighAnsiTheme = ThemeFontValues.MinorHighAnsi, EastAsiaTheme = ThemeFontValues.MinorEastAsia, ComplexScriptTheme = ThemeFontValues.MinorBidi }; FontSize fontSize133 = new FontSize() { Val = "22" }; FontSizeComplexScript fontSizeComplexScript133 = new FontSizeComplexScript() { Val = "22" }; Languages languages2 = new Languages() { Val = "en-US", EastAsia = "zh-TW", Bidi = "ar-SA" }; runPropertiesBaseStyle2.Append(runFonts133); runPropertiesBaseStyle2.Append(fontSize133); runPropertiesBaseStyle2.Append(fontSizeComplexScript133); runPropertiesBaseStyle2.Append(languages2); runPropertiesDefault2.Append(runPropertiesBaseStyle2); ParagraphPropertiesDefault paragraphPropertiesDefault2 = new ParagraphPropertiesDefault(); ParagraphPropertiesBaseStyle paragraphPropertiesBaseStyle2 = new ParagraphPropertiesBaseStyle(); SpacingBetweenLines spacingBetweenLines66 = new SpacingBetweenLines() { After = "200", Line = "276", LineRule = LineSpacingRuleValues.Auto }; paragraphPropertiesBaseStyle2.Append(spacingBetweenLines66); paragraphPropertiesDefault2.Append(paragraphPropertiesBaseStyle2); docDefaults2.Append(runPropertiesDefault2); docDefaults2.Append(paragraphPropertiesDefault2); LatentStyles latentStyles2 = new LatentStyles() { DefaultLockedState = false, DefaultUiPriority = 99, DefaultSemiHidden = true, DefaultUnhideWhenUsed = true, DefaultPrimaryStyle = false, Count = 267 }; LatentStyleExceptionInfo latentStyleExceptionInfo138 = new LatentStyleExceptionInfo() { Name = "Normal", UiPriority = 0, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo139 = new LatentStyleExceptionInfo() { Name = "heading 1", UiPriority = 9, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo140 = new LatentStyleExceptionInfo() { Name = "heading 2", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo141 = new LatentStyleExceptionInfo() { Name = "heading 3", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo142 = new LatentStyleExceptionInfo() { Name = "heading 4", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo143 = new LatentStyleExceptionInfo() { Name = "heading 5", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo144 = new LatentStyleExceptionInfo() { Name = "heading 6", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo145 = new LatentStyleExceptionInfo() { Name = "heading 7", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo146 = new LatentStyleExceptionInfo() { Name = "heading 8", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo147 = new LatentStyleExceptionInfo() { Name = "heading 9", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo148 = new LatentStyleExceptionInfo() { Name = "toc 1", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo149 = new LatentStyleExceptionInfo() { Name = "toc 2", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo150 = new LatentStyleExceptionInfo() { Name = "toc 3", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo151 = new LatentStyleExceptionInfo() { Name = "toc 4", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo152 = new LatentStyleExceptionInfo() { Name = "toc 5", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo153 = new LatentStyleExceptionInfo() { Name = "toc 6", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo154 = new LatentStyleExceptionInfo() { Name = "toc 7", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo155 = new LatentStyleExceptionInfo() { Name = "toc 8", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo156 = new LatentStyleExceptionInfo() { Name = "toc 9", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo157 = new LatentStyleExceptionInfo() { Name = "caption", UiPriority = 35, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo158 = new LatentStyleExceptionInfo() { Name = "Title", UiPriority = 10, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo159 = new LatentStyleExceptionInfo() { Name = "Default Paragraph Font", UiPriority = 1 }; LatentStyleExceptionInfo latentStyleExceptionInfo160 = new LatentStyleExceptionInfo() { Name = "Subtitle", UiPriority = 11, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo161 = new LatentStyleExceptionInfo() { Name = "Strong", UiPriority = 22, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo162 = new LatentStyleExceptionInfo() { Name = "Emphasis", UiPriority = 20, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo163 = new LatentStyleExceptionInfo() { Name = "Table Grid", UiPriority = 59, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo164 = new LatentStyleExceptionInfo() { Name = "Placeholder Text", UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo165 = new LatentStyleExceptionInfo() { Name = "No Spacing", UiPriority = 1, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo166 = new LatentStyleExceptionInfo() { Name = "Light Shading", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo167 = new LatentStyleExceptionInfo() { Name = "Light List", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo168 = new LatentStyleExceptionInfo() { Name = "Light Grid", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo169 = new LatentStyleExceptionInfo() { Name = "Medium Shading 1", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo170 = new LatentStyleExceptionInfo() { Name = "Medium Shading 2", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo171 = new LatentStyleExceptionInfo() { Name = "Medium List 1", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo172 = new LatentStyleExceptionInfo() { Name = "Medium List 2", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo173 = new LatentStyleExceptionInfo() { Name = "Medium Grid 1", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo174 = new LatentStyleExceptionInfo() { Name = "Medium Grid 2", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo175 = new LatentStyleExceptionInfo() { Name = "Medium Grid 3", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo176 = new LatentStyleExceptionInfo() { Name = "Dark List", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo177 = new LatentStyleExceptionInfo() { Name = "Colorful Shading", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo178 = new LatentStyleExceptionInfo() { Name = "Colorful List", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo179 = new LatentStyleExceptionInfo() { Name = "Colorful Grid", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo180 = new LatentStyleExceptionInfo() { Name = "Light Shading Accent 1", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo181 = new LatentStyleExceptionInfo() { Name = "Light List Accent 1", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo182 = new LatentStyleExceptionInfo() { Name = "Light Grid Accent 1", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo183 = new LatentStyleExceptionInfo() { Name = "Medium Shading 1 Accent 1", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo184 = new LatentStyleExceptionInfo() { Name = "Medium Shading 2 Accent 1", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo185 = new LatentStyleExceptionInfo() { Name = "Medium List 1 Accent 1", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo186 = new LatentStyleExceptionInfo() { Name = "Revision", UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo187 = new LatentStyleExceptionInfo() { Name = "List Paragraph", UiPriority = 34, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo188 = new LatentStyleExceptionInfo() { Name = "Quote", UiPriority = 29, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo189 = new LatentStyleExceptionInfo() { Name = "Intense Quote", UiPriority = 30, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo190 = new LatentStyleExceptionInfo() { Name = "Medium List 2 Accent 1", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo191 = new LatentStyleExceptionInfo() { Name = "Medium Grid 1 Accent 1", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo192 = new LatentStyleExceptionInfo() { Name = "Medium Grid 2 Accent 1", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo193 = new LatentStyleExceptionInfo() { Name = "Medium Grid 3 Accent 1", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo194 = new LatentStyleExceptionInfo() { Name = "Dark List Accent 1", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo195 = new LatentStyleExceptionInfo() { Name = "Colorful Shading Accent 1", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo196 = new LatentStyleExceptionInfo() { Name = "Colorful List Accent 1", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo197 = new LatentStyleExceptionInfo() { Name = "Colorful Grid Accent 1", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo198 = new LatentStyleExceptionInfo() { Name = "Light Shading Accent 2", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo199 = new LatentStyleExceptionInfo() { Name = "Light List Accent 2", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo200 = new LatentStyleExceptionInfo() { Name = "Light Grid Accent 2", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo201 = new LatentStyleExceptionInfo() { Name = "Medium Shading 1 Accent 2", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo202 = new LatentStyleExceptionInfo() { Name = "Medium Shading 2 Accent 2", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo203 = new LatentStyleExceptionInfo() { Name = "Medium List 1 Accent 2", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo204 = new LatentStyleExceptionInfo() { Name = "Medium List 2 Accent 2", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo205 = new LatentStyleExceptionInfo() { Name = "Medium Grid 1 Accent 2", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo206 = new LatentStyleExceptionInfo() { Name = "Medium Grid 2 Accent 2", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo207 = new LatentStyleExceptionInfo() { Name = "Medium Grid 3 Accent 2", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo208 = new LatentStyleExceptionInfo() { Name = "Dark List Accent 2", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo209 = new LatentStyleExceptionInfo() { Name = "Colorful Shading Accent 2", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo210 = new LatentStyleExceptionInfo() { Name = "Colorful List Accent 2", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo211 = new LatentStyleExceptionInfo() { Name = "Colorful Grid Accent 2", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo212 = new LatentStyleExceptionInfo() { Name = "Light Shading Accent 3", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo213 = new LatentStyleExceptionInfo() { Name = "Light List Accent 3", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo214 = new LatentStyleExceptionInfo() { Name = "Light Grid Accent 3", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo215 = new LatentStyleExceptionInfo() { Name = "Medium Shading 1 Accent 3", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo216 = new LatentStyleExceptionInfo() { Name = "Medium Shading 2 Accent 3", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo217 = new LatentStyleExceptionInfo() { Name = "Medium List 1 Accent 3", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo218 = new LatentStyleExceptionInfo() { Name = "Medium List 2 Accent 3", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo219 = new LatentStyleExceptionInfo() { Name = "Medium Grid 1 Accent 3", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo220 = new LatentStyleExceptionInfo() { Name = "Medium Grid 2 Accent 3", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo221 = new LatentStyleExceptionInfo() { Name = "Medium Grid 3 Accent 3", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo222 = new LatentStyleExceptionInfo() { Name = "Dark List Accent 3", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo223 = new LatentStyleExceptionInfo() { Name = "Colorful Shading Accent 3", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo224 = new LatentStyleExceptionInfo() { Name = "Colorful List Accent 3", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo225 = new LatentStyleExceptionInfo() { Name = "Colorful Grid Accent 3", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo226 = new LatentStyleExceptionInfo() { Name = "Light Shading Accent 4", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo227 = new LatentStyleExceptionInfo() { Name = "Light List Accent 4", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo228 = new LatentStyleExceptionInfo() { Name = "Light Grid Accent 4", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo229 = new LatentStyleExceptionInfo() { Name = "Medium Shading 1 Accent 4", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo230 = new LatentStyleExceptionInfo() { Name = "Medium Shading 2 Accent 4", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo231 = new LatentStyleExceptionInfo() { Name = "Medium List 1 Accent 4", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo232 = new LatentStyleExceptionInfo() { Name = "Medium List 2 Accent 4", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo233 = new LatentStyleExceptionInfo() { Name = "Medium Grid 1 Accent 4", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo234 = new LatentStyleExceptionInfo() { Name = "Medium Grid 2 Accent 4", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo235 = new LatentStyleExceptionInfo() { Name = "Medium Grid 3 Accent 4", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo236 = new LatentStyleExceptionInfo() { Name = "Dark List Accent 4", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo237 = new LatentStyleExceptionInfo() { Name = "Colorful Shading Accent 4", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo238 = new LatentStyleExceptionInfo() { Name = "Colorful List Accent 4", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo239 = new LatentStyleExceptionInfo() { Name = "Colorful Grid Accent 4", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo240 = new LatentStyleExceptionInfo() { Name = "Light Shading Accent 5", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo241 = new LatentStyleExceptionInfo() { Name = "Light List Accent 5", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo242 = new LatentStyleExceptionInfo() { Name = "Light Grid Accent 5", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo243 = new LatentStyleExceptionInfo() { Name = "Medium Shading 1 Accent 5", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo244 = new LatentStyleExceptionInfo() { Name = "Medium Shading 2 Accent 5", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo245 = new LatentStyleExceptionInfo() { Name = "Medium List 1 Accent 5", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo246 = new LatentStyleExceptionInfo() { Name = "Medium List 2 Accent 5", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo247 = new LatentStyleExceptionInfo() { Name = "Medium Grid 1 Accent 5", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo248 = new LatentStyleExceptionInfo() { Name = "Medium Grid 2 Accent 5", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo249 = new LatentStyleExceptionInfo() { Name = "Medium Grid 3 Accent 5", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo250 = new LatentStyleExceptionInfo() { Name = "Dark List Accent 5", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo251 = new LatentStyleExceptionInfo() { Name = "Colorful Shading Accent 5", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo252 = new LatentStyleExceptionInfo() { Name = "Colorful List Accent 5", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo253 = new LatentStyleExceptionInfo() { Name = "Colorful Grid Accent 5", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo254 = new LatentStyleExceptionInfo() { Name = "Light Shading Accent 6", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo255 = new LatentStyleExceptionInfo() { Name = "Light List Accent 6", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo256 = new LatentStyleExceptionInfo() { Name = "Light Grid Accent 6", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo257 = new LatentStyleExceptionInfo() { Name = "Medium Shading 1 Accent 6", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo258 = new LatentStyleExceptionInfo() { Name = "Medium Shading 2 Accent 6", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo259 = new LatentStyleExceptionInfo() { Name = "Medium List 1 Accent 6", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo260 = new LatentStyleExceptionInfo() { Name = "Medium List 2 Accent 6", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo261 = new LatentStyleExceptionInfo() { Name = "Medium Grid 1 Accent 6", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo262 = new LatentStyleExceptionInfo() { Name = "Medium Grid 2 Accent 6", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo263 = new LatentStyleExceptionInfo() { Name = "Medium Grid 3 Accent 6", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo264 = new LatentStyleExceptionInfo() { Name = "Dark List Accent 6", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo265 = new LatentStyleExceptionInfo() { Name = "Colorful Shading Accent 6", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo266 = new LatentStyleExceptionInfo() { Name = "Colorful List Accent 6", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo267 = new LatentStyleExceptionInfo() { Name = "Colorful Grid Accent 6", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo268 = new LatentStyleExceptionInfo() { Name = "Subtle Emphasis", UiPriority = 19, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo269 = new LatentStyleExceptionInfo() { Name = "Intense Emphasis", UiPriority = 21, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo270 = new LatentStyleExceptionInfo() { Name = "Subtle Reference", UiPriority = 31, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo271 = new LatentStyleExceptionInfo() { Name = "Intense Reference", UiPriority = 32, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo272 = new LatentStyleExceptionInfo() { Name = "Book Title", UiPriority = 33, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo273 = new LatentStyleExceptionInfo() { Name = "Bibliography", UiPriority = 37 }; LatentStyleExceptionInfo latentStyleExceptionInfo274 = new LatentStyleExceptionInfo() { Name = "TOC Heading", UiPriority = 39, PrimaryStyle = true }; latentStyles2.Append(latentStyleExceptionInfo138); latentStyles2.Append(latentStyleExceptionInfo139); latentStyles2.Append(latentStyleExceptionInfo140); latentStyles2.Append(latentStyleExceptionInfo141); latentStyles2.Append(latentStyleExceptionInfo142); latentStyles2.Append(latentStyleExceptionInfo143); latentStyles2.Append(latentStyleExceptionInfo144); latentStyles2.Append(latentStyleExceptionInfo145); latentStyles2.Append(latentStyleExceptionInfo146); latentStyles2.Append(latentStyleExceptionInfo147); latentStyles2.Append(latentStyleExceptionInfo148); latentStyles2.Append(latentStyleExceptionInfo149); latentStyles2.Append(latentStyleExceptionInfo150); latentStyles2.Append(latentStyleExceptionInfo151); latentStyles2.Append(latentStyleExceptionInfo152); latentStyles2.Append(latentStyleExceptionInfo153); latentStyles2.Append(latentStyleExceptionInfo154); latentStyles2.Append(latentStyleExceptionInfo155); latentStyles2.Append(latentStyleExceptionInfo156); latentStyles2.Append(latentStyleExceptionInfo157); latentStyles2.Append(latentStyleExceptionInfo158); latentStyles2.Append(latentStyleExceptionInfo159); latentStyles2.Append(latentStyleExceptionInfo160); latentStyles2.Append(latentStyleExceptionInfo161); latentStyles2.Append(latentStyleExceptionInfo162); latentStyles2.Append(latentStyleExceptionInfo163); latentStyles2.Append(latentStyleExceptionInfo164); latentStyles2.Append(latentStyleExceptionInfo165); latentStyles2.Append(latentStyleExceptionInfo166); latentStyles2.Append(latentStyleExceptionInfo167); latentStyles2.Append(latentStyleExceptionInfo168); latentStyles2.Append(latentStyleExceptionInfo169); latentStyles2.Append(latentStyleExceptionInfo170); latentStyles2.Append(latentStyleExceptionInfo171); latentStyles2.Append(latentStyleExceptionInfo172); latentStyles2.Append(latentStyleExceptionInfo173); latentStyles2.Append(latentStyleExceptionInfo174); latentStyles2.Append(latentStyleExceptionInfo175); latentStyles2.Append(latentStyleExceptionInfo176); latentStyles2.Append(latentStyleExceptionInfo177); latentStyles2.Append(latentStyleExceptionInfo178); latentStyles2.Append(latentStyleExceptionInfo179); latentStyles2.Append(latentStyleExceptionInfo180); latentStyles2.Append(latentStyleExceptionInfo181); latentStyles2.Append(latentStyleExceptionInfo182); latentStyles2.Append(latentStyleExceptionInfo183); latentStyles2.Append(latentStyleExceptionInfo184); latentStyles2.Append(latentStyleExceptionInfo185); latentStyles2.Append(latentStyleExceptionInfo186); latentStyles2.Append(latentStyleExceptionInfo187); latentStyles2.Append(latentStyleExceptionInfo188); latentStyles2.Append(latentStyleExceptionInfo189); latentStyles2.Append(latentStyleExceptionInfo190); latentStyles2.Append(latentStyleExceptionInfo191); latentStyles2.Append(latentStyleExceptionInfo192); latentStyles2.Append(latentStyleExceptionInfo193); latentStyles2.Append(latentStyleExceptionInfo194); latentStyles2.Append(latentStyleExceptionInfo195); latentStyles2.Append(latentStyleExceptionInfo196); latentStyles2.Append(latentStyleExceptionInfo197); latentStyles2.Append(latentStyleExceptionInfo198); latentStyles2.Append(latentStyleExceptionInfo199); latentStyles2.Append(latentStyleExceptionInfo200); latentStyles2.Append(latentStyleExceptionInfo201); latentStyles2.Append(latentStyleExceptionInfo202); latentStyles2.Append(latentStyleExceptionInfo203); latentStyles2.Append(latentStyleExceptionInfo204); latentStyles2.Append(latentStyleExceptionInfo205); latentStyles2.Append(latentStyleExceptionInfo206); latentStyles2.Append(latentStyleExceptionInfo207); latentStyles2.Append(latentStyleExceptionInfo208); latentStyles2.Append(latentStyleExceptionInfo209); latentStyles2.Append(latentStyleExceptionInfo210); latentStyles2.Append(latentStyleExceptionInfo211); latentStyles2.Append(latentStyleExceptionInfo212); latentStyles2.Append(latentStyleExceptionInfo213); latentStyles2.Append(latentStyleExceptionInfo214); latentStyles2.Append(latentStyleExceptionInfo215); latentStyles2.Append(latentStyleExceptionInfo216); latentStyles2.Append(latentStyleExceptionInfo217); latentStyles2.Append(latentStyleExceptionInfo218); latentStyles2.Append(latentStyleExceptionInfo219); latentStyles2.Append(latentStyleExceptionInfo220); latentStyles2.Append(latentStyleExceptionInfo221); latentStyles2.Append(latentStyleExceptionInfo222); latentStyles2.Append(latentStyleExceptionInfo223); latentStyles2.Append(latentStyleExceptionInfo224); latentStyles2.Append(latentStyleExceptionInfo225); latentStyles2.Append(latentStyleExceptionInfo226); latentStyles2.Append(latentStyleExceptionInfo227); latentStyles2.Append(latentStyleExceptionInfo228); latentStyles2.Append(latentStyleExceptionInfo229); latentStyles2.Append(latentStyleExceptionInfo230); latentStyles2.Append(latentStyleExceptionInfo231); latentStyles2.Append(latentStyleExceptionInfo232); latentStyles2.Append(latentStyleExceptionInfo233); latentStyles2.Append(latentStyleExceptionInfo234); latentStyles2.Append(latentStyleExceptionInfo235); latentStyles2.Append(latentStyleExceptionInfo236); latentStyles2.Append(latentStyleExceptionInfo237); latentStyles2.Append(latentStyleExceptionInfo238); latentStyles2.Append(latentStyleExceptionInfo239); latentStyles2.Append(latentStyleExceptionInfo240); latentStyles2.Append(latentStyleExceptionInfo241); latentStyles2.Append(latentStyleExceptionInfo242); latentStyles2.Append(latentStyleExceptionInfo243); latentStyles2.Append(latentStyleExceptionInfo244); latentStyles2.Append(latentStyleExceptionInfo245); latentStyles2.Append(latentStyleExceptionInfo246); latentStyles2.Append(latentStyleExceptionInfo247); latentStyles2.Append(latentStyleExceptionInfo248); latentStyles2.Append(latentStyleExceptionInfo249); latentStyles2.Append(latentStyleExceptionInfo250); latentStyles2.Append(latentStyleExceptionInfo251); latentStyles2.Append(latentStyleExceptionInfo252); latentStyles2.Append(latentStyleExceptionInfo253); latentStyles2.Append(latentStyleExceptionInfo254); latentStyles2.Append(latentStyleExceptionInfo255); latentStyles2.Append(latentStyleExceptionInfo256); latentStyles2.Append(latentStyleExceptionInfo257); latentStyles2.Append(latentStyleExceptionInfo258); latentStyles2.Append(latentStyleExceptionInfo259); latentStyles2.Append(latentStyleExceptionInfo260); latentStyles2.Append(latentStyleExceptionInfo261); latentStyles2.Append(latentStyleExceptionInfo262); latentStyles2.Append(latentStyleExceptionInfo263); latentStyles2.Append(latentStyleExceptionInfo264); latentStyles2.Append(latentStyleExceptionInfo265); latentStyles2.Append(latentStyleExceptionInfo266); latentStyles2.Append(latentStyleExceptionInfo267); latentStyles2.Append(latentStyleExceptionInfo268); latentStyles2.Append(latentStyleExceptionInfo269); latentStyles2.Append(latentStyleExceptionInfo270); latentStyles2.Append(latentStyleExceptionInfo271); latentStyles2.Append(latentStyleExceptionInfo272); latentStyles2.Append(latentStyleExceptionInfo273); latentStyles2.Append(latentStyleExceptionInfo274); Style style18 = new Style() { Type = StyleValues.Paragraph, StyleId = "Normal", Default = true }; StyleName styleName14 = new StyleName() { Val = "Normal" }; PrimaryStyle primaryStyle2 = new PrimaryStyle(); style18.Append(styleName14); style18.Append(primaryStyle2); Style style19 = new Style() { Type = StyleValues.Character, StyleId = "DefaultParagraphFont", Default = true }; StyleName styleName15 = new StyleName() { Val = "Default Paragraph Font" }; UIPriority uIPriority12 = new UIPriority() { Val = 1 }; SemiHidden semiHidden7 = new SemiHidden(); UnhideWhenUsed unhideWhenUsed8 = new UnhideWhenUsed(); style19.Append(styleName15); style19.Append(uIPriority12); style19.Append(semiHidden7); style19.Append(unhideWhenUsed8); Style style20 = new Style() { Type = StyleValues.Table, StyleId = "TableNormal", Default = true }; StyleName styleName16 = new StyleName() { Val = "Normal Table" }; UIPriority uIPriority13 = new UIPriority() { Val = 99 }; SemiHidden semiHidden8 = new SemiHidden(); UnhideWhenUsed unhideWhenUsed9 = new UnhideWhenUsed(); StyleTableProperties styleTableProperties3 = new StyleTableProperties(); TableIndentation tableIndentation3 = new TableIndentation() { Width = 0, Type = TableWidthUnitValues.Dxa }; TableCellMarginDefault tableCellMarginDefault4 = new TableCellMarginDefault(); TopMargin topMargin64 = new TopMargin() { Width = "0", Type = TableWidthUnitValues.Dxa }; TableCellLeftMargin tableCellLeftMargin4 = new TableCellLeftMargin() { Width = 108, Type = TableWidthValues.Dxa }; BottomMargin bottomMargin64 = new BottomMargin() { Width = "0", Type = TableWidthUnitValues.Dxa }; TableCellRightMargin tableCellRightMargin4 = new TableCellRightMargin() { Width = 108, Type = TableWidthValues.Dxa }; tableCellMarginDefault4.Append(topMargin64); tableCellMarginDefault4.Append(tableCellLeftMargin4); tableCellMarginDefault4.Append(bottomMargin64); tableCellMarginDefault4.Append(tableCellRightMargin4); styleTableProperties3.Append(tableIndentation3); styleTableProperties3.Append(tableCellMarginDefault4); style20.Append(styleName16); style20.Append(uIPriority13); style20.Append(semiHidden8); style20.Append(unhideWhenUsed9); style20.Append(styleTableProperties3); Style style21 = new Style() { Type = StyleValues.Numbering, StyleId = "NoList", Default = true }; StyleName styleName17 = new StyleName() { Val = "No List" }; UIPriority uIPriority14 = new UIPriority() { Val = 99 }; SemiHidden semiHidden9 = new SemiHidden(); UnhideWhenUsed unhideWhenUsed10 = new UnhideWhenUsed(); style21.Append(styleName17); style21.Append(uIPriority14); style21.Append(semiHidden9); style21.Append(unhideWhenUsed10); Style style22 = new Style() { Type = StyleValues.Paragraph, StyleId = "BalloonText" }; StyleName styleName18 = new StyleName() { Val = "Balloon Text" }; BasedOn basedOn10 = new BasedOn() { Val = "Normal" }; LinkedStyle linkedStyle7 = new LinkedStyle() { Val = "BalloonTextChar" }; UIPriority uIPriority15 = new UIPriority() { Val = 99 }; SemiHidden semiHidden10 = new SemiHidden(); UnhideWhenUsed unhideWhenUsed11 = new UnhideWhenUsed(); Rsid rsid16 = new Rsid() { Val = "00D831F8" }; StyleParagraphProperties styleParagraphProperties5 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines67 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; styleParagraphProperties5.Append(spacingBetweenLines67); StyleRunProperties styleRunProperties4 = new StyleRunProperties(); RunFonts runFonts134 = new RunFonts() { Ascii = "Tahoma", HighAnsi = "Tahoma", ComplexScript = "Tahoma" }; FontSize fontSize134 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript134 = new FontSizeComplexScript() { Val = "16" }; styleRunProperties4.Append(runFonts134); styleRunProperties4.Append(fontSize134); styleRunProperties4.Append(fontSizeComplexScript134); style22.Append(styleName18); style22.Append(basedOn10); style22.Append(linkedStyle7); style22.Append(uIPriority15); style22.Append(semiHidden10); style22.Append(unhideWhenUsed11); style22.Append(rsid16); style22.Append(styleParagraphProperties5); style22.Append(styleRunProperties4); Style style23 = new Style() { Type = StyleValues.Character, StyleId = "BalloonTextChar", CustomStyle = true }; StyleName styleName19 = new StyleName() { Val = "Balloon Text Char" }; BasedOn basedOn11 = new BasedOn() { Val = "DefaultParagraphFont" }; LinkedStyle linkedStyle8 = new LinkedStyle() { Val = "BalloonText" }; UIPriority uIPriority16 = new UIPriority() { Val = 99 }; SemiHidden semiHidden11 = new SemiHidden(); Rsid rsid17 = new Rsid() { Val = "00D831F8" }; StyleRunProperties styleRunProperties5 = new StyleRunProperties(); RunFonts runFonts135 = new RunFonts() { Ascii = "Tahoma", HighAnsi = "Tahoma", ComplexScript = "Tahoma" }; FontSize fontSize135 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript135 = new FontSizeComplexScript() { Val = "16" }; styleRunProperties5.Append(runFonts135); styleRunProperties5.Append(fontSize135); styleRunProperties5.Append(fontSizeComplexScript135); style23.Append(styleName19); style23.Append(basedOn11); style23.Append(linkedStyle8); style23.Append(uIPriority16); style23.Append(semiHidden11); style23.Append(rsid17); style23.Append(styleRunProperties5); Style style24 = new Style() { Type = StyleValues.Paragraph, StyleId = "Header" }; StyleName styleName20 = new StyleName() { Val = "header" }; BasedOn basedOn12 = new BasedOn() { Val = "Normal" }; LinkedStyle linkedStyle9 = new LinkedStyle() { Val = "HeaderChar" }; UIPriority uIPriority17 = new UIPriority() { Val = 99 }; UnhideWhenUsed unhideWhenUsed12 = new UnhideWhenUsed(); Rsid rsid18 = new Rsid() { Val = "00C802B4" }; StyleParagraphProperties styleParagraphProperties6 = new StyleParagraphProperties(); Tabs tabs3 = new Tabs(); TabStop tabStop5 = new TabStop() { Val = TabStopValues.Center, Position = 4680 }; TabStop tabStop6 = new TabStop() { Val = TabStopValues.Right, Position = 9360 }; tabs3.Append(tabStop5); tabs3.Append(tabStop6); SpacingBetweenLines spacingBetweenLines68 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; styleParagraphProperties6.Append(tabs3); styleParagraphProperties6.Append(spacingBetweenLines68); style24.Append(styleName20); style24.Append(basedOn12); style24.Append(linkedStyle9); style24.Append(uIPriority17); style24.Append(unhideWhenUsed12); style24.Append(rsid18); style24.Append(styleParagraphProperties6); Style style25 = new Style() { Type = StyleValues.Character, StyleId = "HeaderChar", CustomStyle = true }; StyleName styleName21 = new StyleName() { Val = "Header Char" }; BasedOn basedOn13 = new BasedOn() { Val = "DefaultParagraphFont" }; LinkedStyle linkedStyle10 = new LinkedStyle() { Val = "Header" }; UIPriority uIPriority18 = new UIPriority() { Val = 99 }; Rsid rsid19 = new Rsid() { Val = "00C802B4" }; style25.Append(styleName21); style25.Append(basedOn13); style25.Append(linkedStyle10); style25.Append(uIPriority18); style25.Append(rsid19); Style style26 = new Style() { Type = StyleValues.Paragraph, StyleId = "Footer" }; StyleName styleName22 = new StyleName() { Val = "footer" }; BasedOn basedOn14 = new BasedOn() { Val = "Normal" }; LinkedStyle linkedStyle11 = new LinkedStyle() { Val = "FooterChar" }; UIPriority uIPriority19 = new UIPriority() { Val = 99 }; UnhideWhenUsed unhideWhenUsed13 = new UnhideWhenUsed(); Rsid rsid20 = new Rsid() { Val = "00C802B4" }; StyleParagraphProperties styleParagraphProperties7 = new StyleParagraphProperties(); Tabs tabs4 = new Tabs(); TabStop tabStop7 = new TabStop() { Val = TabStopValues.Center, Position = 4680 }; TabStop tabStop8 = new TabStop() { Val = TabStopValues.Right, Position = 9360 }; tabs4.Append(tabStop7); tabs4.Append(tabStop8); SpacingBetweenLines spacingBetweenLines69 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; styleParagraphProperties7.Append(tabs4); styleParagraphProperties7.Append(spacingBetweenLines69); style26.Append(styleName22); style26.Append(basedOn14); style26.Append(linkedStyle11); style26.Append(uIPriority19); style26.Append(unhideWhenUsed13); style26.Append(rsid20); style26.Append(styleParagraphProperties7); Style style27 = new Style() { Type = StyleValues.Character, StyleId = "FooterChar", CustomStyle = true }; StyleName styleName23 = new StyleName() { Val = "Footer Char" }; BasedOn basedOn15 = new BasedOn() { Val = "DefaultParagraphFont" }; LinkedStyle linkedStyle12 = new LinkedStyle() { Val = "Footer" }; UIPriority uIPriority20 = new UIPriority() { Val = 99 }; Rsid rsid21 = new Rsid() { Val = "00C802B4" }; style27.Append(styleName23); style27.Append(basedOn15); style27.Append(linkedStyle12); style27.Append(uIPriority20); style27.Append(rsid21); Style style28 = new Style() { Type = StyleValues.Character, StyleId = "Hyperlink" }; StyleName styleName24 = new StyleName() { Val = "Hyperlink" }; BasedOn basedOn16 = new BasedOn() { Val = "DefaultParagraphFont" }; UIPriority uIPriority21 = new UIPriority() { Val = 99 }; SemiHidden semiHidden12 = new SemiHidden(); UnhideWhenUsed unhideWhenUsed14 = new UnhideWhenUsed(); Rsid rsid22 = new Rsid() { Val = "00C802B4" }; StyleRunProperties styleRunProperties6 = new StyleRunProperties(); Color color131 = new Color() { Val = "0000FF" }; Underline underline2 = new Underline() { Val = UnderlineValues.Single }; styleRunProperties6.Append(color131); styleRunProperties6.Append(underline2); style28.Append(styleName24); style28.Append(basedOn16); style28.Append(uIPriority21); style28.Append(semiHidden12); style28.Append(unhideWhenUsed14); style28.Append(rsid22); style28.Append(styleRunProperties6); Style style29 = new Style() { Type = StyleValues.Character, StyleId = "unicode", CustomStyle = true }; StyleName styleName25 = new StyleName() { Val = "unicode" }; BasedOn basedOn17 = new BasedOn() { Val = "DefaultParagraphFont" }; Rsid rsid23 = new Rsid() { Val = "00C802B4" }; style29.Append(styleName25); style29.Append(basedOn17); style29.Append(rsid23); Style style30 = new Style() { Type = StyleValues.Table, StyleId = "TableGrid" }; StyleName styleName26 = new StyleName() { Val = "Table Grid" }; BasedOn basedOn18 = new BasedOn() { Val = "TableNormal" }; UIPriority uIPriority22 = new UIPriority() { Val = 59 }; Rsid rsid24 = new Rsid() { Val = "00F216F1" }; StyleParagraphProperties styleParagraphProperties8 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines70 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; styleParagraphProperties8.Append(spacingBetweenLines70); StyleTableProperties styleTableProperties4 = new StyleTableProperties(); TableIndentation tableIndentation4 = new TableIndentation() { Width = 0, Type = TableWidthUnitValues.Dxa }; TableBorders tableBorders3 = new TableBorders(); TopBorder topBorder63 = new TopBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; LeftBorder leftBorder63 = new LeftBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; BottomBorder bottomBorder63 = new BottomBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; RightBorder rightBorder63 = new RightBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; InsideHorizontalBorder insideHorizontalBorder2 = new InsideHorizontalBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; InsideVerticalBorder insideVerticalBorder2 = new InsideVerticalBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; tableBorders3.Append(topBorder63); tableBorders3.Append(leftBorder63); tableBorders3.Append(bottomBorder63); tableBorders3.Append(rightBorder63); tableBorders3.Append(insideHorizontalBorder2); tableBorders3.Append(insideVerticalBorder2); TableCellMarginDefault tableCellMarginDefault5 = new TableCellMarginDefault(); TopMargin topMargin65 = new TopMargin() { Width = "0", Type = TableWidthUnitValues.Dxa }; TableCellLeftMargin tableCellLeftMargin5 = new TableCellLeftMargin() { Width = 108, Type = TableWidthValues.Dxa }; BottomMargin bottomMargin65 = new BottomMargin() { Width = "0", Type = TableWidthUnitValues.Dxa }; TableCellRightMargin tableCellRightMargin5 = new TableCellRightMargin() { Width = 108, Type = TableWidthValues.Dxa }; tableCellMarginDefault5.Append(topMargin65); tableCellMarginDefault5.Append(tableCellLeftMargin5); tableCellMarginDefault5.Append(bottomMargin65); tableCellMarginDefault5.Append(tableCellRightMargin5); styleTableProperties4.Append(tableIndentation4); styleTableProperties4.Append(tableBorders3); styleTableProperties4.Append(tableCellMarginDefault5); style30.Append(styleName26); style30.Append(basedOn18); style30.Append(uIPriority22); style30.Append(rsid24); style30.Append(styleParagraphProperties8); style30.Append(styleTableProperties4); styles2.Append(docDefaults2); styles2.Append(latentStyles2); styles2.Append(style18); styles2.Append(style19); styles2.Append(style20); styles2.Append(style21); styles2.Append(style22); styles2.Append(style23); styles2.Append(style24); styles2.Append(style25); styles2.Append(style26); styles2.Append(style27); styles2.Append(style28); styles2.Append(style29); styles2.Append(style30); styleDefinitionsPart1.Styles = styles2; }
//Создание стандартного стиля для текста без отступа private void GenerateStyleTextWithoutIndentation() { var defaultStyleText = new Style() { Type = StyleValues.Paragraph, StyleId = "StyleWithoutIndentation", CustomStyle = true }; StyleName styleName1 = new StyleName() { Val = "StyleWithoutIndentation" }; BasedOn basedOn1 = new BasedOn() { Val = "a" }; LinkedStyle linkedStyle1 = new LinkedStyle() { Val = "StyleWithoutIndentation" }; PrimaryStyle primaryStyle1 = new PrimaryStyle(); Rsid rsid1 = new Rsid() { Val = "00C5038E" }; StyleParagraphProperties styleParagraphProperties1 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines1 = new SpacingBetweenLines() { After = "0", Line = "360", LineRule = LineSpacingRuleValues.Auto }; Justification justification1 = new Justification() { Val = JustificationValues.Both }; styleParagraphProperties1.Append(spacingBetweenLines1); styleParagraphProperties1.Append(justification1); StyleRunProperties styleRunProperties1 = new StyleRunProperties(); RunFonts runFonts1 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" }; FontSize fontSize1 = new FontSize() { Val = "28" }; styleRunProperties1.Append(runFonts1); styleRunProperties1.Append(fontSize1); defaultStyleText.Append(styleName1); defaultStyleText.Append(basedOn1); defaultStyleText.Append(linkedStyle1); defaultStyleText.Append(primaryStyle1); defaultStyleText.Append(rsid1); defaultStyleText.Append(styleParagraphProperties1); defaultStyleText.Append(styleRunProperties1); Styles.Add(defaultStyleText); }
private Style GenerateHeadingOneCharStyle() { Style style1 = new Style() { Type = StyleValues.Character, StyleId = HeadingOneCharStyle, CustomStyle = true }; StyleName styleName1 = new StyleName() { Val = "Heading 1 Char" }; BasedOn basedOn1 = new BasedOn() { Val = "DefaultParagraphFont" }; LinkedStyle linkedStyle1 = new LinkedStyle() { Val = "Heading1" }; UIPriority uIPriority1 = new UIPriority() { Val = 9 }; //Rsid rsid1 = new Rsid() { Val = "0013195F" }; StyleRunProperties styleRunProperties1 = new StyleRunProperties(); RunFonts runFonts1 = new RunFonts() { AsciiTheme = ThemeFontValues.MajorHighAnsi, HighAnsiTheme = ThemeFontValues.MajorHighAnsi, EastAsiaTheme = ThemeFontValues.MajorEastAsia, ComplexScriptTheme = ThemeFontValues.MajorBidi }; Color color1 = new Color() { Val = "2E74B5", ThemeColor = ThemeColorValues.Accent1, ThemeShade = "BF" }; FontSize fontSize1 = new FontSize() { Val = "32" }; FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript() { Val = "32" }; styleRunProperties1.Append(runFonts1); styleRunProperties1.Append(color1); styleRunProperties1.Append(fontSize1); styleRunProperties1.Append(fontSizeComplexScript1); style1.Append(styleName1); style1.Append(basedOn1); style1.Append(linkedStyle1); style1.Append(uIPriority1); //style1.Append(rsid1); style1.Append(styleRunProperties1); return style1; }
// Generates content of stylesWithEffectsPart1. private void GenerateStylesWithEffectsPart1Content(StylesWithEffectsPart stylesWithEffectsPart1) { Styles styles1 = new Styles() { MCAttributes = new MarkupCompatibilityAttributes() { Ignorable = "w14 wp14" } }; styles1.AddNamespaceDeclaration("wpc", "http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas"); styles1.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); styles1.AddNamespaceDeclaration("o", "urn:schemas-microsoft-com:office:office"); styles1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); styles1.AddNamespaceDeclaration("m", "http://schemas.openxmlformats.org/officeDocument/2006/math"); styles1.AddNamespaceDeclaration("v", "urn:schemas-microsoft-com:vml"); styles1.AddNamespaceDeclaration("wp14", "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing"); styles1.AddNamespaceDeclaration("wp", "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"); styles1.AddNamespaceDeclaration("w10", "urn:schemas-microsoft-com:office:word"); styles1.AddNamespaceDeclaration("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main"); styles1.AddNamespaceDeclaration("w14", "http://schemas.microsoft.com/office/word/2010/wordml"); styles1.AddNamespaceDeclaration("wpg", "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup"); styles1.AddNamespaceDeclaration("wpi", "http://schemas.microsoft.com/office/word/2010/wordprocessingInk"); styles1.AddNamespaceDeclaration("wne", "http://schemas.microsoft.com/office/word/2006/wordml"); styles1.AddNamespaceDeclaration("wps", "http://schemas.microsoft.com/office/word/2010/wordprocessingShape"); DocDefaults docDefaults1 = new DocDefaults(); RunPropertiesDefault runPropertiesDefault1 = new RunPropertiesDefault(); RunPropertiesBaseStyle runPropertiesBaseStyle1 = new RunPropertiesBaseStyle(); RunFonts runFonts130 = new RunFonts() { AsciiTheme = ThemeFontValues.MinorHighAnsi, HighAnsiTheme = ThemeFontValues.MinorHighAnsi, EastAsiaTheme = ThemeFontValues.MinorEastAsia, ComplexScriptTheme = ThemeFontValues.MinorBidi }; FontSize fontSize130 = new FontSize() { Val = "22" }; FontSizeComplexScript fontSizeComplexScript130 = new FontSizeComplexScript() { Val = "22" }; Languages languages1 = new Languages() { Val = "en-US", EastAsia = "zh-TW", Bidi = "ar-SA" }; runPropertiesBaseStyle1.Append(runFonts130); runPropertiesBaseStyle1.Append(fontSize130); runPropertiesBaseStyle1.Append(fontSizeComplexScript130); runPropertiesBaseStyle1.Append(languages1); runPropertiesDefault1.Append(runPropertiesBaseStyle1); ParagraphPropertiesDefault paragraphPropertiesDefault1 = new ParagraphPropertiesDefault(); ParagraphPropertiesBaseStyle paragraphPropertiesBaseStyle1 = new ParagraphPropertiesBaseStyle(); SpacingBetweenLines spacingBetweenLines61 = new SpacingBetweenLines() { After = "200", Line = "276", LineRule = LineSpacingRuleValues.Auto }; paragraphPropertiesBaseStyle1.Append(spacingBetweenLines61); paragraphPropertiesDefault1.Append(paragraphPropertiesBaseStyle1); docDefaults1.Append(runPropertiesDefault1); docDefaults1.Append(paragraphPropertiesDefault1); LatentStyles latentStyles1 = new LatentStyles() { DefaultLockedState = false, DefaultUiPriority = 99, DefaultSemiHidden = true, DefaultUnhideWhenUsed = true, DefaultPrimaryStyle = false, Count = 267 }; LatentStyleExceptionInfo latentStyleExceptionInfo1 = new LatentStyleExceptionInfo() { Name = "Normal", UiPriority = 0, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo2 = new LatentStyleExceptionInfo() { Name = "heading 1", UiPriority = 9, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo3 = new LatentStyleExceptionInfo() { Name = "heading 2", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo4 = new LatentStyleExceptionInfo() { Name = "heading 3", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo5 = new LatentStyleExceptionInfo() { Name = "heading 4", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo6 = new LatentStyleExceptionInfo() { Name = "heading 5", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo7 = new LatentStyleExceptionInfo() { Name = "heading 6", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo8 = new LatentStyleExceptionInfo() { Name = "heading 7", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo9 = new LatentStyleExceptionInfo() { Name = "heading 8", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo10 = new LatentStyleExceptionInfo() { Name = "heading 9", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo11 = new LatentStyleExceptionInfo() { Name = "toc 1", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo12 = new LatentStyleExceptionInfo() { Name = "toc 2", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo13 = new LatentStyleExceptionInfo() { Name = "toc 3", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo14 = new LatentStyleExceptionInfo() { Name = "toc 4", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo15 = new LatentStyleExceptionInfo() { Name = "toc 5", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo16 = new LatentStyleExceptionInfo() { Name = "toc 6", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo17 = new LatentStyleExceptionInfo() { Name = "toc 7", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo18 = new LatentStyleExceptionInfo() { Name = "toc 8", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo19 = new LatentStyleExceptionInfo() { Name = "toc 9", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo20 = new LatentStyleExceptionInfo() { Name = "caption", UiPriority = 35, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo21 = new LatentStyleExceptionInfo() { Name = "Title", UiPriority = 10, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo22 = new LatentStyleExceptionInfo() { Name = "Default Paragraph Font", UiPriority = 1 }; LatentStyleExceptionInfo latentStyleExceptionInfo23 = new LatentStyleExceptionInfo() { Name = "Subtitle", UiPriority = 11, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo24 = new LatentStyleExceptionInfo() { Name = "Strong", UiPriority = 22, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo25 = new LatentStyleExceptionInfo() { Name = "Emphasis", UiPriority = 20, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo26 = new LatentStyleExceptionInfo() { Name = "Table Grid", UiPriority = 59, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo27 = new LatentStyleExceptionInfo() { Name = "Placeholder Text", UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo28 = new LatentStyleExceptionInfo() { Name = "No Spacing", UiPriority = 1, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo29 = new LatentStyleExceptionInfo() { Name = "Light Shading", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo30 = new LatentStyleExceptionInfo() { Name = "Light List", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo31 = new LatentStyleExceptionInfo() { Name = "Light Grid", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo32 = new LatentStyleExceptionInfo() { Name = "Medium Shading 1", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo33 = new LatentStyleExceptionInfo() { Name = "Medium Shading 2", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo34 = new LatentStyleExceptionInfo() { Name = "Medium List 1", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo35 = new LatentStyleExceptionInfo() { Name = "Medium List 2", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo36 = new LatentStyleExceptionInfo() { Name = "Medium Grid 1", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo37 = new LatentStyleExceptionInfo() { Name = "Medium Grid 2", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo38 = new LatentStyleExceptionInfo() { Name = "Medium Grid 3", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo39 = new LatentStyleExceptionInfo() { Name = "Dark List", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo40 = new LatentStyleExceptionInfo() { Name = "Colorful Shading", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo41 = new LatentStyleExceptionInfo() { Name = "Colorful List", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo42 = new LatentStyleExceptionInfo() { Name = "Colorful Grid", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo43 = new LatentStyleExceptionInfo() { Name = "Light Shading Accent 1", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo44 = new LatentStyleExceptionInfo() { Name = "Light List Accent 1", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo45 = new LatentStyleExceptionInfo() { Name = "Light Grid Accent 1", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo46 = new LatentStyleExceptionInfo() { Name = "Medium Shading 1 Accent 1", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo47 = new LatentStyleExceptionInfo() { Name = "Medium Shading 2 Accent 1", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo48 = new LatentStyleExceptionInfo() { Name = "Medium List 1 Accent 1", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo49 = new LatentStyleExceptionInfo() { Name = "Revision", UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo50 = new LatentStyleExceptionInfo() { Name = "List Paragraph", UiPriority = 34, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo51 = new LatentStyleExceptionInfo() { Name = "Quote", UiPriority = 29, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo52 = new LatentStyleExceptionInfo() { Name = "Intense Quote", UiPriority = 30, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo53 = new LatentStyleExceptionInfo() { Name = "Medium List 2 Accent 1", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo54 = new LatentStyleExceptionInfo() { Name = "Medium Grid 1 Accent 1", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo55 = new LatentStyleExceptionInfo() { Name = "Medium Grid 2 Accent 1", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo56 = new LatentStyleExceptionInfo() { Name = "Medium Grid 3 Accent 1", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo57 = new LatentStyleExceptionInfo() { Name = "Dark List Accent 1", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo58 = new LatentStyleExceptionInfo() { Name = "Colorful Shading Accent 1", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo59 = new LatentStyleExceptionInfo() { Name = "Colorful List Accent 1", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo60 = new LatentStyleExceptionInfo() { Name = "Colorful Grid Accent 1", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo61 = new LatentStyleExceptionInfo() { Name = "Light Shading Accent 2", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo62 = new LatentStyleExceptionInfo() { Name = "Light List Accent 2", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo63 = new LatentStyleExceptionInfo() { Name = "Light Grid Accent 2", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo64 = new LatentStyleExceptionInfo() { Name = "Medium Shading 1 Accent 2", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo65 = new LatentStyleExceptionInfo() { Name = "Medium Shading 2 Accent 2", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo66 = new LatentStyleExceptionInfo() { Name = "Medium List 1 Accent 2", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo67 = new LatentStyleExceptionInfo() { Name = "Medium List 2 Accent 2", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo68 = new LatentStyleExceptionInfo() { Name = "Medium Grid 1 Accent 2", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo69 = new LatentStyleExceptionInfo() { Name = "Medium Grid 2 Accent 2", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo70 = new LatentStyleExceptionInfo() { Name = "Medium Grid 3 Accent 2", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo71 = new LatentStyleExceptionInfo() { Name = "Dark List Accent 2", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo72 = new LatentStyleExceptionInfo() { Name = "Colorful Shading Accent 2", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo73 = new LatentStyleExceptionInfo() { Name = "Colorful List Accent 2", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo74 = new LatentStyleExceptionInfo() { Name = "Colorful Grid Accent 2", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo75 = new LatentStyleExceptionInfo() { Name = "Light Shading Accent 3", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo76 = new LatentStyleExceptionInfo() { Name = "Light List Accent 3", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo77 = new LatentStyleExceptionInfo() { Name = "Light Grid Accent 3", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo78 = new LatentStyleExceptionInfo() { Name = "Medium Shading 1 Accent 3", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo79 = new LatentStyleExceptionInfo() { Name = "Medium Shading 2 Accent 3", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo80 = new LatentStyleExceptionInfo() { Name = "Medium List 1 Accent 3", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo81 = new LatentStyleExceptionInfo() { Name = "Medium List 2 Accent 3", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo82 = new LatentStyleExceptionInfo() { Name = "Medium Grid 1 Accent 3", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo83 = new LatentStyleExceptionInfo() { Name = "Medium Grid 2 Accent 3", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo84 = new LatentStyleExceptionInfo() { Name = "Medium Grid 3 Accent 3", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo85 = new LatentStyleExceptionInfo() { Name = "Dark List Accent 3", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo86 = new LatentStyleExceptionInfo() { Name = "Colorful Shading Accent 3", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo87 = new LatentStyleExceptionInfo() { Name = "Colorful List Accent 3", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo88 = new LatentStyleExceptionInfo() { Name = "Colorful Grid Accent 3", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo89 = new LatentStyleExceptionInfo() { Name = "Light Shading Accent 4", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo90 = new LatentStyleExceptionInfo() { Name = "Light List Accent 4", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo91 = new LatentStyleExceptionInfo() { Name = "Light Grid Accent 4", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo92 = new LatentStyleExceptionInfo() { Name = "Medium Shading 1 Accent 4", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo93 = new LatentStyleExceptionInfo() { Name = "Medium Shading 2 Accent 4", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo94 = new LatentStyleExceptionInfo() { Name = "Medium List 1 Accent 4", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo95 = new LatentStyleExceptionInfo() { Name = "Medium List 2 Accent 4", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo96 = new LatentStyleExceptionInfo() { Name = "Medium Grid 1 Accent 4", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo97 = new LatentStyleExceptionInfo() { Name = "Medium Grid 2 Accent 4", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo98 = new LatentStyleExceptionInfo() { Name = "Medium Grid 3 Accent 4", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo99 = new LatentStyleExceptionInfo() { Name = "Dark List Accent 4", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo100 = new LatentStyleExceptionInfo() { Name = "Colorful Shading Accent 4", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo101 = new LatentStyleExceptionInfo() { Name = "Colorful List Accent 4", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo102 = new LatentStyleExceptionInfo() { Name = "Colorful Grid Accent 4", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo103 = new LatentStyleExceptionInfo() { Name = "Light Shading Accent 5", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo104 = new LatentStyleExceptionInfo() { Name = "Light List Accent 5", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo105 = new LatentStyleExceptionInfo() { Name = "Light Grid Accent 5", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo106 = new LatentStyleExceptionInfo() { Name = "Medium Shading 1 Accent 5", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo107 = new LatentStyleExceptionInfo() { Name = "Medium Shading 2 Accent 5", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo108 = new LatentStyleExceptionInfo() { Name = "Medium List 1 Accent 5", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo109 = new LatentStyleExceptionInfo() { Name = "Medium List 2 Accent 5", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo110 = new LatentStyleExceptionInfo() { Name = "Medium Grid 1 Accent 5", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo111 = new LatentStyleExceptionInfo() { Name = "Medium Grid 2 Accent 5", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo112 = new LatentStyleExceptionInfo() { Name = "Medium Grid 3 Accent 5", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo113 = new LatentStyleExceptionInfo() { Name = "Dark List Accent 5", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo114 = new LatentStyleExceptionInfo() { Name = "Colorful Shading Accent 5", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo115 = new LatentStyleExceptionInfo() { Name = "Colorful List Accent 5", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo116 = new LatentStyleExceptionInfo() { Name = "Colorful Grid Accent 5", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo117 = new LatentStyleExceptionInfo() { Name = "Light Shading Accent 6", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo118 = new LatentStyleExceptionInfo() { Name = "Light List Accent 6", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo119 = new LatentStyleExceptionInfo() { Name = "Light Grid Accent 6", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo120 = new LatentStyleExceptionInfo() { Name = "Medium Shading 1 Accent 6", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo121 = new LatentStyleExceptionInfo() { Name = "Medium Shading 2 Accent 6", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo122 = new LatentStyleExceptionInfo() { Name = "Medium List 1 Accent 6", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo123 = new LatentStyleExceptionInfo() { Name = "Medium List 2 Accent 6", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo124 = new LatentStyleExceptionInfo() { Name = "Medium Grid 1 Accent 6", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo125 = new LatentStyleExceptionInfo() { Name = "Medium Grid 2 Accent 6", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo126 = new LatentStyleExceptionInfo() { Name = "Medium Grid 3 Accent 6", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo127 = new LatentStyleExceptionInfo() { Name = "Dark List Accent 6", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo128 = new LatentStyleExceptionInfo() { Name = "Colorful Shading Accent 6", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo129 = new LatentStyleExceptionInfo() { Name = "Colorful List Accent 6", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo130 = new LatentStyleExceptionInfo() { Name = "Colorful Grid Accent 6", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo131 = new LatentStyleExceptionInfo() { Name = "Subtle Emphasis", UiPriority = 19, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo132 = new LatentStyleExceptionInfo() { Name = "Intense Emphasis", UiPriority = 21, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo133 = new LatentStyleExceptionInfo() { Name = "Subtle Reference", UiPriority = 31, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo134 = new LatentStyleExceptionInfo() { Name = "Intense Reference", UiPriority = 32, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo135 = new LatentStyleExceptionInfo() { Name = "Book Title", UiPriority = 33, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo136 = new LatentStyleExceptionInfo() { Name = "Bibliography", UiPriority = 37 }; LatentStyleExceptionInfo latentStyleExceptionInfo137 = new LatentStyleExceptionInfo() { Name = "TOC Heading", UiPriority = 39, PrimaryStyle = true }; latentStyles1.Append(latentStyleExceptionInfo1); latentStyles1.Append(latentStyleExceptionInfo2); latentStyles1.Append(latentStyleExceptionInfo3); latentStyles1.Append(latentStyleExceptionInfo4); latentStyles1.Append(latentStyleExceptionInfo5); latentStyles1.Append(latentStyleExceptionInfo6); latentStyles1.Append(latentStyleExceptionInfo7); latentStyles1.Append(latentStyleExceptionInfo8); latentStyles1.Append(latentStyleExceptionInfo9); latentStyles1.Append(latentStyleExceptionInfo10); latentStyles1.Append(latentStyleExceptionInfo11); latentStyles1.Append(latentStyleExceptionInfo12); latentStyles1.Append(latentStyleExceptionInfo13); latentStyles1.Append(latentStyleExceptionInfo14); latentStyles1.Append(latentStyleExceptionInfo15); latentStyles1.Append(latentStyleExceptionInfo16); latentStyles1.Append(latentStyleExceptionInfo17); latentStyles1.Append(latentStyleExceptionInfo18); latentStyles1.Append(latentStyleExceptionInfo19); latentStyles1.Append(latentStyleExceptionInfo20); latentStyles1.Append(latentStyleExceptionInfo21); latentStyles1.Append(latentStyleExceptionInfo22); latentStyles1.Append(latentStyleExceptionInfo23); latentStyles1.Append(latentStyleExceptionInfo24); latentStyles1.Append(latentStyleExceptionInfo25); latentStyles1.Append(latentStyleExceptionInfo26); latentStyles1.Append(latentStyleExceptionInfo27); latentStyles1.Append(latentStyleExceptionInfo28); latentStyles1.Append(latentStyleExceptionInfo29); latentStyles1.Append(latentStyleExceptionInfo30); latentStyles1.Append(latentStyleExceptionInfo31); latentStyles1.Append(latentStyleExceptionInfo32); latentStyles1.Append(latentStyleExceptionInfo33); latentStyles1.Append(latentStyleExceptionInfo34); latentStyles1.Append(latentStyleExceptionInfo35); latentStyles1.Append(latentStyleExceptionInfo36); latentStyles1.Append(latentStyleExceptionInfo37); latentStyles1.Append(latentStyleExceptionInfo38); latentStyles1.Append(latentStyleExceptionInfo39); latentStyles1.Append(latentStyleExceptionInfo40); latentStyles1.Append(latentStyleExceptionInfo41); latentStyles1.Append(latentStyleExceptionInfo42); latentStyles1.Append(latentStyleExceptionInfo43); latentStyles1.Append(latentStyleExceptionInfo44); latentStyles1.Append(latentStyleExceptionInfo45); latentStyles1.Append(latentStyleExceptionInfo46); latentStyles1.Append(latentStyleExceptionInfo47); latentStyles1.Append(latentStyleExceptionInfo48); latentStyles1.Append(latentStyleExceptionInfo49); latentStyles1.Append(latentStyleExceptionInfo50); latentStyles1.Append(latentStyleExceptionInfo51); latentStyles1.Append(latentStyleExceptionInfo52); latentStyles1.Append(latentStyleExceptionInfo53); latentStyles1.Append(latentStyleExceptionInfo54); latentStyles1.Append(latentStyleExceptionInfo55); latentStyles1.Append(latentStyleExceptionInfo56); latentStyles1.Append(latentStyleExceptionInfo57); latentStyles1.Append(latentStyleExceptionInfo58); latentStyles1.Append(latentStyleExceptionInfo59); latentStyles1.Append(latentStyleExceptionInfo60); latentStyles1.Append(latentStyleExceptionInfo61); latentStyles1.Append(latentStyleExceptionInfo62); latentStyles1.Append(latentStyleExceptionInfo63); latentStyles1.Append(latentStyleExceptionInfo64); latentStyles1.Append(latentStyleExceptionInfo65); latentStyles1.Append(latentStyleExceptionInfo66); latentStyles1.Append(latentStyleExceptionInfo67); latentStyles1.Append(latentStyleExceptionInfo68); latentStyles1.Append(latentStyleExceptionInfo69); latentStyles1.Append(latentStyleExceptionInfo70); latentStyles1.Append(latentStyleExceptionInfo71); latentStyles1.Append(latentStyleExceptionInfo72); latentStyles1.Append(latentStyleExceptionInfo73); latentStyles1.Append(latentStyleExceptionInfo74); latentStyles1.Append(latentStyleExceptionInfo75); latentStyles1.Append(latentStyleExceptionInfo76); latentStyles1.Append(latentStyleExceptionInfo77); latentStyles1.Append(latentStyleExceptionInfo78); latentStyles1.Append(latentStyleExceptionInfo79); latentStyles1.Append(latentStyleExceptionInfo80); latentStyles1.Append(latentStyleExceptionInfo81); latentStyles1.Append(latentStyleExceptionInfo82); latentStyles1.Append(latentStyleExceptionInfo83); latentStyles1.Append(latentStyleExceptionInfo84); latentStyles1.Append(latentStyleExceptionInfo85); latentStyles1.Append(latentStyleExceptionInfo86); latentStyles1.Append(latentStyleExceptionInfo87); latentStyles1.Append(latentStyleExceptionInfo88); latentStyles1.Append(latentStyleExceptionInfo89); latentStyles1.Append(latentStyleExceptionInfo90); latentStyles1.Append(latentStyleExceptionInfo91); latentStyles1.Append(latentStyleExceptionInfo92); latentStyles1.Append(latentStyleExceptionInfo93); latentStyles1.Append(latentStyleExceptionInfo94); latentStyles1.Append(latentStyleExceptionInfo95); latentStyles1.Append(latentStyleExceptionInfo96); latentStyles1.Append(latentStyleExceptionInfo97); latentStyles1.Append(latentStyleExceptionInfo98); latentStyles1.Append(latentStyleExceptionInfo99); latentStyles1.Append(latentStyleExceptionInfo100); latentStyles1.Append(latentStyleExceptionInfo101); latentStyles1.Append(latentStyleExceptionInfo102); latentStyles1.Append(latentStyleExceptionInfo103); latentStyles1.Append(latentStyleExceptionInfo104); latentStyles1.Append(latentStyleExceptionInfo105); latentStyles1.Append(latentStyleExceptionInfo106); latentStyles1.Append(latentStyleExceptionInfo107); latentStyles1.Append(latentStyleExceptionInfo108); latentStyles1.Append(latentStyleExceptionInfo109); latentStyles1.Append(latentStyleExceptionInfo110); latentStyles1.Append(latentStyleExceptionInfo111); latentStyles1.Append(latentStyleExceptionInfo112); latentStyles1.Append(latentStyleExceptionInfo113); latentStyles1.Append(latentStyleExceptionInfo114); latentStyles1.Append(latentStyleExceptionInfo115); latentStyles1.Append(latentStyleExceptionInfo116); latentStyles1.Append(latentStyleExceptionInfo117); latentStyles1.Append(latentStyleExceptionInfo118); latentStyles1.Append(latentStyleExceptionInfo119); latentStyles1.Append(latentStyleExceptionInfo120); latentStyles1.Append(latentStyleExceptionInfo121); latentStyles1.Append(latentStyleExceptionInfo122); latentStyles1.Append(latentStyleExceptionInfo123); latentStyles1.Append(latentStyleExceptionInfo124); latentStyles1.Append(latentStyleExceptionInfo125); latentStyles1.Append(latentStyleExceptionInfo126); latentStyles1.Append(latentStyleExceptionInfo127); latentStyles1.Append(latentStyleExceptionInfo128); latentStyles1.Append(latentStyleExceptionInfo129); latentStyles1.Append(latentStyleExceptionInfo130); latentStyles1.Append(latentStyleExceptionInfo131); latentStyles1.Append(latentStyleExceptionInfo132); latentStyles1.Append(latentStyleExceptionInfo133); latentStyles1.Append(latentStyleExceptionInfo134); latentStyles1.Append(latentStyleExceptionInfo135); latentStyles1.Append(latentStyleExceptionInfo136); latentStyles1.Append(latentStyleExceptionInfo137); Style style5 = new Style() { Type = StyleValues.Paragraph, StyleId = "Normal", Default = true }; StyleName styleName1 = new StyleName() { Val = "Normal" }; PrimaryStyle primaryStyle1 = new PrimaryStyle(); style5.Append(styleName1); style5.Append(primaryStyle1); Style style6 = new Style() { Type = StyleValues.Character, StyleId = "DefaultParagraphFont", Default = true }; StyleName styleName2 = new StyleName() { Val = "Default Paragraph Font" }; UIPriority uIPriority1 = new UIPriority() { Val = 1 }; SemiHidden semiHidden1 = new SemiHidden(); UnhideWhenUsed unhideWhenUsed1 = new UnhideWhenUsed(); style6.Append(styleName2); style6.Append(uIPriority1); style6.Append(semiHidden1); style6.Append(unhideWhenUsed1); Style style7 = new Style() { Type = StyleValues.Table, StyleId = "TableNormal", Default = true }; StyleName styleName3 = new StyleName() { Val = "Normal Table" }; UIPriority uIPriority2 = new UIPriority() { Val = 99 }; SemiHidden semiHidden2 = new SemiHidden(); UnhideWhenUsed unhideWhenUsed2 = new UnhideWhenUsed(); StyleTableProperties styleTableProperties1 = new StyleTableProperties(); TableIndentation tableIndentation1 = new TableIndentation() { Width = 0, Type = TableWidthUnitValues.Dxa }; TableCellMarginDefault tableCellMarginDefault2 = new TableCellMarginDefault(); TopMargin topMargin62 = new TopMargin() { Width = "0", Type = TableWidthUnitValues.Dxa }; TableCellLeftMargin tableCellLeftMargin2 = new TableCellLeftMargin() { Width = 108, Type = TableWidthValues.Dxa }; BottomMargin bottomMargin62 = new BottomMargin() { Width = "0", Type = TableWidthUnitValues.Dxa }; TableCellRightMargin tableCellRightMargin2 = new TableCellRightMargin() { Width = 108, Type = TableWidthValues.Dxa }; tableCellMarginDefault2.Append(topMargin62); tableCellMarginDefault2.Append(tableCellLeftMargin2); tableCellMarginDefault2.Append(bottomMargin62); tableCellMarginDefault2.Append(tableCellRightMargin2); styleTableProperties1.Append(tableIndentation1); styleTableProperties1.Append(tableCellMarginDefault2); style7.Append(styleName3); style7.Append(uIPriority2); style7.Append(semiHidden2); style7.Append(unhideWhenUsed2); style7.Append(styleTableProperties1); Style style8 = new Style() { Type = StyleValues.Numbering, StyleId = "NoList", Default = true }; StyleName styleName4 = new StyleName() { Val = "No List" }; UIPriority uIPriority3 = new UIPriority() { Val = 99 }; SemiHidden semiHidden3 = new SemiHidden(); UnhideWhenUsed unhideWhenUsed3 = new UnhideWhenUsed(); style8.Append(styleName4); style8.Append(uIPriority3); style8.Append(semiHidden3); style8.Append(unhideWhenUsed3); Style style9 = new Style() { Type = StyleValues.Paragraph, StyleId = "BalloonText" }; StyleName styleName5 = new StyleName() { Val = "Balloon Text" }; BasedOn basedOn1 = new BasedOn() { Val = "Normal" }; LinkedStyle linkedStyle1 = new LinkedStyle() { Val = "BalloonTextChar" }; UIPriority uIPriority4 = new UIPriority() { Val = 99 }; SemiHidden semiHidden4 = new SemiHidden(); UnhideWhenUsed unhideWhenUsed4 = new UnhideWhenUsed(); Rsid rsid7 = new Rsid() { Val = "00D831F8" }; StyleParagraphProperties styleParagraphProperties1 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines62 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; styleParagraphProperties1.Append(spacingBetweenLines62); StyleRunProperties styleRunProperties1 = new StyleRunProperties(); RunFonts runFonts131 = new RunFonts() { Ascii = "Tahoma", HighAnsi = "Tahoma", ComplexScript = "Tahoma" }; FontSize fontSize131 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript131 = new FontSizeComplexScript() { Val = "16" }; styleRunProperties1.Append(runFonts131); styleRunProperties1.Append(fontSize131); styleRunProperties1.Append(fontSizeComplexScript131); style9.Append(styleName5); style9.Append(basedOn1); style9.Append(linkedStyle1); style9.Append(uIPriority4); style9.Append(semiHidden4); style9.Append(unhideWhenUsed4); style9.Append(rsid7); style9.Append(styleParagraphProperties1); style9.Append(styleRunProperties1); Style style10 = new Style() { Type = StyleValues.Character, StyleId = "BalloonTextChar", CustomStyle = true }; StyleName styleName6 = new StyleName() { Val = "Balloon Text Char" }; BasedOn basedOn2 = new BasedOn() { Val = "DefaultParagraphFont" }; LinkedStyle linkedStyle2 = new LinkedStyle() { Val = "BalloonText" }; UIPriority uIPriority5 = new UIPriority() { Val = 99 }; SemiHidden semiHidden5 = new SemiHidden(); Rsid rsid8 = new Rsid() { Val = "00D831F8" }; StyleRunProperties styleRunProperties2 = new StyleRunProperties(); RunFonts runFonts132 = new RunFonts() { Ascii = "Tahoma", HighAnsi = "Tahoma", ComplexScript = "Tahoma" }; FontSize fontSize132 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript132 = new FontSizeComplexScript() { Val = "16" }; styleRunProperties2.Append(runFonts132); styleRunProperties2.Append(fontSize132); styleRunProperties2.Append(fontSizeComplexScript132); style10.Append(styleName6); style10.Append(basedOn2); style10.Append(linkedStyle2); style10.Append(uIPriority5); style10.Append(semiHidden5); style10.Append(rsid8); style10.Append(styleRunProperties2); Style style11 = new Style() { Type = StyleValues.Paragraph, StyleId = "Header" }; StyleName styleName7 = new StyleName() { Val = "header" }; BasedOn basedOn3 = new BasedOn() { Val = "Normal" }; LinkedStyle linkedStyle3 = new LinkedStyle() { Val = "HeaderChar" }; UIPriority uIPriority6 = new UIPriority() { Val = 99 }; UnhideWhenUsed unhideWhenUsed5 = new UnhideWhenUsed(); Rsid rsid9 = new Rsid() { Val = "00C802B4" }; StyleParagraphProperties styleParagraphProperties2 = new StyleParagraphProperties(); Tabs tabs1 = new Tabs(); TabStop tabStop1 = new TabStop() { Val = TabStopValues.Center, Position = 4680 }; TabStop tabStop2 = new TabStop() { Val = TabStopValues.Right, Position = 9360 }; tabs1.Append(tabStop1); tabs1.Append(tabStop2); SpacingBetweenLines spacingBetweenLines63 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; styleParagraphProperties2.Append(tabs1); styleParagraphProperties2.Append(spacingBetweenLines63); style11.Append(styleName7); style11.Append(basedOn3); style11.Append(linkedStyle3); style11.Append(uIPriority6); style11.Append(unhideWhenUsed5); style11.Append(rsid9); style11.Append(styleParagraphProperties2); Style style12 = new Style() { Type = StyleValues.Character, StyleId = "HeaderChar", CustomStyle = true }; StyleName styleName8 = new StyleName() { Val = "Header Char" }; BasedOn basedOn4 = new BasedOn() { Val = "DefaultParagraphFont" }; LinkedStyle linkedStyle4 = new LinkedStyle() { Val = "Header" }; UIPriority uIPriority7 = new UIPriority() { Val = 99 }; Rsid rsid10 = new Rsid() { Val = "00C802B4" }; style12.Append(styleName8); style12.Append(basedOn4); style12.Append(linkedStyle4); style12.Append(uIPriority7); style12.Append(rsid10); Style style13 = new Style() { Type = StyleValues.Paragraph, StyleId = "Footer" }; StyleName styleName9 = new StyleName() { Val = "footer" }; BasedOn basedOn5 = new BasedOn() { Val = "Normal" }; LinkedStyle linkedStyle5 = new LinkedStyle() { Val = "FooterChar" }; UIPriority uIPriority8 = new UIPriority() { Val = 99 }; UnhideWhenUsed unhideWhenUsed6 = new UnhideWhenUsed(); Rsid rsid11 = new Rsid() { Val = "00C802B4" }; StyleParagraphProperties styleParagraphProperties3 = new StyleParagraphProperties(); Tabs tabs2 = new Tabs(); TabStop tabStop3 = new TabStop() { Val = TabStopValues.Center, Position = 4680 }; TabStop tabStop4 = new TabStop() { Val = TabStopValues.Right, Position = 9360 }; tabs2.Append(tabStop3); tabs2.Append(tabStop4); SpacingBetweenLines spacingBetweenLines64 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; styleParagraphProperties3.Append(tabs2); styleParagraphProperties3.Append(spacingBetweenLines64); style13.Append(styleName9); style13.Append(basedOn5); style13.Append(linkedStyle5); style13.Append(uIPriority8); style13.Append(unhideWhenUsed6); style13.Append(rsid11); style13.Append(styleParagraphProperties3); Style style14 = new Style() { Type = StyleValues.Character, StyleId = "FooterChar", CustomStyle = true }; StyleName styleName10 = new StyleName() { Val = "Footer Char" }; BasedOn basedOn6 = new BasedOn() { Val = "DefaultParagraphFont" }; LinkedStyle linkedStyle6 = new LinkedStyle() { Val = "Footer" }; UIPriority uIPriority9 = new UIPriority() { Val = 99 }; Rsid rsid12 = new Rsid() { Val = "00C802B4" }; style14.Append(styleName10); style14.Append(basedOn6); style14.Append(linkedStyle6); style14.Append(uIPriority9); style14.Append(rsid12); Style style15 = new Style() { Type = StyleValues.Character, StyleId = "Hyperlink" }; StyleName styleName11 = new StyleName() { Val = "Hyperlink" }; BasedOn basedOn7 = new BasedOn() { Val = "DefaultParagraphFont" }; UIPriority uIPriority10 = new UIPriority() { Val = 99 }; SemiHidden semiHidden6 = new SemiHidden(); UnhideWhenUsed unhideWhenUsed7 = new UnhideWhenUsed(); Rsid rsid13 = new Rsid() { Val = "00C802B4" }; StyleRunProperties styleRunProperties3 = new StyleRunProperties(); Color color130 = new Color() { Val = "0000FF" }; Underline underline1 = new Underline() { Val = UnderlineValues.Single }; styleRunProperties3.Append(color130); styleRunProperties3.Append(underline1); style15.Append(styleName11); style15.Append(basedOn7); style15.Append(uIPriority10); style15.Append(semiHidden6); style15.Append(unhideWhenUsed7); style15.Append(rsid13); style15.Append(styleRunProperties3); Style style16 = new Style() { Type = StyleValues.Character, StyleId = "unicode", CustomStyle = true }; StyleName styleName12 = new StyleName() { Val = "unicode" }; BasedOn basedOn8 = new BasedOn() { Val = "DefaultParagraphFont" }; Rsid rsid14 = new Rsid() { Val = "00C802B4" }; style16.Append(styleName12); style16.Append(basedOn8); style16.Append(rsid14); Style style17 = new Style() { Type = StyleValues.Table, StyleId = "TableGrid" }; StyleName styleName13 = new StyleName() { Val = "Table Grid" }; BasedOn basedOn9 = new BasedOn() { Val = "TableNormal" }; UIPriority uIPriority11 = new UIPriority() { Val = 59 }; Rsid rsid15 = new Rsid() { Val = "00F216F1" }; StyleParagraphProperties styleParagraphProperties4 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines65 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; styleParagraphProperties4.Append(spacingBetweenLines65); StyleTableProperties styleTableProperties2 = new StyleTableProperties(); TableIndentation tableIndentation2 = new TableIndentation() { Width = 0, Type = TableWidthUnitValues.Dxa }; TableBorders tableBorders2 = new TableBorders(); TopBorder topBorder62 = new TopBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; LeftBorder leftBorder62 = new LeftBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; BottomBorder bottomBorder62 = new BottomBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; RightBorder rightBorder62 = new RightBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; InsideHorizontalBorder insideHorizontalBorder1 = new InsideHorizontalBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; InsideVerticalBorder insideVerticalBorder1 = new InsideVerticalBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; tableBorders2.Append(topBorder62); tableBorders2.Append(leftBorder62); tableBorders2.Append(bottomBorder62); tableBorders2.Append(rightBorder62); tableBorders2.Append(insideHorizontalBorder1); tableBorders2.Append(insideVerticalBorder1); TableCellMarginDefault tableCellMarginDefault3 = new TableCellMarginDefault(); TopMargin topMargin63 = new TopMargin() { Width = "0", Type = TableWidthUnitValues.Dxa }; TableCellLeftMargin tableCellLeftMargin3 = new TableCellLeftMargin() { Width = 108, Type = TableWidthValues.Dxa }; BottomMargin bottomMargin63 = new BottomMargin() { Width = "0", Type = TableWidthUnitValues.Dxa }; TableCellRightMargin tableCellRightMargin3 = new TableCellRightMargin() { Width = 108, Type = TableWidthValues.Dxa }; tableCellMarginDefault3.Append(topMargin63); tableCellMarginDefault3.Append(tableCellLeftMargin3); tableCellMarginDefault3.Append(bottomMargin63); tableCellMarginDefault3.Append(tableCellRightMargin3); styleTableProperties2.Append(tableIndentation2); styleTableProperties2.Append(tableBorders2); styleTableProperties2.Append(tableCellMarginDefault3); style17.Append(styleName13); style17.Append(basedOn9); style17.Append(uIPriority11); style17.Append(rsid15); style17.Append(styleParagraphProperties4); style17.Append(styleTableProperties2); styles1.Append(docDefaults1); styles1.Append(latentStyles1); styles1.Append(style5); styles1.Append(style6); styles1.Append(style7); styles1.Append(style8); styles1.Append(style9); styles1.Append(style10); styles1.Append(style11); styles1.Append(style12); styles1.Append(style13); styles1.Append(style14); styles1.Append(style15); styles1.Append(style16); styles1.Append(style17); stylesWithEffectsPart1.Styles = styles1; }
// Create a new paragraph style with the specified style ID, primary style name and aliases and add it to the specified style definitions part. private static void CreateAndAddParagraphStyle(StyleRunProperties prop, StyleDefinitionsPart part, string styleid, string aliases, string stylename ) { // Access the root element of the styles part. Styles styles = part.Styles; if (styles == null) { part.Styles = new Styles(); part.Styles.Save(); } // Create a new paragraph style element and specify some of the attributes. Style style = new Style() { Type = StyleValues.Paragraph, StyleId = styleid, CustomStyle = true, Default = false }; // Create and add the child elements (properties of the style). Aliases aliases1 = new Aliases() { Val = aliases }; AutoRedefine autoredefine1 = new AutoRedefine() { Val = OnOffOnlyValues.Off }; BasedOn basedon1 = new BasedOn() { Val = "Normal" }; LinkedStyle linkedStyle1 = new LinkedStyle() { Val = "OverdueAmountChar" }; Locked locked1 = new Locked() { Val = OnOffOnlyValues.Off }; PrimaryStyle primarystyle1 = new PrimaryStyle() { Val = OnOffOnlyValues.On }; StyleHidden stylehidden1 = new StyleHidden() { Val = OnOffOnlyValues.Off }; SemiHidden semihidden1 = new SemiHidden() { Val = OnOffOnlyValues.Off }; StyleName styleName1 = new StyleName() { Val = stylename }; NextParagraphStyle nextParagraphStyle1 = new NextParagraphStyle() { Val = "Normal" }; UIPriority uipriority1 = new UIPriority() { Val = 1 }; UnhideWhenUsed unhidewhenused1 = new UnhideWhenUsed() { Val = OnOffOnlyValues.On }; if (aliases != "") style.Append(aliases1); style.Append(autoredefine1); style.Append(basedon1); style.Append(linkedStyle1); style.Append(locked1); style.Append(primarystyle1); style.Append(stylehidden1); style.Append(semihidden1); style.Append(styleName1); style.Append(nextParagraphStyle1); style.Append(uipriority1); style.Append(unhidewhenused1); // Add the run properties to the style. style.Append(prop); // Add the style to the styles part. styles.Append(style); }
private Style ParseStyle(FormatStyle customStyle) { // Create a new paragraph style and specify some of the properties. Style style = new Style() { Type = StyleValues.Paragraph, StyleId = customStyle.StyleId, CustomStyle = true }; StyleName styleName1 = new StyleName() { Val = customStyle.Name }; BasedOn basedOn1 = new BasedOn() { Val = customStyle.BasedOn }; NextParagraphStyle nextParagraphStyle1 = new NextParagraphStyle() { Val = customStyle.NextParagraphStyle }; style.Append(styleName1); style.Append(basedOn1); style.Append(nextParagraphStyle1); // Create the StyleRunProperties object and specify some of the run properties. StyleRunProperties styleRunProperties1 = new StyleRunProperties(); string color = string.Format("#{0:X2}{1:X2}{2:X2}", customStyle.Color.R, customStyle.Color.G, customStyle.Color.B); Color color1 = new Color() { Val = color }; RunFonts font1 = new RunFonts() { Ascii = customStyle.FontName }; // Specify a custom point size. FontSize fontSize1 = new FontSize() { Val = customStyle.FontSize.ToString() }; if (customStyle.IsBold) styleRunProperties1.Append(new Bold()); if (customStyle.HighlightColor != FormatStyle.HighlightColors.None) styleRunProperties1.Append(new Highlight() { Val = (HighlightColorValues)(int)customStyle.HighlightColor }); styleRunProperties1.Append(color1); styleRunProperties1.Append(font1); styleRunProperties1.Append(fontSize1); if (customStyle.IsItalic) styleRunProperties1.Append(new Italic()); style.Append(styleRunProperties1); return style; }
private Style GenerateTitleStyle() { Style style1 = new Style() { Type = StyleValues.Paragraph, StyleId = TitleStyle }; StyleName styleName1 = new StyleName() { Val = "Title" }; BasedOn basedOn1 = new BasedOn() { Val = "Normal" }; NextParagraphStyle nextParagraphStyle1 = new NextParagraphStyle() { Val = "Normal" }; LinkedStyle linkedStyle1 = new LinkedStyle() { Val = "TitleChar" }; UIPriority uIPriority1 = new UIPriority() { Val = 10 }; PrimaryStyle primaryStyle1 = new PrimaryStyle(); //Rsid rsid1 = new Rsid() { Val = "0013195F" }; StyleParagraphProperties styleParagraphProperties1 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines1 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; ContextualSpacing contextualSpacing1 = new ContextualSpacing(); styleParagraphProperties1.Append(spacingBetweenLines1); styleParagraphProperties1.Append(contextualSpacing1); StyleRunProperties styleRunProperties1 = new StyleRunProperties(); RunFonts runFonts1 = new RunFonts() { AsciiTheme = ThemeFontValues.MajorHighAnsi, HighAnsiTheme = ThemeFontValues.MajorHighAnsi, EastAsiaTheme = ThemeFontValues.MajorEastAsia, ComplexScriptTheme = ThemeFontValues.MajorBidi }; Spacing spacing1 = new Spacing() { Val = -10 }; Kern kern1 = new Kern() { Val = (UInt32Value)28U }; FontSize fontSize1 = new FontSize() { Val = "56" }; FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript() { Val = "56" }; styleRunProperties1.Append(runFonts1); styleRunProperties1.Append(spacing1); styleRunProperties1.Append(kern1); styleRunProperties1.Append(fontSize1); styleRunProperties1.Append(fontSizeComplexScript1); style1.Append(styleName1); style1.Append(basedOn1); style1.Append(nextParagraphStyle1); style1.Append(linkedStyle1); style1.Append(uIPriority1); style1.Append(primaryStyle1); //style1.Append(rsid1); style1.Append(styleParagraphProperties1); style1.Append(styleRunProperties1); return style1; }
// Generates content of styleDefinitionsPart1. private void GenerateStyleDefinitionsPart1Content(StyleDefinitionsPart styleDefinitionsPart1) { Styles styles1 = new Styles() { MCAttributes = new MarkupCompatibilityAttributes() { Ignorable = "w14" } }; styles1.AddNamespaceDeclaration("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main"); styles1.AddNamespaceDeclaration("w14", "http://schemas.microsoft.com/office/word/2010/wordml"); styles1.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); DocDefaults docDefaults1 = new DocDefaults(); RunPropertiesDefault runPropertiesDefault1 = new RunPropertiesDefault(); RunPropertiesBaseStyle runPropertiesBaseStyle1 = new RunPropertiesBaseStyle(); RunFonts runFonts24 = new RunFonts() { Ascii = "Liberation Serif", HighAnsi = "Liberation Serif", EastAsia = "SimSun", ComplexScript = "Lucida Sans" }; FontSizeComplexScript fontSizeComplexScript541 = new FontSizeComplexScript() { Val = "24" }; Languages languages8 = new Languages() { Val = "ru-RU", EastAsia = "zh-CN", Bidi = "hi-IN" }; runPropertiesBaseStyle1.Append(runFonts24); runPropertiesBaseStyle1.Append(fontSizeComplexScript541); runPropertiesBaseStyle1.Append(languages8); runPropertiesDefault1.Append(runPropertiesBaseStyle1); ParagraphPropertiesDefault paragraphPropertiesDefault1 = new ParagraphPropertiesDefault(); ParagraphPropertiesBaseStyle paragraphPropertiesBaseStyle1 = new ParagraphPropertiesBaseStyle(); paragraphPropertiesDefault1.Append(paragraphPropertiesBaseStyle1); docDefaults1.Append(runPropertiesDefault1); docDefaults1.Append(paragraphPropertiesDefault1); Style style1 = new Style() { Type = StyleValues.Paragraph, StyleId = "Normal" }; StyleName styleName1 = new StyleName() { Val = "Normal" }; PrimaryStyle primaryStyle1 = new PrimaryStyle(); StyleParagraphProperties styleParagraphProperties1 = new StyleParagraphProperties(); WidowControl widowControl1 = new WidowControl() { Val = false }; BiDi biDi1 = new BiDi() { Val = false }; Justification justification319 = new Justification() { Val = JustificationValues.Start }; styleParagraphProperties1.Append(widowControl1); styleParagraphProperties1.Append(biDi1); styleParagraphProperties1.Append(justification319); StyleRunProperties styleRunProperties1 = new StyleRunProperties(); RunFonts runFonts25 = new RunFonts() { Ascii = "Liberation Serif", HighAnsi = "Liberation Serif", EastAsia = "SimSun", ComplexScript = "Lucida Sans" }; Color color13 = new Color() { Val = "00000A" }; FontSize fontSize541 = new FontSize() { Val = "24" }; FontSizeComplexScript fontSizeComplexScript542 = new FontSizeComplexScript() { Val = "24" }; Languages languages9 = new Languages() { Val = "ru-RU", EastAsia = "zh-CN", Bidi = "hi-IN" }; styleRunProperties1.Append(runFonts25); styleRunProperties1.Append(color13); styleRunProperties1.Append(fontSize541); styleRunProperties1.Append(fontSizeComplexScript542); styleRunProperties1.Append(languages9); style1.Append(styleName1); style1.Append(primaryStyle1); style1.Append(styleParagraphProperties1); style1.Append(styleRunProperties1); Style style2 = new Style() { Type = StyleValues.Paragraph, StyleId = "1" }; StyleName styleName2 = new StyleName() { Val = "Заголовок 1" }; BasedOn basedOn1 = new BasedOn() { Val = "Style11" }; StyleParagraphProperties styleParagraphProperties2 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines1 = new SpacingBetweenLines() { Before = "240", After = "120" }; OutlineLevel outlineLevel1 = new OutlineLevel() { Val = 0 }; styleParagraphProperties2.Append(spacingBetweenLines1); styleParagraphProperties2.Append(outlineLevel1); StyleRunProperties styleRunProperties2 = new StyleRunProperties(); Bold bold40 = new Bold(); BoldComplexScript boldComplexScript1 = new BoldComplexScript(); FontSize fontSize542 = new FontSize() { Val = "36" }; FontSizeComplexScript fontSizeComplexScript543 = new FontSizeComplexScript() { Val = "36" }; styleRunProperties2.Append(bold40); styleRunProperties2.Append(boldComplexScript1); styleRunProperties2.Append(fontSize542); styleRunProperties2.Append(fontSizeComplexScript543); style2.Append(styleName2); style2.Append(basedOn1); style2.Append(styleParagraphProperties2); style2.Append(styleRunProperties2); Style style3 = new Style() { Type = StyleValues.Paragraph, StyleId = "2" }; StyleName styleName3 = new StyleName() { Val = "Заголовок 2" }; BasedOn basedOn2 = new BasedOn() { Val = "Style11" }; StyleParagraphProperties styleParagraphProperties3 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines2 = new SpacingBetweenLines() { Before = "200", After = "120" }; OutlineLevel outlineLevel2 = new OutlineLevel() { Val = 1 }; styleParagraphProperties3.Append(spacingBetweenLines2); styleParagraphProperties3.Append(outlineLevel2); StyleRunProperties styleRunProperties3 = new StyleRunProperties(); Bold bold41 = new Bold(); BoldComplexScript boldComplexScript2 = new BoldComplexScript(); FontSize fontSize543 = new FontSize() { Val = "32" }; FontSizeComplexScript fontSizeComplexScript544 = new FontSizeComplexScript() { Val = "32" }; styleRunProperties3.Append(bold41); styleRunProperties3.Append(boldComplexScript2); styleRunProperties3.Append(fontSize543); styleRunProperties3.Append(fontSizeComplexScript544); style3.Append(styleName3); style3.Append(basedOn2); style3.Append(styleParagraphProperties3); style3.Append(styleRunProperties3); Style style4 = new Style() { Type = StyleValues.Paragraph, StyleId = "3" }; StyleName styleName4 = new StyleName() { Val = "Заголовок 3" }; BasedOn basedOn3 = new BasedOn() { Val = "Style11" }; StyleParagraphProperties styleParagraphProperties4 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines3 = new SpacingBetweenLines() { Before = "140", After = "120" }; OutlineLevel outlineLevel3 = new OutlineLevel() { Val = 2 }; styleParagraphProperties4.Append(spacingBetweenLines3); styleParagraphProperties4.Append(outlineLevel3); StyleRunProperties styleRunProperties4 = new StyleRunProperties(); Bold bold42 = new Bold(); BoldComplexScript boldComplexScript3 = new BoldComplexScript(); FontSize fontSize544 = new FontSize() { Val = "28" }; FontSizeComplexScript fontSizeComplexScript545 = new FontSizeComplexScript() { Val = "28" }; styleRunProperties4.Append(bold42); styleRunProperties4.Append(boldComplexScript3); styleRunProperties4.Append(fontSize544); styleRunProperties4.Append(fontSizeComplexScript545); style4.Append(styleName4); style4.Append(basedOn3); style4.Append(styleParagraphProperties4); style4.Append(styleRunProperties4); Style style5 = new Style() { Type = StyleValues.Character, StyleId = "DefaultParagraphFont" }; StyleName styleName5 = new StyleName() { Val = "Default Paragraph Font" }; PrimaryStyle primaryStyle2 = new PrimaryStyle(); StyleRunProperties styleRunProperties5 = new StyleRunProperties(); style5.Append(styleName5); style5.Append(primaryStyle2); style5.Append(styleRunProperties5); Style style6 = new Style() { Type = StyleValues.Character, StyleId = "FontStyle48" }; StyleName styleName6 = new StyleName() { Val = "Font Style48" }; BasedOn basedOn4 = new BasedOn() { Val = "DefaultParagraphFont" }; PrimaryStyle primaryStyle3 = new PrimaryStyle(); StyleRunProperties styleRunProperties6 = new StyleRunProperties(); RunFonts runFonts26 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman", ComplexScript = "Times New Roman" }; Spacing spacing5 = new Spacing() { Val = 0 }; FontSize fontSize545 = new FontSize() { Val = "26" }; FontSizeComplexScript fontSizeComplexScript546 = new FontSizeComplexScript() { Val = "26" }; styleRunProperties6.Append(runFonts26); styleRunProperties6.Append(spacing5); styleRunProperties6.Append(fontSize545); styleRunProperties6.Append(fontSizeComplexScript546); style6.Append(styleName6); style6.Append(basedOn4); style6.Append(primaryStyle3); style6.Append(styleRunProperties6); Style style7 = new Style() { Type = StyleValues.Character, StyleId = "FontStyle62" }; StyleName styleName7 = new StyleName() { Val = "Font Style62" }; BasedOn basedOn5 = new BasedOn() { Val = "DefaultParagraphFont" }; PrimaryStyle primaryStyle4 = new PrimaryStyle(); StyleRunProperties styleRunProperties7 = new StyleRunProperties(); RunFonts runFonts27 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman", ComplexScript = "Times New Roman" }; Bold bold43 = new Bold(); BoldComplexScript boldComplexScript4 = new BoldComplexScript(); FontSize fontSize546 = new FontSize() { Val = "22" }; FontSizeComplexScript fontSizeComplexScript547 = new FontSizeComplexScript() { Val = "22" }; styleRunProperties7.Append(runFonts27); styleRunProperties7.Append(bold43); styleRunProperties7.Append(boldComplexScript4); styleRunProperties7.Append(fontSize546); styleRunProperties7.Append(fontSizeComplexScript547); style7.Append(styleName7); style7.Append(basedOn5); style7.Append(primaryStyle4); style7.Append(styleRunProperties7); Style style8 = new Style() { Type = StyleValues.Paragraph, StyleId = "Style11" }; StyleName styleName8 = new StyleName() { Val = "Заголовок" }; BasedOn basedOn6 = new BasedOn() { Val = "Normal" }; NextParagraphStyle nextParagraphStyle1 = new NextParagraphStyle() { Val = "Style12" }; PrimaryStyle primaryStyle5 = new PrimaryStyle(); StyleParagraphProperties styleParagraphProperties5 = new StyleParagraphProperties(); KeepNext keepNext1 = new KeepNext(); SpacingBetweenLines spacingBetweenLines4 = new SpacingBetweenLines() { Before = "240", After = "120" }; styleParagraphProperties5.Append(keepNext1); styleParagraphProperties5.Append(spacingBetweenLines4); StyleRunProperties styleRunProperties8 = new StyleRunProperties(); RunFonts runFonts28 = new RunFonts() { Ascii = "Liberation Sans", HighAnsi = "Liberation Sans", EastAsia = "Microsoft YaHei", ComplexScript = "Lucida Sans" }; FontSize fontSize547 = new FontSize() { Val = "28" }; FontSizeComplexScript fontSizeComplexScript548 = new FontSizeComplexScript() { Val = "28" }; styleRunProperties8.Append(runFonts28); styleRunProperties8.Append(fontSize547); styleRunProperties8.Append(fontSizeComplexScript548); style8.Append(styleName8); style8.Append(basedOn6); style8.Append(nextParagraphStyle1); style8.Append(primaryStyle5); style8.Append(styleParagraphProperties5); style8.Append(styleRunProperties8); Style style9 = new Style() { Type = StyleValues.Paragraph, StyleId = "Style12" }; StyleName styleName9 = new StyleName() { Val = "Основной текст" }; BasedOn basedOn7 = new BasedOn() { Val = "Normal" }; StyleParagraphProperties styleParagraphProperties6 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines5 = new SpacingBetweenLines() { Before = "0", After = "140", Line = "288", LineRule = LineSpacingRuleValues.Auto }; styleParagraphProperties6.Append(spacingBetweenLines5); StyleRunProperties styleRunProperties9 = new StyleRunProperties(); style9.Append(styleName9); style9.Append(basedOn7); style9.Append(styleParagraphProperties6); style9.Append(styleRunProperties9); Style style10 = new Style() { Type = StyleValues.Paragraph, StyleId = "Style13" }; StyleName styleName10 = new StyleName() { Val = "Список" }; BasedOn basedOn8 = new BasedOn() { Val = "Style12" }; StyleParagraphProperties styleParagraphProperties7 = new StyleParagraphProperties(); StyleRunProperties styleRunProperties10 = new StyleRunProperties(); RunFonts runFonts29 = new RunFonts() { ComplexScript = "Lucida Sans" }; styleRunProperties10.Append(runFonts29); style10.Append(styleName10); style10.Append(basedOn8); style10.Append(styleParagraphProperties7); style10.Append(styleRunProperties10); Style style11 = new Style() { Type = StyleValues.Paragraph, StyleId = "Style14" }; StyleName styleName11 = new StyleName() { Val = "Название" }; BasedOn basedOn9 = new BasedOn() { Val = "Normal" }; StyleParagraphProperties styleParagraphProperties8 = new StyleParagraphProperties(); SuppressLineNumbers suppressLineNumbers1 = new SuppressLineNumbers(); SpacingBetweenLines spacingBetweenLines6 = new SpacingBetweenLines() { Before = "120", After = "120" }; styleParagraphProperties8.Append(suppressLineNumbers1); styleParagraphProperties8.Append(spacingBetweenLines6); StyleRunProperties styleRunProperties11 = new StyleRunProperties(); RunFonts runFonts30 = new RunFonts() { ComplexScript = "Lucida Sans" }; Italic italic1 = new Italic(); ItalicComplexScript italicComplexScript1 = new ItalicComplexScript(); FontSize fontSize548 = new FontSize() { Val = "24" }; FontSizeComplexScript fontSizeComplexScript549 = new FontSizeComplexScript() { Val = "24" }; styleRunProperties11.Append(runFonts30); styleRunProperties11.Append(italic1); styleRunProperties11.Append(italicComplexScript1); styleRunProperties11.Append(fontSize548); styleRunProperties11.Append(fontSizeComplexScript549); style11.Append(styleName11); style11.Append(basedOn9); style11.Append(styleParagraphProperties8); style11.Append(styleRunProperties11); Style style12 = new Style() { Type = StyleValues.Paragraph, StyleId = "Style15" }; StyleName styleName12 = new StyleName() { Val = "Указатель" }; BasedOn basedOn10 = new BasedOn() { Val = "Normal" }; PrimaryStyle primaryStyle6 = new PrimaryStyle(); StyleParagraphProperties styleParagraphProperties9 = new StyleParagraphProperties(); SuppressLineNumbers suppressLineNumbers2 = new SuppressLineNumbers(); styleParagraphProperties9.Append(suppressLineNumbers2); StyleRunProperties styleRunProperties12 = new StyleRunProperties(); RunFonts runFonts31 = new RunFonts() { ComplexScript = "Lucida Sans" }; styleRunProperties12.Append(runFonts31); style12.Append(styleName12); style12.Append(basedOn10); style12.Append(primaryStyle6); style12.Append(styleParagraphProperties9); style12.Append(styleRunProperties12); Style style13 = new Style() { Type = StyleValues.Paragraph, StyleId = "Style16" }; StyleName styleName13 = new StyleName() { Val = "Блочная цитата" }; BasedOn basedOn11 = new BasedOn() { Val = "Normal" }; PrimaryStyle primaryStyle7 = new PrimaryStyle(); StyleParagraphProperties styleParagraphProperties10 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines7 = new SpacingBetweenLines() { Before = "0", After = "283" }; Indentation indentation47 = new Indentation() { Start = "567", End = "567", Hanging = "0" }; styleParagraphProperties10.Append(spacingBetweenLines7); styleParagraphProperties10.Append(indentation47); StyleRunProperties styleRunProperties13 = new StyleRunProperties(); style13.Append(styleName13); style13.Append(basedOn11); style13.Append(primaryStyle7); style13.Append(styleParagraphProperties10); style13.Append(styleRunProperties13); Style style14 = new Style() { Type = StyleValues.Paragraph, StyleId = "Style17" }; StyleName styleName14 = new StyleName() { Val = "Заглавие" }; BasedOn basedOn12 = new BasedOn() { Val = "Style11" }; StyleParagraphProperties styleParagraphProperties11 = new StyleParagraphProperties(); Justification justification320 = new Justification() { Val = JustificationValues.Center }; styleParagraphProperties11.Append(justification320); StyleRunProperties styleRunProperties14 = new StyleRunProperties(); Bold bold44 = new Bold(); BoldComplexScript boldComplexScript5 = new BoldComplexScript(); FontSize fontSize549 = new FontSize() { Val = "56" }; FontSizeComplexScript fontSizeComplexScript550 = new FontSizeComplexScript() { Val = "56" }; styleRunProperties14.Append(bold44); styleRunProperties14.Append(boldComplexScript5); styleRunProperties14.Append(fontSize549); styleRunProperties14.Append(fontSizeComplexScript550); style14.Append(styleName14); style14.Append(basedOn12); style14.Append(styleParagraphProperties11); style14.Append(styleRunProperties14); Style style15 = new Style() { Type = StyleValues.Paragraph, StyleId = "Style18" }; StyleName styleName15 = new StyleName() { Val = "Подзаголовок" }; BasedOn basedOn13 = new BasedOn() { Val = "Style11" }; StyleParagraphProperties styleParagraphProperties12 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines8 = new SpacingBetweenLines() { Before = "60", After = "120" }; Justification justification321 = new Justification() { Val = JustificationValues.Center }; styleParagraphProperties12.Append(spacingBetweenLines8); styleParagraphProperties12.Append(justification321); StyleRunProperties styleRunProperties15 = new StyleRunProperties(); FontSize fontSize550 = new FontSize() { Val = "36" }; FontSizeComplexScript fontSizeComplexScript551 = new FontSizeComplexScript() { Val = "36" }; styleRunProperties15.Append(fontSize550); styleRunProperties15.Append(fontSizeComplexScript551); style15.Append(styleName15); style15.Append(basedOn13); style15.Append(styleParagraphProperties12); style15.Append(styleRunProperties15); styles1.Append(docDefaults1); styles1.Append(style1); styles1.Append(style2); styles1.Append(style3); styles1.Append(style4); styles1.Append(style5); styles1.Append(style6); styles1.Append(style7); styles1.Append(style8); styles1.Append(style9); styles1.Append(style10); styles1.Append(style11); styles1.Append(style12); styles1.Append(style13); styles1.Append(style14); styles1.Append(style15); styleDefinitionsPart1.Styles = styles1; }
private void GenerateStyleHeader1() { //базовый стиль GenerateDefaultStyleHeader(); var styleHeader1 = new Style() { Type = StyleValues.Paragraph, StyleId = "Header1", CustomStyle = true }; StyleName styleName1 = new StyleName() { Val = "Header1" }; BasedOn basedOn1 = new BasedOn() { Val = "1" }; NextParagraphStyle nextParagraphStyle1 = new NextParagraphStyle() { Val = "a" }; LinkedStyle linkedStyle1 = new LinkedStyle() { Val = "Header10" }; PrimaryStyle primaryStyle1 = new PrimaryStyle(); Rsid rsid1 = new Rsid() { Val = "005502FB" }; StyleParagraphProperties styleParagraphProperties1 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines1 = new SpacingBetweenLines() { Before = "360", After = "120" }; styleParagraphProperties1.Append(spacingBetweenLines1); StyleRunProperties styleRunProperties1 = new StyleRunProperties(); RunFonts runFonts1 = new RunFonts() { Ascii = "Cambria", HighAnsi = "Cambria" }; Bold bold1 = new Bold(); Color color1 = new Color() { Val = "auto" }; FontSize fontSize1 = new FontSize() { Val = "32" }; styleRunProperties1.Append(runFonts1); styleRunProperties1.Append(bold1); styleRunProperties1.Append(color1); styleRunProperties1.Append(fontSize1); styleHeader1.Append(styleName1); styleHeader1.Append(basedOn1); styleHeader1.Append(nextParagraphStyle1); styleHeader1.Append(linkedStyle1); styleHeader1.Append(primaryStyle1); styleHeader1.Append(rsid1); styleHeader1.Append(styleParagraphProperties1); styleHeader1.Append(styleRunProperties1); Styles.Add(styleHeader1); }
public Style GenerateFooterStyle() { var style1 = new Style {Type = StyleValues.Paragraph, StyleId = "Footer"}; var styleName1 = new StyleName {Val = "footer"}; var basedOn1 = new BasedOn {Val = "Normal"}; var linkedStyle1 = new LinkedStyle {Val = "FooterChar"}; var uIPriority1 = new UIPriority {Val = 99}; var semiHidden1 = new SemiHidden(); var unhideWhenUsed1 = new UnhideWhenUsed(); var rsid1 = new Rsid {Val = "005641D2"}; var styleParagraphProperties1 = new StyleParagraphProperties(); var tabs1 = new Tabs(); var tabStop1 = new TabStop {Val = TabStopValues.Center, Position = 4680}; var tabStop2 = new TabStop {Val = TabStopValues.Right, Position = 9360}; tabs1.Append(tabStop1); tabs1.Append(tabStop2); var spacingBetweenLines1 = new SpacingBetweenLines {Line = "240", LineRule = LineSpacingRuleValues.Auto}; styleParagraphProperties1.Append(tabs1); styleParagraphProperties1.Append(spacingBetweenLines1); style1.Append(styleName1); style1.Append(basedOn1); style1.Append(linkedStyle1); style1.Append(uIPriority1); style1.Append(semiHidden1); style1.Append(unhideWhenUsed1); style1.Append(rsid1); style1.Append(styleParagraphProperties1); return style1; }
/// <summary> /// The create style. /// </summary> /// <param name="ps"> /// The ps. /// </param> /// <param name="styleID"> /// The style id. /// </param> /// <param name="styleName"> /// The style name. /// </param> /// <param name="basedOnStyleID"> /// The based on style id. /// </param> /// <param name="nextStyleID"> /// The next style id. /// </param> /// <param name="isDefault"> /// The is default. /// </param> /// <param name="isCustomStyle"> /// The is custom style. /// </param> /// <returns> /// </returns> private static Style CreateStyle( ParagraphStyle ps, string styleID, string styleName, string basedOnStyleID, string nextStyleID, bool isDefault = false, bool isCustomStyle = true) { // todo: add font to FontTable? var rPr = new StyleRunProperties(); // http://msdn.microsoft.com/en-us/library/documentformat.openxml.wordprocessing.color.aspx var color = new Color { Val = ps.TextColor.ToString().Trim('#').Substring(2) }; rPr.Append(color); // http://msdn.microsoft.com/en-us/library/cc850848.aspx rPr.Append(new RunFonts { Ascii = ps.FontFamily, HighAnsi = ps.FontFamily }); rPr.Append(new FontSize { Val = new StringValue((ps.FontSize * 2).ToString(CultureInfo.InvariantCulture)) }); rPr.Append( new FontSizeComplexScript { Val = new StringValue((ps.FontSize * 2).ToString(CultureInfo.InvariantCulture)) }); if (ps.Bold) { rPr.Append(new Bold()); } if (ps.Italic) { rPr.Append(new Italic()); } var pPr = new StyleParagraphProperties(); var spacingBetweenLines2 = new SpacingBetweenLines { After = string.Format(CultureInfo.InvariantCulture, "{0}", ps.SpacingAfter * 20), Before = string.Format(CultureInfo.InvariantCulture, "{0}", ps.SpacingBefore * 20), Line = string.Format(CultureInfo.InvariantCulture, "{0}", ps.LineSpacing * 240), LineRule = LineSpacingRuleValues.Auto }; var indentation = new Indentation { Left = string.Format(CultureInfo.InvariantCulture, "{0}", ps.LeftIndentation * 20), Right = string.Format(CultureInfo.InvariantCulture, "{0}", ps.RightIndentation * 20) }; var contextualSpacing1 = new ContextualSpacing(); pPr.Append(spacingBetweenLines2); pPr.Append(contextualSpacing1); pPr.Append(indentation); // StyleRunProperties styleRunProperties7 = new StyleRunProperties(); // RunFonts runFonts8 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana" }; // Color color7 = new Color() { Val = "000000" }; // styleRunProperties7.Append(runFonts8); // styleRunProperties7.Append(color7); // http://msdn.microsoft.com/en-us/library/documentformat.openxml.wordprocessing.style.aspx var style = new Style { Default = new OnOffValue(isDefault), CustomStyle = new OnOffValue(isCustomStyle), StyleId = styleID, Type = StyleValues.Paragraph }; style.Append(new Name { Val = styleName }); if (basedOnStyleID != null) { style.Append(new BasedOn { Val = basedOnStyleID }); } var rsid = new Rsid(); // style.Append(rsid); var primaryStyle = new PrimaryStyle(); style.Append(primaryStyle); if (nextStyleID != null) { style.Append(new NextParagraphStyle { Val = nextStyleID }); } style.Append(rPr); style.Append(pPr); return style; }
// Create a new paragraph style with the specified style ID, primary style name, and aliases and // add it to the specified style definitions part. public static void CreateAndAddParagraphStyle(StyleDefinitionsPart styleDefinitionsPart, string styleid, string stylename, string aliases = "") { // Access the root element of the styles part. Styles styles = styleDefinitionsPart.Styles; if (styles == null) { styleDefinitionsPart.Styles = new Styles(); styleDefinitionsPart.Styles.Save(); } // Create a new paragraph style element and specify some of the attributes. Style style = new Style() { Type = StyleValues.Paragraph, StyleId = styleid, CustomStyle = true, Default = false }; // Create and add the child elements (properties of the style). Aliases aliases1 = new Aliases() { Val = aliases }; AutoRedefine autoredefine1 = new AutoRedefine() { Val = OnOffOnlyValues.Off }; BasedOn basedon1 = new BasedOn() { Val = "Normal" }; LinkedStyle linkedStyle1 = new LinkedStyle() { Val = "OverdueAmountChar" }; Locked locked1 = new Locked() { Val = OnOffOnlyValues.Off }; PrimaryStyle primarystyle1 = new PrimaryStyle() { Val = OnOffOnlyValues.On }; StyleHidden stylehidden1 = new StyleHidden() { Val = OnOffOnlyValues.Off }; SemiHidden semihidden1 = new SemiHidden() { Val = OnOffOnlyValues.Off }; StyleName styleName1 = new StyleName() { Val = stylename }; NextParagraphStyle nextParagraphStyle1 = new NextParagraphStyle() { Val = "Normal" }; UIPriority uipriority1 = new UIPriority() { Val = 1 }; UnhideWhenUsed unhidewhenused1 = new UnhideWhenUsed() { Val = OnOffOnlyValues.On }; if (aliases != "") style.Append(aliases1); style.Append(autoredefine1); style.Append(basedon1); style.Append(linkedStyle1); style.Append(locked1); style.Append(primarystyle1); style.Append(stylehidden1); style.Append(semihidden1); style.Append(styleName1); style.Append(nextParagraphStyle1); style.Append(uipriority1); style.Append(unhidewhenused1); // Create the StyleRunProperties object and specify some of the run properties. StyleRunProperties styleRunProperties1 = new StyleRunProperties(); Bold bold1 = new Bold(); Color color1 = new Color() { ThemeColor = ThemeColorValues.Accent2 }; RunFonts font1 = new RunFonts() { Ascii = "Lucida Console" }; Italic italic1 = new Italic(); // Specify a 12 point size. FontSize fontSize1 = new FontSize() { Val = "24" }; styleRunProperties1.Append(bold1); styleRunProperties1.Append(color1); styleRunProperties1.Append(font1); styleRunProperties1.Append(fontSize1); styleRunProperties1.Append(italic1); // Add the run properties to the style. style.Append(styleRunProperties1); // Add the style to the styles part. styles.Append(style); }
public Style GenerateFooterCharStyle() { var style1 = new Style {Type = StyleValues.Character, StyleId = "FooterChar", CustomStyle = true}; var styleName1 = new StyleName {Val = "Footer Char"}; var basedOn1 = new BasedOn {Val = "DefaultParagraphFont"}; var linkedStyle1 = new LinkedStyle {Val = "Footer"}; var uIPriority1 = new UIPriority {Val = 99}; var semiHidden1 = new SemiHidden(); var rsid1 = new Rsid {Val = "005641D2"}; style1.Append(styleName1); style1.Append(basedOn1); style1.Append(linkedStyle1); style1.Append(uIPriority1); style1.Append(semiHidden1); style1.Append(rsid1); return style1; }
// Create a new style with the specified styleid and stylename and add it to the specified // style definitions part. private static void AddNewStyle(StyleDefinitionsPart styleDefinitionsPart, string styleid, string stylename, StyleValues type, Action<StyleRunProperties> prepareRunStyle, Action<StyleParagraphProperties> prepareParagraphStyle, string basedOn = "Normal") { // Get access to the root element of the styles part. Styles styles = styleDefinitionsPart.Styles; // Create a new paragraph style and specify some of the properties. Style style = new Style() { Type = type, StyleId = styleid, CustomStyle = true }; StyleName styleName1 = new StyleName() { Val = stylename }; BasedOn basedOn1 = new BasedOn() { Val = basedOn }; NextParagraphStyle nextParagraphStyle1 = new NextParagraphStyle() { Val = "Normal" }; style.Append(styleName1); if (!string.IsNullOrEmpty(basedOn)) style.Append(basedOn1); //style.Append(nextParagraphStyle1); // Create the StyleRunProperties object and specify some of the run properties. StyleRunProperties styleRunProperties = new StyleRunProperties(); prepareRunStyle(styleRunProperties); // Add the run properties to the style. style.Append(styleRunProperties); StyleParagraphProperties styleParaProperties = new StyleParagraphProperties(); prepareParagraphStyle(styleParaProperties); style.Append(styleParaProperties); // Add the style to the styles part. styles.Append(style); }
private Style GenerateHeadingTwoStyle() { Style style1 = new Style() { Type = StyleValues.Paragraph, StyleId = HeadingTwoStyle }; StyleName styleName1 = new StyleName() { Val = "heading 2" }; BasedOn basedOn1 = new BasedOn() { Val = "Normal" }; NextParagraphStyle nextParagraphStyle1 = new NextParagraphStyle() { Val = "Normal" }; LinkedStyle linkedStyle1 = new LinkedStyle() { Val = "Heading2Char" }; UIPriority uIPriority1 = new UIPriority() { Val = 9 }; UnhideWhenUsed unhideWhenUsed1 = new UnhideWhenUsed(); PrimaryStyle primaryStyle1 = new PrimaryStyle(); //Rsid rsid1 = new Rsid() { Val = "0013195F" }; StyleParagraphProperties styleParagraphProperties1 = new StyleParagraphProperties(); KeepNext keepNext1 = new KeepNext(); KeepLines keepLines1 = new KeepLines(); SpacingBetweenLines spacingBetweenLines1 = new SpacingBetweenLines() { Before = "40", After = "0" }; OutlineLevel outlineLevel1 = new OutlineLevel() { Val = 1 }; styleParagraphProperties1.Append(keepNext1); styleParagraphProperties1.Append(keepLines1); styleParagraphProperties1.Append(spacingBetweenLines1); styleParagraphProperties1.Append(outlineLevel1); StyleRunProperties styleRunProperties1 = new StyleRunProperties(); RunFonts runFonts1 = new RunFonts() { AsciiTheme = ThemeFontValues.MajorHighAnsi, HighAnsiTheme = ThemeFontValues.MajorHighAnsi, EastAsiaTheme = ThemeFontValues.MajorEastAsia, ComplexScriptTheme = ThemeFontValues.MajorBidi }; Color color1 = new Color() { Val = "2E74B5", ThemeColor = ThemeColorValues.Accent1, ThemeShade = "BF" }; FontSize fontSize1 = new FontSize() { Val = "26" }; FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript() { Val = "26" }; styleRunProperties1.Append(runFonts1); styleRunProperties1.Append(color1); styleRunProperties1.Append(fontSize1); styleRunProperties1.Append(fontSizeComplexScript1); style1.Append(styleName1); style1.Append(basedOn1); style1.Append(nextParagraphStyle1); style1.Append(linkedStyle1); style1.Append(uIPriority1); style1.Append(unhideWhenUsed1); style1.Append(primaryStyle1); //style1.Append(rsid1); style1.Append(styleParagraphProperties1); style1.Append(styleRunProperties1); return style1; }
public static void AddStyle(MainDocumentPart mainPart, string styleId, string styleName, string fontName, int fontSize, string rgbColor, bool isBold, bool isItalic, bool isUnderline) { // we have to set the properties RunProperties rPr = new RunProperties(); Color color = new Color() { Val = rgbColor }; RunFonts rFont = new RunFonts { Ascii = fontName }; rPr.Append(color); rPr.Append(rFont); if (isBold) { rPr.Append(new Bold()); } if (isItalic) { rPr.Append(new Italic()); } if (isUnderline) { rPr.Append(new Underline() { Val = UnderlineValues.Single }); } rPr.Append(new FontSize() { Val = (fontSize * 2).ToString() }); Style style = new Style { StyleId = styleId }; if (styleName == null || styleName.Length == 0) { styleName = styleId; } style.Append(new Name() { Val = styleName }); style.Append(rPr); //we are adding properties previously defined // we have to add style that we have created to the StylePart StyleDefinitionsPart stylePart; if (mainPart.StyleDefinitionsPart == null) { stylePart = mainPart.AddNewPart <StyleDefinitionsPart>(); stylePart.Styles = new Styles(); } else { stylePart = mainPart.StyleDefinitionsPart; } stylePart.Styles.Append(style); stylePart.Styles.Save(); // we save the style part }
private Style GenerateNoListStyle() { Style style1 = new Style() { Type = StyleValues.Numbering, StyleId = NoListStyle, Default = true }; StyleName styleName1 = new StyleName() { Val = "No List" }; UIPriority uIPriority1 = new UIPriority() { Val = 99 }; SemiHidden semiHidden1 = new SemiHidden(); UnhideWhenUsed unhideWhenUsed1 = new UnhideWhenUsed(); style1.Append(styleName1); style1.Append(uIPriority1); style1.Append(semiHidden1); style1.Append(unhideWhenUsed1); return style1; }
public void CreateAndAddParagraphStyle( StyleDefinitionsPart styleDefinitionsPart, string styleid, string stylename, StyleProperties properties) { // Access the root element of the styles part. Styles styles = styleDefinitionsPart.Styles; if (styles == null) { styleDefinitionsPart.Styles = new Styles(); styleDefinitionsPart.Styles.Save(); } // Create a new paragraph style element and specify some of the attributes. Style style = new Style() { Type = StyleValues.Paragraph, StyleId = styleid, CustomStyle = true, Default = false }; // Create and add the child elements (properties of the style). AutoRedefine autoredefine1 = new AutoRedefine() { Val = OnOffOnlyValues.Off }; BasedOn basedon1 = new BasedOn() { Val = "Normal" }; LinkedStyle linkedStyle1 = new LinkedStyle() { Val = "OverdueAmountChar" }; Locked locked1 = new Locked() { Val = OnOffOnlyValues.Off }; PrimaryStyle primarystyle1 = new PrimaryStyle() { Val = OnOffOnlyValues.On }; StyleHidden stylehidden1 = new StyleHidden() { Val = OnOffOnlyValues.Off }; SemiHidden semihidden1 = new SemiHidden() { Val = OnOffOnlyValues.Off }; StyleName styleName1 = new StyleName() { Val = stylename }; NextParagraphStyle nextParagraphStyle1 = new NextParagraphStyle() { Val = "Normal" }; UIPriority uipriority1 = new UIPriority() { Val = 1 }; UnhideWhenUsed unhidewhenused1 = new UnhideWhenUsed() { Val = OnOffOnlyValues.On }; style.Append(autoredefine1); style.Append(basedon1); style.Append(linkedStyle1); style.Append(locked1); style.Append(primarystyle1); style.Append(stylehidden1); style.Append(semihidden1); style.Append(styleName1); style.Append(nextParagraphStyle1); style.Append(uipriority1); style.Append(unhidewhenused1); // Create the StyleRunProperties object and specify some of the run properties. StyleRunProperties styleRunProperties = new StyleRunProperties(); Bold bold1 = new Bold(); Color color1 = new Color() { ThemeColor = ThemeColorValues.Accent2 }; RunFonts font1 = new RunFonts() { Ascii = "Lucida Console" }; Italic italic1 = new Italic(); // Specify a 12 point size. FontSize fontSize1 = new FontSize() { Val = properties.FontSize.ToString() }; if (properties.Bold) { styleRunProperties.Append(new Bold()); } styleRunProperties.Append(color1); styleRunProperties.Append(font1); styleRunProperties.Append(fontSize1); styleRunProperties.Append(italic1); // Add the run properties to the style. style.Append(styleRunProperties); // Add the style to the styles part. styles.Append(style); }
private Style GenerateNormalStyle() { Style style1 = new Style() { Type = StyleValues.Paragraph, StyleId = NormalStyle, Default = true }; StyleName styleName1 = new StyleName() { Val = NormalStyle }; PrimaryStyle primaryStyle1 = new PrimaryStyle(); StyleRunProperties styleRunProperties1 = new StyleRunProperties(); style1.Append(styleName1); style1.Append(primaryStyle1); style1.Append(styleRunProperties1); return style1; }
/// <summary> /// 表格样式,默认启用 /// </summary> /// <returns></returns> public static Style GenerateTableStyle() { Style style1 = new Style() { Type = StyleValues.Table, StyleId = "Table" }; StyleName styleName1 = new StyleName() { Val = "Table" }; BasedOn basedOn1 = new BasedOn() { Val = "a1" }; UIPriority uIPriority1 = new UIPriority() { Val = 4 }; StyleTableProperties styleTableProperties1 = new StyleTableProperties(); TableBorders tableBorders1 = new TableBorders(); TopBorder topBorder1 = new TopBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; LeftBorder leftBorder1 = new LeftBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; BottomBorder bottomBorder1 = new BottomBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; RightBorder rightBorder1 = new RightBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; InsideHorizontalBorder insideHorizontalBorder1 = new InsideHorizontalBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; InsideVerticalBorder insideVerticalBorder1 = new InsideVerticalBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; tableBorders1.Append(topBorder1); tableBorders1.Append(leftBorder1); tableBorders1.Append(bottomBorder1); tableBorders1.Append(rightBorder1); tableBorders1.Append(insideHorizontalBorder1); tableBorders1.Append(insideVerticalBorder1); styleTableProperties1.Append(tableBorders1); // 居中对齐 TableJustification tableJustification1 = new TableJustification() { Val = TableRowAlignmentValues.Center }; styleTableProperties1.Append(tableJustification1); style1.Append(styleName1); style1.Append(basedOn1); style1.Append(uIPriority1); style1.Append(styleTableProperties1); return(style1); }
private Style GenerateTableNormalStyle() { Style style1 = new Style() { Type = StyleValues.Table, StyleId = TableNormalStyle, Default = true }; StyleName styleName1 = new StyleName() { Val = "Normal Table" }; UIPriority uIPriority1 = new UIPriority() { Val = 99 }; SemiHidden semiHidden1 = new SemiHidden(); UnhideWhenUsed unhideWhenUsed1 = new UnhideWhenUsed(); StyleTableProperties styleTableProperties1 = new StyleTableProperties(); TableIndentation tableIndentation1 = new TableIndentation() { Width = 0, Type = TableWidthUnitValues.Dxa }; TableCellMarginDefault tableCellMarginDefault1 = new TableCellMarginDefault(); TopMargin topMargin1 = new TopMargin() { Width = "0", Type = TableWidthUnitValues.Dxa }; TableCellLeftMargin tableCellLeftMargin1 = new TableCellLeftMargin() { Width = 108, Type = TableWidthValues.Dxa }; BottomMargin bottomMargin1 = new BottomMargin() { Width = "0", Type = TableWidthUnitValues.Dxa }; TableCellRightMargin tableCellRightMargin1 = new TableCellRightMargin() { Width = 108, Type = TableWidthValues.Dxa }; tableCellMarginDefault1.Append(topMargin1); tableCellMarginDefault1.Append(tableCellLeftMargin1); tableCellMarginDefault1.Append(bottomMargin1); tableCellMarginDefault1.Append(tableCellRightMargin1); styleTableProperties1.Append(tableIndentation1); styleTableProperties1.Append(tableCellMarginDefault1); style1.Append(styleName1); style1.Append(uIPriority1); style1.Append(semiHidden1); style1.Append(unhideWhenUsed1); style1.Append(styleTableProperties1); return style1; }
/// <summary> /// 根据传入的参数生成一个指定的样式实例并返回 /// </summary> /// <param name="p">段落样式对象</param> /// <returns>一个按照上述要求生成的Style实例</returns> public static Style GenerateStyle(ParagraphStyle p) { if (string.IsNullOrEmpty(p.StyleType)) { return(null); } Style style; // --------------------------------------------- // 段落样式 ------------------------------------- // --------------------------------------------- if (p.StyleType.Equals("paragraph")) { style = new Style() { Type = StyleValues.Paragraph, StyleId = p.StyleId }; StyleParagraphProperties paragraphProperties = new StyleParagraphProperties(); // 对齐方式 paragraphProperties.Append(new Justification() { Val = p.JustificationValues }); // 行间距 // 可设置的属性有:Before段前、After段后、Line行距、LineRule行距类型 string lineSpacing; // 注意要判断为0的情况。默认使用1.15倍行距;或固定值时,使用字体大小的磅数 Console.WriteLine(p.LineSpacing); Console.WriteLine(p.LineSpacingRuleValues); switch (p.LineSpacingRuleValues) { case LineSpacingRuleValues.Auto: p.LineSpacing = p.LineSpacing.Equals("0") ? "1.15" : p.LineSpacing; lineSpacing = Convert.ToString( Convert.ToDouble(p.LineSpacing) * 240); break; case LineSpacingRuleValues.Exact: p.LineSpacing = p.LineSpacing.Equals("0") ? p.FontSize : p.LineSpacing; lineSpacing = Convert.ToString( Convert.ToDouble(p.LineSpacing) * 20); break; default: // 默认使用1.15倍行距 lineSpacing = Convert.ToString( Convert.ToDouble(p.FontSize) * 1.15); break; } SpacingBetweenLines spacingBetweenLines = new SpacingBetweenLines() { Line = lineSpacing, LineRule = p.LineSpacingRuleValues }; paragraphProperties.Append(spacingBetweenLines); // 大纲级别。 // 从0开始,0代表1级,以此类推 // -1表示正文,则不添加 if (p.OutLineLvl != -1) { paragraphProperties.Append( new SpacingBetweenLines() { Before = "150", After = "150" }); paragraphProperties.Append( new OutlineLevel() { Val = p.OutLineLvl }); } if (p.StyleId.Equals("BodyText")) { paragraphProperties.Append( new SpacingBetweenLines() { Before = "150", After = "0" }); } // 首行缩进 if (p.FirstLineIndentation) { Indentation indentation = new Indentation() { Left = "0", FirstLine = "480", FirstLineChars = 200 // 表示首行缩进两个字符 }; paragraphProperties.Append(indentation); } else if (p.OutLineLvl == -1) { Indentation indentation = new Indentation() { FirstLine = "0" // FirstLineChars = 200 // 表示首行缩进两个字符 }; paragraphProperties.Append(indentation); } style.Append(paragraphProperties); } else if (p.StyleType.Equals("character")) { style = new Style() { Type = StyleValues.Character, StyleId = p.StyleId } } ; else { MessageBox.Show("预设文件存在错误!StyleType字段未定义的值:" + p.StyleType, "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); return(null); } style.Append(new StyleName() { Val = p.StyleName }); style.Append(new PrimaryStyle()); style.Append(new UIPriority() { Val = 3 }); // --------------------------------------------- // 字符样式 ------------------------------------- // --------------------------------------------- StyleRunProperties charProperties = new StyleRunProperties(); // 字体 RunFonts runFonts = new RunFonts() { Ascii = p.FontName, HighAnsi = p.FontName, EastAsia = p.FontName, ComplexScriptTheme = ThemeFontValues.MajorBidi }; charProperties.Append(runFonts); // 字号 // 字号 = 磅值*2 string sizeStr = Convert.ToString(Convert.ToDouble(p.FontSize) * 2); charProperties.Append(new FontSize() { Val = sizeStr }); charProperties.Append(new FontSizeComplexScript() { Val = sizeStr }); // 颜色 Color color = new Color() { Val = p.ColorHex }; charProperties.Append(color); // 加粗 if (p.Bold) { charProperties.Append(new Bold()); charProperties.Append(new BoldComplexScript()); } // 斜体 if (p.Italic) { charProperties.Append(new Italic()); } // 下划线 if (p.Underline) { charProperties.Append(new Underline() { Val = UnderlineValues.Single }); } style.Append(charProperties); return(style); }
private Style GenerateTitleCharStyle() { Style style1 = new Style() { Type = StyleValues.Character, StyleId = TitleCharStyle, CustomStyle = true }; StyleName styleName1 = new StyleName() { Val = "Title Char" }; BasedOn basedOn1 = new BasedOn() { Val = "DefaultParagraphFont" }; LinkedStyle linkedStyle1 = new LinkedStyle() { Val = "Title" }; UIPriority uIPriority1 = new UIPriority() { Val = 10 }; //Rsid rsid1 = new Rsid() { Val = "0013195F" }; StyleRunProperties styleRunProperties1 = new StyleRunProperties(); RunFonts runFonts1 = new RunFonts() { AsciiTheme = ThemeFontValues.MajorHighAnsi, HighAnsiTheme = ThemeFontValues.MajorHighAnsi, EastAsiaTheme = ThemeFontValues.MajorEastAsia, ComplexScriptTheme = ThemeFontValues.MajorBidi }; Spacing spacing1 = new Spacing() { Val = -10 }; Kern kern1 = new Kern() { Val = (UInt32Value)28U }; FontSize fontSize1 = new FontSize() { Val = "56" }; FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript() { Val = "56" }; styleRunProperties1.Append(runFonts1); styleRunProperties1.Append(spacing1); styleRunProperties1.Append(kern1); styleRunProperties1.Append(fontSize1); styleRunProperties1.Append(fontSizeComplexScript1); style1.Append(styleName1); style1.Append(basedOn1); style1.Append(linkedStyle1); style1.Append(uIPriority1); //style1.Append(rsid1); style1.Append(styleRunProperties1); return style1; }