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; }
private Paragraph CreateCodeParagraph(CodeVM code) { Paragraph paragraph1 = new Paragraph(); ParagraphProperties paragraphProperties1 = new ParagraphProperties(); Indentation indentation1 = new Indentation(){ FirstLine = "210", FirstLineChars = 100 }; paragraphProperties1.Append(indentation1); Run run1 = new Run(); RunProperties runProperties1 = new RunProperties(); RunFonts runFonts1 = new RunFonts(){ Hint = FontTypeHintValues.EastAsia }; runProperties1.Append(runFonts1); Text text1 = new Text(); text1.Text = code.Value; run1.Append(runProperties1); run1.Append(text1); Run run2 = new Run(); RunProperties runProperties2 = new RunProperties(); RunFonts runFonts2 = new RunFonts(){ Hint = FontTypeHintValues.EastAsia }; runProperties2.Append(runFonts2); TabChar tabChar1 = new TabChar(); run2.Append(runProperties2); run2.Append(tabChar1); Run run3 = new Run(); RunProperties runProperties3 = new RunProperties(); RunFonts runFonts3 = new RunFonts(){ Hint = FontTypeHintValues.EastAsia }; runProperties3.Append(runFonts3); Text text2 = new Text(); text2.Text = code.Label; run3.Append(runProperties3); run3.Append(text2); paragraph1.Append(paragraphProperties1); paragraph1.Append(run1); paragraph1.Append(run2); paragraph1.Append(run3); return paragraph1; }
public Paragraph AddAlphaRow() { var paragraph1 = new Paragraph {RsidParagraphMarkRevision = "005205ED", RsidParagraphAddition = "00A01149", RsidParagraphProperties = "005205ED", RsidRunAdditionDefault = "00E7001C"}; var paragraphProperties1 = new ParagraphProperties(); var spacingBetweenLines1 = new SpacingBetweenLines {After = "60", Line = "240", LineRule = LineSpacingRuleValues.Auto}; var justification1 = new Justification {Val = JustificationValues.Center}; var paragraphMarkRunProperties1 = new ParagraphMarkRunProperties(); var runFonts1 = new RunFonts {ComplexScriptTheme = ThemeFontValues.MinorHighAnsi}; var bold1 = new Bold(); var fontSize1 = new FontSize {Val = "32"}; var fontSizeComplexScript1 = new FontSizeComplexScript {Val = "32"}; paragraphMarkRunProperties1.Append(runFonts1); paragraphMarkRunProperties1.Append(bold1); paragraphMarkRunProperties1.Append(fontSize1); paragraphMarkRunProperties1.Append(fontSizeComplexScript1); paragraphProperties1.Append(new KeepNext()); paragraphProperties1.Append(spacingBetweenLines1); paragraphProperties1.Append(justification1); paragraphProperties1.Append(paragraphMarkRunProperties1); var run1 = new Run {RsidRunProperties = "005205ED"}; var runProperties1 = new RunProperties(); var runFonts2 = new RunFonts {ComplexScriptTheme = ThemeFontValues.MinorHighAnsi}; var bold2 = new Bold(); var fontSize2 = new FontSize {Val = "32"}; var fontSizeComplexScript2 = new FontSizeComplexScript {Val = "32"}; runProperties1.Append(runFonts2); runProperties1.Append(bold2); runProperties1.Append(fontSize2); runProperties1.Append(fontSizeComplexScript2); var text1 = new Text(); text1.Text = FamilyName.Substring(0, 1); run1.Append(runProperties1); run1.Append(text1); paragraph1.Append(paragraphProperties1); paragraph1.Append(run1); return paragraph1; }
public OXMLMathRunWrap(string text) { _text = text; XMLRun = new M.Run(); RunProperties runProperties4 = new RunProperties(); RunFonts runFonts4 = new RunFonts(){ Ascii = "Cambria Math", HighAnsi = "Cambria Math" }; Languages languages4 = new Languages(){ Val = "en-US" }; runProperties4.Append(runFonts4); runProperties4.Append(languages4); M.Text text3 = new M.Text(); text3.Text = text; XMLRun.Append(runProperties4); if (text != "") XMLRun.Append(text3); }
/// <summary> /// генарция настроек для списков /// </summary> public void GenerateListNumbering(ref Numbering numbering) { #region AbstractNum AbstractNum abstractNum1 = new AbstractNum() { AbstractNumberId = 0 }; Nsid nsid1 = new Nsid() { Val = "2EB766E6" }; MultiLevelType multiLevelType1 = new MultiLevelType() { Val = MultiLevelValues.HybridMultilevel }; TemplateCode templateCode1 = new TemplateCode() { Val = "C1F20472" }; Level level1 = new Level() { LevelIndex = 0, TemplateCode = "04190001" }; StartNumberingValue startNumberingValue1 = new StartNumberingValue() { Val = 1 }; NumberingFormat numberingFormat1 = new NumberingFormat() { Val = NumberFormatValues.Bullet }; LevelText levelText1 = new LevelText() { Val = "·" }; LevelJustification levelJustification1 = new LevelJustification() { Val = LevelJustificationValues.Left }; PreviousParagraphProperties previousParagraphProperties1 = new PreviousParagraphProperties(); Indentation indentation1 = new Indentation() { Left = "1429", Hanging = "360" }; previousParagraphProperties1.Append(indentation1); NumberingSymbolRunProperties numberingSymbolRunProperties1 = new NumberingSymbolRunProperties(); RunFonts runFonts1 = new RunFonts() { Hint = FontTypeHintValues.Default, Ascii = "Symbol", HighAnsi = "Symbol" }; numberingSymbolRunProperties1.Append(runFonts1); level1.Append(startNumberingValue1); level1.Append(numberingFormat1); level1.Append(levelText1); level1.Append(levelJustification1); level1.Append(previousParagraphProperties1); level1.Append(numberingSymbolRunProperties1); abstractNum1.Append(nsid1); abstractNum1.Append(multiLevelType1); abstractNum1.Append(templateCode1); abstractNum1.Append(level1); #endregion NumberingInstance numberingInstance1 = new NumberingInstance() { NumberID = 1 }; AbstractNumId abstractNumId1 = new AbstractNumId() { Val = 0 }; numberingInstance1.Append(abstractNumId1); numbering.Append(abstractNum1); numbering.Append(numberingInstance1); }
public static StyleDefinitionsPart ApplyStyle(this StyleDefinitionsPart part, IStyle mystyle) { var pRp = new RunProperties(); var color = new Color() { Val = mystyle.Color }; var fonts = new RunFonts { Ascii = mystyle.FontName }; pRp.Append(color); pRp.Append(fonts); if (mystyle.Bold) { pRp.Append(new Bold()); } pRp.Append(new FontSize() { Val = mystyle.FontSize.ToString() }); var style = new Style { StyleId = mystyle.Id }; style.Append(new Name() { Val = mystyle.Name }); style.Append(new BasedOn() { Val = mystyle.BasedOn }); style.Append(new NextParagraphStyle() { Val = "Normal" }); style.Append(pRp); if (part.Styles == null) { part.Styles = new Styles(); } part.Styles.Append(style); part.Styles.Save(); return part; }
static public AbstractNum GenerateAbstractNum() { AbstractNum abstractNum1 = new AbstractNum() { AbstractNumberId = 1 }; Nsid nsid1 = new Nsid() { Val = "00000001" }; MultiLevelType multiLevelType1 = new MultiLevelType() { Val = MultiLevelValues.Multilevel }; TemplateCode templateCode1 = new TemplateCode() { Val = "00000000" }; Level level1 = new Level() { LevelIndex = 0 }; StartNumberingValue startNumberingValue1 = new StartNumberingValue() { Val = 0 }; NumberingFormat numberingFormat1 = new NumberingFormat() { Val = NumberFormatValues.Bullet }; ParagraphStyleIdInLevel paragraphStyleIdInLevel1 = new ParagraphStyleIdInLevel() { Val = "Legal1" }; LevelText levelText1 = new LevelText() { Val = "%1-" }; LevelJustification levelJustification1 = new LevelJustification() { Val = LevelJustificationValues.Right }; PreviousParagraphProperties previousParagraphProperties1 = new PreviousParagraphProperties(); Tabs tabs1 = new Tabs(); TabStop tabStop1 = new TabStop() { Val = TabStopValues.Number, Position = 720 }; tabs1.Append(tabStop1); previousParagraphProperties1.Append(tabs1); NumberingSymbolRunProperties numberingSymbolRunProperties1 = new NumberingSymbolRunProperties(); RunFonts runFonts1 = new RunFonts() { Ascii = "Baskerville Old Face", HighAnsi = "Baskerville Old Face", ComplexScript = "Times New Roman" }; FontSize fontSize1 = new FontSize() { Val = "20" }; numberingSymbolRunProperties1.Append(runFonts1); numberingSymbolRunProperties1.Append(fontSize1); level1.Append(startNumberingValue1); level1.Append(numberingFormat1); level1.Append(paragraphStyleIdInLevel1); level1.Append(levelText1); level1.Append(levelJustification1); level1.Append(previousParagraphProperties1); level1.Append(numberingSymbolRunProperties1); Level level2 = new Level() { LevelIndex = 1 }; StartNumberingValue startNumberingValue2 = new StartNumberingValue() { Val = 1 }; NumberingFormat numberingFormat2 = new NumberingFormat() { Val = NumberFormatValues.Decimal }; ParagraphStyleIdInLevel paragraphStyleIdInLevel2 = new ParagraphStyleIdInLevel() { Val = "Legal2" }; LevelText levelText2 = new LevelText() { Val = "%1.%2." }; LevelJustification levelJustification2 = new LevelJustification() { Val = LevelJustificationValues.Left }; PreviousParagraphProperties previousParagraphProperties2 = new PreviousParagraphProperties(); Tabs tabs2 = new Tabs(); TabStop tabStop2 = new TabStop() { Val = TabStopValues.Number, Position = 1440 }; tabs2.Append(tabStop2); Indentation indentation1 = new Indentation() { FirstLine = "720" }; previousParagraphProperties2.Append(tabs2); previousParagraphProperties2.Append(indentation1); NumberingSymbolRunProperties numberingSymbolRunProperties2 = new NumberingSymbolRunProperties(); RunFonts runFonts2 = new RunFonts() { ComplexScript = "Times New Roman" }; numberingSymbolRunProperties2.Append(runFonts2); level2.Append(startNumberingValue2); level2.Append(numberingFormat2); level2.Append(paragraphStyleIdInLevel2); level2.Append(levelText2); level2.Append(levelJustification2); level2.Append(previousParagraphProperties2); level2.Append(numberingSymbolRunProperties2); Level level4 = new Level() { LevelIndex = 3 }; StartNumberingValue startNumberingValue4 = new StartNumberingValue() { Val = 1 }; NumberingFormat numberingFormat4 = new NumberingFormat() { Val = NumberFormatValues.Decimal }; ParagraphStyleIdInLevel paragraphStyleIdInLevel4 = new ParagraphStyleIdInLevel() { Val = "Legal4" }; LevelText levelText4 = new LevelText() { Val = "(%4)" }; LevelJustification levelJustification4 = new LevelJustification() { Val = LevelJustificationValues.Left }; PreviousParagraphProperties previousParagraphProperties4 = new PreviousParagraphProperties(); Tabs tabs4 = new Tabs(); TabStop tabStop4 = new TabStop() { Val = TabStopValues.Number, Position = 2880 }; tabs4.Append(tabStop4); Indentation indentation3 = new Indentation() { Left = "1440", FirstLine = "720" }; previousParagraphProperties4.Append(tabs4); previousParagraphProperties4.Append(indentation3); NumberingSymbolRunProperties numberingSymbolRunProperties4 = new NumberingSymbolRunProperties(); RunFonts runFonts4 = new RunFonts() { ComplexScript = "Times New Roman" }; numberingSymbolRunProperties4.Append(runFonts4); level4.Append(startNumberingValue4); level4.Append(numberingFormat4); level4.Append(paragraphStyleIdInLevel4); level4.Append(levelText4); level4.Append(levelJustification4); level4.Append(previousParagraphProperties4); level4.Append(numberingSymbolRunProperties4); Level level5 = new Level() { LevelIndex = 4 }; StartNumberingValue startNumberingValue5 = new StartNumberingValue() { Val = 1 }; NumberingFormat numberingFormat5 = new NumberingFormat() { Val = NumberFormatValues.Decimal }; LevelText levelText5 = new LevelText() { Val = "%5" }; LevelJustification levelJustification5 = new LevelJustification() { Val = LevelJustificationValues.Left }; NumberingSymbolRunProperties numberingSymbolRunProperties5 = new NumberingSymbolRunProperties(); RunFonts runFonts5 = new RunFonts() { ComplexScript = "Times New Roman" }; numberingSymbolRunProperties5.Append(runFonts5); level5.Append(startNumberingValue5); level5.Append(numberingFormat5); level5.Append(levelText5); level5.Append(levelJustification5); level5.Append(numberingSymbolRunProperties5); Level level6 = new Level() { LevelIndex = 5 }; StartNumberingValue startNumberingValue6 = new StartNumberingValue() { Val = 1 }; NumberingFormat numberingFormat6 = new NumberingFormat() { Val = NumberFormatValues.Decimal }; LevelText levelText6 = new LevelText() { Val = "%6" }; LevelJustification levelJustification6 = new LevelJustification() { Val = LevelJustificationValues.Left }; NumberingSymbolRunProperties numberingSymbolRunProperties6 = new NumberingSymbolRunProperties(); RunFonts runFonts6 = new RunFonts() { ComplexScript = "Times New Roman" }; numberingSymbolRunProperties6.Append(runFonts6); level6.Append(startNumberingValue6); level6.Append(numberingFormat6); level6.Append(levelText6); level6.Append(levelJustification6); level6.Append(numberingSymbolRunProperties6); Level level7 = new Level() { LevelIndex = 6 }; StartNumberingValue startNumberingValue7 = new StartNumberingValue() { Val = 1 }; NumberingFormat numberingFormat7 = new NumberingFormat() { Val = NumberFormatValues.Decimal }; LevelText levelText7 = new LevelText() { Val = "%7" }; LevelJustification levelJustification7 = new LevelJustification() { Val = LevelJustificationValues.Left }; NumberingSymbolRunProperties numberingSymbolRunProperties7 = new NumberingSymbolRunProperties(); RunFonts runFonts7 = new RunFonts() { ComplexScript = "Times New Roman" }; numberingSymbolRunProperties7.Append(runFonts7); level7.Append(startNumberingValue7); level7.Append(numberingFormat7); level7.Append(levelText7); level7.Append(levelJustification7); level7.Append(numberingSymbolRunProperties7); Level level8 = new Level() { LevelIndex = 7 }; StartNumberingValue startNumberingValue8 = new StartNumberingValue() { Val = 1 }; NumberingFormat numberingFormat8 = new NumberingFormat() { Val = NumberFormatValues.Decimal }; LevelText levelText8 = new LevelText() { Val = "%8" }; LevelJustification levelJustification8 = new LevelJustification() { Val = LevelJustificationValues.Left }; NumberingSymbolRunProperties numberingSymbolRunProperties8 = new NumberingSymbolRunProperties(); RunFonts runFonts8 = new RunFonts() { ComplexScript = "Times New Roman" }; numberingSymbolRunProperties8.Append(runFonts8); level8.Append(startNumberingValue8); level8.Append(numberingFormat8); level8.Append(levelText8); level8.Append(levelJustification8); level8.Append(numberingSymbolRunProperties8); Level level9 = new Level() { LevelIndex = 8 }; var isLegalNumberingStyle = new IsLegalNumberingStyle(); NumberingFormat numberingFormat9 = new NumberingFormat() { Val = NumberFormatValues.Decimal }; LevelText levelText9 = new LevelText() { Val = "" }; LevelJustification levelJustification9 = new LevelJustification() { Val = LevelJustificationValues.Left }; NumberingSymbolRunProperties numberingSymbolRunProperties9 = new NumberingSymbolRunProperties(); RunFonts runFonts9 = new RunFonts() { ComplexScript = "Times New Roman" }; numberingSymbolRunProperties9.Append(runFonts9); level9.Append(numberingFormat9); level9.Append(levelText9); level9.Append(levelJustification9); level9.Append(numberingSymbolRunProperties9); //level9.Append(isLegalNumberingStyle); level9.IsLegalNumberingStyle = isLegalNumberingStyle; abstractNum1.Append(nsid1); abstractNum1.Append(multiLevelType1); abstractNum1.Append(templateCode1); abstractNum1.Append(level1); abstractNum1.Append(level2); //abstractNum1.Append(level3); abstractNum1.Append(level4); abstractNum1.Append(level5); abstractNum1.Append(level6); abstractNum1.Append(level7); abstractNum1.Append(level8); abstractNum1.Append(level9); return(abstractNum1); }
private void buildDocument(string fileName, string text, bool isNew) { System.IO.File.Delete(@fileName); using (var wordDoc = WordprocessingDocument.Create(fileName, WordprocessingDocumentType.Document, true)) { List <string> resultList = new List <string>(); bool previousEmpty = false; foreach (string split in text.Split(new[] { Environment.NewLine, "\v" }, StringSplitOptions.None)) { if (!string.IsNullOrEmpty(split)) { previousEmpty = false; } else if (!previousEmpty) { previousEmpty = true; continue; } resultList.Add(split); } var mainPart = wordDoc.AddMainDocumentPart(); mainPart.Document = new Document(); var run = new Run(); var paragraph = new Paragraph(run); var body = new Body(paragraph); mainPart.Document.Append(body); var runProp = new RunProperties(); var runFont = new RunFonts { Ascii = textBox.Font.FontFamily.Name }; var size = new FontSize { Val = new StringValue((textBox.Font.Size * 2).ToString()) }; var color = new DocumentFormat.OpenXml.Wordprocessing.Color { Val = HexConverter(textBox.ForeColor) }; runProp.AppendChild(runFont); runProp.AppendChild(size); runProp.AppendChild(color); Break lastBreak = new Break(); Run r = mainPart.Document.Descendants <Run>().First(); r.PrependChild <RunProperties>(runProp); foreach (var line in text.Split(new string[] { "\n" }, StringSplitOptions.None)) { run.AppendChild(new Text(line)); run.AppendChild(lastBreak = new Break()); } run.RemoveChild(lastBreak); //MessageBox.Show(HexConverter(textBox.ForeColor)); mainPart.Document.Save(); wordDoc.Close(); } }
// Generates content of stylesWithEffectsPart1. private void GenerateStylesWithEffectsPart1Content(StylesWithEffectsPart stylesWithEffectsPart1) { Styles styles1 = new Styles(){ MCAttributes = new MarkupCompatibilityAttributes(){ Ignorable = "w14 w15 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("w15", "http://schemas.microsoft.com/office/word/2010/11/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 runFonts33 = new RunFonts(){ AsciiTheme = ThemeFontValues.MinorHighAnsi, HighAnsiTheme = ThemeFontValues.MinorHighAnsi, EastAsiaTheme = ThemeFontValues.MinorEastAsia, ComplexScriptTheme = ThemeFontValues.MinorBidi }; Kern kern15 = new Kern(){ Val = (UInt32Value)2U }; FontSize fontSize1 = new FontSize(){ Val = "21" }; FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript(){ Val = "22" }; Languages languages1 = new Languages(){ Val = "en-US", EastAsia = "ja-JP", Bidi = "ar-SA" }; runPropertiesBaseStyle1.Append(runFonts33); runPropertiesBaseStyle1.Append(kern15); runPropertiesBaseStyle1.Append(fontSize1); runPropertiesBaseStyle1.Append(fontSizeComplexScript1); runPropertiesBaseStyle1.Append(languages1); runPropertiesDefault1.Append(runPropertiesBaseStyle1); ParagraphPropertiesDefault paragraphPropertiesDefault1 = new ParagraphPropertiesDefault(); 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 = 36, 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(); StyleParagraphProperties styleParagraphProperties1 = new StyleParagraphProperties(); WidowControl widowControl1 = new WidowControl(){ Val = false }; Justification justification1 = new Justification(){ Val = JustificationValues.Both }; styleParagraphProperties1.Append(widowControl1); styleParagraphProperties1.Append(justification1); style1.Append(styleName1); style1.Append(primaryStyle1); style1.Append(styleParagraphProperties1); 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); Style style3 = 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 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); style3.Append(styleName3); style3.Append(uIPriority2); style3.Append(semiHidden2); style3.Append(unhideWhenUsed2); style3.Append(styleTableProperties1); Style style4 = 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(); style4.Append(styleName4); style4.Append(uIPriority3); style4.Append(semiHidden3); style4.Append(unhideWhenUsed3); Style style5 = new Style(){ Type = StyleValues.Character, StyleId = "PlaceholderText" }; StyleName styleName5 = new StyleName(){ Val = "Placeholder Text" }; BasedOn basedOn1 = new BasedOn(){ Val = "DefaultParagraphFont" }; UIPriority uIPriority4 = new UIPriority(){ Val = 99 }; SemiHidden semiHidden4 = new SemiHidden(); Rsid rsid9 = new Rsid(){ Val = "00930812" }; StyleRunProperties styleRunProperties1 = new StyleRunProperties(); Color color2 = new Color(){ Val = "808080" }; styleRunProperties1.Append(color2); style5.Append(styleName5); style5.Append(basedOn1); style5.Append(uIPriority4); style5.Append(semiHidden4); style5.Append(rsid9); style5.Append(styleRunProperties1); Style style6 = new Style(){ Type = StyleValues.Paragraph, StyleId = "B207B2DF6D0E4E13956E6616811860CA", CustomStyle = true }; StyleName styleName6 = new StyleName(){ Val = "B207B2DF6D0E4E13956E6616811860CA" }; Rsid rsid10 = new Rsid(){ Val = "00930812" }; StyleParagraphProperties styleParagraphProperties2 = new StyleParagraphProperties(); WidowControl widowControl2 = new WidowControl(){ Val = false }; Justification justification2 = new Justification(){ Val = JustificationValues.Both }; styleParagraphProperties2.Append(widowControl2); styleParagraphProperties2.Append(justification2); style6.Append(styleName6); style6.Append(rsid10); style6.Append(styleParagraphProperties2); Style style7 = new Style(){ Type = StyleValues.Paragraph, StyleId = "D4883C3CFFC34F409428ADC3628C6570", CustomStyle = true }; StyleName styleName7 = new StyleName(){ Val = "D4883C3CFFC34F409428ADC3628C6570" }; Rsid rsid11 = new Rsid(){ Val = "00930812" }; StyleParagraphProperties styleParagraphProperties3 = new StyleParagraphProperties(); WidowControl widowControl3 = new WidowControl(){ Val = false }; Justification justification3 = new Justification(){ Val = JustificationValues.Both }; styleParagraphProperties3.Append(widowControl3); styleParagraphProperties3.Append(justification3); style7.Append(styleName7); style7.Append(rsid11); style7.Append(styleParagraphProperties3); Style style8 = new Style(){ Type = StyleValues.Paragraph, StyleId = "133ECC909A29476B8F1E90DE917BAC44", CustomStyle = true }; StyleName styleName8 = new StyleName(){ Val = "133ECC909A29476B8F1E90DE917BAC44" }; Rsid rsid12 = new Rsid(){ Val = "00930812" }; StyleParagraphProperties styleParagraphProperties4 = new StyleParagraphProperties(); WidowControl widowControl4 = new WidowControl(){ Val = false }; Justification justification4 = new Justification(){ Val = JustificationValues.Both }; styleParagraphProperties4.Append(widowControl4); styleParagraphProperties4.Append(justification4); style8.Append(styleName8); style8.Append(rsid12); style8.Append(styleParagraphProperties4); Style style9 = new Style(){ Type = StyleValues.Paragraph, StyleId = "4B632797D8B1461898B8F461443A20E0", CustomStyle = true }; StyleName styleName9 = new StyleName(){ Val = "4B632797D8B1461898B8F461443A20E0" }; Rsid rsid13 = new Rsid(){ Val = "00930812" }; StyleParagraphProperties styleParagraphProperties5 = new StyleParagraphProperties(); WidowControl widowControl5 = new WidowControl(){ Val = false }; Justification justification5 = new Justification(){ Val = JustificationValues.Both }; styleParagraphProperties5.Append(widowControl5); styleParagraphProperties5.Append(justification5); style9.Append(styleName9); style9.Append(rsid13); style9.Append(styleParagraphProperties5); Style style10 = new Style(){ Type = StyleValues.Paragraph, StyleId = "8E3192E882304BDA9D0B4E69A021C365", CustomStyle = true }; StyleName styleName10 = new StyleName(){ Val = "8E3192E882304BDA9D0B4E69A021C365" }; Rsid rsid14 = new Rsid(){ Val = "00930812" }; StyleParagraphProperties styleParagraphProperties6 = new StyleParagraphProperties(); WidowControl widowControl6 = new WidowControl(){ Val = false }; Justification justification6 = new Justification(){ Val = JustificationValues.Both }; styleParagraphProperties6.Append(widowControl6); styleParagraphProperties6.Append(justification6); style10.Append(styleName10); style10.Append(rsid14); style10.Append(styleParagraphProperties6); 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); stylesWithEffectsPart1.Styles = styles1; }
private Run GetTextRun(string text, string fontName, int size, bool bold, bool italic, int breaks) { Run run = new Run(); RunProperties runProperties = new RunProperties(); runProperties.Append(new RunFonts() { Ascii = fontName }); runProperties.Append(new FontSize() { Val = size.ToString() }); RunFonts fnts = new RunFonts(); if (bold) runProperties.Append(new Bold()); if (italic) runProperties.Append(new Italic()); run.Append(runProperties); run.Append(new Text(text)); for (int ibreak = 0; ibreak < breaks; ibreak++) run.Append(new Break()); return run; }
public WordHelper(string firstCellWidth, string secondCellWidth, string thirdCellWidth, string fontSize, RunFonts runFonts) { _firstCellWidth = firstCellWidth; _secondCellWidth = secondCellWidth; _thirdCellWidth = thirdCellWidth; _fontSize = fontSize; _runFonts = runFonts; }
public Paragraph GenerateLastParagraph(int counts,float length,int page) { Paragraph paragraph1 = new Paragraph() { RsidParagraphAddition = "00000000", RsidParagraphProperties = "008A3B59", RsidRunAdditionDefault = "008A3B59" }; ParagraphProperties paragraphProperties1 = new ParagraphProperties(); Tabs tabs1 = new Tabs(); TabStop tabStop1 = new TabStop() { Val = TabStopValues.Left, Position = 0 }; TabStop tabStop2 = new TabStop() { Val = TabStopValues.Center, Position = 5000 }; TabStop tabStop3 = new TabStop() { Val = TabStopValues.Right, Position = 10070 }; tabs1.Append(tabStop1); tabs1.Append(tabStop2); tabs1.Append(tabStop3); ParagraphMarkRunProperties paragraphMarkRunProperties1 = new ParagraphMarkRunProperties(); FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript() { Val = "28" }; paragraphMarkRunProperties1.Append(fontSizeComplexScript1); paragraphProperties1.Append(tabs1); paragraphProperties1.Append(paragraphMarkRunProperties1); Run run1 = new Run() { RsidRunProperties = "00200017" }; RunProperties runProperties1 = new RunProperties(); RunFonts runFonts1 = new RunFonts() { Hint = FontTypeHintValues.EastAsia }; Bold bold1 = new Bold(); FontSizeComplexScript fontSizeComplexScript2 = new FontSizeComplexScript() { Val = "28" }; runProperties1.Append(runFonts1); runProperties1.Append(bold1); runProperties1.Append(fontSizeComplexScript2); Text text1 = new Text(); text1.Text = " "; run1.Append(runProperties1); run1.Append(text1); Run run2 = new Run() { RsidRunAddition = "00CE1671" }; RunProperties runProperties2 = new RunProperties(); FontSizeComplexScript fontSizeComplexScript3 = new FontSizeComplexScript() { Val = "28" }; runProperties2.Append(fontSizeComplexScript3); Text text2 = new Text(); text2.Text = "共计:" + counts + "根"; run2.Append(runProperties2); run2.Append(text2); Run run3 = new Run() { RsidRunAddition = "00CE1671" }; RunProperties runProperties3 = new RunProperties(); RunFonts runFonts2 = new RunFonts() { Hint = FontTypeHintValues.EastAsia }; FontSizeComplexScript fontSizeComplexScript4 = new FontSizeComplexScript() { Val = "28" }; runProperties3.Append(runFonts2); runProperties3.Append(fontSizeComplexScript4); TabChar tabChar1 = new TabChar(); run3.Append(runProperties3); run3.Append(tabChar1); Run run4 = new Run() { RsidRunProperties = "00CE1671", RsidRunAddition = "00CE1671" }; RunProperties runProperties4 = new RunProperties(); RunFonts runFonts3 = new RunFonts() { Hint = FontTypeHintValues.EastAsia }; Bold bold2 = new Bold(); BoldComplexScript boldComplexScript1 = new BoldComplexScript(); FontSizeComplexScript fontSizeComplexScript5 = new FontSizeComplexScript() { Val = "21" }; runProperties4.Append(runFonts3); runProperties4.Append(bold2); runProperties4.Append(boldComplexScript1); runProperties4.Append(fontSizeComplexScript5); Text text3 = new Text(); text3.Text = " "; run4.Append(runProperties4); run4.Append(text3); Run run5 = new Run() { RsidRunProperties = "00CE1671", RsidRunAddition = "00CE1671" }; RunProperties runProperties5 = new RunProperties(); BoldComplexScript boldComplexScript2 = new BoldComplexScript(); FontSizeComplexScript fontSizeComplexScript6 = new FontSizeComplexScript() { Val = "21" }; runProperties5.Append(boldComplexScript2); runProperties5.Append(fontSizeComplexScript6); Text text4 = new Text(); text4.Text = "共计:" + length + "米"; run5.Append(runProperties5); run5.Append(text4); Run run6 = new Run() { RsidRunAddition = "00CE1671" }; RunProperties runProperties6 = new RunProperties(); RunFonts runFonts4 = new RunFonts() { Hint = FontTypeHintValues.EastAsia }; Bold bold3 = new Bold(); BoldComplexScript boldComplexScript3 = new BoldComplexScript(); FontSizeComplexScript fontSizeComplexScript7 = new FontSizeComplexScript() { Val = "21" }; runProperties6.Append(runFonts4); runProperties6.Append(bold3); runProperties6.Append(boldComplexScript3); runProperties6.Append(fontSizeComplexScript7); TabChar tabChar2 = new TabChar(); run6.Append(runProperties6); run6.Append(tabChar2); Run run7 = new Run() { RsidRunProperties = "00200017" }; RunProperties runProperties7 = new RunProperties(); //RunFonts runFonts5 = new RunFonts() { Hint = FontTypeHintValues.EastAsia }; //Bold bold4 = new Bold(); FontSizeComplexScript fontSizeComplexScript8 = new FontSizeComplexScript() { Val = "28" }; //runProperties7.Append(runFonts5); //runProperties7.Append(bold4); runProperties7.Append(fontSizeComplexScript8); Text text5 = new Text(); text5.Text = "共计:" + page + "页"; run7.Append(runProperties7); run7.Append(text5); paragraph1.Append(paragraphProperties1); paragraph1.Append(run1); paragraph1.Append(run2); paragraph1.Append(run3); paragraph1.Append(run4); paragraph1.Append(run5); paragraph1.Append(run6); paragraph1.Append(run7); return paragraph1; }
private static void AddStyleToTableRestOfRows(Table iTable) { //for rest of rows of table IEnumerable <TableRow> restOfTableRows = iTable.Elements <TableRow>().Skip(1); foreach (var restOfTableRow in restOfTableRows) { TableRowProperties tableRowProperties1 = new TableRowProperties(); TableJustification tableJustification2 = new TableJustification() { Val = TableRowAlignmentValues.Center }; tableRowProperties1.Append(tableJustification2); restOfTableRow.Append(tableRowProperties1); IEnumerable <TableCell> iTableCells = restOfTableRow.Elements <TableCell>(); foreach (var iTableCell in iTableCells) { TableCellBorders tableCellBorders1 = new TableCellBorders(); BottomBorder bottomBorder1 = new BottomBorder() { Val = BorderValues.Single, Color = "8EAADB", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; tableCellBorders1.Append(bottomBorder1); iTableCell.TableCellProperties.Append(tableCellBorders1); iTableCell.TableCellProperties.Shading = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "auto" }; Paragraph iParagraph = iTableCell.Elements <Paragraph>().ElementAt(0); if (iParagraph != null) { ParagraphMarkRunProperties iParagraphMarkRunProperties = new ParagraphMarkRunProperties(); if (iParagraphMarkRunProperties != null) { RunFonts runFonts2 = new RunFonts() { Ascii = "Calibri", HighAnsi = "Calibri", ComplexScript = "Calibri" }; FontSize fontSize2 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript2 = new FontSizeComplexScript() { Val = "16" }; iParagraphMarkRunProperties.Append(runFonts2); iParagraphMarkRunProperties.Append(fontSize2); iParagraphMarkRunProperties.Append(fontSizeComplexScript2); iParagraph.ParagraphProperties.ParagraphMarkRunProperties = iParagraphMarkRunProperties; } Run iRun2 = iParagraph.Elements <Run>().ElementAt(0); if (iRun2 != null) { RunFonts runFonts3 = new RunFonts() { Ascii = "Calibri", HighAnsi = "Calibri", ComplexScript = "Calibri" }; iRun2.RunProperties.Append(runFonts3); iRun2.RunProperties.FontSize = new FontSize() { Val = "16" }; iRun2.RunProperties.FontSizeComplexScript = new FontSizeComplexScript() { Val = "16" }; } } } //end of foreach table cell } //end of foreach rest of table rows }
private static Footer GetFooter() { // <w:ftr mc:Ignorable="w14 wp14" // <w:p w14:paraId="2F58EA34" // w14:textId="77777777" // w:rsidR="006B06AF" // w:rsidRPr="006B06AF" // w:rsidRDefault="006B06AF" // w:rsidP="006B06AF"> // <w:pPr> // <w:pStyle w:val="Piedepgina"/> // <w:pBdr> // <w:top w:val="single" // w:sz="4" // w:space="1" // w:color="auto"/> // </w:pBdr> // <w:jc w:val="right"/> // <w:rPr> // <w:rFonts w:ascii="Verdana" // w:hAnsi="Verdana"/> // <w:color w:val="000000"/> // <w:sz w:val="18"/> // </w:rPr> // </w:pPr> // <w:r> // <w:rPr> // <w:rFonts w:ascii="Verdana" // w:hAnsi="Verdana"/> // <w:color w:val="000000"/> // <w:sz w:val="18"/> // </w:rPr> // <w:t>Editorial Errepar</w:t> // </w:r> // </w:p> //</w:ftr> Footer f = new Footer(); Paragraph p = new Paragraph(); ParagraphProperties pp = new ParagraphProperties(); ParagraphStyleId pStyle = new ParagraphStyleId() { Val = "Piedepagina" }; TopBorder tb = new TopBorder { Val = new EnumValue <BorderValues>(BorderValues.Single), Size = 4, Space = 1, Color = "auto" }; ParagraphBorders pb = new ParagraphBorders { TopBorder = tb }; pp.Append(pStyle, pb); Justification jc = new Justification() { Val = new EnumValue <JustificationValues>(JustificationValues.Right) }; pp.Append(jc); ParagraphMarkRunProperties prpr = new ParagraphMarkRunProperties(); RunFonts prf = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana" }; Color pc = new Color() { Val = "000000" }; FontSize psz = new FontSize() { Val = "18" }; prpr.Append(prf, pc, psz); pp.Append(prpr); Run r = new Run(); RunProperties rp = new RunProperties(); RunFonts rf = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana" }; Color c = new Color() { Val = "000000" }; FontSize sz = new FontSize() { Val = "18" }; rp.Append(rf, c, sz); r.Append(rp); Text text = new Text() { Text = "Editorial Errepar" }; r.Append(text); p.Append(pp, r); f.Append(p); return(f); }
private static List <OpenXmlElement> TextParagraphStyle(string texto) { // <w:p w14:paraId="2F58E944" // w14:textId="77777777" // w:rsidR="00F653E2" // w:rsidRPr="00CE2347" // w:rsidRDefault="006B06AF"> // <w:pPr> // <w:pStyle w:val="sangrianovedades"/> // <w:divId w:val="1202479076"/> // <w:rPr> // <w:rFonts w:cs="Arial"/> // <w:lang w:val="es-ES"/> // </w:rPr> // </w:pPr> // <w:r w:rsidRPr="00CE2347"> // <w:rPr> // <w:rFonts w:cs="Arial"/> // <w:lang w:val="es-ES"/> // </w:rPr> // <w:t>La administración de consorcios no puede ejercerse a título oneroso ni gratuito sin la previa inscripción en el Registro Público de Administradores de Consorcios de Propiedad Horizontal.</w:t> // </w:r> //</w:p> List <OpenXmlElement> parrafos = new List <OpenXmlElement>(); foreach (string linea in texto.Split('\r')) { Paragraph p = new Paragraph(); ParagraphProperties pp = new ParagraphProperties(); ParagraphStyleId ps = new ParagraphStyleId() { Val = "sangrianovedades" }; pp.Append(ps); ParagraphMarkRunProperties prpr = new ParagraphMarkRunProperties(); RunFonts prf = new RunFonts() { ComplexScript = "Arial" }; Languages pLang = new Languages() { Val = "es-ES" }; prpr.Append(prf); prpr.Append(pLang); pp.Append(prpr); p.Append(pp); Run r = new Run(); RunProperties rpr = new RunProperties(); RunFonts rFonts = new RunFonts() { ComplexScript = "Arial" }; Languages lang = new Languages() { Val = "es-ES" }; rpr.Append(rFonts); rpr.Append(lang); r.Append(rpr); Text text = new Text() { Text = linea }; r.Append(text); p.Append(r); parrafos.Add(p); } return(parrafos); }
private static Paragraph TitleParagraphStyle(string texto) { // <w:p w14:paraId="2F58E943" // w14:textId="77777777" // w:rsidR="00F653E2" // w:rsidRPr="00CE2347" // w:rsidRDefault="006B06AF"> // <w:pPr> // <w:pStyle w:val="titulocp11craya"/> // <w:divId w:val="1202479076"/> // <w:rPr> // <w:rFonts w:cs="Arial"/> // <w:lang w:val="es-ES"/> // </w:rPr> // </w:pPr> // <w:r w:rsidRPr="00CE2347"> // <w:rPr> // <w:rFonts w:cs="Arial"/> // <w:lang w:val="es-ES"/> // </w:rPr> // <w:t>INSCRIPCIÓN</w:t> // </w:r> //</w:p> Paragraph p = new Paragraph(); ParagraphProperties pp = new ParagraphProperties(); ParagraphStyleId ps = new ParagraphStyleId() { Val = "titulocp11craya" }; pp.Append(ps); ParagraphMarkRunProperties prpr = new ParagraphMarkRunProperties(); RunFonts prf = new RunFonts() { ComplexScript = "Arial" }; Languages pLang = new Languages() { Val = "es-ES" }; prpr.Append(prf); prpr.Append(pLang); pp.Append(prpr); p.Append(pp); Run r = new Run(); RunProperties rpr = new RunProperties(); RunFonts rFonts = new RunFonts() { ComplexScript = "Arial" }; Languages lang = new Languages() { Val = "es-ES" }; rpr.Append(rFonts); rpr.Append(lang); r.Append(rpr); Text text = new Text() { Text = texto }; r.Append(text); p.Append(r); return(p); }
private static Paragraph TableParagraphStyle(string texto) { /* * <w:p w:rsidR="004F6930" * w:rsidRDefault="00373D15"> * <w:pPr> * <w:pStyle w:val="rotulonovedades"/> * <w:rPr> * <w:rFonts w:cs="Arial"/> * </w:rPr> * </w:pPr> * <w:bookmarkStart w:id="0" * w:name="_GoBack"/> * <w:bookmarkEnd w:id="0"/> * <w:r> * <w:rPr> * <w:rStyle w:val="rotulo1"/> * <w:rFonts w:cs="Arial"/> * </w:rPr> * <w:t>TÍTULO:</w:t> * </w:r> * <w:r> * <w:rPr> * <w:rFonts w:cs="Arial"/> * </w:rPr> * <w:t xml:space="preserve"> </w:t> * </w:r> * </w:p> */ Paragraph p = new Paragraph(); ParagraphProperties pPr = new ParagraphProperties(); ParagraphStyleId pStyle = new ParagraphStyleId() { Val = "rotulonovedades" }; pPr.Append(pStyle); ParagraphMarkRunProperties rPrParagraphProperties = new ParagraphMarkRunProperties(); RunFonts rFontsParagraph = new RunFonts() { ComplexScript = "Arial" }; rPrParagraphProperties.Append(rFontsParagraph); pPr.Append(rPrParagraphProperties); p.Append(pPr); Run r = new Run(); RunProperties rpr = new RunProperties(); RunStyle rStyle = new RunStyle() { Val = "rotulo1" }; RunFonts rPrRun = new RunFonts() { ComplexScript = "Arial" }; rpr.Append(rStyle, rPrRun); r.Append(rpr); Text text = new Text() { Text = texto }; r.Append(text); p.Append(r); Run runEmpty = new Run(); RunProperties rpEmpty = new RunProperties(); RunFonts rfEmpty = new RunFonts() { ComplexScript = "Arial" }; rpEmpty.Append(rfEmpty); runEmpty.Append(rpEmpty); Text textEmpty = new Text() { Space = new EnumValue <SpaceProcessingModeValues>(SpaceProcessingModeValues.Preserve) }; runEmpty.Append(textEmpty); p.Append(runEmpty); return(p); }
// Creates an Document instance and adds its children. public override Document GenerateDocument( ) { Document document1 = new Document( ) { MCAttributes = new MarkupCompatibilityAttributes( ) { Ignorable = "w14 wp14" } }; document1.AddNamespaceDeclaration("wpc", "http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas"); document1.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); document1.AddNamespaceDeclaration("o", "urn:schemas-microsoft-com:office:office"); document1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); document1.AddNamespaceDeclaration("m", "http://schemas.openxmlformats.org/officeDocument/2006/math"); document1.AddNamespaceDeclaration("v", "urn:schemas-microsoft-com:vml"); document1.AddNamespaceDeclaration("wp14", "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing"); document1.AddNamespaceDeclaration("wp", "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"); document1.AddNamespaceDeclaration("w10", "urn:schemas-microsoft-com:office:word"); document1.AddNamespaceDeclaration("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main"); document1.AddNamespaceDeclaration("w14", "http://schemas.microsoft.com/office/word/2010/wordml"); document1.AddNamespaceDeclaration("wpg", "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup"); document1.AddNamespaceDeclaration("wpi", "http://schemas.microsoft.com/office/word/2010/wordprocessingInk"); document1.AddNamespaceDeclaration("wne", "http://schemas.microsoft.com/office/word/2006/wordml"); document1.AddNamespaceDeclaration("wps", "http://schemas.microsoft.com/office/word/2010/wordprocessingShape"); Body body1 = new Body( ); Paragraph paragraph1 = new Paragraph( ) { RsidParagraphMarkRevision = "009247D5", RsidParagraphAddition = "00632292", RsidRunAdditionDefault = "009247D5" }; //--------------------------------------------- M.Paragraph paragraph2 = new M.Paragraph( ); M.OfficeMath officeMath1 = new M.OfficeMath( ); //--------------------------------------------- M.MathFunction mathFunction1 = MakeMath003_Function( ); officeMath1.Append(OpenDocxMathExprs.MakeScriptLower("N", "Rd,c")); officeMath1.Append(OpenDocxMathExprs.MakeMathRun("=")); officeMath1.Append(OpenDocxMathExprs.MakeMathRun("0.60")); officeMath1.Append(OpenDocxMathExprs.MakeMathRunNoteMult( )); officeMath1.Append(mathFunction1); officeMath1.Append(OpenDocxMathExprs.MakeMathRunNoteMult( )); officeMath1.Append(OpenDocxMathExprs.MakeScriptLower("f", "ck")); //--------------------------------------------- paragraph2.Append(officeMath1); paragraph1.Append(paragraph2); //--------------------------------------------- Paragraph paragraph3 = new Paragraph( ) { RsidParagraphMarkRevision = "009247D5", RsidParagraphAddition = "009247D5", RsidRunAdditionDefault = "009247D5" }; ParagraphProperties paragraphProperties1 = new ParagraphProperties( ); ParagraphMarkRunProperties paragraphMarkRunProperties1 = new ParagraphMarkRunProperties( ); RunFonts runFonts20 = new RunFonts( ) { Hint = FontTypeHintValues.EastAsia }; paragraphMarkRunProperties1.Append(runFonts20); paragraphProperties1.Append(paragraphMarkRunProperties1); BookmarkStart bookmarkStart1 = new BookmarkStart( ) { Name = "_GoBack", Id = "0" }; BookmarkEnd bookmarkEnd1 = new BookmarkEnd( ) { Id = "0" }; paragraph3.Append(paragraphProperties1); paragraph3.Append(bookmarkStart1); paragraph3.Append(bookmarkEnd1); Paragraph paragraph4 = new Paragraph( ) { RsidParagraphAddition = "00632292", RsidRunAdditionDefault = "00632292" }; SectionProperties sectionProperties1 = new SectionProperties( ) { RsidR = "00632292" }; PageSize pageSize1 = new PageSize( ) { Width = ( UInt32Value )11906U, Height = ( UInt32Value )16838U }; PageMargin pageMargin1 = new PageMargin( ) { Top = 1440, Right = ( UInt32Value )1800U, Bottom = 1440, Left = ( UInt32Value )1800U, Header = ( UInt32Value )851U, Footer = ( UInt32Value )992U, Gutter = ( UInt32Value )0U }; Columns columns1 = new Columns( ) { Space = "425" }; DocGrid docGrid1 = new DocGrid( ) { Type = DocGridValues.Lines, LinePitch = 312 }; sectionProperties1.Append(pageSize1); sectionProperties1.Append(pageMargin1); sectionProperties1.Append(columns1); sectionProperties1.Append(docGrid1); //--------------------------------------------- body1.Append(paragraph1); body1.Append(paragraph3); body1.Append(paragraph4); body1.Append(sectionProperties1); document1.Append(body1); return(document1); }
public static void GenerateNumberingDefinitionsPart1Content(NumberingDefinitionsPart numberingDefinitionsPart1) { Numbering numbering1 = new Numbering() { MCAttributes = new MarkupCompatibilityAttributes() { Ignorable = "w14 w15 w16se w16cid wp14" } }; numbering1.AddNamespaceDeclaration("wpc", "http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas"); numbering1.AddNamespaceDeclaration("cx", "http://schemas.microsoft.com/office/drawing/2014/chartex"); numbering1.AddNamespaceDeclaration("cx1", "http://schemas.microsoft.com/office/drawing/2015/9/8/chartex"); numbering1.AddNamespaceDeclaration("cx2", "http://schemas.microsoft.com/office/drawing/2015/10/21/chartex"); numbering1.AddNamespaceDeclaration("cx3", "http://schemas.microsoft.com/office/drawing/2016/5/9/chartex"); numbering1.AddNamespaceDeclaration("cx4", "http://schemas.microsoft.com/office/drawing/2016/5/10/chartex"); numbering1.AddNamespaceDeclaration("cx5", "http://schemas.microsoft.com/office/drawing/2016/5/11/chartex"); numbering1.AddNamespaceDeclaration("cx6", "http://schemas.microsoft.com/office/drawing/2016/5/12/chartex"); numbering1.AddNamespaceDeclaration("cx7", "http://schemas.microsoft.com/office/drawing/2016/5/13/chartex"); numbering1.AddNamespaceDeclaration("cx8", "http://schemas.microsoft.com/office/drawing/2016/5/14/chartex"); numbering1.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); numbering1.AddNamespaceDeclaration("aink", "http://schemas.microsoft.com/office/drawing/2016/ink"); numbering1.AddNamespaceDeclaration("am3d", "http://schemas.microsoft.com/office/drawing/2017/model3d"); numbering1.AddNamespaceDeclaration("o", "urn:schemas-microsoft-com:office:office"); numbering1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); numbering1.AddNamespaceDeclaration("m", "http://schemas.openxmlformats.org/officeDocument/2006/math"); numbering1.AddNamespaceDeclaration("v", "urn:schemas-microsoft-com:vml"); numbering1.AddNamespaceDeclaration("wp14", "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing"); numbering1.AddNamespaceDeclaration("wp", "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"); numbering1.AddNamespaceDeclaration("w10", "urn:schemas-microsoft-com:office:word"); numbering1.AddNamespaceDeclaration("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main"); numbering1.AddNamespaceDeclaration("w14", "http://schemas.microsoft.com/office/word/2010/wordml"); numbering1.AddNamespaceDeclaration("w15", "http://schemas.microsoft.com/office/word/2012/wordml"); numbering1.AddNamespaceDeclaration("w16cid", "http://schemas.microsoft.com/office/word/2016/wordml/cid"); numbering1.AddNamespaceDeclaration("w16se", "http://schemas.microsoft.com/office/word/2015/wordml/symex"); numbering1.AddNamespaceDeclaration("wpg", "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup"); numbering1.AddNamespaceDeclaration("wpi", "http://schemas.microsoft.com/office/word/2010/wordprocessingInk"); numbering1.AddNamespaceDeclaration("wne", "http://schemas.microsoft.com/office/word/2006/wordml"); numbering1.AddNamespaceDeclaration("wps", "http://schemas.microsoft.com/office/word/2010/wordprocessingShape"); AbstractNum abstractNum1 = new AbstractNum() { AbstractNumberId = 0 }; abstractNum1.SetAttribute(new OpenXmlAttribute("w15", "restartNumberingAfterBreak", "http://schemas.microsoft.com/office/word/2012/wordml", "0")); Nsid nsid1 = new Nsid() { Val = "1FFE17EE" }; MultiLevelType multiLevelType1 = new MultiLevelType() { Val = MultiLevelValues.HybridMultilevel }; TemplateCode templateCode1 = new TemplateCode() { Val = "65746D14" }; Level level1 = new Level() { LevelIndex = 0, TemplateCode = "04260001" }; StartNumberingValue startNumberingValue1 = new StartNumberingValue() { Val = 1 }; NumberingFormat numberingFormat1 = new NumberingFormat() { Val = NumberFormatValues.Bullet }; LevelText levelText1 = new LevelText() { Val = "·" }; LevelJustification levelJustification1 = new LevelJustification() { Val = LevelJustificationValues.Left }; PreviousParagraphProperties previousParagraphProperties1 = new PreviousParagraphProperties(); Indentation indentation2 = new Indentation() { Start = "720", Hanging = "360" }; previousParagraphProperties1.Append(indentation2); NumberingSymbolRunProperties numberingSymbolRunProperties1 = new NumberingSymbolRunProperties(); RunFonts runFonts2 = new RunFonts() { Hint = FontTypeHintValues.Default, Ascii = "Symbol", HighAnsi = "Symbol" }; numberingSymbolRunProperties1.Append(runFonts2); level1.Append(startNumberingValue1); level1.Append(numberingFormat1); level1.Append(levelText1); level1.Append(levelJustification1); level1.Append(previousParagraphProperties1); level1.Append(numberingSymbolRunProperties1); Level level2 = new Level() { LevelIndex = 1, TemplateCode = "04260003", Tentative = true }; StartNumberingValue startNumberingValue2 = new StartNumberingValue() { Val = 1 }; NumberingFormat numberingFormat2 = new NumberingFormat() { Val = NumberFormatValues.Bullet }; LevelText levelText2 = new LevelText() { Val = "o" }; LevelJustification levelJustification2 = new LevelJustification() { Val = LevelJustificationValues.Left }; PreviousParagraphProperties previousParagraphProperties2 = new PreviousParagraphProperties(); Indentation indentation3 = new Indentation() { Start = "1440", Hanging = "360" }; previousParagraphProperties2.Append(indentation3); NumberingSymbolRunProperties numberingSymbolRunProperties2 = new NumberingSymbolRunProperties(); RunFonts runFonts3 = new RunFonts() { Hint = FontTypeHintValues.Default, Ascii = "Courier New", HighAnsi = "Courier New", ComplexScript = "Courier New" }; numberingSymbolRunProperties2.Append(runFonts3); level2.Append(startNumberingValue2); level2.Append(numberingFormat2); level2.Append(levelText2); level2.Append(levelJustification2); level2.Append(previousParagraphProperties2); level2.Append(numberingSymbolRunProperties2); Level level3 = new Level() { LevelIndex = 2, TemplateCode = "04260005", Tentative = true }; StartNumberingValue startNumberingValue3 = new StartNumberingValue() { Val = 1 }; NumberingFormat numberingFormat3 = new NumberingFormat() { Val = NumberFormatValues.Bullet }; LevelText levelText3 = new LevelText() { Val = "§" }; LevelJustification levelJustification3 = new LevelJustification() { Val = LevelJustificationValues.Left }; PreviousParagraphProperties previousParagraphProperties3 = new PreviousParagraphProperties(); Indentation indentation4 = new Indentation() { Start = "2160", Hanging = "360" }; previousParagraphProperties3.Append(indentation4); NumberingSymbolRunProperties numberingSymbolRunProperties3 = new NumberingSymbolRunProperties(); RunFonts runFonts4 = new RunFonts() { Hint = FontTypeHintValues.Default, Ascii = "Wingdings", HighAnsi = "Wingdings" }; numberingSymbolRunProperties3.Append(runFonts4); level3.Append(startNumberingValue3); level3.Append(numberingFormat3); level3.Append(levelText3); level3.Append(levelJustification3); level3.Append(previousParagraphProperties3); level3.Append(numberingSymbolRunProperties3); Level level4 = new Level() { LevelIndex = 3, TemplateCode = "04260001", Tentative = true }; StartNumberingValue startNumberingValue4 = new StartNumberingValue() { Val = 1 }; NumberingFormat numberingFormat4 = new NumberingFormat() { Val = NumberFormatValues.Bullet }; LevelText levelText4 = new LevelText() { Val = "·" }; LevelJustification levelJustification4 = new LevelJustification() { Val = LevelJustificationValues.Left }; PreviousParagraphProperties previousParagraphProperties4 = new PreviousParagraphProperties(); Indentation indentation5 = new Indentation() { Start = "2880", Hanging = "360" }; previousParagraphProperties4.Append(indentation5); NumberingSymbolRunProperties numberingSymbolRunProperties4 = new NumberingSymbolRunProperties(); RunFonts runFonts5 = new RunFonts() { Hint = FontTypeHintValues.Default, Ascii = "Symbol", HighAnsi = "Symbol" }; numberingSymbolRunProperties4.Append(runFonts5); level4.Append(startNumberingValue4); level4.Append(numberingFormat4); level4.Append(levelText4); level4.Append(levelJustification4); level4.Append(previousParagraphProperties4); level4.Append(numberingSymbolRunProperties4); Level level5 = new Level() { LevelIndex = 4, TemplateCode = "04260003", Tentative = true }; StartNumberingValue startNumberingValue5 = new StartNumberingValue() { Val = 1 }; NumberingFormat numberingFormat5 = new NumberingFormat() { Val = NumberFormatValues.Bullet }; LevelText levelText5 = new LevelText() { Val = "o" }; LevelJustification levelJustification5 = new LevelJustification() { Val = LevelJustificationValues.Left }; PreviousParagraphProperties previousParagraphProperties5 = new PreviousParagraphProperties(); Indentation indentation6 = new Indentation() { Start = "3600", Hanging = "360" }; previousParagraphProperties5.Append(indentation6); NumberingSymbolRunProperties numberingSymbolRunProperties5 = new NumberingSymbolRunProperties(); RunFonts runFonts6 = new RunFonts() { Hint = FontTypeHintValues.Default, Ascii = "Courier New", HighAnsi = "Courier New", ComplexScript = "Courier New" }; numberingSymbolRunProperties5.Append(runFonts6); level5.Append(startNumberingValue5); level5.Append(numberingFormat5); level5.Append(levelText5); level5.Append(levelJustification5); level5.Append(previousParagraphProperties5); level5.Append(numberingSymbolRunProperties5); Level level6 = new Level() { LevelIndex = 5, TemplateCode = "04260005", Tentative = true }; StartNumberingValue startNumberingValue6 = new StartNumberingValue() { Val = 1 }; NumberingFormat numberingFormat6 = new NumberingFormat() { Val = NumberFormatValues.Bullet }; LevelText levelText6 = new LevelText() { Val = "§" }; LevelJustification levelJustification6 = new LevelJustification() { Val = LevelJustificationValues.Left }; PreviousParagraphProperties previousParagraphProperties6 = new PreviousParagraphProperties(); Indentation indentation7 = new Indentation() { Start = "4320", Hanging = "360" }; previousParagraphProperties6.Append(indentation7); NumberingSymbolRunProperties numberingSymbolRunProperties6 = new NumberingSymbolRunProperties(); RunFonts runFonts7 = new RunFonts() { Hint = FontTypeHintValues.Default, Ascii = "Wingdings", HighAnsi = "Wingdings" }; numberingSymbolRunProperties6.Append(runFonts7); level6.Append(startNumberingValue6); level6.Append(numberingFormat6); level6.Append(levelText6); level6.Append(levelJustification6); level6.Append(previousParagraphProperties6); level6.Append(numberingSymbolRunProperties6); Level level7 = new Level() { LevelIndex = 6, TemplateCode = "04260001", Tentative = true }; StartNumberingValue startNumberingValue7 = new StartNumberingValue() { Val = 1 }; NumberingFormat numberingFormat7 = new NumberingFormat() { Val = NumberFormatValues.Bullet }; LevelText levelText7 = new LevelText() { Val = "·" }; LevelJustification levelJustification7 = new LevelJustification() { Val = LevelJustificationValues.Left }; PreviousParagraphProperties previousParagraphProperties7 = new PreviousParagraphProperties(); Indentation indentation8 = new Indentation() { Start = "5040", Hanging = "360" }; previousParagraphProperties7.Append(indentation8); NumberingSymbolRunProperties numberingSymbolRunProperties7 = new NumberingSymbolRunProperties(); RunFonts runFonts8 = new RunFonts() { Hint = FontTypeHintValues.Default, Ascii = "Symbol", HighAnsi = "Symbol" }; numberingSymbolRunProperties7.Append(runFonts8); level7.Append(startNumberingValue7); level7.Append(numberingFormat7); level7.Append(levelText7); level7.Append(levelJustification7); level7.Append(previousParagraphProperties7); level7.Append(numberingSymbolRunProperties7); Level level8 = new Level() { LevelIndex = 7, TemplateCode = "04260003", Tentative = true }; StartNumberingValue startNumberingValue8 = new StartNumberingValue() { Val = 1 }; NumberingFormat numberingFormat8 = new NumberingFormat() { Val = NumberFormatValues.Bullet }; LevelText levelText8 = new LevelText() { Val = "o" }; LevelJustification levelJustification8 = new LevelJustification() { Val = LevelJustificationValues.Left }; PreviousParagraphProperties previousParagraphProperties8 = new PreviousParagraphProperties(); Indentation indentation9 = new Indentation() { Start = "5760", Hanging = "360" }; previousParagraphProperties8.Append(indentation9); NumberingSymbolRunProperties numberingSymbolRunProperties8 = new NumberingSymbolRunProperties(); RunFonts runFonts9 = new RunFonts() { Hint = FontTypeHintValues.Default, Ascii = "Courier New", HighAnsi = "Courier New", ComplexScript = "Courier New" }; numberingSymbolRunProperties8.Append(runFonts9); level8.Append(startNumberingValue8); level8.Append(numberingFormat8); level8.Append(levelText8); level8.Append(levelJustification8); level8.Append(previousParagraphProperties8); level8.Append(numberingSymbolRunProperties8); Level level9 = new Level() { LevelIndex = 8, TemplateCode = "04260005", Tentative = true }; StartNumberingValue startNumberingValue9 = new StartNumberingValue() { Val = 1 }; NumberingFormat numberingFormat9 = new NumberingFormat() { Val = NumberFormatValues.Bullet }; LevelText levelText9 = new LevelText() { Val = "§" }; LevelJustification levelJustification9 = new LevelJustification() { Val = LevelJustificationValues.Left }; PreviousParagraphProperties previousParagraphProperties9 = new PreviousParagraphProperties(); Indentation indentation10 = new Indentation() { Start = "6480", Hanging = "360" }; previousParagraphProperties9.Append(indentation10); NumberingSymbolRunProperties numberingSymbolRunProperties9 = new NumberingSymbolRunProperties(); RunFonts runFonts10 = new RunFonts() { Hint = FontTypeHintValues.Default, Ascii = "Wingdings", HighAnsi = "Wingdings" }; numberingSymbolRunProperties9.Append(runFonts10); level9.Append(startNumberingValue9); level9.Append(numberingFormat9); level9.Append(levelText9); level9.Append(levelJustification9); level9.Append(previousParagraphProperties9); level9.Append(numberingSymbolRunProperties9); abstractNum1.Append(nsid1); abstractNum1.Append(multiLevelType1); abstractNum1.Append(templateCode1); abstractNum1.Append(level1); abstractNum1.Append(level2); abstractNum1.Append(level3); abstractNum1.Append(level4); abstractNum1.Append(level5); abstractNum1.Append(level6); abstractNum1.Append(level7); abstractNum1.Append(level8); abstractNum1.Append(level9); NumberingInstance numberingInstance1 = new NumberingInstance() { NumberID = 1 }; AbstractNumId abstractNumId1 = new AbstractNumId() { Val = 0 }; numberingInstance1.Append(abstractNumId1); numbering1.Append(abstractNum1); numbering1.Append(numberingInstance1); numberingDefinitionsPart1.Numbering = numbering1; }
// 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 runFonts111 = new RunFonts() { AsciiTheme = ThemeFontValues.MinorHighAnsi, HighAnsiTheme = ThemeFontValues.MinorHighAnsi, EastAsiaTheme = ThemeFontValues.MinorHighAnsi, ComplexScriptTheme = ThemeFontValues.MinorBidi }; FontSize fontSize111 = new FontSize() { Val = "22" }; FontSizeComplexScript fontSizeComplexScript111 = new FontSizeComplexScript() { Val = "22" }; Languages languages1 = new Languages() { Val = "ru-RU", EastAsia = "en-US", Bidi = "ar-SA" }; runPropertiesBaseStyle1.Append(runFonts111); runPropertiesBaseStyle1.Append(fontSize111); runPropertiesBaseStyle1.Append(fontSizeComplexScript111); runPropertiesBaseStyle1.Append(languages1); runPropertiesDefault1.Append(runPropertiesBaseStyle1); ParagraphPropertiesDefault paragraphPropertiesDefault1 = new ParagraphPropertiesDefault(); ParagraphPropertiesBaseStyle paragraphPropertiesBaseStyle1 = new ParagraphPropertiesBaseStyle(); SpacingBetweenLines spacingBetweenLines39 = new SpacingBetweenLines() { After = "200", Line = "276", LineRule = LineSpacingRuleValues.Auto }; paragraphPropertiesBaseStyle1.Append(spacingBetweenLines39); 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 = "a", Default = true }; StyleName styleName1 = new StyleName() { Val = "Normal" }; PrimaryStyle primaryStyle1 = new PrimaryStyle(); Rsid rsid6 = new Rsid() { Val = "00900A10" }; StyleRunProperties styleRunProperties1 = new StyleRunProperties(); RunFonts runFonts112 = new RunFonts() { EastAsiaTheme = ThemeFontValues.MinorEastAsia }; Languages languages2 = new Languages() { EastAsia = "ru-RU" }; styleRunProperties1.Append(runFonts112); styleRunProperties1.Append(languages2); style1.Append(styleName1); style1.Append(primaryStyle1); style1.Append(rsid6); style1.Append(styleRunProperties1); Style style2 = new Style() { Type = StyleValues.Character, StyleId = "a0", 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); Style style3 = new Style() { Type = StyleValues.Table, StyleId = "a1", 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 tableIndentation4 = new TableIndentation() { Width = 0, Type = TableWidthUnitValues.Dxa }; TableCellMarginDefault tableCellMarginDefault4 = new TableCellMarginDefault(); TopMargin topMargin1 = new TopMargin() { Width = "0", Type = TableWidthUnitValues.Dxa }; TableCellLeftMargin tableCellLeftMargin4 = new TableCellLeftMargin() { Width = 108, Type = TableWidthValues.Dxa }; BottomMargin bottomMargin1 = new BottomMargin() { Width = "0", Type = TableWidthUnitValues.Dxa }; TableCellRightMargin tableCellRightMargin4 = new TableCellRightMargin() { Width = 108, Type = TableWidthValues.Dxa }; tableCellMarginDefault4.Append(topMargin1); tableCellMarginDefault4.Append(tableCellLeftMargin4); tableCellMarginDefault4.Append(bottomMargin1); tableCellMarginDefault4.Append(tableCellRightMargin4); styleTableProperties1.Append(tableIndentation4); styleTableProperties1.Append(tableCellMarginDefault4); style3.Append(styleName3); style3.Append(uIPriority2); style3.Append(semiHidden2); style3.Append(unhideWhenUsed2); style3.Append(styleTableProperties1); Style style4 = new Style() { Type = StyleValues.Numbering, StyleId = "a2", Default = true }; StyleName styleName4 = new StyleName() { Val = "No List" }; UIPriority uIPriority3 = new UIPriority() { Val = 99 }; SemiHidden semiHidden3 = new SemiHidden(); UnhideWhenUsed unhideWhenUsed3 = new UnhideWhenUsed(); style4.Append(styleName4); style4.Append(uIPriority3); style4.Append(semiHidden3); style4.Append(unhideWhenUsed3); Style style5 = new Style() { Type = StyleValues.Table, StyleId = "a3" }; StyleName styleName5 = new StyleName() { Val = "Table Grid" }; BasedOn basedOn1 = new BasedOn() { Val = "a1" }; UIPriority uIPriority4 = new UIPriority() { Val = 59 }; Rsid rsid7 = new Rsid() { Val = "00D60978" }; StyleParagraphProperties styleParagraphProperties1 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines40 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; styleParagraphProperties1.Append(spacingBetweenLines40); StyleTableProperties styleTableProperties2 = new StyleTableProperties(); TableIndentation tableIndentation5 = new TableIndentation() { Width = 0, Type = TableWidthUnitValues.Dxa }; TableBorders tableBorders2 = new TableBorders(); TopBorder topBorder19 = new TopBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; LeftBorder leftBorder18 = new LeftBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; BottomBorder bottomBorder18 = new BottomBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; RightBorder rightBorder18 = 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 }; tableBorders2.Append(topBorder19); tableBorders2.Append(leftBorder18); tableBorders2.Append(bottomBorder18); tableBorders2.Append(rightBorder18); tableBorders2.Append(insideHorizontalBorder2); tableBorders2.Append(insideVerticalBorder2); TableCellMarginDefault tableCellMarginDefault5 = new TableCellMarginDefault(); TopMargin topMargin2 = new TopMargin() { Width = "0", Type = TableWidthUnitValues.Dxa }; TableCellLeftMargin tableCellLeftMargin5 = new TableCellLeftMargin() { Width = 108, Type = TableWidthValues.Dxa }; BottomMargin bottomMargin2 = new BottomMargin() { Width = "0", Type = TableWidthUnitValues.Dxa }; TableCellRightMargin tableCellRightMargin5 = new TableCellRightMargin() { Width = 108, Type = TableWidthValues.Dxa }; tableCellMarginDefault5.Append(topMargin2); tableCellMarginDefault5.Append(tableCellLeftMargin5); tableCellMarginDefault5.Append(bottomMargin2); tableCellMarginDefault5.Append(tableCellRightMargin5); styleTableProperties2.Append(tableIndentation5); styleTableProperties2.Append(tableBorders2); styleTableProperties2.Append(tableCellMarginDefault5); style5.Append(styleName5); style5.Append(basedOn1); style5.Append(uIPriority4); style5.Append(rsid7); style5.Append(styleParagraphProperties1); style5.Append(styleTableProperties2); styles1.Append(docDefaults1); styles1.Append(latentStyles1); styles1.Append(style1); styles1.Append(style2); styles1.Append(style3); styles1.Append(style4); styles1.Append(style5); stylesWithEffectsPart1.Styles = styles1; }
// Generates content of mainDocumentPart1. private void GenerateMainDocumentPart1Content(MainDocumentPart mainDocumentPart1, objPatientContract obj) { Document document1 = new Document() { MCAttributes = new MarkupCompatibilityAttributes() { Ignorable = "w14 wp14" } }; document1.AddNamespaceDeclaration("wpc", "http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas"); document1.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); document1.AddNamespaceDeclaration("o", "urn:schemas-microsoft-com:office:office"); document1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); document1.AddNamespaceDeclaration("m", "http://schemas.openxmlformats.org/officeDocument/2006/math"); document1.AddNamespaceDeclaration("v", "urn:schemas-microsoft-com:vml"); document1.AddNamespaceDeclaration("wp14", "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing"); document1.AddNamespaceDeclaration("wp", "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"); document1.AddNamespaceDeclaration("w10", "urn:schemas-microsoft-com:office:word"); document1.AddNamespaceDeclaration("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main"); document1.AddNamespaceDeclaration("w14", "http://schemas.microsoft.com/office/word/2010/wordml"); document1.AddNamespaceDeclaration("wpg", "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup"); document1.AddNamespaceDeclaration("wpi", "http://schemas.microsoft.com/office/word/2010/wordprocessingInk"); document1.AddNamespaceDeclaration("wne", "http://schemas.microsoft.com/office/word/2006/wordml"); document1.AddNamespaceDeclaration("wps", "http://schemas.microsoft.com/office/word/2010/wordprocessingShape"); Body body1 = new Body(); Paragraph paragraph1 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00900A10", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties1 = new ParagraphProperties(); WidowControl widowControl1 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE1 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN1 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent1 = new AdjustRightIndent() { Val = false }; SpacingBetweenLines spacingBetweenLines1 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties1 = new ParagraphMarkRunProperties(); RunFonts runFonts1 = new RunFonts() { Ascii = "New Roman", HighAnsi = "New Roman", EastAsia = "New Roman", ComplexScript = "Times New Roman" }; FontSize fontSize1 = new FontSize() { Val = "24" }; FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript() { Val = "24" }; paragraphMarkRunProperties1.Append(runFonts1); paragraphMarkRunProperties1.Append(fontSize1); paragraphMarkRunProperties1.Append(fontSizeComplexScript1); paragraphProperties1.Append(widowControl1); paragraphProperties1.Append(autoSpaceDE1); paragraphProperties1.Append(autoSpaceDN1); paragraphProperties1.Append(adjustRightIndent1); paragraphProperties1.Append(spacingBetweenLines1); paragraphProperties1.Append(paragraphMarkRunProperties1); paragraph1.Append(paragraphProperties1); Paragraph paragraph2 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00900A10", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties2 = new ParagraphProperties(); WidowControl widowControl2 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE2 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN2 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent2 = new AdjustRightIndent() { Val = false }; SpacingBetweenLines spacingBetweenLines2 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties2 = new ParagraphMarkRunProperties(); RunFonts runFonts2 = new RunFonts() { Ascii = "New Roman", HighAnsi = "New Roman", EastAsia = "New Roman", ComplexScript = "Times New Roman" }; FontSize fontSize2 = new FontSize() { Val = "24" }; FontSizeComplexScript fontSizeComplexScript2 = new FontSizeComplexScript() { Val = "24" }; paragraphMarkRunProperties2.Append(runFonts2); paragraphMarkRunProperties2.Append(fontSize2); paragraphMarkRunProperties2.Append(fontSizeComplexScript2); paragraphProperties2.Append(widowControl2); paragraphProperties2.Append(autoSpaceDE2); paragraphProperties2.Append(autoSpaceDN2); paragraphProperties2.Append(adjustRightIndent2); paragraphProperties2.Append(spacingBetweenLines2); paragraphProperties2.Append(paragraphMarkRunProperties2); paragraph2.Append(paragraphProperties2); Paragraph paragraph3 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00900A10", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties3 = new ParagraphProperties(); WidowControl widowControl3 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE3 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN3 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent3 = new AdjustRightIndent() { Val = false }; SpacingBetweenLines spacingBetweenLines3 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; Justification justification1 = new Justification() { Val = JustificationValues.Center }; ParagraphMarkRunProperties paragraphMarkRunProperties3 = new ParagraphMarkRunProperties(); RunFonts runFonts3 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize3 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript3 = new FontSizeComplexScript() { Val = "20" }; paragraphMarkRunProperties3.Append(runFonts3); paragraphMarkRunProperties3.Append(fontSize3); paragraphMarkRunProperties3.Append(fontSizeComplexScript3); paragraphProperties3.Append(widowControl3); paragraphProperties3.Append(autoSpaceDE3); paragraphProperties3.Append(autoSpaceDN3); paragraphProperties3.Append(adjustRightIndent3); paragraphProperties3.Append(spacingBetweenLines3); paragraphProperties3.Append(justification1); paragraphProperties3.Append(paragraphMarkRunProperties3); Run run1 = new Run(); RunProperties runProperties1 = new RunProperties(); RunFonts runFonts4 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize4 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript4 = new FontSizeComplexScript() { Val = "20" }; runProperties1.Append(runFonts4); runProperties1.Append(fontSize4); runProperties1.Append(fontSizeComplexScript4); Text text1 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text1.Text = " "; run1.Append(runProperties1); run1.Append(text1); Run run2 = new Run() { RsidRunAddition = "00D60978" }; RunProperties runProperties2 = new RunProperties(); RunFonts runFonts5 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; Bold bold1 = new Bold(); BoldComplexScript boldComplexScript1 = new BoldComplexScript(); FontSize fontSize5 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript5 = new FontSizeComplexScript() { Val = "20" }; runProperties2.Append(runFonts5); runProperties2.Append(bold1); runProperties2.Append(boldComplexScript1); runProperties2.Append(fontSize5); runProperties2.Append(fontSizeComplexScript5); Text text2 = new Text(); text2.Text = "МИКРОБИОЛОГИЧЕСКОЕ ИССЛЕДОВАНИЕ"; run2.Append(runProperties2); run2.Append(text2); Run run3 = new Run(); RunProperties runProperties3 = new RunProperties(); RunFonts runFonts6 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; Bold bold2 = new Bold(); BoldComplexScript boldComplexScript2 = new BoldComplexScript(); FontSize fontSize6 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript6 = new FontSizeComplexScript() { Val = "20" }; runProperties3.Append(runFonts6); runProperties3.Append(bold2); runProperties3.Append(boldComplexScript2); runProperties3.Append(fontSize6); runProperties3.Append(fontSizeComplexScript6); Text text3 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text3.Text = " № "; run3.Append(runProperties3); run3.Append(text3); Run run4 = new Run() { RsidRunAddition = "00D60978" }; RunProperties runProperties4 = new RunProperties(); RunFonts runFonts7 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; Bold bold3 = new Bold(); BoldComplexScript boldComplexScript3 = new BoldComplexScript(); FontSize fontSize7 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript7 = new FontSizeComplexScript() { Val = "20" }; runProperties4.Append(runFonts7); runProperties4.Append(bold3); runProperties4.Append(boldComplexScript3); runProperties4.Append(fontSize7); runProperties4.Append(fontSizeComplexScript7); Text text4 = new Text(); text4.Text = obj.SampleID ; run4.Append(runProperties4); run4.Append(text4); paragraph3.Append(paragraphProperties3); paragraph3.Append(run1); paragraph3.Append(run2); paragraph3.Append(run3); paragraph3.Append(run4); Paragraph paragraph4 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00900A10", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties4 = new ParagraphProperties(); WidowControl widowControl4 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE4 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN4 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent4 = new AdjustRightIndent() { Val = false }; SpacingBetweenLines spacingBetweenLines4 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; Justification justification2 = new Justification() { Val = JustificationValues.Center }; ParagraphMarkRunProperties paragraphMarkRunProperties4 = new ParagraphMarkRunProperties(); RunFonts runFonts8 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize8 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript8 = new FontSizeComplexScript() { Val = "20" }; paragraphMarkRunProperties4.Append(runFonts8); paragraphMarkRunProperties4.Append(fontSize8); paragraphMarkRunProperties4.Append(fontSizeComplexScript8); paragraphProperties4.Append(widowControl4); paragraphProperties4.Append(autoSpaceDE4); paragraphProperties4.Append(autoSpaceDN4); paragraphProperties4.Append(adjustRightIndent4); paragraphProperties4.Append(spacingBetweenLines4); paragraphProperties4.Append(justification2); paragraphProperties4.Append(paragraphMarkRunProperties4); paragraph4.Append(paragraphProperties4); Table table1 = new Table(); TableProperties tableProperties1 = new TableProperties(); TableStyle tableStyle1 = new TableStyle() { Val = "a3" }; TableWidth tableWidth1 = new TableWidth() { Width = "0", Type = TableWidthUnitValues.Auto }; TableBorders tableBorders1 = new TableBorders(); TopBorder topBorder1 = new TopBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; LeftBorder leftBorder1 = new LeftBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; BottomBorder bottomBorder1 = new BottomBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; RightBorder rightBorder1 = new RightBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; InsideHorizontalBorder insideHorizontalBorder1 = new InsideHorizontalBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; InsideVerticalBorder insideVerticalBorder1 = new InsideVerticalBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; tableBorders1.Append(topBorder1); tableBorders1.Append(leftBorder1); tableBorders1.Append(bottomBorder1); tableBorders1.Append(rightBorder1); tableBorders1.Append(insideHorizontalBorder1); tableBorders1.Append(insideVerticalBorder1); TableLayout tableLayout1 = new TableLayout() { Type = TableLayoutValues.Fixed }; TableLook tableLook1 = new TableLook() { Val = "0000", FirstRow = false, LastRow = false, FirstColumn = false, LastColumn = false, NoHorizontalBand = false, NoVerticalBand = false }; tableProperties1.Append(tableStyle1); tableProperties1.Append(tableWidth1); tableProperties1.Append(tableBorders1); tableProperties1.Append(tableLayout1); tableProperties1.Append(tableLook1); TableGrid tableGrid1 = new TableGrid(); GridColumn gridColumn1 = new GridColumn() { Width = "3500" }; GridColumn gridColumn2 = new GridColumn() { Width = "5500" }; tableGrid1.Append(gridColumn1); tableGrid1.Append(gridColumn2); TableRow tableRow1 = new TableRow() { RsidTableRowAddition = "00900A10", RsidTableRowProperties = "00D60978" }; TableRowProperties tableRowProperties1 = new TableRowProperties(); TableRowHeight tableRowHeight1 = new TableRowHeight() { Val = (UInt32Value)262U }; tableRowProperties1.Append(tableRowHeight1); TableCell tableCell1 = new TableCell(); TableCellProperties tableCellProperties1 = new TableCellProperties(); TableCellWidth tableCellWidth1 = new TableCellWidth() { Width = "3500", Type = TableWidthUnitValues.Dxa }; tableCellProperties1.Append(tableCellWidth1); Paragraph paragraph5 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties5 = new ParagraphProperties(); WidowControl widowControl5 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE5 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN5 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent5 = new AdjustRightIndent() { Val = false }; ParagraphMarkRunProperties paragraphMarkRunProperties5 = new ParagraphMarkRunProperties(); RunFonts runFonts9 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize9 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript9 = new FontSizeComplexScript() { Val = "20" }; paragraphMarkRunProperties5.Append(runFonts9); paragraphMarkRunProperties5.Append(fontSize9); paragraphMarkRunProperties5.Append(fontSizeComplexScript9); paragraphProperties5.Append(widowControl5); paragraphProperties5.Append(autoSpaceDE5); paragraphProperties5.Append(autoSpaceDN5); paragraphProperties5.Append(adjustRightIndent5); paragraphProperties5.Append(paragraphMarkRunProperties5); Run run5 = new Run(); RunProperties runProperties5 = new RunProperties(); RunFonts runFonts10 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; Bold bold4 = new Bold(); BoldComplexScript boldComplexScript4 = new BoldComplexScript(); FontSize fontSize10 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript10 = new FontSizeComplexScript() { Val = "20" }; runProperties5.Append(runFonts10); runProperties5.Append(bold4); runProperties5.Append(boldComplexScript4); runProperties5.Append(fontSize10); runProperties5.Append(fontSizeComplexScript10); Text text5 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text5.Text = "Лечебное учреждение: "; run5.Append(runProperties5); run5.Append(text5); paragraph5.Append(paragraphProperties5); paragraph5.Append(run5); tableCell1.Append(tableCellProperties1); tableCell1.Append(paragraph5); TableCell tableCell2 = new TableCell(); TableCellProperties tableCellProperties2 = new TableCellProperties(); TableCellWidth tableCellWidth2 = new TableCellWidth() { Width = "5500", Type = TableWidthUnitValues.Dxa }; tableCellProperties2.Append(tableCellWidth2); Paragraph paragraph6 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties6 = new ParagraphProperties(); WidowControl widowControl6 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE6 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN6 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent6 = new AdjustRightIndent() { Val = false }; ParagraphMarkRunProperties paragraphMarkRunProperties6 = new ParagraphMarkRunProperties(); RunFonts runFonts11 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize11 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript11 = new FontSizeComplexScript() { Val = "20" }; paragraphMarkRunProperties6.Append(runFonts11); paragraphMarkRunProperties6.Append(fontSize11); paragraphMarkRunProperties6.Append(fontSizeComplexScript11); paragraphProperties6.Append(widowControl6); paragraphProperties6.Append(autoSpaceDE6); paragraphProperties6.Append(autoSpaceDN6); paragraphProperties6.Append(adjustRightIndent6); paragraphProperties6.Append(paragraphMarkRunProperties6); Run run6 = new Run(); RunProperties runProperties6 = new RunProperties(); RunFonts runFonts12 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize12 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript12 = new FontSizeComplexScript() { Val = "20" }; runProperties6.Append(runFonts12); runProperties6.Append(fontSize12); runProperties6.Append(fontSizeComplexScript12); Text text6 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text6.Text = obj.Clinic ; run6.Append(runProperties6); run6.Append(text6); paragraph6.Append(paragraphProperties6); paragraph6.Append(run6); tableCell2.Append(tableCellProperties2); tableCell2.Append(paragraph6); tableRow1.Append(tableRowProperties1); tableRow1.Append(tableCell1); tableRow1.Append(tableCell2); TableRow tableRow2 = new TableRow() { RsidTableRowAddition = "00900A10", RsidTableRowProperties = "00D60978" }; TableRowProperties tableRowProperties2 = new TableRowProperties(); TableRowHeight tableRowHeight2 = new TableRowHeight() { Val = (UInt32Value)262U }; tableRowProperties2.Append(tableRowHeight2); TableCell tableCell3 = new TableCell(); TableCellProperties tableCellProperties3 = new TableCellProperties(); TableCellWidth tableCellWidth3 = new TableCellWidth() { Width = "3500", Type = TableWidthUnitValues.Dxa }; tableCellProperties3.Append(tableCellWidth3); Paragraph paragraph7 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties7 = new ParagraphProperties(); WidowControl widowControl7 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE7 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN7 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent7 = new AdjustRightIndent() { Val = false }; ParagraphMarkRunProperties paragraphMarkRunProperties7 = new ParagraphMarkRunProperties(); RunFonts runFonts13 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize13 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript13 = new FontSizeComplexScript() { Val = "20" }; paragraphMarkRunProperties7.Append(runFonts13); paragraphMarkRunProperties7.Append(fontSize13); paragraphMarkRunProperties7.Append(fontSizeComplexScript13); paragraphProperties7.Append(widowControl7); paragraphProperties7.Append(autoSpaceDE7); paragraphProperties7.Append(autoSpaceDN7); paragraphProperties7.Append(adjustRightIndent7); paragraphProperties7.Append(paragraphMarkRunProperties7); Run run7 = new Run(); RunProperties runProperties7 = new RunProperties(); RunFonts runFonts14 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; Bold bold5 = new Bold(); BoldComplexScript boldComplexScript5 = new BoldComplexScript(); FontSize fontSize14 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript14 = new FontSizeComplexScript() { Val = "20" }; runProperties7.Append(runFonts14); runProperties7.Append(bold5); runProperties7.Append(boldComplexScript5); runProperties7.Append(fontSize14); runProperties7.Append(fontSizeComplexScript14); Text text7 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text7.Text = "Врач: "; run7.Append(runProperties7); run7.Append(text7); paragraph7.Append(paragraphProperties7); paragraph7.Append(run7); tableCell3.Append(tableCellProperties3); tableCell3.Append(paragraph7); TableCell tableCell4 = new TableCell(); TableCellProperties tableCellProperties4 = new TableCellProperties(); TableCellWidth tableCellWidth4 = new TableCellWidth() { Width = "5500", Type = TableWidthUnitValues.Dxa }; tableCellProperties4.Append(tableCellWidth4); Paragraph paragraph8 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties8 = new ParagraphProperties(); WidowControl widowControl8 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE8 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN8 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent8 = new AdjustRightIndent() { Val = false }; ParagraphMarkRunProperties paragraphMarkRunProperties8 = new ParagraphMarkRunProperties(); RunFonts runFonts15 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize15 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript15 = new FontSizeComplexScript() { Val = "20" }; paragraphMarkRunProperties8.Append(runFonts15); paragraphMarkRunProperties8.Append(fontSize15); paragraphMarkRunProperties8.Append(fontSizeComplexScript15); paragraphProperties8.Append(widowControl8); paragraphProperties8.Append(autoSpaceDE8); paragraphProperties8.Append(autoSpaceDN8); paragraphProperties8.Append(adjustRightIndent8); paragraphProperties8.Append(paragraphMarkRunProperties8); ProofError proofError1 = new ProofError() { Type = ProofingErrorValues.SpellStart }; Run run8 = new Run(); RunProperties runProperties8 = new RunProperties(); RunFonts runFonts16 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize16 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript16 = new FontSizeComplexScript() { Val = "20" }; runProperties8.Append(runFonts16); runProperties8.Append(fontSize16); runProperties8.Append(fontSizeComplexScript16); Text text8 = new Text(); text8.Text = obj.DoctorFIO ; run8.Append(runProperties8); run8.Append(text8); ProofError proofError2 = new ProofError() { Type = ProofingErrorValues.SpellEnd }; Run run9 = new Run(); RunProperties runProperties9 = new RunProperties(); RunFonts runFonts17 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize17 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript17 = new FontSizeComplexScript() { Val = "20" }; runProperties9.Append(runFonts17); runProperties9.Append(fontSize17); runProperties9.Append(fontSizeComplexScript17); Text text9 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text9.Text = ""; run9.Append(runProperties9); run9.Append(text9); paragraph8.Append(paragraphProperties8); paragraph8.Append(proofError1); paragraph8.Append(run8); paragraph8.Append(proofError2); paragraph8.Append(run9); tableCell4.Append(tableCellProperties4); tableCell4.Append(paragraph8); BookmarkStart bookmarkStart1 = new BookmarkStart() { Name = "_GoBack", Id = "0" }; BookmarkEnd bookmarkEnd1 = new BookmarkEnd() { Id = "0" }; tableRow2.Append(tableRowProperties2); tableRow2.Append(tableCell3); tableRow2.Append(tableCell4); tableRow2.Append(bookmarkStart1); tableRow2.Append(bookmarkEnd1); TableRow tableRow3 = new TableRow() { RsidTableRowAddition = "00900A10", RsidTableRowProperties = "00D60978" }; TableRowProperties tableRowProperties3 = new TableRowProperties(); TableRowHeight tableRowHeight3 = new TableRowHeight() { Val = (UInt32Value)262U }; tableRowProperties3.Append(tableRowHeight3); TableCell tableCell5 = new TableCell(); TableCellProperties tableCellProperties5 = new TableCellProperties(); TableCellWidth tableCellWidth5 = new TableCellWidth() { Width = "3500", Type = TableWidthUnitValues.Dxa }; tableCellProperties5.Append(tableCellWidth5); Paragraph paragraph9 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties9 = new ParagraphProperties(); WidowControl widowControl9 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE9 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN9 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent9 = new AdjustRightIndent() { Val = false }; ParagraphMarkRunProperties paragraphMarkRunProperties9 = new ParagraphMarkRunProperties(); RunFonts runFonts18 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize18 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript18 = new FontSizeComplexScript() { Val = "20" }; paragraphMarkRunProperties9.Append(runFonts18); paragraphMarkRunProperties9.Append(fontSize18); paragraphMarkRunProperties9.Append(fontSizeComplexScript18); paragraphProperties9.Append(widowControl9); paragraphProperties9.Append(autoSpaceDE9); paragraphProperties9.Append(autoSpaceDN9); paragraphProperties9.Append(adjustRightIndent9); paragraphProperties9.Append(paragraphMarkRunProperties9); Run run10 = new Run(); RunProperties runProperties10 = new RunProperties(); RunFonts runFonts19 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; Bold bold6 = new Bold(); BoldComplexScript boldComplexScript6 = new BoldComplexScript(); FontSize fontSize19 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript19 = new FontSizeComplexScript() { Val = "20" }; runProperties10.Append(runFonts19); runProperties10.Append(bold6); runProperties10.Append(boldComplexScript6); runProperties10.Append(fontSize19); runProperties10.Append(fontSizeComplexScript19); Text text10 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text10.Text = "Пациент: "; run10.Append(runProperties10); run10.Append(text10); paragraph9.Append(paragraphProperties9); paragraph9.Append(run10); tableCell5.Append(tableCellProperties5); tableCell5.Append(paragraph9); TableCell tableCell6 = new TableCell(); TableCellProperties tableCellProperties6 = new TableCellProperties(); TableCellWidth tableCellWidth6 = new TableCellWidth() { Width = "5500", Type = TableWidthUnitValues.Dxa }; tableCellProperties6.Append(tableCellWidth6); Paragraph paragraph10 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties10 = new ParagraphProperties(); WidowControl widowControl10 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE10 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN10 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent10 = new AdjustRightIndent() { Val = false }; ParagraphMarkRunProperties paragraphMarkRunProperties10 = new ParagraphMarkRunProperties(); RunFonts runFonts20 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize20 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript20 = new FontSizeComplexScript() { Val = "20" }; paragraphMarkRunProperties10.Append(runFonts20); paragraphMarkRunProperties10.Append(fontSize20); paragraphMarkRunProperties10.Append(fontSizeComplexScript20); paragraphProperties10.Append(widowControl10); paragraphProperties10.Append(autoSpaceDE10); paragraphProperties10.Append(autoSpaceDN10); paragraphProperties10.Append(adjustRightIndent10); paragraphProperties10.Append(paragraphMarkRunProperties10); Run run11 = new Run(); RunProperties runProperties11 = new RunProperties(); RunFonts runFonts21 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize21 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript21 = new FontSizeComplexScript() { Val = "20" }; runProperties11.Append(runFonts21); runProperties11.Append(fontSize21); runProperties11.Append(fontSizeComplexScript21); Text text11 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text11.Text = obj.PatientFIO ; run11.Append(runProperties11); run11.Append(text11); paragraph10.Append(paragraphProperties10); paragraph10.Append(run11); tableCell6.Append(tableCellProperties6); tableCell6.Append(paragraph10); tableRow3.Append(tableRowProperties3); tableRow3.Append(tableCell5); tableRow3.Append(tableCell6); TableRow tableRow4 = new TableRow() { RsidTableRowAddition = "00900A10", RsidTableRowProperties = "00D60978" }; TableRowProperties tableRowProperties4 = new TableRowProperties(); TableRowHeight tableRowHeight4 = new TableRowHeight() { Val = (UInt32Value)262U }; tableRowProperties4.Append(tableRowHeight4); TableCell tableCell7 = new TableCell(); TableCellProperties tableCellProperties7 = new TableCellProperties(); TableCellWidth tableCellWidth7 = new TableCellWidth() { Width = "3500", Type = TableWidthUnitValues.Dxa }; tableCellProperties7.Append(tableCellWidth7); Paragraph paragraph11 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties11 = new ParagraphProperties(); WidowControl widowControl11 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE11 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN11 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent11 = new AdjustRightIndent() { Val = false }; ParagraphMarkRunProperties paragraphMarkRunProperties11 = new ParagraphMarkRunProperties(); RunFonts runFonts22 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize22 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript22 = new FontSizeComplexScript() { Val = "20" }; paragraphMarkRunProperties11.Append(runFonts22); paragraphMarkRunProperties11.Append(fontSize22); paragraphMarkRunProperties11.Append(fontSizeComplexScript22); paragraphProperties11.Append(widowControl11); paragraphProperties11.Append(autoSpaceDE11); paragraphProperties11.Append(autoSpaceDN11); paragraphProperties11.Append(adjustRightIndent11); paragraphProperties11.Append(paragraphMarkRunProperties11); Run run12 = new Run(); RunProperties runProperties12 = new RunProperties(); RunFonts runFonts23 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; Bold bold7 = new Bold(); BoldComplexScript boldComplexScript7 = new BoldComplexScript(); FontSize fontSize23 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript23 = new FontSizeComplexScript() { Val = "20" }; runProperties12.Append(runFonts23); runProperties12.Append(bold7); runProperties12.Append(boldComplexScript7); runProperties12.Append(fontSize23); runProperties12.Append(fontSizeComplexScript23); Text text12 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text12.Text = "Дата рождения: "; run12.Append(runProperties12); run12.Append(text12); paragraph11.Append(paragraphProperties11); paragraph11.Append(run12); tableCell7.Append(tableCellProperties7); tableCell7.Append(paragraph11); TableCell tableCell8 = new TableCell(); TableCellProperties tableCellProperties8 = new TableCellProperties(); TableCellWidth tableCellWidth8 = new TableCellWidth() { Width = "5500", Type = TableWidthUnitValues.Dxa }; tableCellProperties8.Append(tableCellWidth8); Paragraph paragraph12 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties12 = new ParagraphProperties(); WidowControl widowControl12 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE12 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN12 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent12 = new AdjustRightIndent() { Val = false }; ParagraphMarkRunProperties paragraphMarkRunProperties12 = new ParagraphMarkRunProperties(); RunFonts runFonts24 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize24 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript24 = new FontSizeComplexScript() { Val = "20" }; paragraphMarkRunProperties12.Append(runFonts24); paragraphMarkRunProperties12.Append(fontSize24); paragraphMarkRunProperties12.Append(fontSizeComplexScript24); paragraphProperties12.Append(widowControl12); paragraphProperties12.Append(autoSpaceDE12); paragraphProperties12.Append(autoSpaceDN12); paragraphProperties12.Append(adjustRightIndent12); paragraphProperties12.Append(paragraphMarkRunProperties12); Run run13 = new Run(); RunProperties runProperties13 = new RunProperties(); RunFonts runFonts25 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize25 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript25 = new FontSizeComplexScript() { Val = "20" }; runProperties13.Append(runFonts25); runProperties13.Append(fontSize25); runProperties13.Append(fontSizeComplexScript25); Text text13 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text13.Text = obj.BirthDate ; run13.Append(runProperties13); run13.Append(text13); paragraph12.Append(paragraphProperties12); paragraph12.Append(run13); tableCell8.Append(tableCellProperties8); tableCell8.Append(paragraph12); tableRow4.Append(tableRowProperties4); tableRow4.Append(tableCell7); tableRow4.Append(tableCell8); TableRow tableRow5 = new TableRow() { RsidTableRowAddition = "00900A10", RsidTableRowProperties = "00D60978" }; TableRowProperties tableRowProperties5 = new TableRowProperties(); TableRowHeight tableRowHeight5 = new TableRowHeight() { Val = (UInt32Value)262U }; tableRowProperties5.Append(tableRowHeight5); TableCell tableCell9 = new TableCell(); TableCellProperties tableCellProperties9 = new TableCellProperties(); TableCellWidth tableCellWidth9 = new TableCellWidth() { Width = "3500", Type = TableWidthUnitValues.Dxa }; tableCellProperties9.Append(tableCellWidth9); Paragraph paragraph13 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties13 = new ParagraphProperties(); WidowControl widowControl13 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE13 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN13 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent13 = new AdjustRightIndent() { Val = false }; ParagraphMarkRunProperties paragraphMarkRunProperties13 = new ParagraphMarkRunProperties(); RunFonts runFonts26 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize26 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript26 = new FontSizeComplexScript() { Val = "20" }; paragraphMarkRunProperties13.Append(runFonts26); paragraphMarkRunProperties13.Append(fontSize26); paragraphMarkRunProperties13.Append(fontSizeComplexScript26); paragraphProperties13.Append(widowControl13); paragraphProperties13.Append(autoSpaceDE13); paragraphProperties13.Append(autoSpaceDN13); paragraphProperties13.Append(adjustRightIndent13); paragraphProperties13.Append(paragraphMarkRunProperties13); Run run14 = new Run(); RunProperties runProperties14 = new RunProperties(); RunFonts runFonts27 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; Bold bold8 = new Bold(); BoldComplexScript boldComplexScript8 = new BoldComplexScript(); FontSize fontSize27 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript27 = new FontSizeComplexScript() { Val = "20" }; runProperties14.Append(runFonts27); runProperties14.Append(bold8); runProperties14.Append(boldComplexScript8); runProperties14.Append(fontSize27); runProperties14.Append(fontSizeComplexScript27); Text text14 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text14.Text = "Клинический материал: "; run14.Append(runProperties14); run14.Append(text14); paragraph13.Append(paragraphProperties13); paragraph13.Append(run14); tableCell9.Append(tableCellProperties9); tableCell9.Append(paragraph13); TableCell tableCell10 = new TableCell(); TableCellProperties tableCellProperties10 = new TableCellProperties(); TableCellWidth tableCellWidth10 = new TableCellWidth() { Width = "5500", Type = TableWidthUnitValues.Dxa }; tableCellProperties10.Append(tableCellWidth10); Paragraph paragraph14 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties14 = new ParagraphProperties(); WidowControl widowControl14 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE14 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN14 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent14 = new AdjustRightIndent() { Val = false }; ParagraphMarkRunProperties paragraphMarkRunProperties14 = new ParagraphMarkRunProperties(); RunFonts runFonts28 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize28 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript28 = new FontSizeComplexScript() { Val = "20" }; paragraphMarkRunProperties14.Append(runFonts28); paragraphMarkRunProperties14.Append(fontSize28); paragraphMarkRunProperties14.Append(fontSizeComplexScript28); paragraphProperties14.Append(widowControl14); paragraphProperties14.Append(autoSpaceDE14); paragraphProperties14.Append(autoSpaceDN14); paragraphProperties14.Append(adjustRightIndent14); paragraphProperties14.Append(paragraphMarkRunProperties14); Run run15 = new Run(); RunProperties runProperties15 = new RunProperties(); RunFonts runFonts29 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize29 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript29 = new FontSizeComplexScript() { Val = "20" }; runProperties15.Append(runFonts29); runProperties15.Append(fontSize29); runProperties15.Append(fontSizeComplexScript29); Text text15 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text15.Text = obj.ClinicMaterial ; run15.Append(runProperties15); run15.Append(text15); paragraph14.Append(paragraphProperties14); paragraph14.Append(run15); tableCell10.Append(tableCellProperties10); tableCell10.Append(paragraph14); tableRow5.Append(tableRowProperties5); tableRow5.Append(tableCell9); tableRow5.Append(tableCell10); TableRow tableRow6 = new TableRow() { RsidTableRowAddition = "00900A10", RsidTableRowProperties = "00D60978" }; TableRowProperties tableRowProperties6 = new TableRowProperties(); TableRowHeight tableRowHeight6 = new TableRowHeight() { Val = (UInt32Value)262U }; tableRowProperties6.Append(tableRowHeight6); TableCell tableCell11 = new TableCell(); TableCellProperties tableCellProperties11 = new TableCellProperties(); TableCellWidth tableCellWidth11 = new TableCellWidth() { Width = "3500", Type = TableWidthUnitValues.Dxa }; tableCellProperties11.Append(tableCellWidth11); Paragraph paragraph15 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties15 = new ParagraphProperties(); WidowControl widowControl15 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE15 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN15 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent15 = new AdjustRightIndent() { Val = false }; ParagraphMarkRunProperties paragraphMarkRunProperties15 = new ParagraphMarkRunProperties(); RunFonts runFonts30 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize30 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript30 = new FontSizeComplexScript() { Val = "20" }; paragraphMarkRunProperties15.Append(runFonts30); paragraphMarkRunProperties15.Append(fontSize30); paragraphMarkRunProperties15.Append(fontSizeComplexScript30); paragraphProperties15.Append(widowControl15); paragraphProperties15.Append(autoSpaceDE15); paragraphProperties15.Append(autoSpaceDN15); paragraphProperties15.Append(adjustRightIndent15); paragraphProperties15.Append(paragraphMarkRunProperties15); Run run16 = new Run(); RunProperties runProperties16 = new RunProperties(); RunFonts runFonts31 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; Bold bold9 = new Bold(); BoldComplexScript boldComplexScript9 = new BoldComplexScript(); FontSize fontSize31 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript31 = new FontSizeComplexScript() { Val = "20" }; runProperties16.Append(runFonts31); runProperties16.Append(bold9); runProperties16.Append(boldComplexScript9); runProperties16.Append(fontSize31); runProperties16.Append(fontSizeComplexScript31); Text text16 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text16.Text = "Дата доставки материала: "; run16.Append(runProperties16); run16.Append(text16); paragraph15.Append(paragraphProperties15); paragraph15.Append(run16); tableCell11.Append(tableCellProperties11); tableCell11.Append(paragraph15); TableCell tableCell12 = new TableCell(); TableCellProperties tableCellProperties12 = new TableCellProperties(); TableCellWidth tableCellWidth12 = new TableCellWidth() { Width = "5500", Type = TableWidthUnitValues.Dxa }; tableCellProperties12.Append(tableCellWidth12); Paragraph paragraph16 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties16 = new ParagraphProperties(); WidowControl widowControl16 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE16 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN16 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent16 = new AdjustRightIndent() { Val = false }; ParagraphMarkRunProperties paragraphMarkRunProperties16 = new ParagraphMarkRunProperties(); RunFonts runFonts32 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize32 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript32 = new FontSizeComplexScript() { Val = "20" }; paragraphMarkRunProperties16.Append(runFonts32); paragraphMarkRunProperties16.Append(fontSize32); paragraphMarkRunProperties16.Append(fontSizeComplexScript32); paragraphProperties16.Append(widowControl16); paragraphProperties16.Append(autoSpaceDE16); paragraphProperties16.Append(autoSpaceDN16); paragraphProperties16.Append(adjustRightIndent16); paragraphProperties16.Append(paragraphMarkRunProperties16); Run run17 = new Run(); RunProperties runProperties17 = new RunProperties(); RunFonts runFonts33 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize33 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript33 = new FontSizeComplexScript() { Val = "20" }; runProperties17.Append(runFonts33); runProperties17.Append(fontSize33); runProperties17.Append(fontSizeComplexScript33); Text text17 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text17.Text = obj.DateDeliverySample ; run17.Append(runProperties17); run17.Append(text17); paragraph16.Append(paragraphProperties16); paragraph16.Append(run17); tableCell12.Append(tableCellProperties12); tableCell12.Append(paragraph16); tableRow6.Append(tableRowProperties6); tableRow6.Append(tableCell11); tableRow6.Append(tableCell12); TableRow tableRow7 = new TableRow() { RsidTableRowAddition = "00900A10", RsidTableRowProperties = "00D60978" }; TableRowProperties tableRowProperties7 = new TableRowProperties(); TableRowHeight tableRowHeight7 = new TableRowHeight() { Val = (UInt32Value)262U }; tableRowProperties7.Append(tableRowHeight7); TableCell tableCell13 = new TableCell(); TableCellProperties tableCellProperties13 = new TableCellProperties(); TableCellWidth tableCellWidth13 = new TableCellWidth() { Width = "3500", Type = TableWidthUnitValues.Dxa }; tableCellProperties13.Append(tableCellWidth13); Paragraph paragraph17 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00D60978" }; ParagraphProperties paragraphProperties17 = new ParagraphProperties(); WidowControl widowControl17 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE17 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN17 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent17 = new AdjustRightIndent() { Val = false }; ParagraphMarkRunProperties paragraphMarkRunProperties17 = new ParagraphMarkRunProperties(); RunFonts runFonts34 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize34 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript34 = new FontSizeComplexScript() { Val = "20" }; paragraphMarkRunProperties17.Append(runFonts34); paragraphMarkRunProperties17.Append(fontSize34); paragraphMarkRunProperties17.Append(fontSizeComplexScript34); paragraphProperties17.Append(widowControl17); paragraphProperties17.Append(autoSpaceDE17); paragraphProperties17.Append(autoSpaceDN17); paragraphProperties17.Append(adjustRightIndent17); paragraphProperties17.Append(paragraphMarkRunProperties17); Run run18 = new Run(); RunProperties runProperties18 = new RunProperties(); RunFonts runFonts35 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; Bold bold10 = new Bold(); BoldComplexScript boldComplexScript10 = new BoldComplexScript(); FontSize fontSize35 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript35 = new FontSizeComplexScript() { Val = "20" }; runProperties18.Append(runFonts35); runProperties18.Append(bold10); runProperties18.Append(boldComplexScript10); runProperties18.Append(fontSize35); runProperties18.Append(fontSizeComplexScript35); Text text18 = new Text(); text18.Text = "Дата забора материала:"; run18.Append(runProperties18); run18.Append(text18); Run run19 = new Run(); RunProperties runProperties19 = new RunProperties(); RunFonts runFonts36 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; Bold bold11 = new Bold(); BoldComplexScript boldComplexScript11 = new BoldComplexScript(); FontSize fontSize36 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript36 = new FontSizeComplexScript() { Val = "20" }; runProperties19.Append(runFonts36); runProperties19.Append(bold11); runProperties19.Append(boldComplexScript11); runProperties19.Append(fontSize36); runProperties19.Append(fontSizeComplexScript36); Text text19 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text19.Text = ""; run19.Append(runProperties19); run19.Append(text19); paragraph17.Append(paragraphProperties17); paragraph17.Append(run18); paragraph17.Append(run19); tableCell13.Append(tableCellProperties13); tableCell13.Append(paragraph17); TableCell tableCell14 = new TableCell(); TableCellProperties tableCellProperties14 = new TableCellProperties(); TableCellWidth tableCellWidth14 = new TableCellWidth() { Width = "5500", Type = TableWidthUnitValues.Dxa }; tableCellProperties14.Append(tableCellWidth14); Paragraph paragraph18 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00D60978" }; ParagraphProperties paragraphProperties18 = new ParagraphProperties(); WidowControl widowControl18 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE18 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN18 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent18 = new AdjustRightIndent() { Val = false }; ParagraphMarkRunProperties paragraphMarkRunProperties18 = new ParagraphMarkRunProperties(); RunFonts runFonts37 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize37 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript37 = new FontSizeComplexScript() { Val = "20" }; paragraphMarkRunProperties18.Append(runFonts37); paragraphMarkRunProperties18.Append(fontSize37); paragraphMarkRunProperties18.Append(fontSizeComplexScript37); paragraphProperties18.Append(widowControl18); paragraphProperties18.Append(autoSpaceDE18); paragraphProperties18.Append(autoSpaceDN18); paragraphProperties18.Append(adjustRightIndent18); paragraphProperties18.Append(paragraphMarkRunProperties18); Run run20 = new Run(); RunProperties runProperties20 = new RunProperties(); RunFonts runFonts38 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize38 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript38 = new FontSizeComplexScript() { Val = "20" }; runProperties20.Append(runFonts38); runProperties20.Append(fontSize38); runProperties20.Append(fontSizeComplexScript38); Text text20 = new Text(); text20.Text = obj.DateRecieveSample; run20.Append(runProperties20); run20.Append(text20); paragraph18.Append(paragraphProperties18); paragraph18.Append(run20); tableCell14.Append(tableCellProperties14); tableCell14.Append(paragraph18); tableRow7.Append(tableRowProperties7); tableRow7.Append(tableCell13); tableRow7.Append(tableCell14); table1.Append(tableProperties1); table1.Append(tableGrid1); table1.Append(tableRow1); table1.Append(tableRow2); table1.Append(tableRow3); table1.Append(tableRow4); table1.Append(tableRow5); table1.Append(tableRow6); table1.Append(tableRow7); Paragraph paragraph19 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00900A10", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties19 = new ParagraphProperties(); WidowControl widowControl19 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE19 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN19 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent19 = new AdjustRightIndent() { Val = false }; SpacingBetweenLines spacingBetweenLines5 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; Justification justification3 = new Justification() { Val = JustificationValues.Center }; ParagraphMarkRunProperties paragraphMarkRunProperties19 = new ParagraphMarkRunProperties(); RunFonts runFonts39 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize39 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript39 = new FontSizeComplexScript() { Val = "20" }; paragraphMarkRunProperties19.Append(runFonts39); paragraphMarkRunProperties19.Append(fontSize39); paragraphMarkRunProperties19.Append(fontSizeComplexScript39); paragraphProperties19.Append(widowControl19); paragraphProperties19.Append(autoSpaceDE19); paragraphProperties19.Append(autoSpaceDN19); paragraphProperties19.Append(adjustRightIndent19); paragraphProperties19.Append(spacingBetweenLines5); paragraphProperties19.Append(justification3); paragraphProperties19.Append(paragraphMarkRunProperties19); paragraph19.Append(paragraphProperties19); Paragraph paragraph20 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00900A10", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties20 = new ParagraphProperties(); WidowControl widowControl20 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE20 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN20 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent20 = new AdjustRightIndent() { Val = false }; SpacingBetweenLines spacingBetweenLines6 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; Justification justification4 = new Justification() { Val = JustificationValues.Center }; ParagraphMarkRunProperties paragraphMarkRunProperties20 = new ParagraphMarkRunProperties(); RunFonts runFonts40 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize40 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript40 = new FontSizeComplexScript() { Val = "20" }; paragraphMarkRunProperties20.Append(runFonts40); paragraphMarkRunProperties20.Append(fontSize40); paragraphMarkRunProperties20.Append(fontSizeComplexScript40); paragraphProperties20.Append(widowControl20); paragraphProperties20.Append(autoSpaceDE20); paragraphProperties20.Append(autoSpaceDN20); paragraphProperties20.Append(adjustRightIndent20); paragraphProperties20.Append(spacingBetweenLines6); paragraphProperties20.Append(justification4); paragraphProperties20.Append(paragraphMarkRunProperties20); paragraph20.Append(paragraphProperties20); Paragraph paragraph21 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00900A10", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties21 = new ParagraphProperties(); WidowControl widowControl21 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE21 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN21 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent21 = new AdjustRightIndent() { Val = false }; SpacingBetweenLines spacingBetweenLines7 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties21 = new ParagraphMarkRunProperties(); RunFonts runFonts41 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize41 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript41 = new FontSizeComplexScript() { Val = "16" }; paragraphMarkRunProperties21.Append(runFonts41); paragraphMarkRunProperties21.Append(fontSize41); paragraphMarkRunProperties21.Append(fontSizeComplexScript41); paragraphProperties21.Append(widowControl21); paragraphProperties21.Append(autoSpaceDE21); paragraphProperties21.Append(autoSpaceDN21); paragraphProperties21.Append(adjustRightIndent21); paragraphProperties21.Append(spacingBetweenLines7); paragraphProperties21.Append(paragraphMarkRunProperties21); Run run21 = new Run(); RunProperties runProperties21 = new RunProperties(); RunFonts runFonts42 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize42 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript42 = new FontSizeComplexScript() { Val = "16" }; runProperties21.Append(runFonts42); runProperties21.Append(fontSize42); runProperties21.Append(fontSizeComplexScript42); Text text21 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text21.Text = " "; run21.Append(runProperties21); run21.Append(text21); Run run22 = new Run(); RunProperties runProperties22 = new RunProperties(); RunFonts runFonts43 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; Bold bold12 = new Bold(); BoldComplexScript boldComplexScript12 = new BoldComplexScript(); FontSize fontSize43 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript43 = new FontSizeComplexScript() { Val = "16" }; runProperties22.Append(runFonts43); runProperties22.Append(bold12); runProperties22.Append(boldComplexScript12); runProperties22.Append(fontSize43); runProperties22.Append(fontSizeComplexScript43); Text text22 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text22.Text = "Список заказанных анализов "; run22.Append(runProperties22); run22.Append(text22); paragraph21.Append(paragraphProperties21); paragraph21.Append(run21); paragraph21.Append(run22); Paragraph paragraph22 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00900A10", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties22 = new ParagraphProperties(); WidowControl widowControl22 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE22 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN22 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent22 = new AdjustRightIndent() { Val = false }; SpacingBetweenLines spacingBetweenLines8 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties22 = new ParagraphMarkRunProperties(); RunFonts runFonts44 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize44 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript44 = new FontSizeComplexScript() { Val = "16" }; paragraphMarkRunProperties22.Append(runFonts44); paragraphMarkRunProperties22.Append(fontSize44); paragraphMarkRunProperties22.Append(fontSizeComplexScript44); paragraphProperties22.Append(widowControl22); paragraphProperties22.Append(autoSpaceDE22); paragraphProperties22.Append(autoSpaceDN22); paragraphProperties22.Append(adjustRightIndent22); paragraphProperties22.Append(spacingBetweenLines8); paragraphProperties22.Append(paragraphMarkRunProperties22); paragraph22.Append(paragraphProperties22); ///////////////////////////// // ТАБЛИЦА СПИСОК АНАЛИЗОВ // ////////////////////////////////////////////////////////////////////// Table table2 = new Table(); TableProperties tableProperties2 = new TableProperties(); TableWidth tableWidth2 = new TableWidth() { Width = "0", Type = TableWidthUnitValues.Auto }; TableIndentation tableIndentation1 = new TableIndentation() { Width = 30, Type = TableWidthUnitValues.Dxa }; TableCellMarginDefault tableCellMarginDefault1 = new TableCellMarginDefault(); TableCellLeftMargin tableCellLeftMargin1 = new TableCellLeftMargin() { Width = 30, Type = TableWidthValues.Dxa }; TableCellRightMargin tableCellRightMargin1 = new TableCellRightMargin() { Width = 30, Type = TableWidthValues.Dxa }; tableCellMarginDefault1.Append(tableCellLeftMargin1); tableCellMarginDefault1.Append(tableCellRightMargin1); TableLook tableLook2 = new TableLook() { Val = "0000", FirstRow = false, LastRow = false, FirstColumn = false, LastColumn = false, NoHorizontalBand = false, NoVerticalBand = false }; tableProperties2.Append(tableWidth2); tableProperties2.Append(tableIndentation1); tableProperties2.Append(tableCellMarginDefault1); tableProperties2.Append(tableLook2); TableGrid tableGrid2 = new TableGrid(); GridColumn gridColumn3 = new GridColumn() { Width = "500" }; GridColumn gridColumn4 = new GridColumn() { Width = "1000" }; GridColumn gridColumn5 = new GridColumn() { Width = "5500" }; GridColumn gridColumn6 = new GridColumn() { Width = "1500" }; tableGrid2.Append(gridColumn3); tableGrid2.Append(gridColumn4); tableGrid2.Append(gridColumn5); tableGrid2.Append(gridColumn6); // // новая строка таблицы // TableRow tableRow8 = new TableRow() { RsidTableRowAddition = "00900A10", RsidTableRowProperties = "00B819CE" }; TableRowProperties tableRowProperties8 = new TableRowProperties(); TableRowHeight tableRowHeight8 = new TableRowHeight() { Val = (UInt32Value)262U }; TableHeader tableHeader1 = new TableHeader(); tableRowProperties8.Append(tableRowHeight8); tableRowProperties8.Append(tableHeader1); TableCell tableCell15 = new TableCell(); TableCellProperties tableCellProperties15 = new TableCellProperties(); TableCellWidth tableCellWidth15 = new TableCellWidth() { Width = "500", Type = TableWidthUnitValues.Dxa }; TableCellBorders tableCellBorders1 = new TableCellBorders(); TopBorder topBorder2 = new TopBorder() { Val = BorderValues.Nil }; LeftBorder leftBorder2 = new LeftBorder() { Val = BorderValues.Nil }; BottomBorder bottomBorder2 = new BottomBorder() { Val = BorderValues.Nil }; RightBorder rightBorder2 = new RightBorder() { Val = BorderValues.Nil }; tableCellBorders1.Append(topBorder2); tableCellBorders1.Append(leftBorder2); tableCellBorders1.Append(bottomBorder2); tableCellBorders1.Append(rightBorder2); tableCellProperties15.Append(tableCellWidth15); tableCellProperties15.Append(tableCellBorders1); Paragraph paragraph23 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties23 = new ParagraphProperties(); WidowControl widowControl23 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE23 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN23 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent23 = new AdjustRightIndent() { Val = false }; SpacingBetweenLines spacingBetweenLines9 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties23 = new ParagraphMarkRunProperties(); RunFonts runFonts45 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize45 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript45 = new FontSizeComplexScript() { Val = "16" }; paragraphMarkRunProperties23.Append(runFonts45); paragraphMarkRunProperties23.Append(fontSize45); paragraphMarkRunProperties23.Append(fontSizeComplexScript45); paragraphProperties23.Append(widowControl23); paragraphProperties23.Append(autoSpaceDE23); paragraphProperties23.Append(autoSpaceDN23); paragraphProperties23.Append(adjustRightIndent23); paragraphProperties23.Append(spacingBetweenLines9); paragraphProperties23.Append(paragraphMarkRunProperties23); Run run23 = new Run(); RunProperties runProperties23 = new RunProperties(); RunFonts runFonts46 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; Bold bold13 = new Bold(); BoldComplexScript boldComplexScript13 = new BoldComplexScript(); Italic italic1 = new Italic(); ItalicComplexScript italicComplexScript1 = new ItalicComplexScript(); FontSize fontSize46 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript46 = new FontSizeComplexScript() { Val = "16" }; Underline underline1 = new Underline() { Val = UnderlineValues.Single }; runProperties23.Append(runFonts46); runProperties23.Append(bold13); runProperties23.Append(boldComplexScript13); runProperties23.Append(italic1); runProperties23.Append(italicComplexScript1); runProperties23.Append(fontSize46); runProperties23.Append(fontSizeComplexScript46); runProperties23.Append(underline1); Text text23 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text23.Text = "№ "; run23.Append(runProperties23); run23.Append(text23); paragraph23.Append(paragraphProperties23); paragraph23.Append(run23); tableCell15.Append(tableCellProperties15); tableCell15.Append(paragraph23); TableCell tableCell16 = new TableCell(); TableCellProperties tableCellProperties16 = new TableCellProperties(); TableCellWidth tableCellWidth16 = new TableCellWidth() { Width = "1000", Type = TableWidthUnitValues.Dxa }; TableCellBorders tableCellBorders2 = new TableCellBorders(); TopBorder topBorder3 = new TopBorder() { Val = BorderValues.Nil }; LeftBorder leftBorder3 = new LeftBorder() { Val = BorderValues.Nil }; BottomBorder bottomBorder3 = new BottomBorder() { Val = BorderValues.Nil }; RightBorder rightBorder3 = new RightBorder() { Val = BorderValues.Nil }; tableCellBorders2.Append(topBorder3); tableCellBorders2.Append(leftBorder3); tableCellBorders2.Append(bottomBorder3); tableCellBorders2.Append(rightBorder3); tableCellProperties16.Append(tableCellWidth16); tableCellProperties16.Append(tableCellBorders2); Paragraph paragraph24 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties24 = new ParagraphProperties(); WidowControl widowControl24 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE24 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN24 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent24 = new AdjustRightIndent() { Val = false }; SpacingBetweenLines spacingBetweenLines10 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; Justification justification5 = new Justification() { Val = JustificationValues.Center }; ParagraphMarkRunProperties paragraphMarkRunProperties24 = new ParagraphMarkRunProperties(); RunFonts runFonts47 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize47 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript47 = new FontSizeComplexScript() { Val = "16" }; paragraphMarkRunProperties24.Append(runFonts47); paragraphMarkRunProperties24.Append(fontSize47); paragraphMarkRunProperties24.Append(fontSizeComplexScript47); paragraphProperties24.Append(widowControl24); paragraphProperties24.Append(autoSpaceDE24); paragraphProperties24.Append(autoSpaceDN24); paragraphProperties24.Append(adjustRightIndent24); paragraphProperties24.Append(spacingBetweenLines10); paragraphProperties24.Append(justification5); paragraphProperties24.Append(paragraphMarkRunProperties24); Run run24 = new Run(); RunProperties runProperties24 = new RunProperties(); RunFonts runFonts48 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; Bold bold14 = new Bold(); BoldComplexScript boldComplexScript14 = new BoldComplexScript(); Italic italic2 = new Italic(); ItalicComplexScript italicComplexScript2 = new ItalicComplexScript(); FontSize fontSize48 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript48 = new FontSizeComplexScript() { Val = "16" }; Underline underline2 = new Underline() { Val = UnderlineValues.Single }; runProperties24.Append(runFonts48); runProperties24.Append(bold14); runProperties24.Append(boldComplexScript14); runProperties24.Append(italic2); runProperties24.Append(italicComplexScript2); runProperties24.Append(fontSize48); runProperties24.Append(fontSizeComplexScript48); runProperties24.Append(underline2); Text text24 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text24.Text = "Код "; run24.Append(runProperties24); run24.Append(text24); paragraph24.Append(paragraphProperties24); paragraph24.Append(run24); tableCell16.Append(tableCellProperties16); tableCell16.Append(paragraph24); TableCell tableCell17 = new TableCell(); TableCellProperties tableCellProperties17 = new TableCellProperties(); TableCellWidth tableCellWidth17 = new TableCellWidth() { Width = "5500", Type = TableWidthUnitValues.Dxa }; TableCellBorders tableCellBorders3 = new TableCellBorders(); TopBorder topBorder4 = new TopBorder() { Val = BorderValues.Nil }; LeftBorder leftBorder4 = new LeftBorder() { Val = BorderValues.Nil }; BottomBorder bottomBorder4 = new BottomBorder() { Val = BorderValues.Nil }; RightBorder rightBorder4 = new RightBorder() { Val = BorderValues.Nil }; tableCellBorders3.Append(topBorder4); tableCellBorders3.Append(leftBorder4); tableCellBorders3.Append(bottomBorder4); tableCellBorders3.Append(rightBorder4); tableCellProperties17.Append(tableCellWidth17); tableCellProperties17.Append(tableCellBorders3); Paragraph paragraph25 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties25 = new ParagraphProperties(); WidowControl widowControl25 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE25 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN25 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent25 = new AdjustRightIndent() { Val = false }; SpacingBetweenLines spacingBetweenLines11 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties25 = new ParagraphMarkRunProperties(); RunFonts runFonts49 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize49 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript49 = new FontSizeComplexScript() { Val = "16" }; paragraphMarkRunProperties25.Append(runFonts49); paragraphMarkRunProperties25.Append(fontSize49); paragraphMarkRunProperties25.Append(fontSizeComplexScript49); paragraphProperties25.Append(widowControl25); paragraphProperties25.Append(autoSpaceDE25); paragraphProperties25.Append(autoSpaceDN25); paragraphProperties25.Append(adjustRightIndent25); paragraphProperties25.Append(spacingBetweenLines11); paragraphProperties25.Append(paragraphMarkRunProperties25); Run run25 = new Run(); RunProperties runProperties25 = new RunProperties(); RunFonts runFonts50 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; Bold bold15 = new Bold(); BoldComplexScript boldComplexScript15 = new BoldComplexScript(); Italic italic3 = new Italic(); ItalicComplexScript italicComplexScript3 = new ItalicComplexScript(); FontSize fontSize50 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript50 = new FontSizeComplexScript() { Val = "16" }; Underline underline3 = new Underline() { Val = UnderlineValues.Single }; runProperties25.Append(runFonts50); runProperties25.Append(bold15); runProperties25.Append(boldComplexScript15); runProperties25.Append(italic3); runProperties25.Append(italicComplexScript3); runProperties25.Append(fontSize50); runProperties25.Append(fontSizeComplexScript50); runProperties25.Append(underline3); Text text25 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text25.Text = "Тип анализа "; run25.Append(runProperties25); run25.Append(text25); paragraph25.Append(paragraphProperties25); paragraph25.Append(run25); tableCell17.Append(tableCellProperties17); tableCell17.Append(paragraph25); TableCell tableCell18 = new TableCell(); TableCellProperties tableCellProperties18 = new TableCellProperties(); TableCellWidth tableCellWidth18 = new TableCellWidth() { Width = "1500", Type = TableWidthUnitValues.Dxa }; TableCellBorders tableCellBorders4 = new TableCellBorders(); TopBorder topBorder5 = new TopBorder() { Val = BorderValues.Nil }; LeftBorder leftBorder5 = new LeftBorder() { Val = BorderValues.Nil }; BottomBorder bottomBorder5 = new BottomBorder() { Val = BorderValues.Nil }; RightBorder rightBorder5 = new RightBorder() { Val = BorderValues.Nil }; tableCellBorders4.Append(topBorder5); tableCellBorders4.Append(leftBorder5); tableCellBorders4.Append(bottomBorder5); tableCellBorders4.Append(rightBorder5); tableCellProperties18.Append(tableCellWidth18); tableCellProperties18.Append(tableCellBorders4); Paragraph paragraph26 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties26 = new ParagraphProperties(); WidowControl widowControl26 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE26 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN26 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent26 = new AdjustRightIndent() { Val = false }; SpacingBetweenLines spacingBetweenLines12 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties26 = new ParagraphMarkRunProperties(); RunFonts runFonts51 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize51 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript51 = new FontSizeComplexScript() { Val = "16" }; paragraphMarkRunProperties26.Append(runFonts51); paragraphMarkRunProperties26.Append(fontSize51); paragraphMarkRunProperties26.Append(fontSizeComplexScript51); paragraphProperties26.Append(widowControl26); paragraphProperties26.Append(autoSpaceDE26); paragraphProperties26.Append(autoSpaceDN26); paragraphProperties26.Append(adjustRightIndent26); paragraphProperties26.Append(spacingBetweenLines12); paragraphProperties26.Append(paragraphMarkRunProperties26); Run run26 = new Run(); RunProperties runProperties26 = new RunProperties(); RunFonts runFonts52 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; Bold bold16 = new Bold(); BoldComplexScript boldComplexScript16 = new BoldComplexScript(); Italic italic4 = new Italic(); ItalicComplexScript italicComplexScript4 = new ItalicComplexScript(); FontSize fontSize52 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript52 = new FontSizeComplexScript() { Val = "16" }; Underline underline4 = new Underline() { Val = UnderlineValues.Single }; runProperties26.Append(runFonts52); runProperties26.Append(bold16); runProperties26.Append(boldComplexScript16); runProperties26.Append(italic4); runProperties26.Append(italicComplexScript4); runProperties26.Append(fontSize52); runProperties26.Append(fontSizeComplexScript52); runProperties26.Append(underline4); Text text26 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text26.Text = "Стоимость "; run26.Append(runProperties26); run26.Append(text26); paragraph26.Append(paragraphProperties26); paragraph26.Append(run26); tableCell18.Append(tableCellProperties18); tableCell18.Append(paragraph26); tableRow8.Append(tableRowProperties8); tableRow8.Append(tableCell15); tableRow8.Append(tableCell16); tableRow8.Append(tableCell17); tableRow8.Append(tableCell18); TableRow tableRow9 = new TableRow() { RsidTableRowAddition = "00900A10", RsidTableRowProperties = "00B819CE" }; TableRowProperties tableRowProperties9 = new TableRowProperties(); TableRowHeight tableRowHeight9 = new TableRowHeight() { Val = (UInt32Value)262U }; tableRowProperties9.Append(tableRowHeight9); TableCell tableCell19 = new TableCell(); TableCellProperties tableCellProperties19 = new TableCellProperties(); TableCellWidth tableCellWidth19 = new TableCellWidth() { Width = "500", Type = TableWidthUnitValues.Dxa }; TableCellBorders tableCellBorders5 = new TableCellBorders(); TopBorder topBorder6 = new TopBorder() { Val = BorderValues.Nil }; LeftBorder leftBorder6 = new LeftBorder() { Val = BorderValues.Nil }; BottomBorder bottomBorder6 = new BottomBorder() { Val = BorderValues.Nil }; RightBorder rightBorder6 = new RightBorder() { Val = BorderValues.Nil }; tableCellBorders5.Append(topBorder6); tableCellBorders5.Append(leftBorder6); tableCellBorders5.Append(bottomBorder6); tableCellBorders5.Append(rightBorder6); tableCellProperties19.Append(tableCellWidth19); tableCellProperties19.Append(tableCellBorders5); Paragraph paragraph27 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties27 = new ParagraphProperties(); WidowControl widowControl27 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE27 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN27 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent27 = new AdjustRightIndent() { Val = false }; SpacingBetweenLines spacingBetweenLines13 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties27 = new ParagraphMarkRunProperties(); RunFonts runFonts53 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize53 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript53 = new FontSizeComplexScript() { Val = "16" }; paragraphMarkRunProperties27.Append(runFonts53); paragraphMarkRunProperties27.Append(fontSize53); paragraphMarkRunProperties27.Append(fontSizeComplexScript53); paragraphProperties27.Append(widowControl27); paragraphProperties27.Append(autoSpaceDE27); paragraphProperties27.Append(autoSpaceDN27); paragraphProperties27.Append(adjustRightIndent27); paragraphProperties27.Append(spacingBetweenLines13); paragraphProperties27.Append(paragraphMarkRunProperties27); // //Закончился ввод шапки таблицы // // //Началось заполнение данных таблицы // foreach (var itemAnalysis in obj.AnalysisList) { Run run27 = new Run(); RunProperties runProperties27 = new RunProperties(); RunFonts runFonts54 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize54 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript54 = new FontSizeComplexScript() { Val = "16" }; runProperties27.Append(runFonts54); runProperties27.Append(fontSize54); runProperties27.Append(fontSizeComplexScript54); Text text27 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text27.Text = itemAnalysis.AnalysisPosition ; run27.Append(runProperties27); run27.Append(text27); paragraph27.Append(paragraphProperties27); paragraph27.Append(run27); tableCell19.Append(tableCellProperties19); tableCell19.Append(paragraph27); TableCell tableCell20 = new TableCell(); TableCellProperties tableCellProperties20 = new TableCellProperties(); TableCellWidth tableCellWidth20 = new TableCellWidth() { Width = "1000", Type = TableWidthUnitValues.Dxa }; TableCellBorders tableCellBorders6 = new TableCellBorders(); TopBorder topBorder7 = new TopBorder() { Val = BorderValues.Nil }; LeftBorder leftBorder7 = new LeftBorder() { Val = BorderValues.Nil }; BottomBorder bottomBorder7 = new BottomBorder() { Val = BorderValues.Nil }; RightBorder rightBorder7 = new RightBorder() { Val = BorderValues.Nil }; tableCellBorders6.Append(topBorder7); tableCellBorders6.Append(leftBorder7); tableCellBorders6.Append(bottomBorder7); tableCellBorders6.Append(rightBorder7); tableCellProperties20.Append(tableCellWidth20); tableCellProperties20.Append(tableCellBorders6); Paragraph paragraph28 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties28 = new ParagraphProperties(); WidowControl widowControl28 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE28 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN28 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent28 = new AdjustRightIndent() { Val = false }; SpacingBetweenLines spacingBetweenLines14 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; Justification justification6 = new Justification() { Val = JustificationValues.Center }; ParagraphMarkRunProperties paragraphMarkRunProperties28 = new ParagraphMarkRunProperties(); RunFonts runFonts55 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize55 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript55 = new FontSizeComplexScript() { Val = "16" }; paragraphMarkRunProperties28.Append(runFonts55); paragraphMarkRunProperties28.Append(fontSize55); paragraphMarkRunProperties28.Append(fontSizeComplexScript55); paragraphProperties28.Append(widowControl28); paragraphProperties28.Append(autoSpaceDE28); paragraphProperties28.Append(autoSpaceDN28); paragraphProperties28.Append(adjustRightIndent28); paragraphProperties28.Append(spacingBetweenLines14); paragraphProperties28.Append(justification6); paragraphProperties28.Append(paragraphMarkRunProperties28); Run run28 = new Run(); RunProperties runProperties28 = new RunProperties(); RunFonts runFonts56 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize56 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript56 = new FontSizeComplexScript() { Val = "16" }; runProperties28.Append(runFonts56); runProperties28.Append(fontSize56); runProperties28.Append(fontSizeComplexScript56); Text text28 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text28.Text = itemAnalysis.AnalysisCode ; run28.Append(runProperties28); run28.Append(text28); paragraph28.Append(paragraphProperties28); paragraph28.Append(run28); tableCell20.Append(tableCellProperties20); tableCell20.Append(paragraph28); TableCell tableCell21 = new TableCell(); TableCellProperties tableCellProperties21 = new TableCellProperties(); TableCellWidth tableCellWidth21 = new TableCellWidth() { Width = "5500", Type = TableWidthUnitValues.Dxa }; TableCellBorders tableCellBorders7 = new TableCellBorders(); TopBorder topBorder8 = new TopBorder() { Val = BorderValues.Nil }; LeftBorder leftBorder8 = new LeftBorder() { Val = BorderValues.Nil }; BottomBorder bottomBorder8 = new BottomBorder() { Val = BorderValues.Nil }; RightBorder rightBorder8 = new RightBorder() { Val = BorderValues.Nil }; tableCellBorders7.Append(topBorder8); tableCellBorders7.Append(leftBorder8); tableCellBorders7.Append(bottomBorder8); tableCellBorders7.Append(rightBorder8); tableCellProperties21.Append(tableCellWidth21); tableCellProperties21.Append(tableCellBorders7); Paragraph paragraph29 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties29 = new ParagraphProperties(); WidowControl widowControl29 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE29 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN29 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent29 = new AdjustRightIndent() { Val = false }; SpacingBetweenLines spacingBetweenLines15 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties29 = new ParagraphMarkRunProperties(); RunFonts runFonts57 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize57 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript57 = new FontSizeComplexScript() { Val = "16" }; paragraphMarkRunProperties29.Append(runFonts57); paragraphMarkRunProperties29.Append(fontSize57); paragraphMarkRunProperties29.Append(fontSizeComplexScript57); paragraphProperties29.Append(widowControl29); paragraphProperties29.Append(autoSpaceDE29); paragraphProperties29.Append(autoSpaceDN29); paragraphProperties29.Append(adjustRightIndent29); paragraphProperties29.Append(spacingBetweenLines15); paragraphProperties29.Append(paragraphMarkRunProperties29); Run run29 = new Run(); RunProperties runProperties29 = new RunProperties(); RunFonts runFonts58 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize58 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript58 = new FontSizeComplexScript() { Val = "16" }; runProperties29.Append(runFonts58); runProperties29.Append(fontSize58); runProperties29.Append(fontSizeComplexScript58); Text text29 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text29.Text = itemAnalysis.AnalysisDescription ; run29.Append(runProperties29); run29.Append(text29); paragraph29.Append(paragraphProperties29); paragraph29.Append(run29); tableCell21.Append(tableCellProperties21); tableCell21.Append(paragraph29); TableCell tableCell22 = new TableCell(); TableCellProperties tableCellProperties22 = new TableCellProperties(); TableCellWidth tableCellWidth22 = new TableCellWidth() { Width = "1500", Type = TableWidthUnitValues.Dxa }; TableCellBorders tableCellBorders8 = new TableCellBorders(); TopBorder topBorder9 = new TopBorder() { Val = BorderValues.Nil }; LeftBorder leftBorder9 = new LeftBorder() { Val = BorderValues.Nil }; BottomBorder bottomBorder9 = new BottomBorder() { Val = BorderValues.Nil }; RightBorder rightBorder9 = new RightBorder() { Val = BorderValues.Nil }; tableCellBorders8.Append(topBorder9); tableCellBorders8.Append(leftBorder9); tableCellBorders8.Append(bottomBorder9); tableCellBorders8.Append(rightBorder9); tableCellProperties22.Append(tableCellWidth22); tableCellProperties22.Append(tableCellBorders8); Paragraph paragraph30 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties30 = new ParagraphProperties(); WidowControl widowControl30 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE30 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN30 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent30 = new AdjustRightIndent() { Val = false }; SpacingBetweenLines spacingBetweenLines16 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties30 = new ParagraphMarkRunProperties(); RunFonts runFonts59 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize59 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript59 = new FontSizeComplexScript() { Val = "16" }; paragraphMarkRunProperties30.Append(runFonts59); paragraphMarkRunProperties30.Append(fontSize59); paragraphMarkRunProperties30.Append(fontSizeComplexScript59); paragraphProperties30.Append(widowControl30); paragraphProperties30.Append(autoSpaceDE30); paragraphProperties30.Append(autoSpaceDN30); paragraphProperties30.Append(adjustRightIndent30); paragraphProperties30.Append(spacingBetweenLines16); paragraphProperties30.Append(paragraphMarkRunProperties30); Run run30 = new Run(); RunProperties runProperties30 = new RunProperties(); RunFonts runFonts60 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize60 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript60 = new FontSizeComplexScript() { Val = "16" }; runProperties30.Append(runFonts60); runProperties30.Append(fontSize60); runProperties30.Append(fontSizeComplexScript60); Text text30 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text30.Text = itemAnalysis.AnalysisPrice ; run30.Append(runProperties30); run30.Append(text30); paragraph30.Append(paragraphProperties30); paragraph30.Append(run30); tableCell22.Append(tableCellProperties22); tableCell22.Append(paragraph30); tableRow9.Append(tableRowProperties9); tableRow9.Append(tableCell19); tableRow9.Append(tableCell20); tableRow9.Append(tableCell21); tableRow9.Append(tableCell22); } // //Заканчиваем ввод таблицы // table2.Append(tableProperties2); table2.Append(tableGrid2); table2.Append(tableRow8); table2.Append(tableRow9); Paragraph paragraph31 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00900A10", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties31 = new ParagraphProperties(); WidowControl widowControl31 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE31 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN31 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent31 = new AdjustRightIndent() { Val = false }; SpacingBetweenLines spacingBetweenLines17 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties31 = new ParagraphMarkRunProperties(); RunFonts runFonts61 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize61 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript61 = new FontSizeComplexScript() { Val = "16" }; paragraphMarkRunProperties31.Append(runFonts61); paragraphMarkRunProperties31.Append(fontSize61); paragraphMarkRunProperties31.Append(fontSizeComplexScript61); paragraphProperties31.Append(widowControl31); paragraphProperties31.Append(autoSpaceDE31); paragraphProperties31.Append(autoSpaceDN31); paragraphProperties31.Append(adjustRightIndent31); paragraphProperties31.Append(spacingBetweenLines17); paragraphProperties31.Append(paragraphMarkRunProperties31); paragraph31.Append(paragraphProperties31); Paragraph paragraph32 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00900A10", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties32 = new ParagraphProperties(); WidowControl widowControl32 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE32 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN32 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent32 = new AdjustRightIndent() { Val = false }; SpacingBetweenLines spacingBetweenLines18 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties32 = new ParagraphMarkRunProperties(); RunFonts runFonts62 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize62 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript62 = new FontSizeComplexScript() { Val = "16" }; paragraphMarkRunProperties32.Append(runFonts62); paragraphMarkRunProperties32.Append(fontSize62); paragraphMarkRunProperties32.Append(fontSizeComplexScript62); paragraphProperties32.Append(widowControl32); paragraphProperties32.Append(autoSpaceDE32); paragraphProperties32.Append(autoSpaceDN32); paragraphProperties32.Append(adjustRightIndent32); paragraphProperties32.Append(spacingBetweenLines18); paragraphProperties32.Append(paragraphMarkRunProperties32); paragraph32.Append(paragraphProperties32); Paragraph paragraph33 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00900A10", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties33 = new ParagraphProperties(); WidowControl widowControl33 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE33 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN33 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent33 = new AdjustRightIndent() { Val = false }; SpacingBetweenLines spacingBetweenLines19 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties33 = new ParagraphMarkRunProperties(); RunFonts runFonts63 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize63 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript63 = new FontSizeComplexScript() { Val = "16" }; paragraphMarkRunProperties33.Append(runFonts63); paragraphMarkRunProperties33.Append(fontSize63); paragraphMarkRunProperties33.Append(fontSizeComplexScript63); paragraphProperties33.Append(widowControl33); paragraphProperties33.Append(autoSpaceDE33); paragraphProperties33.Append(autoSpaceDN33); paragraphProperties33.Append(adjustRightIndent33); paragraphProperties33.Append(spacingBetweenLines19); paragraphProperties33.Append(paragraphMarkRunProperties33); Run run31 = new Run(); RunProperties runProperties31 = new RunProperties(); RunFonts runFonts64 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize64 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript64 = new FontSizeComplexScript() { Val = "16" }; runProperties31.Append(runFonts64); runProperties31.Append(fontSize64); runProperties31.Append(fontSizeComplexScript64); Text text31 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text31.Text = " "; run31.Append(runProperties31); run31.Append(text31); Run run32 = new Run(); RunProperties runProperties32 = new RunProperties(); RunFonts runFonts65 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; Bold bold17 = new Bold(); BoldComplexScript boldComplexScript17 = new BoldComplexScript(); FontSize fontSize65 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript65 = new FontSizeComplexScript() { Val = "16" }; runProperties32.Append(runFonts65); runProperties32.Append(bold17); runProperties32.Append(boldComplexScript17); runProperties32.Append(fontSize65); runProperties32.Append(fontSizeComplexScript65); Text text32 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text32.Text = "Дополнительные услуги "; run32.Append(runProperties32); run32.Append(text32); paragraph33.Append(paragraphProperties33); paragraph33.Append(run31); paragraph33.Append(run32); Paragraph paragraph34 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00900A10", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties34 = new ParagraphProperties(); WidowControl widowControl34 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE34 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN34 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent34 = new AdjustRightIndent() { Val = false }; SpacingBetweenLines spacingBetweenLines20 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties34 = new ParagraphMarkRunProperties(); RunFonts runFonts66 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize66 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript66 = new FontSizeComplexScript() { Val = "16" }; paragraphMarkRunProperties34.Append(runFonts66); paragraphMarkRunProperties34.Append(fontSize66); paragraphMarkRunProperties34.Append(fontSizeComplexScript66); paragraphProperties34.Append(widowControl34); paragraphProperties34.Append(autoSpaceDE34); paragraphProperties34.Append(autoSpaceDN34); paragraphProperties34.Append(adjustRightIndent34); paragraphProperties34.Append(spacingBetweenLines20); paragraphProperties34.Append(paragraphMarkRunProperties34); paragraph34.Append(paragraphProperties34); ///////////////////////////////////////////// // Начинается ввод таблицы с дополнительными услугами //////////////////////////////////////////////// Table table3 = new Table(); TableProperties tableProperties3 = new TableProperties(); TableWidth tableWidth3 = new TableWidth() { Width = "0", Type = TableWidthUnitValues.Auto }; TableIndentation tableIndentation2 = new TableIndentation() { Width = 30, Type = TableWidthUnitValues.Dxa }; TableLayout tableLayout2 = new TableLayout() { Type = TableLayoutValues.Fixed }; TableCellMarginDefault tableCellMarginDefault2 = new TableCellMarginDefault(); TableCellLeftMargin tableCellLeftMargin2 = new TableCellLeftMargin() { Width = 30, Type = TableWidthValues.Dxa }; TableCellRightMargin tableCellRightMargin2 = new TableCellRightMargin() { Width = 30, Type = TableWidthValues.Dxa }; tableCellMarginDefault2.Append(tableCellLeftMargin2); tableCellMarginDefault2.Append(tableCellRightMargin2); TableLook tableLook3 = new TableLook() { Val = "0000", FirstRow = false, LastRow = false, FirstColumn = false, LastColumn = false, NoHorizontalBand = false, NoVerticalBand = false }; tableProperties3.Append(tableWidth3); tableProperties3.Append(tableIndentation2); tableProperties3.Append(tableLayout2); tableProperties3.Append(tableCellMarginDefault2); tableProperties3.Append(tableLook3); TableGrid tableGrid3 = new TableGrid(); GridColumn gridColumn7 = new GridColumn() { Width = "500" }; GridColumn gridColumn8 = new GridColumn() { Width = "1000" }; GridColumn gridColumn9 = new GridColumn() { Width = "5500" }; GridColumn gridColumn10 = new GridColumn() { Width = "1500" }; tableGrid3.Append(gridColumn7); tableGrid3.Append(gridColumn8); tableGrid3.Append(gridColumn9); tableGrid3.Append(gridColumn10); // // Пошло заполнение данных // foreach (var itemAddService in obj.AddServiceList) { TableRow tableRow10 = new TableRow() { RsidTableRowAddition = "00900A10", RsidTableRowProperties = "00B819CE" }; TableRowProperties tableRowProperties10 = new TableRowProperties(); TableRowHeight tableRowHeight10 = new TableRowHeight() { Val = (UInt32Value)262U }; tableRowProperties10.Append(tableRowHeight10); TableCell tableCell23 = new TableCell(); TableCellProperties tableCellProperties23 = new TableCellProperties(); TableCellWidth tableCellWidth23 = new TableCellWidth() { Width = "500", Type = TableWidthUnitValues.Dxa }; TableCellBorders tableCellBorders9 = new TableCellBorders(); TopBorder topBorder10 = new TopBorder() { Val = BorderValues.Nil }; LeftBorder leftBorder10 = new LeftBorder() { Val = BorderValues.Nil }; BottomBorder bottomBorder10 = new BottomBorder() { Val = BorderValues.Nil }; RightBorder rightBorder10 = new RightBorder() { Val = BorderValues.Nil }; tableCellBorders9.Append(topBorder10); tableCellBorders9.Append(leftBorder10); tableCellBorders9.Append(bottomBorder10); tableCellBorders9.Append(rightBorder10); tableCellProperties23.Append(tableCellWidth23); tableCellProperties23.Append(tableCellBorders9); Paragraph paragraph35 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties35 = new ParagraphProperties(); WidowControl widowControl35 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE35 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN35 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent35 = new AdjustRightIndent() { Val = false }; SpacingBetweenLines spacingBetweenLines21 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties35 = new ParagraphMarkRunProperties(); RunFonts runFonts67 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize67 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript67 = new FontSizeComplexScript() { Val = "16" }; paragraphMarkRunProperties35.Append(runFonts67); paragraphMarkRunProperties35.Append(fontSize67); paragraphMarkRunProperties35.Append(fontSizeComplexScript67); paragraphProperties35.Append(widowControl35); paragraphProperties35.Append(autoSpaceDE35); paragraphProperties35.Append(autoSpaceDN35); paragraphProperties35.Append(adjustRightIndent35); paragraphProperties35.Append(spacingBetweenLines21); paragraphProperties35.Append(paragraphMarkRunProperties35); Run run33 = new Run(); RunProperties runProperties33 = new RunProperties(); RunFonts runFonts68 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize68 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript68 = new FontSizeComplexScript() { Val = "16" }; runProperties33.Append(runFonts68); runProperties33.Append(fontSize68); runProperties33.Append(fontSizeComplexScript68); Text text33 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text33.Text = itemAddService.AddServicePosition ; run33.Append(runProperties33); run33.Append(text33); paragraph35.Append(paragraphProperties35); paragraph35.Append(run33); tableCell23.Append(tableCellProperties23); tableCell23.Append(paragraph35); TableCell tableCell24 = new TableCell(); TableCellProperties tableCellProperties24 = new TableCellProperties(); TableCellWidth tableCellWidth24 = new TableCellWidth() { Width = "1000", Type = TableWidthUnitValues.Dxa }; TableCellBorders tableCellBorders10 = new TableCellBorders(); TopBorder topBorder11 = new TopBorder() { Val = BorderValues.Nil }; LeftBorder leftBorder11 = new LeftBorder() { Val = BorderValues.Nil }; BottomBorder bottomBorder11 = new BottomBorder() { Val = BorderValues.Nil }; RightBorder rightBorder11 = new RightBorder() { Val = BorderValues.Nil }; tableCellBorders10.Append(topBorder11); tableCellBorders10.Append(leftBorder11); tableCellBorders10.Append(bottomBorder11); tableCellBorders10.Append(rightBorder11); tableCellProperties24.Append(tableCellWidth24); tableCellProperties24.Append(tableCellBorders10); Paragraph paragraph36 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties36 = new ParagraphProperties(); WidowControl widowControl36 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE36 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN36 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent36 = new AdjustRightIndent() { Val = false }; SpacingBetweenLines spacingBetweenLines22 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; Justification justification7 = new Justification() { Val = JustificationValues.Center }; ParagraphMarkRunProperties paragraphMarkRunProperties36 = new ParagraphMarkRunProperties(); RunFonts runFonts69 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize69 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript69 = new FontSizeComplexScript() { Val = "16" }; paragraphMarkRunProperties36.Append(runFonts69); paragraphMarkRunProperties36.Append(fontSize69); paragraphMarkRunProperties36.Append(fontSizeComplexScript69); paragraphProperties36.Append(widowControl36); paragraphProperties36.Append(autoSpaceDE36); paragraphProperties36.Append(autoSpaceDN36); paragraphProperties36.Append(adjustRightIndent36); paragraphProperties36.Append(spacingBetweenLines22); paragraphProperties36.Append(justification7); paragraphProperties36.Append(paragraphMarkRunProperties36); Run run34 = new Run(); RunProperties runProperties34 = new RunProperties(); RunFonts runFonts70 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize70 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript70 = new FontSizeComplexScript() { Val = "16" }; runProperties34.Append(runFonts70); runProperties34.Append(fontSize70); runProperties34.Append(fontSizeComplexScript70); Text text34 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text34.Text = itemAddService.AddServiceCode ; run34.Append(runProperties34); run34.Append(text34); paragraph36.Append(paragraphProperties36); paragraph36.Append(run34); tableCell24.Append(tableCellProperties24); tableCell24.Append(paragraph36); TableCell tableCell25 = new TableCell(); TableCellProperties tableCellProperties25 = new TableCellProperties(); TableCellWidth tableCellWidth25 = new TableCellWidth() { Width = "5500", Type = TableWidthUnitValues.Dxa }; TableCellBorders tableCellBorders11 = new TableCellBorders(); TopBorder topBorder12 = new TopBorder() { Val = BorderValues.Nil }; LeftBorder leftBorder12 = new LeftBorder() { Val = BorderValues.Nil }; BottomBorder bottomBorder12 = new BottomBorder() { Val = BorderValues.Nil }; RightBorder rightBorder12 = new RightBorder() { Val = BorderValues.Nil }; tableCellBorders11.Append(topBorder12); tableCellBorders11.Append(leftBorder12); tableCellBorders11.Append(bottomBorder12); tableCellBorders11.Append(rightBorder12); tableCellProperties25.Append(tableCellWidth25); tableCellProperties25.Append(tableCellBorders11); Paragraph paragraph37 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties37 = new ParagraphProperties(); WidowControl widowControl37 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE37 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN37 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent37 = new AdjustRightIndent() { Val = false }; SpacingBetweenLines spacingBetweenLines23 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties37 = new ParagraphMarkRunProperties(); RunFonts runFonts71 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize71 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript71 = new FontSizeComplexScript() { Val = "16" }; paragraphMarkRunProperties37.Append(runFonts71); paragraphMarkRunProperties37.Append(fontSize71); paragraphMarkRunProperties37.Append(fontSizeComplexScript71); paragraphProperties37.Append(widowControl37); paragraphProperties37.Append(autoSpaceDE37); paragraphProperties37.Append(autoSpaceDN37); paragraphProperties37.Append(adjustRightIndent37); paragraphProperties37.Append(spacingBetweenLines23); paragraphProperties37.Append(paragraphMarkRunProperties37); Run run35 = new Run(); RunProperties runProperties35 = new RunProperties(); RunFonts runFonts72 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize72 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript72 = new FontSizeComplexScript() { Val = "16" }; runProperties35.Append(runFonts72); runProperties35.Append(fontSize72); runProperties35.Append(fontSizeComplexScript72); Text text35 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text35.Text = itemAddService.AddServiceDescription ; run35.Append(runProperties35); run35.Append(text35); paragraph37.Append(paragraphProperties37); paragraph37.Append(run35); tableCell25.Append(tableCellProperties25); tableCell25.Append(paragraph37); TableCell tableCell26 = new TableCell(); TableCellProperties tableCellProperties26 = new TableCellProperties(); TableCellWidth tableCellWidth26 = new TableCellWidth() { Width = "1500", Type = TableWidthUnitValues.Dxa }; TableCellBorders tableCellBorders12 = new TableCellBorders(); TopBorder topBorder13 = new TopBorder() { Val = BorderValues.Nil }; LeftBorder leftBorder13 = new LeftBorder() { Val = BorderValues.Nil }; BottomBorder bottomBorder13 = new BottomBorder() { Val = BorderValues.Nil }; RightBorder rightBorder13 = new RightBorder() { Val = BorderValues.Nil }; tableCellBorders12.Append(topBorder13); tableCellBorders12.Append(leftBorder13); tableCellBorders12.Append(bottomBorder13); tableCellBorders12.Append(rightBorder13); tableCellProperties26.Append(tableCellWidth26); tableCellProperties26.Append(tableCellBorders12); Paragraph paragraph38 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties38 = new ParagraphProperties(); WidowControl widowControl38 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE38 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN38 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent38 = new AdjustRightIndent() { Val = false }; SpacingBetweenLines spacingBetweenLines24 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties38 = new ParagraphMarkRunProperties(); RunFonts runFonts73 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize73 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript73 = new FontSizeComplexScript() { Val = "16" }; paragraphMarkRunProperties38.Append(runFonts73); paragraphMarkRunProperties38.Append(fontSize73); paragraphMarkRunProperties38.Append(fontSizeComplexScript73); paragraphProperties38.Append(widowControl38); paragraphProperties38.Append(autoSpaceDE38); paragraphProperties38.Append(autoSpaceDN38); paragraphProperties38.Append(adjustRightIndent38); paragraphProperties38.Append(spacingBetweenLines24); paragraphProperties38.Append(paragraphMarkRunProperties38); Run run36 = new Run(); RunProperties runProperties36 = new RunProperties(); RunFonts runFonts74 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize74 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript74 = new FontSizeComplexScript() { Val = "16" }; runProperties36.Append(runFonts74); runProperties36.Append(fontSize74); runProperties36.Append(fontSizeComplexScript74); Text text36 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text36.Text = itemAddService.AddServicePrice ; run36.Append(runProperties36); run36.Append(text36); paragraph38.Append(paragraphProperties38); paragraph38.Append(run36); tableCell26.Append(tableCellProperties26); tableCell26.Append(paragraph38); tableRow10.Append(tableRowProperties10); tableRow10.Append(tableCell23); tableRow10.Append(tableCell24); tableRow10.Append(tableCell25); tableRow10.Append(tableCell26); table3.Append(tableProperties3); table3.Append(tableGrid3); table3.Append(tableRow10); } Paragraph paragraph39 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00900A10", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties39 = new ParagraphProperties(); WidowControl widowControl39 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE39 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN39 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent39 = new AdjustRightIndent() { Val = false }; SpacingBetweenLines spacingBetweenLines25 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties39 = new ParagraphMarkRunProperties(); RunFonts runFonts75 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize75 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript75 = new FontSizeComplexScript() { Val = "16" }; paragraphMarkRunProperties39.Append(runFonts75); paragraphMarkRunProperties39.Append(fontSize75); paragraphMarkRunProperties39.Append(fontSizeComplexScript75); paragraphProperties39.Append(widowControl39); paragraphProperties39.Append(autoSpaceDE39); paragraphProperties39.Append(autoSpaceDN39); paragraphProperties39.Append(adjustRightIndent39); paragraphProperties39.Append(spacingBetweenLines25); paragraphProperties39.Append(paragraphMarkRunProperties39); paragraph39.Append(paragraphProperties39); Paragraph paragraph40 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00900A10", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties40 = new ParagraphProperties(); WidowControl widowControl40 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE40 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN40 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent40 = new AdjustRightIndent() { Val = false }; SpacingBetweenLines spacingBetweenLines26 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties40 = new ParagraphMarkRunProperties(); RunFonts runFonts76 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize76 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript76 = new FontSizeComplexScript() { Val = "16" }; paragraphMarkRunProperties40.Append(runFonts76); paragraphMarkRunProperties40.Append(fontSize76); paragraphMarkRunProperties40.Append(fontSizeComplexScript76); paragraphProperties40.Append(widowControl40); paragraphProperties40.Append(autoSpaceDE40); paragraphProperties40.Append(autoSpaceDN40); paragraphProperties40.Append(adjustRightIndent40); paragraphProperties40.Append(spacingBetweenLines26); paragraphProperties40.Append(paragraphMarkRunProperties40); paragraph40.Append(paragraphProperties40); Paragraph paragraph41 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00900A10", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties41 = new ParagraphProperties(); WidowControl widowControl41 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE41 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN41 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent41 = new AdjustRightIndent() { Val = false }; SpacingBetweenLines spacingBetweenLines27 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties41 = new ParagraphMarkRunProperties(); RunFonts runFonts77 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize77 = new FontSize() { Val = "18" }; FontSizeComplexScript fontSizeComplexScript77 = new FontSizeComplexScript() { Val = "18" }; paragraphMarkRunProperties41.Append(runFonts77); paragraphMarkRunProperties41.Append(fontSize77); paragraphMarkRunProperties41.Append(fontSizeComplexScript77); paragraphProperties41.Append(widowControl41); paragraphProperties41.Append(autoSpaceDE41); paragraphProperties41.Append(autoSpaceDN41); paragraphProperties41.Append(adjustRightIndent41); paragraphProperties41.Append(spacingBetweenLines27); paragraphProperties41.Append(paragraphMarkRunProperties41); Run run37 = new Run(); RunProperties runProperties37 = new RunProperties(); RunFonts runFonts78 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize78 = new FontSize() { Val = "18" }; FontSizeComplexScript fontSizeComplexScript78 = new FontSizeComplexScript() { Val = "18" }; runProperties37.Append(runFonts78); runProperties37.Append(fontSize78); runProperties37.Append(fontSizeComplexScript78); Text text37 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text37.Text = " "; run37.Append(runProperties37); run37.Append(text37); Run run38 = new Run(); RunProperties runProperties38 = new RunProperties(); RunFonts runFonts79 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; Bold bold18 = new Bold(); BoldComplexScript boldComplexScript18 = new BoldComplexScript(); FontSize fontSize79 = new FontSize() { Val = "18" }; FontSizeComplexScript fontSizeComplexScript79 = new FontSizeComplexScript() { Val = "18" }; runProperties38.Append(runFonts79); runProperties38.Append(bold18); runProperties38.Append(boldComplexScript18); runProperties38.Append(fontSize79); runProperties38.Append(fontSizeComplexScript79); Text text38 = new Text(); text38.Text = "Итого на общую сумму: " + obj.TotalSum ; run38.Append(runProperties38); run38.Append(text38); paragraph41.Append(paragraphProperties41); paragraph41.Append(run37); paragraph41.Append(run38); Paragraph paragraph42 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00900A10", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties42 = new ParagraphProperties(); WidowControl widowControl42 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE42 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN42 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent42 = new AdjustRightIndent() { Val = false }; SpacingBetweenLines spacingBetweenLines28 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties42 = new ParagraphMarkRunProperties(); RunFonts runFonts80 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize80 = new FontSize() { Val = "18" }; FontSizeComplexScript fontSizeComplexScript80 = new FontSizeComplexScript() { Val = "18" }; paragraphMarkRunProperties42.Append(runFonts80); paragraphMarkRunProperties42.Append(fontSize80); paragraphMarkRunProperties42.Append(fontSizeComplexScript80); paragraphProperties42.Append(widowControl42); paragraphProperties42.Append(autoSpaceDE42); paragraphProperties42.Append(autoSpaceDN42); paragraphProperties42.Append(adjustRightIndent42); paragraphProperties42.Append(spacingBetweenLines28); paragraphProperties42.Append(paragraphMarkRunProperties42); paragraph42.Append(paragraphProperties42); Paragraph paragraph43 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00900A10", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties43 = new ParagraphProperties(); WidowControl widowControl43 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE43 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN43 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent43 = new AdjustRightIndent() { Val = false }; SpacingBetweenLines spacingBetweenLines29 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties43 = new ParagraphMarkRunProperties(); RunFonts runFonts81 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize81 = new FontSize() { Val = "18" }; FontSizeComplexScript fontSizeComplexScript81 = new FontSizeComplexScript() { Val = "18" }; paragraphMarkRunProperties43.Append(runFonts81); paragraphMarkRunProperties43.Append(fontSize81); paragraphMarkRunProperties43.Append(fontSizeComplexScript81); paragraphProperties43.Append(widowControl43); paragraphProperties43.Append(autoSpaceDE43); paragraphProperties43.Append(autoSpaceDN43); paragraphProperties43.Append(adjustRightIndent43); paragraphProperties43.Append(spacingBetweenLines29); paragraphProperties43.Append(paragraphMarkRunProperties43); paragraph43.Append(paragraphProperties43); Paragraph paragraph44 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00900A10", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties44 = new ParagraphProperties(); WidowControl widowControl44 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE44 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN44 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent44 = new AdjustRightIndent() { Val = false }; SpacingBetweenLines spacingBetweenLines30 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties44 = new ParagraphMarkRunProperties(); RunFonts runFonts82 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize82 = new FontSize() { Val = "18" }; FontSizeComplexScript fontSizeComplexScript82 = new FontSizeComplexScript() { Val = "18" }; paragraphMarkRunProperties44.Append(runFonts82); paragraphMarkRunProperties44.Append(fontSize82); paragraphMarkRunProperties44.Append(fontSizeComplexScript82); paragraphProperties44.Append(widowControl44); paragraphProperties44.Append(autoSpaceDE44); paragraphProperties44.Append(autoSpaceDN44); paragraphProperties44.Append(adjustRightIndent44); paragraphProperties44.Append(spacingBetweenLines30); paragraphProperties44.Append(paragraphMarkRunProperties44); paragraph44.Append(paragraphProperties44); Table table4 = new Table(); TableProperties tableProperties4 = new TableProperties(); TableWidth tableWidth4 = new TableWidth() { Width = "0", Type = TableWidthUnitValues.Auto }; TableIndentation tableIndentation3 = new TableIndentation() { Width = 30, Type = TableWidthUnitValues.Dxa }; TableLayout tableLayout3 = new TableLayout() { Type = TableLayoutValues.Fixed }; TableCellMarginDefault tableCellMarginDefault3 = new TableCellMarginDefault(); TableCellLeftMargin tableCellLeftMargin3 = new TableCellLeftMargin() { Width = 30, Type = TableWidthValues.Dxa }; TableCellRightMargin tableCellRightMargin3 = new TableCellRightMargin() { Width = 30, Type = TableWidthValues.Dxa }; tableCellMarginDefault3.Append(tableCellLeftMargin3); tableCellMarginDefault3.Append(tableCellRightMargin3); TableLook tableLook4 = new TableLook() { Val = "0000", FirstRow = false, LastRow = false, FirstColumn = false, LastColumn = false, NoHorizontalBand = false, NoVerticalBand = false }; tableProperties4.Append(tableWidth4); tableProperties4.Append(tableIndentation3); tableProperties4.Append(tableLayout3); tableProperties4.Append(tableCellMarginDefault3); tableProperties4.Append(tableLook4); TableGrid tableGrid4 = new TableGrid(); GridColumn gridColumn11 = new GridColumn() { Width = "2000" }; GridColumn gridColumn12 = new GridColumn() { Width = "2000" }; GridColumn gridColumn13 = new GridColumn() { Width = "2500" }; GridColumn gridColumn14 = new GridColumn() { Width = "3000" }; tableGrid4.Append(gridColumn11); tableGrid4.Append(gridColumn12); tableGrid4.Append(gridColumn13); tableGrid4.Append(gridColumn14); TableRow tableRow11 = new TableRow() { RsidTableRowAddition = "00900A10", RsidTableRowProperties = "00B819CE" }; TableRowProperties tableRowProperties11 = new TableRowProperties(); TableRowHeight tableRowHeight11 = new TableRowHeight() { Val = (UInt32Value)262U }; TableHeader tableHeader2 = new TableHeader(); tableRowProperties11.Append(tableRowHeight11); tableRowProperties11.Append(tableHeader2); TableCell tableCell27 = new TableCell(); TableCellProperties tableCellProperties27 = new TableCellProperties(); TableCellWidth tableCellWidth27 = new TableCellWidth() { Width = "2000", Type = TableWidthUnitValues.Dxa }; TableCellBorders tableCellBorders13 = new TableCellBorders(); TopBorder topBorder14 = new TopBorder() { Val = BorderValues.Nil }; LeftBorder leftBorder14 = new LeftBorder() { Val = BorderValues.Nil }; BottomBorder bottomBorder14 = new BottomBorder() { Val = BorderValues.Nil }; RightBorder rightBorder14 = new RightBorder() { Val = BorderValues.Nil }; tableCellBorders13.Append(topBorder14); tableCellBorders13.Append(leftBorder14); tableCellBorders13.Append(bottomBorder14); tableCellBorders13.Append(rightBorder14); tableCellProperties27.Append(tableCellWidth27); tableCellProperties27.Append(tableCellBorders13); Paragraph paragraph45 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties45 = new ParagraphProperties(); WidowControl widowControl45 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE45 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN45 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent45 = new AdjustRightIndent() { Val = false }; SpacingBetweenLines spacingBetweenLines31 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties45 = new ParagraphMarkRunProperties(); RunFonts runFonts83 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize83 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript83 = new FontSizeComplexScript() { Val = "16" }; paragraphMarkRunProperties45.Append(runFonts83); paragraphMarkRunProperties45.Append(fontSize83); paragraphMarkRunProperties45.Append(fontSizeComplexScript83); paragraphProperties45.Append(widowControl45); paragraphProperties45.Append(autoSpaceDE45); paragraphProperties45.Append(autoSpaceDN45); paragraphProperties45.Append(adjustRightIndent45); paragraphProperties45.Append(spacingBetweenLines31); paragraphProperties45.Append(paragraphMarkRunProperties45); Run run39 = new Run(); RunProperties runProperties39 = new RunProperties(); RunFonts runFonts84 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize84 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript84 = new FontSizeComplexScript() { Val = "16" }; runProperties39.Append(runFonts84); runProperties39.Append(fontSize84); runProperties39.Append(fontSizeComplexScript84); Text text39 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text39.Text = "Подпись пациента: "; run39.Append(runProperties39); run39.Append(text39); paragraph45.Append(paragraphProperties45); paragraph45.Append(run39); tableCell27.Append(tableCellProperties27); tableCell27.Append(paragraph45); TableCell tableCell28 = new TableCell(); TableCellProperties tableCellProperties28 = new TableCellProperties(); TableCellWidth tableCellWidth28 = new TableCellWidth() { Width = "2000", Type = TableWidthUnitValues.Dxa }; TableCellBorders tableCellBorders14 = new TableCellBorders(); TopBorder topBorder15 = new TopBorder() { Val = BorderValues.Nil }; LeftBorder leftBorder15 = new LeftBorder() { Val = BorderValues.Nil }; BottomBorder bottomBorder15 = new BottomBorder() { Val = BorderValues.Nil }; RightBorder rightBorder15 = new RightBorder() { Val = BorderValues.Nil }; tableCellBorders14.Append(topBorder15); tableCellBorders14.Append(leftBorder15); tableCellBorders14.Append(bottomBorder15); tableCellBorders14.Append(rightBorder15); tableCellProperties28.Append(tableCellWidth28); tableCellProperties28.Append(tableCellBorders14); Paragraph paragraph46 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties46 = new ParagraphProperties(); WidowControl widowControl46 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE46 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN46 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent46 = new AdjustRightIndent() { Val = false }; SpacingBetweenLines spacingBetweenLines32 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; Justification justification8 = new Justification() { Val = JustificationValues.Center }; ParagraphMarkRunProperties paragraphMarkRunProperties46 = new ParagraphMarkRunProperties(); RunFonts runFonts85 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize85 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript85 = new FontSizeComplexScript() { Val = "16" }; paragraphMarkRunProperties46.Append(runFonts85); paragraphMarkRunProperties46.Append(fontSize85); paragraphMarkRunProperties46.Append(fontSizeComplexScript85); paragraphProperties46.Append(widowControl46); paragraphProperties46.Append(autoSpaceDE46); paragraphProperties46.Append(autoSpaceDN46); paragraphProperties46.Append(adjustRightIndent46); paragraphProperties46.Append(spacingBetweenLines32); paragraphProperties46.Append(justification8); paragraphProperties46.Append(paragraphMarkRunProperties46); Run run40 = new Run(); RunProperties runProperties40 = new RunProperties(); RunFonts runFonts86 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize86 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript86 = new FontSizeComplexScript() { Val = "16" }; runProperties40.Append(runFonts86); runProperties40.Append(fontSize86); runProperties40.Append(fontSizeComplexScript86); Text text40 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text40.Text = "___________________ "; run40.Append(runProperties40); run40.Append(text40); paragraph46.Append(paragraphProperties46); paragraph46.Append(run40); tableCell28.Append(tableCellProperties28); tableCell28.Append(paragraph46); TableCell tableCell29 = new TableCell(); TableCellProperties tableCellProperties29 = new TableCellProperties(); TableCellWidth tableCellWidth29 = new TableCellWidth() { Width = "2500", Type = TableWidthUnitValues.Dxa }; TableCellBorders tableCellBorders15 = new TableCellBorders(); TopBorder topBorder16 = new TopBorder() { Val = BorderValues.Nil }; LeftBorder leftBorder16 = new LeftBorder() { Val = BorderValues.Nil }; BottomBorder bottomBorder16 = new BottomBorder() { Val = BorderValues.Nil }; RightBorder rightBorder16 = new RightBorder() { Val = BorderValues.Nil }; tableCellBorders15.Append(topBorder16); tableCellBorders15.Append(leftBorder16); tableCellBorders15.Append(bottomBorder16); tableCellBorders15.Append(rightBorder16); tableCellProperties29.Append(tableCellWidth29); tableCellProperties29.Append(tableCellBorders15); Paragraph paragraph47 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties47 = new ParagraphProperties(); WidowControl widowControl47 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE47 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN47 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent47 = new AdjustRightIndent() { Val = false }; SpacingBetweenLines spacingBetweenLines33 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; Justification justification9 = new Justification() { Val = JustificationValues.Center }; ParagraphMarkRunProperties paragraphMarkRunProperties47 = new ParagraphMarkRunProperties(); RunFonts runFonts87 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize87 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript87 = new FontSizeComplexScript() { Val = "16" }; paragraphMarkRunProperties47.Append(runFonts87); paragraphMarkRunProperties47.Append(fontSize87); paragraphMarkRunProperties47.Append(fontSizeComplexScript87); paragraphProperties47.Append(widowControl47); paragraphProperties47.Append(autoSpaceDE47); paragraphProperties47.Append(autoSpaceDN47); paragraphProperties47.Append(adjustRightIndent47); paragraphProperties47.Append(spacingBetweenLines33); paragraphProperties47.Append(justification9); paragraphProperties47.Append(paragraphMarkRunProperties47); Run run41 = new Run(); RunProperties runProperties41 = new RunProperties(); RunFonts runFonts88 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize88 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript88 = new FontSizeComplexScript() { Val = "16" }; runProperties41.Append(runFonts88); runProperties41.Append(fontSize88); runProperties41.Append(fontSizeComplexScript88); Text text41 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text41.Text = "("+obj.PatientFIO + ")"; run41.Append(runProperties41); run41.Append(text41); paragraph47.Append(paragraphProperties47); paragraph47.Append(run41); tableCell29.Append(tableCellProperties29); tableCell29.Append(paragraph47); TableCell tableCell30 = new TableCell(); TableCellProperties tableCellProperties30 = new TableCellProperties(); TableCellWidth tableCellWidth30 = new TableCellWidth() { Width = "3000", Type = TableWidthUnitValues.Dxa }; TableCellBorders tableCellBorders16 = new TableCellBorders(); TopBorder topBorder17 = new TopBorder() { Val = BorderValues.Nil }; LeftBorder leftBorder17 = new LeftBorder() { Val = BorderValues.Nil }; BottomBorder bottomBorder17 = new BottomBorder() { Val = BorderValues.Nil }; RightBorder rightBorder17 = new RightBorder() { Val = BorderValues.Nil }; tableCellBorders16.Append(topBorder17); tableCellBorders16.Append(leftBorder17); tableCellBorders16.Append(bottomBorder17); tableCellBorders16.Append(rightBorder17); tableCellProperties30.Append(tableCellWidth30); tableCellProperties30.Append(tableCellBorders16); Paragraph paragraph48 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties48 = new ParagraphProperties(); WidowControl widowControl48 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE48 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN48 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent48 = new AdjustRightIndent() { Val = false }; SpacingBetweenLines spacingBetweenLines34 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties48 = new ParagraphMarkRunProperties(); RunFonts runFonts89 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize89 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript89 = new FontSizeComplexScript() { Val = "16" }; paragraphMarkRunProperties48.Append(runFonts89); paragraphMarkRunProperties48.Append(fontSize89); paragraphMarkRunProperties48.Append(fontSizeComplexScript89); paragraphProperties48.Append(widowControl48); paragraphProperties48.Append(autoSpaceDE48); paragraphProperties48.Append(autoSpaceDN48); paragraphProperties48.Append(adjustRightIndent48); paragraphProperties48.Append(spacingBetweenLines34); paragraphProperties48.Append(paragraphMarkRunProperties48); Run run42 = new Run(); RunProperties runProperties42 = new RunProperties(); RunFonts runFonts90 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize90 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript90 = new FontSizeComplexScript() { Val = "16" }; runProperties42.Append(runFonts90); runProperties42.Append(fontSize90); runProperties42.Append(fontSizeComplexScript90); Text text42 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text42.Text = "Дата: " + DateTime.Now; run42.Append(runProperties42); run42.Append(text42); paragraph48.Append(paragraphProperties48); paragraph48.Append(run42); tableCell30.Append(tableCellProperties30); tableCell30.Append(paragraph48); tableRow11.Append(tableRowProperties11); tableRow11.Append(tableCell27); tableRow11.Append(tableCell28); tableRow11.Append(tableCell29); tableRow11.Append(tableCell30); table4.Append(tableProperties4); table4.Append(tableGrid4); table4.Append(tableRow11); Paragraph paragraph49 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00900A10", RsidRunAdditionDefault = "00900A10" }; Paragraph paragraph50 = new Paragraph() { RsidParagraphMarkRevision = "00900A10", RsidParagraphAddition = "00945FC6", RsidParagraphProperties = "00900A10", RsidRunAdditionDefault = "00945FC6" }; SectionProperties sectionProperties1 = new SectionProperties() { RsidRPr = "00900A10", RsidR = "00945FC6" }; HeaderReference headerReference1 = new HeaderReference() { Type = HeaderFooterValues.Default, Id = "rId7" }; FooterReference footerReference1 = new FooterReference() { Type = HeaderFooterValues.Default, Id = "rId8" }; PageSize pageSize1 = new PageSize() { Width = (UInt32Value)12240U, Height = (UInt32Value)15840U }; PageMargin pageMargin1 = new PageMargin() { Top = 1134, Right = (UInt32Value)850U, Bottom = 1134, Left = (UInt32Value)1701U, Header = (UInt32Value)720U, Footer = (UInt32Value)720U, Gutter = (UInt32Value)0U }; Columns columns1 = new Columns() { Space = "720" }; NoEndnote noEndnote1 = new NoEndnote(); sectionProperties1.Append(headerReference1); sectionProperties1.Append(footerReference1); sectionProperties1.Append(pageSize1); sectionProperties1.Append(pageMargin1); sectionProperties1.Append(columns1); sectionProperties1.Append(noEndnote1); body1.Append(paragraph1); body1.Append(paragraph2); body1.Append(paragraph3); body1.Append(paragraph4); body1.Append(table1); body1.Append(paragraph19); body1.Append(paragraph20); body1.Append(paragraph21); body1.Append(paragraph22); body1.Append(table2); body1.Append(paragraph31); body1.Append(paragraph32); body1.Append(paragraph33); body1.Append(paragraph34); body1.Append(table3); body1.Append(paragraph39); body1.Append(paragraph40); body1.Append(paragraph41); body1.Append(paragraph42); body1.Append(paragraph43); body1.Append(paragraph44); body1.Append(table4); body1.Append(paragraph49); body1.Append(paragraph50); body1.Append(sectionProperties1); document1.Append(body1); mainDocumentPart1.Document = document1; }
private static void AddNewStyle(StyleDefinitionsPart styleDefinitionsPart, string styleid, string stylename, Color colour, String fontName, int fontSize, bool italic, bool bold) { // 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(); RunFonts font1 = new RunFonts() { Ascii = fontName }; FontSize fontSize1 = new FontSize() { Val = (fontSize * 2).ToString() }; if (bold) { styleRunProperties1.Append(new Bold()); } styleRunProperties1.Append(colour); styleRunProperties1.Append(font1); styleRunProperties1.Append(fontSize1); if (italic) { styleRunProperties1.Append(new Italic()); } // Add the run properties to the style. style.Append(styleRunProperties1); // Add the style to the styles part. styles.Append(style); }
private Paragraph GeneratePageCountparagraph(int pageCount) { Paragraph paragraph1 = new Paragraph() { RsidParagraphAddition = "004E307B", RsidParagraphProperties = "00E073E3", RsidRunAdditionDefault = "00E073E3" }; ParagraphProperties paragraphProperties1 = new ParagraphProperties(); Justification justification1 = new Justification() { Val = JustificationValues.Center }; ParagraphMarkRunProperties paragraphMarkRunProperties1 = new ParagraphMarkRunProperties(); RunFonts runFonts1 = new RunFonts() { Hint = FontTypeHintValues.EastAsia }; paragraphMarkRunProperties1.Append(runFonts1); paragraphProperties1.Append(justification1); paragraphProperties1.Append(paragraphMarkRunProperties1); Run run1 = new Run(); RunProperties runProperties1 = new RunProperties(); RunFonts runFonts2 = new RunFonts() { Hint = FontTypeHintValues.EastAsia }; runProperties1.Append(runFonts2); Text text1 = new Text(); text1.Text = "第"; run1.Append(runProperties1); run1.Append(text1); Run run2 = new Run(); RunProperties runProperties2 = new RunProperties(); RunFonts runFonts3 = new RunFonts() { Hint = FontTypeHintValues.EastAsia }; runProperties2.Append(runFonts3); Text text2 = new Text(); text2.Text = pageCount.ToString(); run2.Append(runProperties2); run2.Append(text2); Run run3 = new Run(); RunProperties runProperties3 = new RunProperties(); RunFonts runFonts4 = new RunFonts() { Hint = FontTypeHintValues.EastAsia }; runProperties3.Append(runFonts4); Text text3 = new Text(); text3.Text = "页"; run3.Append(runProperties3); run3.Append(text3); paragraph1.Append(paragraphProperties1); paragraph1.Append(run1); paragraph1.Append(run2); paragraph1.Append(run3); return paragraph1; }
// Creates an Document instance and adds its children. public override Document GenerateDocument() { //this.MakeNewStyleH1( ); Document document1 = this.NewDocument( ); Body body1 = new Body(); //............................................. Paragraph paragraph1 = new Paragraph() { RsidParagraphAddition = "00C5114C", RsidParagraphProperties = "006F111A", RsidRunAdditionDefault = "006F111A" }; ParagraphStyleId paragraphStyleId1 = new ParagraphStyleId( ) { Val = "2" }; //............................................. RunFonts runFonts1 = new RunFonts() { Hint = FontTypeHintValues.EastAsia }; ParagraphMarkRunProperties paragraphMarkRunProperties1 = new ParagraphMarkRunProperties( ); paragraphMarkRunProperties1.Append(runFonts1); ParagraphProperties paragraphProperties1 = new ParagraphProperties( ); paragraphProperties1.Append(paragraphStyleId1); paragraphProperties1.Append(paragraphMarkRunProperties1); //............................................. RunFonts runFonts2 = new RunFonts() { Hint = FontTypeHintValues.EastAsia }; RunProperties runProperties1 = new RunProperties( ); runProperties1.Append(runFonts2); Text text1 = new Text(); text1.Text = "HELLO"; Run run1 = new Run( ); run1.Append(runProperties1); run1.Append(text1); //............................................. //BookmarkStart bookmarkStart1 = new BookmarkStart(){ Name = "_GoBack", Id = "0" }; //BookmarkEnd bookmarkEnd1 = new BookmarkEnd(){ Id = "0" }; paragraph1.Append(paragraphProperties1); paragraph1.Append(run1); //docpara.Append(bookmarkStart1); //docpara.Append(bookmarkEnd1); //............................................. //Paragraph paragraph2 = new Paragraph(){ RsidParagraphAddition = "006F111A", RsidRunAdditionDefault = "006F111A" }; SectionProperties sectionProperties1 = this.MakeDefaultSectionProperty( ); body1.Append(paragraph1); //body1.Append(paragraph2); body1.Append(sectionProperties1); document1.Append(body1); return(document1); }
private Paragraph CreateCenterParagraph(string str) { Paragraph paragraph = new Paragraph(); ParagraphProperties paragraphProperties = new ParagraphProperties(); paragraph.Append(paragraphProperties); paragraphProperties.Append(new Justification() { Val = JustificationValues.Center }); Run run = new Run(); RunProperties runProperties = new RunProperties(); RunFonts runFonts = new RunFonts() { Hint = FontTypeHintValues.EastAsia }; runProperties.Append(runFonts); Text text = new Text() { Space = SpaceProcessingModeValues.Preserve }; text.Text = str; run.Append(runProperties); run.Append(text); paragraph.Append(run); return paragraph; }
public Paragraph AddPrimaryAdults(bool keepnext) { Paragraph paragraph1 = new Paragraph() { RsidParagraphMarkRevision = "00E7001C", RsidParagraphAddition = "00E7001C", RsidParagraphProperties = "00B14EF8", RsidRunAdditionDefault = "00E7001C" }; ParagraphProperties paragraphProperties1 = new ParagraphProperties(); Shading shading1 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "D9D9D9", ThemeFill = ThemeColorValues.Background1, ThemeFillShade = "D9" }; SpacingBetweenLines spacingBetweenLines1 = new SpacingBetweenLines() { Before = "240", After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties1 = new ParagraphMarkRunProperties(); RunFonts runFonts1 = new RunFonts() { ComplexScriptTheme = ThemeFontValues.MinorHighAnsi }; FontSize fontSize1 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript() { Val = "20" }; paragraphMarkRunProperties1.Append(runFonts1); paragraphMarkRunProperties1.Append(fontSize1); paragraphMarkRunProperties1.Append(fontSizeComplexScript1); KeepLines keeplines = new KeepLines(); paragraphProperties1.Append(keeplines); if (keepnext) { paragraphProperties1.Append(new KeepNext()); } paragraphProperties1.Append(shading1); paragraphProperties1.Append(spacingBetweenLines1); paragraphProperties1.Append(paragraphMarkRunProperties1); Run run1 = new Run() { RsidRunProperties = "00C74C6E" }; RunProperties runProperties1 = new RunProperties(); RunFonts runFonts2 = new RunFonts() { ComplexScriptTheme = ThemeFontValues.MinorHighAnsi }; Bold bold1 = new Bold(); runProperties1.Append(runFonts2); runProperties1.Append(bold1); Text text1 = new Text(); text1.Text = FamilyName; run1.Append(runProperties1); run1.Append(text1); Run run2 = new Run() { RsidRunProperties = "00E7001C" }; RunProperties runProperties2 = new RunProperties(); RunFonts runFonts3 = new RunFonts() { ComplexScriptTheme = ThemeFontValues.MinorHighAnsi }; FontSize fontSize2 = new FontSize() { Val = "20" }; runProperties2.Append(fontSize2); runProperties2.Append(runFonts3); Text text2 = new Text(); if (spouse != null && spouse.First.HasValue()) { text2.Text = ", {0} & {1}".Fmt(head.First, spouse.First); } else { text2.Text = ", {0}".Fmt(head.First); } run2.Append(runProperties2); run2.Append(text2); paragraph1.Append(paragraphProperties1); paragraph1.Append(run1); paragraph1.Append(run2); return(paragraph1); }
// Generates content of mainDocumentPart1. private void GenerateMainDocumentPart1Content(MainDocumentPart mainDocumentPart1) { Document document1 = new Document() { MCAttributes = new MarkupCompatibilityAttributes() { Ignorable = "w14 w15 wp14" } }; document1.AddNamespaceDeclaration("wpc", "http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas"); document1.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); document1.AddNamespaceDeclaration("o", "urn:schemas-microsoft-com:office:office"); document1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); document1.AddNamespaceDeclaration("m", "http://schemas.openxmlformats.org/officeDocument/2006/math"); document1.AddNamespaceDeclaration("v", "urn:schemas-microsoft-com:vml"); document1.AddNamespaceDeclaration("wp14", "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing"); document1.AddNamespaceDeclaration("wp", "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"); document1.AddNamespaceDeclaration("w10", "urn:schemas-microsoft-com:office:word"); document1.AddNamespaceDeclaration("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main"); document1.AddNamespaceDeclaration("w14", "http://schemas.microsoft.com/office/word/2010/wordml"); document1.AddNamespaceDeclaration("w15", "http://schemas.microsoft.com/office/word/2012/wordml"); document1.AddNamespaceDeclaration("wpg", "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup"); document1.AddNamespaceDeclaration("wpi", "http://schemas.microsoft.com/office/word/2010/wordprocessingInk"); document1.AddNamespaceDeclaration("wne", "http://schemas.microsoft.com/office/word/2006/wordml"); document1.AddNamespaceDeclaration("wps", "http://schemas.microsoft.com/office/word/2010/wordprocessingShape"); Body body1 = new Body(); Paragraph paragraph1 = new Paragraph() { RsidParagraphMarkRevision = "00417926", RsidParagraphAddition = "002C2DE6", RsidParagraphProperties = "00417926", RsidRunAdditionDefault = "00417926" }; ParagraphProperties paragraphProperties1 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines1 = new SpacingBetweenLines() { After = "0" }; Justification justification1 = new Justification() { Val = JustificationValues.Center }; ParagraphMarkRunProperties paragraphMarkRunProperties1 = new ParagraphMarkRunProperties(); RunFonts runFonts1 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; Bold bold1 = new Bold(); FontSize fontSize1 = new FontSize() { Val = "30" }; paragraphMarkRunProperties1.Append(runFonts1); paragraphMarkRunProperties1.Append(bold1); paragraphMarkRunProperties1.Append(fontSize1); paragraphProperties1.Append(spacingBetweenLines1); paragraphProperties1.Append(justification1); paragraphProperties1.Append(paragraphMarkRunProperties1); Run run1 = new Run() { RsidRunProperties = "00417926" }; RunProperties runProperties1 = new RunProperties(); RunFonts runFonts2 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; Bold bold2 = new Bold(); FontSize fontSize2 = new FontSize() { Val = "30" }; runProperties1.Append(runFonts2); runProperties1.Append(bold2); runProperties1.Append(fontSize2); Text text1 = new Text(); text1.Text = "Hard To Find Books"; run1.Append(runProperties1); run1.Append(text1); paragraph1.Append(paragraphProperties1); paragraph1.Append(run1); Paragraph paragraph2 = new Paragraph() { RsidParagraphMarkRevision = "00417926", RsidParagraphAddition = "00417926", RsidParagraphProperties = "00417926", RsidRunAdditionDefault = "00417926" }; ParagraphProperties paragraphProperties2 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines2 = new SpacingBetweenLines() { After = "0" }; Justification justification2 = new Justification() { Val = JustificationValues.Center }; ParagraphMarkRunProperties paragraphMarkRunProperties2 = new ParagraphMarkRunProperties(); RunFonts runFonts3 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; Bold bold3 = new Bold(); FontSize fontSize3 = new FontSize() { Val = "30" }; paragraphMarkRunProperties2.Append(runFonts3); paragraphMarkRunProperties2.Append(bold3); paragraphMarkRunProperties2.Append(fontSize3); paragraphProperties2.Append(spacingBetweenLines2); paragraphProperties2.Append(justification2); paragraphProperties2.Append(paragraphMarkRunProperties2); Run run2 = new Run() { RsidRunProperties = "00417926" }; RunProperties runProperties2 = new RunProperties(); RunFonts runFonts4 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; Bold bold4 = new Bold(); FontSize fontSize4 = new FontSize() { Val = "30" }; runProperties2.Append(runFonts4); runProperties2.Append(bold4); runProperties2.Append(fontSize4); Text text2 = new Text(); text2.Text = "Internet NZ Ltd."; run2.Append(runProperties2); run2.Append(text2); paragraph2.Append(paragraphProperties2); paragraph2.Append(run2); Paragraph paragraph3 = new Paragraph() { RsidParagraphMarkRevision = "00417926", RsidParagraphAddition = "00417926", RsidParagraphProperties = "00417926", RsidRunAdditionDefault = "00417926" }; ParagraphProperties paragraphProperties3 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines3 = new SpacingBetweenLines() { After = "0" }; Justification justification3 = new Justification() { Val = JustificationValues.Center }; ParagraphMarkRunProperties paragraphMarkRunProperties3 = new ParagraphMarkRunProperties(); RunFonts runFonts5 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize5 = new FontSize() { Val = "16" }; paragraphMarkRunProperties3.Append(runFonts5); paragraphMarkRunProperties3.Append(fontSize5); paragraphProperties3.Append(spacingBetweenLines3); paragraphProperties3.Append(justification3); paragraphProperties3.Append(paragraphMarkRunProperties3); Run run3 = new Run() { RsidRunProperties = "00417926" }; RunProperties runProperties3 = new RunProperties(); RunFonts runFonts6 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize6 = new FontSize() { Val = "16" }; runProperties3.Append(runFonts6); runProperties3.Append(fontSize6); Text text3 = new Text(); text3.Text = "PO Box 5645 Moray Pl, Dunedin 9058, New Zealand"; run3.Append(runProperties3); run3.Append(text3); paragraph3.Append(paragraphProperties3); paragraph3.Append(run3); Paragraph paragraph4 = new Paragraph() { RsidParagraphMarkRevision = "00417926", RsidParagraphAddition = "00417926", RsidParagraphProperties = "00417926", RsidRunAdditionDefault = "00417926" }; ParagraphProperties paragraphProperties4 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines4 = new SpacingBetweenLines() { After = "0" }; Justification justification4 = new Justification() { Val = JustificationValues.Center }; ParagraphMarkRunProperties paragraphMarkRunProperties4 = new ParagraphMarkRunProperties(); RunFonts runFonts7 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize7 = new FontSize() { Val = "16" }; paragraphMarkRunProperties4.Append(runFonts7); paragraphMarkRunProperties4.Append(fontSize7); paragraphProperties4.Append(spacingBetweenLines4); paragraphProperties4.Append(justification4); paragraphProperties4.Append(paragraphMarkRunProperties4); Run run4 = new Run() { RsidRunProperties = "00417926" }; RunProperties runProperties4 = new RunProperties(); RunFonts runFonts8 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize8 = new FontSize() { Val = "16" }; runProperties4.Append(runFonts8); runProperties4.Append(fontSize8); Text text4 = new Text(); text4.Text = "Phone: +64 3 4745983, Email: [email protected]"; run4.Append(runProperties4); run4.Append(text4); BookmarkStart bookmarkStart1 = new BookmarkStart() { Name = "_GoBack", Id = "0" }; BookmarkEnd bookmarkEnd1 = new BookmarkEnd() { Id = "0" }; paragraph4.Append(paragraphProperties4); paragraph4.Append(run4); paragraph4.Append(bookmarkStart1); paragraph4.Append(bookmarkEnd1); Paragraph paragraph5 = new Paragraph() { RsidParagraphMarkRevision = "00417926", RsidParagraphAddition = "00417926", RsidParagraphProperties = "00417926", RsidRunAdditionDefault = "00417926" }; ParagraphProperties paragraphProperties5 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines5 = new SpacingBetweenLines() { After = "0" }; Justification justification5 = new Justification() { Val = JustificationValues.Center }; ParagraphMarkRunProperties paragraphMarkRunProperties5 = new ParagraphMarkRunProperties(); RunFonts runFonts9 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize9 = new FontSize() { Val = "16" }; paragraphMarkRunProperties5.Append(runFonts9); paragraphMarkRunProperties5.Append(fontSize9); paragraphProperties5.Append(spacingBetweenLines5); paragraphProperties5.Append(justification5); paragraphProperties5.Append(paragraphMarkRunProperties5); Run run5 = new Run() { RsidRunProperties = "00417926" }; RunProperties runProperties5 = new RunProperties(); RunFonts runFonts10 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize10 = new FontSize() { Val = "16" }; runProperties5.Append(runFonts10); runProperties5.Append(fontSize10); Text text5 = new Text(); text5.Text = "GST: 70-526-627 Website: www.hardtofind.co.nz"; run5.Append(runProperties5); run5.Append(text5); paragraph5.Append(paragraphProperties5); paragraph5.Append(run5); Paragraph paragraph6 = new Paragraph() { RsidParagraphAddition = "00910498", RsidParagraphProperties = "00417926", RsidRunAdditionDefault = "00910498" }; ParagraphProperties paragraphProperties6 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines6 = new SpacingBetweenLines() { After = "0" }; ParagraphMarkRunProperties paragraphMarkRunProperties6 = new ParagraphMarkRunProperties(); RunFonts runFonts11 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; paragraphMarkRunProperties6.Append(runFonts11); paragraphProperties6.Append(spacingBetweenLines6); paragraphProperties6.Append(paragraphMarkRunProperties6); paragraph6.Append(paragraphProperties6); Paragraph paragraph7 = new Paragraph() { RsidParagraphAddition = "00910498", RsidParagraphProperties = "00417926", RsidRunAdditionDefault = "00910498" }; ParagraphProperties paragraphProperties7 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines7 = new SpacingBetweenLines() { After = "0" }; ParagraphMarkRunProperties paragraphMarkRunProperties7 = new ParagraphMarkRunProperties(); RunFonts runFonts12 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; paragraphMarkRunProperties7.Append(runFonts12); SectionProperties sectionProperties1 = new SectionProperties() { RsidR = "00910498" }; PageSize pageSize1 = new PageSize() { Width = (UInt32Value)11906U, Height = (UInt32Value)16838U }; PageMargin pageMargin1 = new PageMargin() { Top = 1440, Right = (UInt32Value)1440U, Bottom = 1440, Left = (UInt32Value)1440U, Header = (UInt32Value)708U, Footer = (UInt32Value)708U, Gutter = (UInt32Value)0U }; Columns columns1 = new Columns() { Space = "708" }; DocGrid docGrid1 = new DocGrid() { LinePitch = 360 }; sectionProperties1.Append(pageSize1); sectionProperties1.Append(pageMargin1); sectionProperties1.Append(columns1); sectionProperties1.Append(docGrid1); paragraphProperties7.Append(spacingBetweenLines7); paragraphProperties7.Append(paragraphMarkRunProperties7); paragraphProperties7.Append(sectionProperties1); paragraph7.Append(paragraphProperties7); Paragraph paragraph8 = new Paragraph() { RsidParagraphAddition = "00417926", RsidParagraphProperties = "00417926", RsidRunAdditionDefault = "00417926" }; ParagraphProperties paragraphProperties8 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines8 = new SpacingBetweenLines() { After = "0" }; ParagraphMarkRunProperties paragraphMarkRunProperties8 = new ParagraphMarkRunProperties(); RunFonts runFonts13 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize11 = new FontSize() { Val = "24" }; paragraphMarkRunProperties8.Append(runFonts13); paragraphMarkRunProperties8.Append(fontSize11); paragraphProperties8.Append(spacingBetweenLines8); paragraphProperties8.Append(paragraphMarkRunProperties8); Run run6 = new Run() { RsidRunProperties = "00417926" }; RunProperties runProperties6 = new RunProperties(); RunFonts runFonts14 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize12 = new FontSize() { Val = "24" }; runProperties6.Append(runFonts14); runProperties6.Append(fontSize12); LastRenderedPageBreak lastRenderedPageBreak1 = new LastRenderedPageBreak(); Text text6 = new Text(); text6.Text = "Invoice:"; run6.Append(runProperties6); run6.Append(lastRenderedPageBreak1); run6.Append(text6); paragraph8.Append(paragraphProperties8); paragraph8.Append(run6); Paragraph paragraph9 = new Paragraph() { RsidParagraphAddition = "00417926", RsidParagraphProperties = "00417926", RsidRunAdditionDefault = "00910498" }; ParagraphProperties paragraphProperties9 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines9 = new SpacingBetweenLines() { After = "0" }; ParagraphMarkRunProperties paragraphMarkRunProperties9 = new ParagraphMarkRunProperties(); RunFonts runFonts15 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize13 = new FontSize() { Val = "24" }; paragraphMarkRunProperties9.Append(runFonts15); paragraphMarkRunProperties9.Append(fontSize13); paragraphProperties9.Append(spacingBetweenLines9); paragraphProperties9.Append(paragraphMarkRunProperties9); Run run7 = new Run(); RunProperties runProperties7 = new RunProperties(); RunFonts runFonts16 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize14 = new FontSize() { Val = "24" }; runProperties7.Append(runFonts16); runProperties7.Append(fontSize14); TabChar tabChar1 = new TabChar(); Text text7 = new Text(); //TODO add in customer name if(customer != null) text7.Text = customer.firstName + " " + customer.lastName; else text7.Text = order.firstName + " " + order.lastName; run7.Append(runProperties7); run7.Append(tabChar1); run7.Append(text7); paragraph9.Append(paragraphProperties9); paragraph9.Append(run7); Paragraph paragraphInstitute = new Paragraph() { RsidParagraphAddition = "00417926", RsidParagraphProperties = "00417926", RsidRunAdditionDefault = "00910498" }; ParagraphProperties paragraphInstituteProperties = new ParagraphProperties(); SpacingBetweenLines institudeSpacingBetweenLines = new SpacingBetweenLines() { After = "0" }; ParagraphMarkRunProperties paragraphInstituteMarkRunProperties = new ParagraphMarkRunProperties(); RunFonts paragraphRunFonts = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize paragraphFontSize = new FontSize() { Val = "24" }; paragraphInstituteMarkRunProperties.Append(paragraphRunFonts); paragraphInstituteMarkRunProperties.Append(paragraphFontSize); paragraphInstituteProperties.Append(institudeSpacingBetweenLines); paragraphInstituteProperties.Append(paragraphInstituteMarkRunProperties); Run instituteRun = new Run(); RunProperties instituteRunProperties = new RunProperties(); RunFonts instituteRunFonts = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize instituteFontSize = new FontSize() { Val = "24" }; instituteRunProperties.Append(instituteRunFonts); instituteRunProperties.Append(instituteFontSize); TabChar instituteTabChar = new TabChar(); Text instituteText = new Text(); //TODO add in institute instituteText.Text = customer.institution; instituteRun.Append(instituteRunProperties); instituteRun.Append(instituteTabChar); instituteRun.Append(instituteText); paragraphInstitute.Append(paragraphInstituteProperties); paragraphInstitute.Append(instituteRun); Paragraph paragraph10 = new Paragraph() { RsidParagraphAddition = "00910498", RsidParagraphProperties = "00417926", RsidRunAdditionDefault = "00910498" }; ParagraphProperties paragraphProperties10 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines10 = new SpacingBetweenLines() { After = "0" }; ParagraphMarkRunProperties paragraphMarkRunProperties10 = new ParagraphMarkRunProperties(); RunFonts runFonts17 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize15 = new FontSize() { Val = "24" }; paragraphMarkRunProperties10.Append(runFonts17); paragraphMarkRunProperties10.Append(fontSize15); paragraphProperties10.Append(spacingBetweenLines10); paragraphProperties10.Append(paragraphMarkRunProperties10); Run run8 = new Run(); RunProperties runProperties8 = new RunProperties(); RunFonts runFonts18 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize16 = new FontSize() { Val = "24" }; runProperties8.Append(runFonts18); runProperties8.Append(fontSize16); TabChar tabChar2 = new TabChar(); Text text8 = new Text(); //TODO add in address1 //text8.Text = "62 Seaview Avenue"; if(customer != null) text8.Text = customer.address1; else text8.Text = ""; run8.Append(runProperties8); run8.Append(tabChar2); run8.Append(text8); paragraph10.Append(paragraphProperties10); paragraph10.Append(run8); Paragraph paragraph11 = new Paragraph() { RsidParagraphAddition = "00910498", RsidParagraphProperties = "00417926", RsidRunAdditionDefault = "00910498" }; ParagraphProperties paragraphProperties11 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines11 = new SpacingBetweenLines() { After = "0" }; ParagraphMarkRunProperties paragraphMarkRunProperties11 = new ParagraphMarkRunProperties(); RunFonts runFonts19 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize17 = new FontSize() { Val = "24" }; paragraphMarkRunProperties11.Append(runFonts19); paragraphMarkRunProperties11.Append(fontSize17); paragraphProperties11.Append(spacingBetweenLines11); paragraphProperties11.Append(paragraphMarkRunProperties11); Run run9 = new Run(); RunProperties runProperties9 = new RunProperties(); RunFonts runFonts20 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize18 = new FontSize() { Val = "24" }; runProperties9.Append(runFonts20); runProperties9.Append(fontSize18); TabChar tabChar3 = new TabChar(); Text text9 = new Text(); //TODO add in address2 //text9.Text = "Northcote"; if(customer != null) text9.Text = customer.address2; else text9.Text = ""; run9.Append(runProperties9); run9.Append(tabChar3); run9.Append(text9); paragraph11.Append(paragraphProperties11); paragraph11.Append(run9); Paragraph paragraph12 = new Paragraph() { RsidParagraphAddition = "00910498", RsidParagraphProperties = "00417926", RsidRunAdditionDefault = "00910498" }; ParagraphProperties paragraphProperties12 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines12 = new SpacingBetweenLines() { After = "0" }; ParagraphMarkRunProperties paragraphMarkRunProperties12 = new ParagraphMarkRunProperties(); RunFonts runFonts21 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize19 = new FontSize() { Val = "24" }; paragraphMarkRunProperties12.Append(runFonts21); paragraphMarkRunProperties12.Append(fontSize19); paragraphProperties12.Append(spacingBetweenLines12); paragraphProperties12.Append(paragraphMarkRunProperties12); Run run10 = new Run(); RunProperties runProperties10 = new RunProperties(); RunFonts runFonts22 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize20 = new FontSize() { Val = "24" }; runProperties10.Append(runFonts22); runProperties10.Append(fontSize20); TabChar tabChar4 = new TabChar(); Text text10 = new Text(); //TODO add in address3 //text10.Text = "Auckland"; if(customer != null) text10.Text = customer.address3; else text10.Text = ""; run10.Append(runProperties10); run10.Append(tabChar4); run10.Append(text10); paragraph12.Append(paragraphProperties12); paragraph12.Append(run10); Paragraph paragraph13 = new Paragraph() { RsidParagraphAddition = "00910498", RsidParagraphProperties = "00417926", RsidRunAdditionDefault = "00910498" }; ParagraphProperties paragraphProperties13 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines13 = new SpacingBetweenLines() { After = "0" }; ParagraphMarkRunProperties paragraphMarkRunProperties13 = new ParagraphMarkRunProperties(); RunFonts runFonts23 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize21 = new FontSize() { Val = "24" }; paragraphMarkRunProperties13.Append(runFonts23); paragraphMarkRunProperties13.Append(fontSize21); paragraphProperties13.Append(spacingBetweenLines13); paragraphProperties13.Append(paragraphMarkRunProperties13); Run run11 = new Run(); RunProperties runProperties11 = new RunProperties(); RunFonts runFonts24 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize22 = new FontSize() { Val = "24" }; runProperties11.Append(runFonts24); runProperties11.Append(fontSize22); TabChar tabChar5 = new TabChar(); Text text11 = new Text(); //TODO add in postcode //text11.Text = "0627"; if(customer != null) text11.Text = customer.postCode; else text11.Text = ""; run11.Append(runProperties11); run11.Append(tabChar5); run11.Append(text11); paragraph13.Append(paragraphProperties13); paragraph13.Append(run11); Paragraph paragraph14 = new Paragraph() { RsidParagraphAddition = "00910498", RsidParagraphProperties = "00417926", RsidRunAdditionDefault = "00910498" }; ParagraphProperties paragraphProperties14 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines14 = new SpacingBetweenLines() { After = "0" }; ParagraphMarkRunProperties paragraphMarkRunProperties14 = new ParagraphMarkRunProperties(); RunFonts runFonts25 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize23 = new FontSize() { Val = "24" }; paragraphMarkRunProperties14.Append(runFonts25); paragraphMarkRunProperties14.Append(fontSize23); paragraphProperties14.Append(spacingBetweenLines14); paragraphProperties14.Append(paragraphMarkRunProperties14); Run run12 = new Run(); RunProperties runProperties12 = new RunProperties(); RunFonts runFonts26 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize24 = new FontSize() { Val = "24" }; runProperties12.Append(runFonts26); runProperties12.Append(fontSize24); TabChar tabChar6 = new TabChar(); Text text12 = new Text(); //TODO add in country if(customer != null) text12.Text = customer.country; else text12.Text = ""; run12.Append(runProperties12); run12.Append(tabChar6); run12.Append(text12); paragraph14.Append(paragraphProperties14); paragraph14.Append(run12); Paragraph paragraph15 = new Paragraph() { RsidParagraphAddition = "003F6835", RsidParagraphProperties = "003F6835", RsidRunAdditionDefault = "00910498" }; ParagraphProperties paragraphProperties15 = new ParagraphProperties(); Tabs tabs1 = new Tabs(); TabStop tabStop1 = new TabStop() { Val = TabStopValues.Left, Position = 2835 }; tabs1.Append(tabStop1); SpacingBetweenLines spacingBetweenLines15 = new SpacingBetweenLines() { After = "0" }; ParagraphMarkRunProperties paragraphMarkRunProperties15 = new ParagraphMarkRunProperties(); RunFonts runFonts27 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize25 = new FontSize() { Val = "24" }; paragraphMarkRunProperties15.Append(runFonts27); paragraphMarkRunProperties15.Append(fontSize25); paragraphProperties15.Append(tabs1); paragraphProperties15.Append(spacingBetweenLines15); paragraphProperties15.Append(paragraphMarkRunProperties15); Run run13 = new Run(); RunProperties runProperties13 = new RunProperties(); RunFonts runFonts28 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize26 = new FontSize() { Val = "24" }; runProperties13.Append(runFonts28); runProperties13.Append(fontSize26); Break break1 = new Break() { Type = BreakValues.Column }; run13.Append(runProperties13); run13.Append(break1); paragraph15.Append(paragraphProperties15); paragraph15.Append(run13); Table table1 = new Table(); TableProperties tableProperties1 = new TableProperties(); TableStyle tableStyle1 = new TableStyle() { Val = "TableGrid" }; TableWidth tableWidth1 = new TableWidth() { Width = "0", Type = TableWidthUnitValues.Auto }; TableBorders tableBorders1 = new TableBorders(); TopBorder topBorder1 = new TopBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; LeftBorder leftBorder1 = new LeftBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; BottomBorder bottomBorder1 = new BottomBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; RightBorder rightBorder1 = new RightBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; InsideHorizontalBorder insideHorizontalBorder1 = new InsideHorizontalBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; InsideVerticalBorder insideVerticalBorder1 = new InsideVerticalBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; tableBorders1.Append(topBorder1); tableBorders1.Append(leftBorder1); tableBorders1.Append(bottomBorder1); tableBorders1.Append(rightBorder1); tableBorders1.Append(insideHorizontalBorder1); tableBorders1.Append(insideVerticalBorder1); TableLook tableLook1 = new TableLook() { Val = "04A0", FirstRow = true, LastRow = false, FirstColumn = true, LastColumn = false, NoHorizontalBand = false, NoVerticalBand = true }; tableProperties1.Append(tableStyle1); tableProperties1.Append(tableWidth1); tableProperties1.Append(tableBorders1); tableProperties1.Append(tableLook1); TableGrid tableGrid1 = new TableGrid(); GridColumn gridColumn1 = new GridColumn() { Width = "3006" }; GridColumn gridColumn2 = new GridColumn() { Width = "255" }; GridColumn gridColumn3 = new GridColumn() { Width = "1099" }; tableGrid1.Append(gridColumn1); tableGrid1.Append(gridColumn2); tableGrid1.Append(gridColumn3); TableRow tableRow1 = new TableRow() { RsidTableRowMarkRevision = "00613B48", RsidTableRowAddition = "00613B48", RsidTableRowProperties = "00613B48" }; TableCell tableCell1 = new TableCell(); TableCellProperties tableCellProperties1 = new TableCellProperties(); TableCellWidth tableCellWidth1 = new TableCellWidth() { Width = "3006", Type = TableWidthUnitValues.Dxa }; tableCellProperties1.Append(tableCellWidth1); Paragraph paragraph16 = new Paragraph() { RsidParagraphMarkRevision = "00613B48", RsidParagraphAddition = "00613B48", RsidParagraphProperties = "00AB530E", RsidRunAdditionDefault = "00613B48" }; ParagraphProperties paragraphProperties16 = new ParagraphProperties(); ParagraphMarkRunProperties paragraphMarkRunProperties16 = new ParagraphMarkRunProperties(); RunFonts runFonts29 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize27 = new FontSize() { Val = "24" }; paragraphMarkRunProperties16.Append(runFonts29); paragraphMarkRunProperties16.Append(fontSize27); paragraphProperties16.Append(paragraphMarkRunProperties16); Run run14 = new Run() { RsidRunProperties = "00613B48" }; RunProperties runProperties14 = new RunProperties(); RunFonts runFonts30 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize28 = new FontSize() { Val = "24" }; runProperties14.Append(runFonts30); runProperties14.Append(fontSize28); Text text13 = new Text(); text13.Text = "Date:"; run14.Append(runProperties14); run14.Append(text13); paragraph16.Append(paragraphProperties16); paragraph16.Append(run14); tableCell1.Append(tableCellProperties1); tableCell1.Append(paragraph16); TableCell tableCell2 = new TableCell(); TableCellProperties tableCellProperties2 = new TableCellProperties(); TableCellWidth tableCellWidth2 = new TableCellWidth() { Width = "1354", Type = TableWidthUnitValues.Dxa }; GridSpan gridSpan1 = new GridSpan() { Val = 2 }; tableCellProperties2.Append(tableCellWidth2); tableCellProperties2.Append(gridSpan1); Paragraph paragraph17 = new Paragraph() { RsidParagraphMarkRevision = "00613B48", RsidParagraphAddition = "00613B48", RsidParagraphProperties = "00613B48", RsidRunAdditionDefault = "00613B48" }; ParagraphProperties paragraphProperties17 = new ParagraphProperties(); Justification justification6 = new Justification() { Val = JustificationValues.Right }; ParagraphMarkRunProperties paragraphMarkRunProperties17 = new ParagraphMarkRunProperties(); RunFonts runFonts31 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize29 = new FontSize() { Val = "24" }; paragraphMarkRunProperties17.Append(runFonts31); paragraphMarkRunProperties17.Append(fontSize29); paragraphProperties17.Append(justification6); paragraphProperties17.Append(paragraphMarkRunProperties17); Run run15 = new Run() { RsidRunProperties = "00613B48" }; RunProperties runProperties15 = new RunProperties(); RunFonts runFonts32 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize30 = new FontSize() { Val = "24" }; runProperties15.Append(runFonts32); runProperties15.Append(fontSize30); Text text14 = new Text(); //TODO add invoice date //text14.Text = "2/02/2016"; text14.Text = order.invoiceDate.ToString("d/MM/yyyy"); ; run15.Append(runProperties15); run15.Append(text14); paragraph17.Append(paragraphProperties17); paragraph17.Append(run15); tableCell2.Append(tableCellProperties2); tableCell2.Append(paragraph17); tableRow1.Append(tableCell1); tableRow1.Append(tableCell2); TableRow tableRow2 = new TableRow() { RsidTableRowMarkRevision = "00613B48", RsidTableRowAddition = "00613B48", RsidTableRowProperties = "009B6C59" }; TableCell tableCell3 = new TableCell(); TableCellProperties tableCellProperties3 = new TableCellProperties(); TableCellWidth tableCellWidth3 = new TableCellWidth() { Width = "3261", Type = TableWidthUnitValues.Dxa }; GridSpan gridSpan2 = new GridSpan() { Val = 2 }; tableCellProperties3.Append(tableCellWidth3); tableCellProperties3.Append(gridSpan2); Paragraph paragraph18 = new Paragraph() { RsidParagraphMarkRevision = "00613B48", RsidParagraphAddition = "00613B48", RsidParagraphProperties = "00AB530E", RsidRunAdditionDefault = "00613B48" }; ParagraphProperties paragraphProperties18 = new ParagraphProperties(); ParagraphMarkRunProperties paragraphMarkRunProperties18 = new ParagraphMarkRunProperties(); RunFonts runFonts33 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize31 = new FontSize() { Val = "24" }; paragraphMarkRunProperties18.Append(runFonts33); paragraphMarkRunProperties18.Append(fontSize31); paragraphProperties18.Append(paragraphMarkRunProperties18); Run run16 = new Run() { RsidRunProperties = "00613B48" }; RunProperties runProperties16 = new RunProperties(); RunFonts runFonts34 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize32 = new FontSize() { Val = "24" }; runProperties16.Append(runFonts34); runProperties16.Append(fontSize32); Text text15 = new Text(); text15.Text = "GST Tax Invoice Number:"; run16.Append(runProperties16); run16.Append(text15); paragraph18.Append(paragraphProperties18); paragraph18.Append(run16); tableCell3.Append(tableCellProperties3); tableCell3.Append(paragraph18); TableCell tableCell4 = new TableCell(); TableCellProperties tableCellProperties4 = new TableCellProperties(); TableCellWidth tableCellWidth4 = new TableCellWidth() { Width = "1099", Type = TableWidthUnitValues.Dxa }; tableCellProperties4.Append(tableCellWidth4); Paragraph paragraph19 = new Paragraph() { RsidParagraphMarkRevision = "00613B48", RsidParagraphAddition = "00613B48", RsidParagraphProperties = "00613B48", RsidRunAdditionDefault = "00613B48" }; ParagraphProperties paragraphProperties19 = new ParagraphProperties(); Justification justification7 = new Justification() { Val = JustificationValues.Right }; ParagraphMarkRunProperties paragraphMarkRunProperties19 = new ParagraphMarkRunProperties(); RunFonts runFonts35 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize33 = new FontSize() { Val = "24" }; paragraphMarkRunProperties19.Append(runFonts35); paragraphMarkRunProperties19.Append(fontSize33); paragraphProperties19.Append(justification7); paragraphProperties19.Append(paragraphMarkRunProperties19); Run run17 = new Run() { RsidRunProperties = "00613B48" }; RunProperties runProperties17 = new RunProperties(); RunFonts runFonts36 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize34 = new FontSize() { Val = "24" }; runProperties17.Append(runFonts36); runProperties17.Append(fontSize34); Text text16 = new Text(); //TODO add invoice number/orderID //text16.Text = "39248"; text16.Text = order.orderID.ToString(); run17.Append(runProperties17); run17.Append(text16); paragraph19.Append(paragraphProperties19); paragraph19.Append(run17); tableCell4.Append(tableCellProperties4); tableCell4.Append(paragraph19); tableRow2.Append(tableCell3); tableRow2.Append(tableCell4); TableRow tableRow3 = new TableRow() { RsidTableRowMarkRevision = "00613B48", RsidTableRowAddition = "00613B48", RsidTableRowProperties = "00613B48" }; TableCell tableCell5 = new TableCell(); TableCellProperties tableCellProperties5 = new TableCellProperties(); TableCellWidth tableCellWidth5 = new TableCellWidth() { Width = "3006", Type = TableWidthUnitValues.Dxa }; tableCellProperties5.Append(tableCellWidth5); Paragraph paragraph20 = new Paragraph() { RsidParagraphMarkRevision = "00613B48", RsidParagraphAddition = "00613B48", RsidParagraphProperties = "00AB530E", RsidRunAdditionDefault = "00613B48" }; ParagraphProperties paragraphProperties20 = new ParagraphProperties(); ParagraphMarkRunProperties paragraphMarkRunProperties20 = new ParagraphMarkRunProperties(); RunFonts runFonts37 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize35 = new FontSize() { Val = "24" }; paragraphMarkRunProperties20.Append(runFonts37); paragraphMarkRunProperties20.Append(fontSize35); paragraphProperties20.Append(paragraphMarkRunProperties20); Run run18 = new Run() { RsidRunProperties = "00613B48" }; RunProperties runProperties18 = new RunProperties(); RunFonts runFonts38 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize36 = new FontSize() { Val = "24" }; runProperties18.Append(runFonts38); runProperties18.Append(fontSize36); Text text17 = new Text(); text17.Text = "Your Reference:"; run18.Append(runProperties18); run18.Append(text17); paragraph20.Append(paragraphProperties20); paragraph20.Append(run18); tableCell5.Append(tableCellProperties5); tableCell5.Append(paragraph20); TableCell tableCell6 = new TableCell(); TableCellProperties tableCellProperties6 = new TableCellProperties(); TableCellWidth tableCellWidth6 = new TableCellWidth() { Width = "1354", Type = TableWidthUnitValues.Dxa }; GridSpan gridSpan3 = new GridSpan() { Val = 2 }; tableCellProperties6.Append(tableCellWidth6); tableCellProperties6.Append(gridSpan3); Paragraph paragraph21 = new Paragraph() { RsidParagraphMarkRevision = "00613B48", RsidParagraphAddition = "00613B48", RsidParagraphProperties = "00613B48", RsidRunAdditionDefault = "00613B48" }; ParagraphProperties paragraphProperties21 = new ParagraphProperties(); Justification justification8 = new Justification() { Val = JustificationValues.Right }; ParagraphMarkRunProperties paragraphMarkRunProperties21 = new ParagraphMarkRunProperties(); RunFonts runFonts39 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize37 = new FontSize() { Val = "24" }; paragraphMarkRunProperties21.Append(runFonts39); paragraphMarkRunProperties21.Append(fontSize37); paragraphProperties21.Append(justification8); paragraphProperties21.Append(paragraphMarkRunProperties21); Run run19 = new Run() { RsidRunProperties = "00613B48" }; RunProperties runProperties19 = new RunProperties(); RunFonts runFonts40 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize38 = new FontSize() { Val = "24" }; runProperties19.Append(runFonts40); runProperties19.Append(fontSize38); Text text18 = new Text(); //TODO add order reference //text18.Text = "Visa"; text18.Text = order.orderReference; run19.Append(runProperties19); run19.Append(text18); paragraph21.Append(paragraphProperties21); paragraph21.Append(run19); tableCell6.Append(tableCellProperties6); tableCell6.Append(paragraph21); tableRow3.Append(tableCell5); tableRow3.Append(tableCell6); table1.Append(tableProperties1); table1.Append(tableGrid1); table1.Append(tableRow1); table1.Append(tableRow2); table1.Append(tableRow3); Paragraph paragraph22 = new Paragraph() { RsidParagraphAddition = "00EA7D1E", RsidParagraphProperties = "007F61F5", RsidRunAdditionDefault = "00EA7D1E" }; ParagraphProperties paragraphProperties22 = new ParagraphProperties(); Tabs tabs2 = new Tabs(); TabStop tabStop2 = new TabStop() { Val = TabStopValues.Left, Position = 3119 }; tabs2.Append(tabStop2); SpacingBetweenLines spacingBetweenLines16 = new SpacingBetweenLines() { After = "0" }; ParagraphMarkRunProperties paragraphMarkRunProperties22 = new ParagraphMarkRunProperties(); RunFonts runFonts41 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize39 = new FontSize() { Val = "24" }; paragraphMarkRunProperties22.Append(runFonts41); paragraphMarkRunProperties22.Append(fontSize39); paragraphProperties22.Append(tabs2); paragraphProperties22.Append(spacingBetweenLines16); paragraphProperties22.Append(paragraphMarkRunProperties22); paragraph22.Append(paragraphProperties22); Paragraph paragraph23 = new Paragraph() { RsidParagraphAddition = "00EA7D1E", RsidParagraphProperties = "007F61F5", RsidRunAdditionDefault = "00EA7D1E" }; ParagraphProperties paragraphProperties23 = new ParagraphProperties(); Tabs tabs3 = new Tabs(); TabStop tabStop3 = new TabStop() { Val = TabStopValues.Left, Position = 3119 }; tabs3.Append(tabStop3); SpacingBetweenLines spacingBetweenLines17 = new SpacingBetweenLines() { After = "0" }; ParagraphMarkRunProperties paragraphMarkRunProperties23 = new ParagraphMarkRunProperties(); RunFonts runFonts42 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize40 = new FontSize() { Val = "24" }; paragraphMarkRunProperties23.Append(runFonts42); paragraphMarkRunProperties23.Append(fontSize40); SectionProperties sectionProperties2 = new SectionProperties() { RsidR = "00EA7D1E", RsidSect = "00015C18" }; SectionType sectionType1 = new SectionType() { Val = SectionMarkValues.Continuous }; PageSize pageSize2 = new PageSize() { Width = (UInt32Value)11906U, Height = (UInt32Value)16838U }; PageMargin pageMargin2 = new PageMargin() { Top = 1440, Right = (UInt32Value)1440U, Bottom = 1440, Left = (UInt32Value)1440U, Header = (UInt32Value)708U, Footer = (UInt32Value)708U, Gutter = (UInt32Value)0U }; Columns columns2 = new Columns() { Space = "286", ColumnCount = 2 }; DocGrid docGrid2 = new DocGrid() { LinePitch = 360 }; sectionProperties2.Append(sectionType1); sectionProperties2.Append(pageSize2); sectionProperties2.Append(pageMargin2); sectionProperties2.Append(columns2); sectionProperties2.Append(docGrid2); paragraphProperties23.Append(tabs3); paragraphProperties23.Append(spacingBetweenLines17); paragraphProperties23.Append(paragraphMarkRunProperties23); paragraphProperties23.Append(sectionProperties2); paragraph23.Append(paragraphProperties23); Paragraph paragraph24 = new Paragraph() { RsidParagraphMarkRevision = "00646179", RsidParagraphAddition = "00443ACA", RsidParagraphProperties = "00646179", RsidRunAdditionDefault = "00443ACA" }; ParagraphProperties paragraphProperties24 = new ParagraphProperties(); Tabs tabs4 = new Tabs(); TabStop tabStop4 = new TabStop() { Val = TabStopValues.Left, Position = 3119 }; tabs4.Append(tabStop4); SpacingBetweenLines spacingBetweenLines18 = new SpacingBetweenLines() { After = "0" }; ParagraphMarkRunProperties paragraphMarkRunProperties24 = new ParagraphMarkRunProperties(); RunFonts runFonts43 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize41 = new FontSize() { Val = "24" }; paragraphMarkRunProperties24.Append(runFonts43); paragraphMarkRunProperties24.Append(fontSize41); paragraphProperties24.Append(tabs4); paragraphProperties24.Append(spacingBetweenLines18); paragraphProperties24.Append(paragraphMarkRunProperties24); paragraph24.Append(paragraphProperties24); Table table2 = new Table(); TableProperties tableProperties2 = new TableProperties(); TableStyle tableStyle2 = new TableStyle() { Val = "TableGrid" }; TableWidth tableWidth2 = new TableWidth() { Width = "0", Type = TableWidthUnitValues.Auto }; TableBorders tableBorders2 = new TableBorders(); LeftBorder leftBorder2 = new LeftBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; RightBorder rightBorder2 = new RightBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; InsideVerticalBorder insideVerticalBorder2 = new InsideVerticalBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; tableBorders2.Append(leftBorder2); tableBorders2.Append(rightBorder2); tableBorders2.Append(insideVerticalBorder2); TableLook tableLook2 = new TableLook() { Val = "04A0", FirstRow = true, LastRow = false, FirstColumn = true, LastColumn = false, NoHorizontalBand = false, NoVerticalBand = true }; tableProperties2.Append(tableStyle2); tableProperties2.Append(tableWidth2); tableProperties2.Append(tableBorders2); tableProperties2.Append(tableLook2); TableGrid tableGrid2 = new TableGrid(); GridColumn gridColumn4 = new GridColumn() { Width = "1418" }; GridColumn gridColumn5 = new GridColumn() { Width = "2719" }; GridColumn gridColumn6 = new GridColumn() { Width = "1036" }; GridColumn gridColumn7 = new GridColumn() { Width = "1364" }; GridColumn gridColumn8 = new GridColumn() { Width = "1411" }; GridColumn gridColumn9 = new GridColumn() { Width = "1078" }; tableGrid2.Append(gridColumn4); tableGrid2.Append(gridColumn5); tableGrid2.Append(gridColumn6); tableGrid2.Append(gridColumn7); tableGrid2.Append(gridColumn8); tableGrid2.Append(gridColumn9); TableRow tableRow4 = new TableRow() { RsidTableRowAddition = "00443ACA", RsidTableRowProperties = "00506382" }; TableCell tableCell7 = new TableCell(); TableCellProperties tableCellProperties7 = new TableCellProperties(); TableCellWidth tableCellWidth7 = new TableCellWidth() { Width = "1418", Type = TableWidthUnitValues.Dxa }; tableCellProperties7.Append(tableCellWidth7); Paragraph paragraph25 = new Paragraph() { RsidParagraphMarkRevision = "00443ACA", RsidParagraphAddition = "00443ACA", RsidParagraphProperties = "00443ACA", RsidRunAdditionDefault = "00443ACA" }; ParagraphProperties paragraphProperties25 = new ParagraphProperties(); Tabs tabs5 = new Tabs(); TabStop tabStop5 = new TabStop() { Val = TabStopValues.Left, Position = 1560 }; TabStop tabStop6 = new TabStop() { Val = TabStopValues.Left, Position = 3969 }; TabStop tabStop7 = new TabStop() { Val = TabStopValues.Left, Position = 5387 }; TabStop tabStop8 = new TabStop() { Val = TabStopValues.Left, Position = 6379 }; TabStop tabStop9 = new TabStop() { Val = TabStopValues.Left, Position = 7938 }; tabs5.Append(tabStop5); tabs5.Append(tabStop6); tabs5.Append(tabStop7); tabs5.Append(tabStop8); tabs5.Append(tabStop9); SpacingBetweenLines spacingBetweenLines19 = new SpacingBetweenLines() { Before = "60", After = "60" }; ParagraphMarkRunProperties paragraphMarkRunProperties25 = new ParagraphMarkRunProperties(); RunFonts runFonts44 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; paragraphMarkRunProperties25.Append(runFonts44); paragraphProperties25.Append(tabs5); paragraphProperties25.Append(spacingBetweenLines19); paragraphProperties25.Append(paragraphMarkRunProperties25); ProofError proofError1 = new ProofError() { Type = ProofingErrorValues.SpellStart }; Run run20 = new Run() { RsidRunProperties = "00443ACA" }; RunProperties runProperties20 = new RunProperties(); RunFonts runFonts45 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; runProperties20.Append(runFonts45); Text text19 = new Text(); text19.Text = "BookID"; run20.Append(runProperties20); run20.Append(text19); ProofError proofError2 = new ProofError() { Type = ProofingErrorValues.SpellEnd }; paragraph25.Append(paragraphProperties25); paragraph25.Append(proofError1); paragraph25.Append(run20); paragraph25.Append(proofError2); tableCell7.Append(tableCellProperties7); tableCell7.Append(paragraph25); TableCell tableCell8 = new TableCell(); TableCellProperties tableCellProperties8 = new TableCellProperties(); TableCellWidth tableCellWidth8 = new TableCellWidth() { Width = "2719", Type = TableWidthUnitValues.Dxa }; tableCellProperties8.Append(tableCellWidth8); Paragraph paragraph26 = new Paragraph() { RsidParagraphMarkRevision = "00443ACA", RsidParagraphAddition = "00443ACA", RsidParagraphProperties = "00443ACA", RsidRunAdditionDefault = "00443ACA" }; ParagraphProperties paragraphProperties26 = new ParagraphProperties(); Tabs tabs6 = new Tabs(); TabStop tabStop10 = new TabStop() { Val = TabStopValues.Left, Position = 1560 }; TabStop tabStop11 = new TabStop() { Val = TabStopValues.Left, Position = 3969 }; TabStop tabStop12 = new TabStop() { Val = TabStopValues.Left, Position = 5387 }; TabStop tabStop13 = new TabStop() { Val = TabStopValues.Left, Position = 6379 }; TabStop tabStop14 = new TabStop() { Val = TabStopValues.Left, Position = 7938 }; tabs6.Append(tabStop10); tabs6.Append(tabStop11); tabs6.Append(tabStop12); tabs6.Append(tabStop13); tabs6.Append(tabStop14); SpacingBetweenLines spacingBetweenLines20 = new SpacingBetweenLines() { Before = "60", After = "60" }; ParagraphMarkRunProperties paragraphMarkRunProperties26 = new ParagraphMarkRunProperties(); RunFonts runFonts46 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; paragraphMarkRunProperties26.Append(runFonts46); paragraphProperties26.Append(tabs6); paragraphProperties26.Append(spacingBetweenLines20); paragraphProperties26.Append(paragraphMarkRunProperties26); Run run21 = new Run() { RsidRunProperties = "00443ACA" }; RunProperties runProperties21 = new RunProperties(); RunFonts runFonts47 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; runProperties21.Append(runFonts47); Text text20 = new Text(); text20.Text = "Description"; run21.Append(runProperties21); run21.Append(text20); paragraph26.Append(paragraphProperties26); paragraph26.Append(run21); tableCell8.Append(tableCellProperties8); tableCell8.Append(paragraph26); TableCell tableCell9 = new TableCell(); TableCellProperties tableCellProperties9 = new TableCellProperties(); TableCellWidth tableCellWidth9 = new TableCellWidth() { Width = "1036", Type = TableWidthUnitValues.Dxa }; tableCellProperties9.Append(tableCellWidth9); Paragraph paragraph27 = new Paragraph() { RsidParagraphMarkRevision = "00443ACA", RsidParagraphAddition = "00443ACA", RsidParagraphProperties = "00443ACA", RsidRunAdditionDefault = "00443ACA" }; ParagraphProperties paragraphProperties27 = new ParagraphProperties(); Tabs tabs7 = new Tabs(); TabStop tabStop15 = new TabStop() { Val = TabStopValues.Left, Position = 1560 }; TabStop tabStop16 = new TabStop() { Val = TabStopValues.Left, Position = 3969 }; TabStop tabStop17 = new TabStop() { Val = TabStopValues.Left, Position = 5387 }; TabStop tabStop18 = new TabStop() { Val = TabStopValues.Left, Position = 6379 }; TabStop tabStop19 = new TabStop() { Val = TabStopValues.Left, Position = 7938 }; tabs7.Append(tabStop15); tabs7.Append(tabStop16); tabs7.Append(tabStop17); tabs7.Append(tabStop18); tabs7.Append(tabStop19); SpacingBetweenLines spacingBetweenLines21 = new SpacingBetweenLines() { Before = "60", After = "60" }; Justification justification9 = new Justification() { Val = JustificationValues.Right }; ParagraphMarkRunProperties paragraphMarkRunProperties27 = new ParagraphMarkRunProperties(); RunFonts runFonts48 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; paragraphMarkRunProperties27.Append(runFonts48); paragraphProperties27.Append(tabs7); paragraphProperties27.Append(spacingBetweenLines21); paragraphProperties27.Append(justification9); paragraphProperties27.Append(paragraphMarkRunProperties27); Run run22 = new Run() { RsidRunProperties = "00443ACA" }; RunProperties runProperties22 = new RunProperties(); RunFonts runFonts49 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; runProperties22.Append(runFonts49); Text text21 = new Text(); text21.Text = "Quantity"; run22.Append(runProperties22); run22.Append(text21); paragraph27.Append(paragraphProperties27); paragraph27.Append(run22); tableCell9.Append(tableCellProperties9); tableCell9.Append(paragraph27); TableCell tableCell10 = new TableCell(); TableCellProperties tableCellProperties10 = new TableCellProperties(); TableCellWidth tableCellWidth10 = new TableCellWidth() { Width = "1364", Type = TableWidthUnitValues.Dxa }; tableCellProperties10.Append(tableCellWidth10); Paragraph paragraph28 = new Paragraph() { RsidParagraphMarkRevision = "00443ACA", RsidParagraphAddition = "00443ACA", RsidParagraphProperties = "00443ACA", RsidRunAdditionDefault = "00443ACA" }; ParagraphProperties paragraphProperties28 = new ParagraphProperties(); Tabs tabs8 = new Tabs(); TabStop tabStop20 = new TabStop() { Val = TabStopValues.Left, Position = 1560 }; TabStop tabStop21 = new TabStop() { Val = TabStopValues.Left, Position = 3969 }; TabStop tabStop22 = new TabStop() { Val = TabStopValues.Left, Position = 5387 }; TabStop tabStop23 = new TabStop() { Val = TabStopValues.Left, Position = 6379 }; TabStop tabStop24 = new TabStop() { Val = TabStopValues.Left, Position = 7938 }; tabs8.Append(tabStop20); tabs8.Append(tabStop21); tabs8.Append(tabStop22); tabs8.Append(tabStop23); tabs8.Append(tabStop24); SpacingBetweenLines spacingBetweenLines22 = new SpacingBetweenLines() { Before = "60", After = "60" }; Justification justification10 = new Justification() { Val = JustificationValues.Right }; ParagraphMarkRunProperties paragraphMarkRunProperties28 = new ParagraphMarkRunProperties(); RunFonts runFonts50 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; paragraphMarkRunProperties28.Append(runFonts50); paragraphProperties28.Append(tabs8); paragraphProperties28.Append(spacingBetweenLines22); paragraphProperties28.Append(justification10); paragraphProperties28.Append(paragraphMarkRunProperties28); Run run23 = new Run() { RsidRunProperties = "00443ACA" }; RunProperties runProperties23 = new RunProperties(); RunFonts runFonts51 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; runProperties23.Append(runFonts51); Text text22 = new Text(); text22.Text = "Price"; run23.Append(runProperties23); run23.Append(text22); paragraph28.Append(paragraphProperties28); paragraph28.Append(run23); tableCell10.Append(tableCellProperties10); tableCell10.Append(paragraph28); TableCell tableCell11 = new TableCell(); TableCellProperties tableCellProperties11 = new TableCellProperties(); TableCellWidth tableCellWidth11 = new TableCellWidth() { Width = "1411", Type = TableWidthUnitValues.Dxa }; tableCellProperties11.Append(tableCellWidth11); Paragraph paragraph29 = new Paragraph() { RsidParagraphMarkRevision = "00443ACA", RsidParagraphAddition = "00443ACA", RsidParagraphProperties = "00443ACA", RsidRunAdditionDefault = "00443ACA" }; ParagraphProperties paragraphProperties29 = new ParagraphProperties(); Tabs tabs9 = new Tabs(); TabStop tabStop25 = new TabStop() { Val = TabStopValues.Left, Position = 1560 }; TabStop tabStop26 = new TabStop() { Val = TabStopValues.Left, Position = 3969 }; TabStop tabStop27 = new TabStop() { Val = TabStopValues.Left, Position = 5387 }; TabStop tabStop28 = new TabStop() { Val = TabStopValues.Left, Position = 6379 }; TabStop tabStop29 = new TabStop() { Val = TabStopValues.Left, Position = 7938 }; tabs9.Append(tabStop25); tabs9.Append(tabStop26); tabs9.Append(tabStop27); tabs9.Append(tabStop28); tabs9.Append(tabStop29); SpacingBetweenLines spacingBetweenLines23 = new SpacingBetweenLines() { Before = "60", After = "60" }; Justification justification11 = new Justification() { Val = JustificationValues.Right }; ParagraphMarkRunProperties paragraphMarkRunProperties29 = new ParagraphMarkRunProperties(); RunFonts runFonts52 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; paragraphMarkRunProperties29.Append(runFonts52); paragraphProperties29.Append(tabs9); paragraphProperties29.Append(spacingBetweenLines23); paragraphProperties29.Append(justification11); paragraphProperties29.Append(paragraphMarkRunProperties29); Run run24 = new Run() { RsidRunProperties = "00443ACA" }; RunProperties runProperties24 = new RunProperties(); RunFonts runFonts53 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; runProperties24.Append(runFonts53); Text text23 = new Text(); text23.Text = "Discount"; run24.Append(runProperties24); run24.Append(text23); paragraph29.Append(paragraphProperties29); paragraph29.Append(run24); tableCell11.Append(tableCellProperties11); tableCell11.Append(paragraph29); TableCell tableCell12 = new TableCell(); TableCellProperties tableCellProperties12 = new TableCellProperties(); TableCellWidth tableCellWidth12 = new TableCellWidth() { Width = "1078", Type = TableWidthUnitValues.Dxa }; tableCellProperties12.Append(tableCellWidth12); Paragraph paragraph30 = new Paragraph() { RsidParagraphMarkRevision = "00443ACA", RsidParagraphAddition = "00443ACA", RsidParagraphProperties = "00443ACA", RsidRunAdditionDefault = "00443ACA" }; ParagraphProperties paragraphProperties30 = new ParagraphProperties(); Tabs tabs10 = new Tabs(); TabStop tabStop30 = new TabStop() { Val = TabStopValues.Left, Position = 1560 }; TabStop tabStop31 = new TabStop() { Val = TabStopValues.Left, Position = 3969 }; TabStop tabStop32 = new TabStop() { Val = TabStopValues.Left, Position = 5387 }; TabStop tabStop33 = new TabStop() { Val = TabStopValues.Left, Position = 6379 }; TabStop tabStop34 = new TabStop() { Val = TabStopValues.Left, Position = 7938 }; tabs10.Append(tabStop30); tabs10.Append(tabStop31); tabs10.Append(tabStop32); tabs10.Append(tabStop33); tabs10.Append(tabStop34); SpacingBetweenLines spacingBetweenLines24 = new SpacingBetweenLines() { Before = "60", After = "60" }; Justification justification12 = new Justification() { Val = JustificationValues.Right }; ParagraphMarkRunProperties paragraphMarkRunProperties30 = new ParagraphMarkRunProperties(); RunFonts runFonts54 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; paragraphMarkRunProperties30.Append(runFonts54); paragraphProperties30.Append(tabs10); paragraphProperties30.Append(spacingBetweenLines24); paragraphProperties30.Append(justification12); paragraphProperties30.Append(paragraphMarkRunProperties30); Run run25 = new Run() { RsidRunProperties = "00443ACA" }; RunProperties runProperties25 = new RunProperties(); RunFonts runFonts55 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; runProperties25.Append(runFonts55); Text text24 = new Text(); text24.Text = "Total"; run25.Append(runProperties25); run25.Append(text24); paragraph30.Append(paragraphProperties30); paragraph30.Append(run25); tableCell12.Append(tableCellProperties12); tableCell12.Append(paragraph30); tableRow4.Append(tableCell7); tableRow4.Append(tableCell8); tableRow4.Append(tableCell9); tableRow4.Append(tableCell10); tableRow4.Append(tableCell11); tableRow4.Append(tableCell12); table2.Append(tableProperties2); table2.Append(tableGrid2); table2.Append(tableRow4); /****** Loop from here? **********/ foreach (OrderedStock o in orderedStock) { //Create a table row TableRow orderedStockRow = new TableRow() { RsidTableRowAddition = "00443ACA", RsidTableRowProperties = "00506382" }; //Create cell to hold bookID TableCell cellBookID = new TableCell(); TableCellProperties cellBookIDProperties = new TableCellProperties(); TableCellWidth cellBookIDWidth = new TableCellWidth() { Width = "1418", Type = TableWidthUnitValues.Dxa }; cellBookIDProperties.Append(cellBookIDWidth); Paragraph paragraph31 = new Paragraph() { RsidParagraphMarkRevision = "00443ACA", RsidParagraphAddition = "00443ACA", RsidParagraphProperties = "00443ACA", RsidRunAdditionDefault = "00443ACA" }; ParagraphProperties paragraphProperties31 = new ParagraphProperties(); Tabs tabs11 = new Tabs(); TabStop tabStop35 = new TabStop() { Val = TabStopValues.Left, Position = 1560 }; TabStop tabStop36 = new TabStop() { Val = TabStopValues.Left, Position = 3969 }; TabStop tabStop37 = new TabStop() { Val = TabStopValues.Left, Position = 5387 }; TabStop tabStop38 = new TabStop() { Val = TabStopValues.Left, Position = 6379 }; TabStop tabStop39 = new TabStop() { Val = TabStopValues.Left, Position = 7938 }; tabs11.Append(tabStop35); tabs11.Append(tabStop36); tabs11.Append(tabStop37); tabs11.Append(tabStop38); tabs11.Append(tabStop39); SpacingBetweenLines spacingBetweenLines25 = new SpacingBetweenLines() { Before = "60", After = "60" }; ParagraphMarkRunProperties paragraphMarkRunProperties31 = new ParagraphMarkRunProperties(); RunFonts runFonts56 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize42 = new FontSize() { Val = "18" }; paragraphMarkRunProperties31.Append(runFonts56); paragraphMarkRunProperties31.Append(fontSize42); paragraphProperties31.Append(tabs11); paragraphProperties31.Append(spacingBetweenLines25); paragraphProperties31.Append(paragraphMarkRunProperties31); Run run26 = new Run() { RsidRunProperties = "00443ACA" }; RunProperties runProperties26 = new RunProperties(); RunFonts runFonts57 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize43 = new FontSize() { Val = "18" }; runProperties26.Append(runFonts57); runProperties26.Append(fontSize43); Text text25 = new Text(); //TODO Book ID text25.Text = o.bookID; run26.Append(runProperties26); run26.Append(text25); paragraph31.Append(paragraphProperties31); paragraph31.Append(run26); cellBookID.Append(cellBookIDProperties); cellBookID.Append(paragraph31); //Cell for description TableCell tableCell14 = new TableCell(); TableCellProperties tableCellProperties14 = new TableCellProperties(); TableCellWidth tableCellWidth14 = new TableCellWidth() { Width = "2719", Type = TableWidthUnitValues.Dxa }; tableCellProperties14.Append(tableCellWidth14); Paragraph paragraph32 = new Paragraph() { RsidParagraphMarkRevision = "00443ACA", RsidParagraphAddition = "00443ACA", RsidParagraphProperties = "00443ACA", RsidRunAdditionDefault = "00443ACA" }; ParagraphProperties paragraphProperties32 = new ParagraphProperties(); Tabs tabs12 = new Tabs(); TabStop tabStop40 = new TabStop() { Val = TabStopValues.Left, Position = 1560 }; TabStop tabStop41 = new TabStop() { Val = TabStopValues.Left, Position = 3969 }; TabStop tabStop42 = new TabStop() { Val = TabStopValues.Left, Position = 5387 }; TabStop tabStop43 = new TabStop() { Val = TabStopValues.Left, Position = 6379 }; TabStop tabStop44 = new TabStop() { Val = TabStopValues.Left, Position = 7938 }; tabs12.Append(tabStop40); tabs12.Append(tabStop41); tabs12.Append(tabStop42); tabs12.Append(tabStop43); tabs12.Append(tabStop44); SpacingBetweenLines spacingBetweenLines26 = new SpacingBetweenLines() { Before = "60", After = "60" }; ParagraphMarkRunProperties paragraphMarkRunProperties32 = new ParagraphMarkRunProperties(); RunFonts runFonts58 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize44 = new FontSize() { Val = "18" }; paragraphMarkRunProperties32.Append(runFonts58); paragraphMarkRunProperties32.Append(fontSize44); paragraphProperties32.Append(tabs12); paragraphProperties32.Append(spacingBetweenLines26); paragraphProperties32.Append(paragraphMarkRunProperties32); Run run27 = new Run() { RsidRunProperties = "00443ACA" }; RunProperties runProperties27 = new RunProperties(); RunFonts runFonts59 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize45 = new FontSize() { Val = "18" }; runProperties27.Append(runFonts59); runProperties27.Append(fontSize45); Text text26 = new Text() { Space = SpaceProcessingModeValues.Preserve }; //TODO Author name string author = o.author; text26.Text = author; run27.Append(runProperties27); run27.Append(text26); ProofError proofError3 = new ProofError() { Type = ProofingErrorValues.SpellStart }; RunProperties runProperties28 = new RunProperties(); RunFonts runFonts60 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize46 = new FontSize() { Val = "18" }; runProperties28.Append(runFonts60); runProperties28.Append(fontSize46); ProofError proofError4 = new ProofError() { Type = ProofingErrorValues.SpellEnd }; paragraph32.Append(paragraphProperties32); paragraph32.Append(run27); paragraph32.Append(proofError3); Paragraph paragraph33 = new Paragraph() { RsidParagraphMarkRevision = "00443ACA", RsidParagraphAddition = "00443ACA", RsidParagraphProperties = "00443ACA", RsidRunAdditionDefault = "00443ACA" }; ParagraphProperties paragraphProperties33 = new ParagraphProperties(); Tabs tabs13 = new Tabs(); TabStop tabStop45 = new TabStop() { Val = TabStopValues.Left, Position = 1560 }; TabStop tabStop46 = new TabStop() { Val = TabStopValues.Left, Position = 3969 }; TabStop tabStop47 = new TabStop() { Val = TabStopValues.Left, Position = 5387 }; TabStop tabStop48 = new TabStop() { Val = TabStopValues.Left, Position = 6379 }; TabStop tabStop49 = new TabStop() { Val = TabStopValues.Left, Position = 7938 }; tabs13.Append(tabStop45); tabs13.Append(tabStop46); tabs13.Append(tabStop47); tabs13.Append(tabStop48); tabs13.Append(tabStop49); SpacingBetweenLines spacingBetweenLines27 = new SpacingBetweenLines() { Before = "60", After = "60" }; ParagraphMarkRunProperties paragraphMarkRunProperties33 = new ParagraphMarkRunProperties(); RunFonts runFonts61 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize47 = new FontSize() { Val = "18" }; paragraphMarkRunProperties33.Append(runFonts61); paragraphMarkRunProperties33.Append(fontSize47); paragraphProperties33.Append(tabs13); paragraphProperties33.Append(spacingBetweenLines27); paragraphProperties33.Append(paragraphMarkRunProperties33); Run run29 = new Run() { RsidRunProperties = "00443ACA" }; RunProperties runProperties29 = new RunProperties(); RunFonts runFonts62 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize48 = new FontSize() { Val = "18" }; runProperties29.Append(runFonts62); runProperties29.Append(fontSize48); Text text28 = new Text(); //TODO Book title text28.Text = o.title; run29.Append(runProperties29); run29.Append(text28); paragraph33.Append(paragraphProperties33); paragraph33.Append(run29); tableCell14.Append(tableCellProperties14); tableCell14.Append(paragraph32); tableCell14.Append(paragraph33); //Cell for quantity TableCell tableCell15 = new TableCell(); TableCellProperties tableCellProperties15 = new TableCellProperties(); TableCellWidth tableCellWidth15 = new TableCellWidth() { Width = "1036", Type = TableWidthUnitValues.Dxa }; tableCellProperties15.Append(tableCellWidth15); Paragraph paragraph34 = new Paragraph() { RsidParagraphMarkRevision = "00443ACA", RsidParagraphAddition = "00443ACA", RsidParagraphProperties = "00443ACA", RsidRunAdditionDefault = "00443ACA" }; ParagraphProperties paragraphProperties34 = new ParagraphProperties(); Tabs tabs14 = new Tabs(); TabStop tabStop50 = new TabStop() { Val = TabStopValues.Left, Position = 1560 }; TabStop tabStop51 = new TabStop() { Val = TabStopValues.Left, Position = 3969 }; TabStop tabStop52 = new TabStop() { Val = TabStopValues.Left, Position = 5387 }; TabStop tabStop53 = new TabStop() { Val = TabStopValues.Left, Position = 6379 }; TabStop tabStop54 = new TabStop() { Val = TabStopValues.Left, Position = 7938 }; tabs14.Append(tabStop50); tabs14.Append(tabStop51); tabs14.Append(tabStop52); tabs14.Append(tabStop53); tabs14.Append(tabStop54); SpacingBetweenLines spacingBetweenLines28 = new SpacingBetweenLines() { Before = "60", After = "60" }; Justification justification13 = new Justification() { Val = JustificationValues.Right }; ParagraphMarkRunProperties paragraphMarkRunProperties34 = new ParagraphMarkRunProperties(); RunFonts runFonts63 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize49 = new FontSize() { Val = "18" }; paragraphMarkRunProperties34.Append(runFonts63); paragraphMarkRunProperties34.Append(fontSize49); paragraphProperties34.Append(tabs14); paragraphProperties34.Append(spacingBetweenLines28); paragraphProperties34.Append(justification13); paragraphProperties34.Append(paragraphMarkRunProperties34); Run run30 = new Run() { RsidRunProperties = "00443ACA" }; RunProperties runProperties30 = new RunProperties(); RunFonts runFonts64 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize50 = new FontSize() { Val = "18" }; runProperties30.Append(runFonts64); runProperties30.Append(fontSize50); Text text29 = new Text(); //TODO Quantity text29.Text = o.quantity.ToString(); run30.Append(runProperties30); run30.Append(text29); paragraph34.Append(paragraphProperties34); paragraph34.Append(run30); tableCell15.Append(tableCellProperties15); tableCell15.Append(paragraph34); //Cell for price TableCell tableCell16 = new TableCell(); TableCellProperties tableCellProperties16 = new TableCellProperties(); TableCellWidth tableCellWidth16 = new TableCellWidth() { Width = "1364", Type = TableWidthUnitValues.Dxa }; tableCellProperties16.Append(tableCellWidth16); Paragraph paragraph35 = new Paragraph() { RsidParagraphMarkRevision = "00443ACA", RsidParagraphAddition = "00443ACA", RsidParagraphProperties = "00443ACA", RsidRunAdditionDefault = "00443ACA" }; ParagraphProperties paragraphProperties35 = new ParagraphProperties(); Tabs tabs15 = new Tabs(); TabStop tabStop55 = new TabStop() { Val = TabStopValues.Left, Position = 1560 }; TabStop tabStop56 = new TabStop() { Val = TabStopValues.Left, Position = 3969 }; TabStop tabStop57 = new TabStop() { Val = TabStopValues.Left, Position = 5387 }; TabStop tabStop58 = new TabStop() { Val = TabStopValues.Left, Position = 6379 }; TabStop tabStop59 = new TabStop() { Val = TabStopValues.Left, Position = 7938 }; tabs15.Append(tabStop55); tabs15.Append(tabStop56); tabs15.Append(tabStop57); tabs15.Append(tabStop58); tabs15.Append(tabStop59); SpacingBetweenLines spacingBetweenLines29 = new SpacingBetweenLines() { Before = "60", After = "60" }; Justification justification14 = new Justification() { Val = JustificationValues.Right }; ParagraphMarkRunProperties paragraphMarkRunProperties35 = new ParagraphMarkRunProperties(); RunFonts runFonts65 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize51 = new FontSize() { Val = "18" }; paragraphMarkRunProperties35.Append(runFonts65); paragraphMarkRunProperties35.Append(fontSize51); paragraphProperties35.Append(tabs15); paragraphProperties35.Append(spacingBetweenLines29); paragraphProperties35.Append(justification14); paragraphProperties35.Append(paragraphMarkRunProperties35); Run run31 = new Run() { RsidRunProperties = "00443ACA" }; RunProperties runProperties31 = new RunProperties(); RunFonts runFonts66 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize52 = new FontSize() { Val = "18" }; runProperties31.Append(runFonts66); runProperties31.Append(fontSize52); Text text30 = new Text(); //TODO Price text30.Text = "$" + String.Format("{0:0.00}", o.price); run31.Append(runProperties31); run31.Append(text30); paragraph35.Append(paragraphProperties35); paragraph35.Append(run31); tableCell16.Append(tableCellProperties16); tableCell16.Append(paragraph35); //Cell for discount TableCell tableCell17 = new TableCell(); TableCellProperties tableCellProperties17 = new TableCellProperties(); TableCellWidth tableCellWidth17 = new TableCellWidth() { Width = "1411", Type = TableWidthUnitValues.Dxa }; tableCellProperties17.Append(tableCellWidth17); Paragraph paragraph36 = new Paragraph() { RsidParagraphMarkRevision = "00443ACA", RsidParagraphAddition = "00443ACA", RsidParagraphProperties = "00443ACA", RsidRunAdditionDefault = "00443ACA" }; ParagraphProperties paragraphProperties36 = new ParagraphProperties(); Tabs tabs16 = new Tabs(); TabStop tabStop60 = new TabStop() { Val = TabStopValues.Left, Position = 1560 }; TabStop tabStop61 = new TabStop() { Val = TabStopValues.Left, Position = 3969 }; TabStop tabStop62 = new TabStop() { Val = TabStopValues.Left, Position = 5387 }; TabStop tabStop63 = new TabStop() { Val = TabStopValues.Left, Position = 6379 }; TabStop tabStop64 = new TabStop() { Val = TabStopValues.Left, Position = 7938 }; tabs16.Append(tabStop60); tabs16.Append(tabStop61); tabs16.Append(tabStop62); tabs16.Append(tabStop63); tabs16.Append(tabStop64); SpacingBetweenLines spacingBetweenLines30 = new SpacingBetweenLines() { Before = "60", After = "60" }; Justification justification15 = new Justification() { Val = JustificationValues.Right }; ParagraphMarkRunProperties paragraphMarkRunProperties36 = new ParagraphMarkRunProperties(); RunFonts runFonts67 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize53 = new FontSize() { Val = "18" }; paragraphMarkRunProperties36.Append(runFonts67); paragraphMarkRunProperties36.Append(fontSize53); paragraphProperties36.Append(tabs16); paragraphProperties36.Append(spacingBetweenLines30); paragraphProperties36.Append(justification15); paragraphProperties36.Append(paragraphMarkRunProperties36); Run run32 = new Run() { RsidRunProperties = "00443ACA" }; RunProperties runProperties32 = new RunProperties(); RunFonts runFonts68 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize54 = new FontSize() { Val = "18" }; runProperties32.Append(runFonts68); runProperties32.Append(fontSize54); Text text31 = new Text(); //TODO Discount text31.Text = "$" + String.Format("{0:0.00}", o.discount); run32.Append(runProperties32); run32.Append(text31); paragraph36.Append(paragraphProperties36); paragraph36.Append(run32); tableCell17.Append(tableCellProperties17); tableCell17.Append(paragraph36); //Cell for total TableCell tableCell18 = new TableCell(); TableCellProperties tableCellProperties18 = new TableCellProperties(); TableCellWidth tableCellWidth18 = new TableCellWidth() { Width = "1078", Type = TableWidthUnitValues.Dxa }; tableCellProperties18.Append(tableCellWidth18); Paragraph paragraph37 = new Paragraph() { RsidParagraphMarkRevision = "00443ACA", RsidParagraphAddition = "00443ACA", RsidParagraphProperties = "00443ACA", RsidRunAdditionDefault = "00443ACA" }; ParagraphProperties paragraphProperties37 = new ParagraphProperties(); Tabs tabs17 = new Tabs(); TabStop tabStop65 = new TabStop() { Val = TabStopValues.Left, Position = 1560 }; TabStop tabStop66 = new TabStop() { Val = TabStopValues.Left, Position = 3969 }; TabStop tabStop67 = new TabStop() { Val = TabStopValues.Left, Position = 5387 }; TabStop tabStop68 = new TabStop() { Val = TabStopValues.Left, Position = 6379 }; TabStop tabStop69 = new TabStop() { Val = TabStopValues.Left, Position = 7938 }; tabs17.Append(tabStop65); tabs17.Append(tabStop66); tabs17.Append(tabStop67); tabs17.Append(tabStop68); tabs17.Append(tabStop69); SpacingBetweenLines spacingBetweenLines31 = new SpacingBetweenLines() { Before = "60", After = "60" }; Justification justification16 = new Justification() { Val = JustificationValues.Right }; ParagraphMarkRunProperties paragraphMarkRunProperties37 = new ParagraphMarkRunProperties(); RunFonts runFonts69 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize55 = new FontSize() { Val = "18" }; paragraphMarkRunProperties37.Append(runFonts69); paragraphMarkRunProperties37.Append(fontSize55); paragraphProperties37.Append(tabs17); paragraphProperties37.Append(spacingBetweenLines31); paragraphProperties37.Append(justification16); paragraphProperties37.Append(paragraphMarkRunProperties37); Run run33 = new Run() { RsidRunProperties = "00443ACA" }; RunProperties runProperties33 = new RunProperties(); RunFonts runFonts70 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize56 = new FontSize() { Val = "18" }; runProperties33.Append(runFonts70); runProperties33.Append(fontSize56); Text text32 = new Text(); //Total double total = o.price - o.discount; grandTotal += total; //TODO have price display as decimal text32.Text = "$" + String.Format("{0:0.00}", total); run33.Append(runProperties33); run33.Append(text32); paragraph37.Append(paragraphProperties37); paragraph37.Append(run33); tableCell18.Append(tableCellProperties18); tableCell18.Append(paragraph37); //Add cells into the row orderedStockRow.Append(cellBookID); orderedStockRow.Append(tableCell14); orderedStockRow.Append(tableCell15); orderedStockRow.Append(tableCell16); orderedStockRow.Append(tableCell17); orderedStockRow.Append(tableCell18); //Add row for book into the table table2.Append(orderedStockRow); } /***************** End loop *******************/ Paragraph paragraph38 = new Paragraph() { RsidParagraphAddition = "00B5104A", RsidParagraphProperties = "00116604", RsidRunAdditionDefault = "00B5104A" }; ParagraphProperties paragraphProperties38 = new ParagraphProperties(); Tabs tabs18 = new Tabs(); TabStop tabStop70 = new TabStop() { Val = TabStopValues.Left, Position = 7938 }; tabs18.Append(tabStop70); SpacingBetweenLines spacingBetweenLines32 = new SpacingBetweenLines() { Before = "40", After = "40" }; ParagraphMarkRunProperties paragraphMarkRunProperties38 = new ParagraphMarkRunProperties(); RunFonts runFonts71 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; Bold bold5 = new Bold(); FontSize fontSize57 = new FontSize() { Val = "18" }; paragraphMarkRunProperties38.Append(runFonts71); paragraphMarkRunProperties38.Append(bold5); paragraphMarkRunProperties38.Append(fontSize57); paragraphProperties38.Append(tabs18); paragraphProperties38.Append(spacingBetweenLines32); paragraphProperties38.Append(paragraphMarkRunProperties38); paragraph38.Append(paragraphProperties38); Table table3 = new Table(); TableProperties tableProperties3 = new TableProperties(); TableStyle tableStyle3 = new TableStyle() { Val = "TableGrid" }; TableWidth tableWidth3 = new TableWidth() { Width = "0", Type = TableWidthUnitValues.Auto }; TableIndentation tableIndentation1 = new TableIndentation() { Width = 6516, Type = TableWidthUnitValues.Dxa }; TableBorders tableBorders3 = new TableBorders(); TopBorder topBorder2 = new TopBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; LeftBorder leftBorder3 = new LeftBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; BottomBorder bottomBorder2 = new BottomBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; RightBorder rightBorder3 = new RightBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; InsideHorizontalBorder insideHorizontalBorder2 = new InsideHorizontalBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; InsideVerticalBorder insideVerticalBorder3 = new InsideVerticalBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; tableBorders3.Append(topBorder2); tableBorders3.Append(leftBorder3); tableBorders3.Append(bottomBorder2); tableBorders3.Append(rightBorder3); tableBorders3.Append(insideHorizontalBorder2); tableBorders3.Append(insideVerticalBorder3); TableLook tableLook3 = new TableLook() { Val = "04A0", FirstRow = true, LastRow = false, FirstColumn = true, LastColumn = false, NoHorizontalBand = false, NoVerticalBand = true }; tableProperties3.Append(tableStyle3); tableProperties3.Append(tableWidth3); tableProperties3.Append(tableIndentation1); tableProperties3.Append(tableBorders3); tableProperties3.Append(tableLook3); TableGrid tableGrid3 = new TableGrid(); GridColumn gridColumn10 = new GridColumn() { Width = "1559" }; GridColumn gridColumn11 = new GridColumn() { Width = "941" }; tableGrid3.Append(gridColumn10); tableGrid3.Append(gridColumn11); TableRow tableRow6 = new TableRow() { RsidTableRowAddition = "00B5104A", RsidTableRowProperties = "00BD60A1" }; TableCell tableCell19 = new TableCell(); TableCellProperties tableCellProperties19 = new TableCellProperties(); TableCellWidth tableCellWidth19 = new TableCellWidth() { Width = "1559", Type = TableWidthUnitValues.Dxa }; tableCellProperties19.Append(tableCellWidth19); Paragraph paragraph39 = new Paragraph() { RsidParagraphAddition = "00B5104A", RsidParagraphProperties = "00116604", RsidRunAdditionDefault = "00B5104A" }; ParagraphProperties paragraphProperties39 = new ParagraphProperties(); Tabs tabs19 = new Tabs(); TabStop tabStop71 = new TabStop() { Val = TabStopValues.Left, Position = 7938 }; tabs19.Append(tabStop71); SpacingBetweenLines spacingBetweenLines33 = new SpacingBetweenLines() { Before = "40", After = "40" }; ParagraphMarkRunProperties paragraphMarkRunProperties39 = new ParagraphMarkRunProperties(); RunFonts runFonts72 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; Bold bold6 = new Bold(); FontSize fontSize58 = new FontSize() { Val = "20" }; paragraphMarkRunProperties39.Append(runFonts72); paragraphMarkRunProperties39.Append(bold6); paragraphMarkRunProperties39.Append(fontSize58); paragraphProperties39.Append(tabs19); paragraphProperties39.Append(spacingBetweenLines33); paragraphProperties39.Append(paragraphMarkRunProperties39); Run run34 = new Run(); RunProperties runProperties34 = new RunProperties(); RunFonts runFonts73 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize59 = new FontSize() { Val = "20" }; runProperties34.Append(runFonts73); runProperties34.Append(fontSize59); Text text33 = new Text(); text33.Text = "Total:"; run34.Append(runProperties34); run34.Append(text33); paragraph39.Append(paragraphProperties39); paragraph39.Append(run34); tableCell19.Append(tableCellProperties19); tableCell19.Append(paragraph39); TableCell tableCell20 = new TableCell(); TableCellProperties tableCellProperties20 = new TableCellProperties(); TableCellWidth tableCellWidth20 = new TableCellWidth() { Width = "941", Type = TableWidthUnitValues.Dxa }; tableCellProperties20.Append(tableCellWidth20); Paragraph paragraph40 = new Paragraph() { RsidParagraphAddition = "00B5104A", RsidParagraphProperties = "00B5104A", RsidRunAdditionDefault = "00B5104A" }; ParagraphProperties paragraphProperties40 = new ParagraphProperties(); Tabs tabs20 = new Tabs(); TabStop tabStop72 = new TabStop() { Val = TabStopValues.Left, Position = 7938 }; tabs20.Append(tabStop72); SpacingBetweenLines spacingBetweenLines34 = new SpacingBetweenLines() { Before = "40", After = "40" }; Justification justification17 = new Justification() { Val = JustificationValues.Right }; ParagraphMarkRunProperties paragraphMarkRunProperties40 = new ParagraphMarkRunProperties(); RunFonts runFonts74 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; Bold bold7 = new Bold(); FontSize fontSize60 = new FontSize() { Val = "20" }; paragraphMarkRunProperties40.Append(runFonts74); paragraphMarkRunProperties40.Append(bold7); paragraphMarkRunProperties40.Append(fontSize60); paragraphProperties40.Append(tabs20); paragraphProperties40.Append(spacingBetweenLines34); paragraphProperties40.Append(justification17); paragraphProperties40.Append(paragraphMarkRunProperties40); Run run35 = new Run(); RunProperties runProperties35 = new RunProperties(); RunFonts runFonts75 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize61 = new FontSize() { Val = "20" }; runProperties35.Append(runFonts75); runProperties35.Append(fontSize61); Text text34 = new Text(); //TODO total after the table text34.Text = "$" + String.Format("{0:0.00}", grandTotal); run35.Append(runProperties35); run35.Append(text34); paragraph40.Append(paragraphProperties40); paragraph40.Append(run35); tableCell20.Append(tableCellProperties20); tableCell20.Append(paragraph40); tableRow6.Append(tableCell19); tableRow6.Append(tableCell20); TableRow tableRow7 = new TableRow() { RsidTableRowAddition = "00B5104A", RsidTableRowProperties = "00BD60A1" }; TableCell tableCell21 = new TableCell(); TableCellProperties tableCellProperties21 = new TableCellProperties(); TableCellWidth tableCellWidth21 = new TableCellWidth() { Width = "1559", Type = TableWidthUnitValues.Dxa }; tableCellProperties21.Append(tableCellWidth21); Paragraph paragraph41 = new Paragraph() { RsidParagraphAddition = "00B5104A", RsidParagraphProperties = "00116604", RsidRunAdditionDefault = "00B5104A" }; ParagraphProperties paragraphProperties41 = new ParagraphProperties(); Tabs tabs21 = new Tabs(); TabStop tabStop73 = new TabStop() { Val = TabStopValues.Left, Position = 7938 }; tabs21.Append(tabStop73); SpacingBetweenLines spacingBetweenLines35 = new SpacingBetweenLines() { Before = "40", After = "40" }; ParagraphMarkRunProperties paragraphMarkRunProperties41 = new ParagraphMarkRunProperties(); RunFonts runFonts76 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize62 = new FontSize() { Val = "20" }; paragraphMarkRunProperties41.Append(runFonts76); paragraphMarkRunProperties41.Append(fontSize62); paragraphProperties41.Append(tabs21); paragraphProperties41.Append(spacingBetweenLines35); paragraphProperties41.Append(paragraphMarkRunProperties41); Run run36 = new Run(); RunProperties runProperties36 = new RunProperties(); RunFonts runFonts77 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize63 = new FontSize() { Val = "20" }; runProperties36.Append(runFonts77); runProperties36.Append(fontSize63); Text text35 = new Text(); text35.Text = "Freight:"; run36.Append(runProperties36); run36.Append(text35); paragraph41.Append(paragraphProperties41); paragraph41.Append(run36); tableCell21.Append(tableCellProperties21); tableCell21.Append(paragraph41); TableCell tableCell22 = new TableCell(); TableCellProperties tableCellProperties22 = new TableCellProperties(); TableCellWidth tableCellWidth22 = new TableCellWidth() { Width = "941", Type = TableWidthUnitValues.Dxa }; tableCellProperties22.Append(tableCellWidth22); Paragraph paragraph42 = new Paragraph() { RsidParagraphAddition = "00B5104A", RsidParagraphProperties = "00B5104A", RsidRunAdditionDefault = "00B5104A" }; ParagraphProperties paragraphProperties42 = new ParagraphProperties(); Tabs tabs22 = new Tabs(); TabStop tabStop74 = new TabStop() { Val = TabStopValues.Left, Position = 6663 }; TabStop tabStop75 = new TabStop() { Val = TabStopValues.Left, Position = 8364 }; tabs22.Append(tabStop74); tabs22.Append(tabStop75); SpacingBetweenLines spacingBetweenLines36 = new SpacingBetweenLines() { Before = "40", After = "40" }; Justification justification18 = new Justification() { Val = JustificationValues.Right }; ParagraphMarkRunProperties paragraphMarkRunProperties42 = new ParagraphMarkRunProperties(); RunFonts runFonts78 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize64 = new FontSize() { Val = "20" }; paragraphMarkRunProperties42.Append(runFonts78); paragraphMarkRunProperties42.Append(fontSize64); paragraphProperties42.Append(tabs22); paragraphProperties42.Append(spacingBetweenLines36); paragraphProperties42.Append(justification18); paragraphProperties42.Append(paragraphMarkRunProperties42); Run run37 = new Run(); RunProperties runProperties37 = new RunProperties(); RunFonts runFonts79 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize65 = new FontSize() { Val = "20" }; runProperties37.Append(runFonts79); runProperties37.Append(fontSize65); Text text36 = new Text(); //TODO freight price text36.Text = "$" + String.Format("{0:0.00}", order.freightCost); run37.Append(runProperties37); run37.Append(text36); paragraph42.Append(paragraphProperties42); paragraph42.Append(run37); tableCell22.Append(tableCellProperties22); tableCell22.Append(paragraph42); tableRow7.Append(tableCell21); tableRow7.Append(tableCell22); TableRow tableRow8 = new TableRow() { RsidTableRowAddition = "00B5104A", RsidTableRowProperties = "00BD60A1" }; TableCell tableCell23 = new TableCell(); TableCellProperties tableCellProperties23 = new TableCellProperties(); TableCellWidth tableCellWidth23 = new TableCellWidth() { Width = "1559", Type = TableWidthUnitValues.Dxa }; tableCellProperties23.Append(tableCellWidth23); Paragraph paragraph43 = new Paragraph() { RsidParagraphAddition = "00B5104A", RsidParagraphProperties = "00116604", RsidRunAdditionDefault = "00B5104A" }; ParagraphProperties paragraphProperties43 = new ParagraphProperties(); Tabs tabs23 = new Tabs(); TabStop tabStop76 = new TabStop() { Val = TabStopValues.Left, Position = 7938 }; tabs23.Append(tabStop76); SpacingBetweenLines spacingBetweenLines37 = new SpacingBetweenLines() { Before = "40", After = "40" }; ParagraphMarkRunProperties paragraphMarkRunProperties43 = new ParagraphMarkRunProperties(); RunFonts runFonts80 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize66 = new FontSize() { Val = "20" }; paragraphMarkRunProperties43.Append(runFonts80); paragraphMarkRunProperties43.Append(fontSize66); paragraphProperties43.Append(tabs23); paragraphProperties43.Append(spacingBetweenLines37); paragraphProperties43.Append(paragraphMarkRunProperties43); Run run38 = new Run() { RsidRunProperties = "00690638" }; RunProperties runProperties38 = new RunProperties(); RunFonts runFonts81 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; Bold bold8 = new Bold(); FontSize fontSize67 = new FontSize() { Val = "20" }; runProperties38.Append(runFonts81); runProperties38.Append(bold8); runProperties38.Append(fontSize67); Text text37 = new Text(); text37.Text = "Final Total"; run38.Append(runProperties38); run38.Append(text37); Run run39 = new Run(); RunProperties runProperties39 = new RunProperties(); RunFonts runFonts82 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; Bold bold9 = new Bold(); FontSize fontSize68 = new FontSize() { Val = "20" }; runProperties39.Append(runFonts82); runProperties39.Append(bold9); runProperties39.Append(fontSize68); Text text38 = new Text(); text38.Text = ":"; run39.Append(runProperties39); run39.Append(text38); paragraph43.Append(paragraphProperties43); paragraph43.Append(run38); paragraph43.Append(run39); tableCell23.Append(tableCellProperties23); tableCell23.Append(paragraph43); TableCell tableCell24 = new TableCell(); TableCellProperties tableCellProperties24 = new TableCellProperties(); TableCellWidth tableCellWidth24 = new TableCellWidth() { Width = "941", Type = TableWidthUnitValues.Dxa }; tableCellProperties24.Append(tableCellWidth24); Paragraph paragraph44 = new Paragraph() { RsidParagraphAddition = "00B5104A", RsidParagraphProperties = "00B5104A", RsidRunAdditionDefault = "00B5104A" }; ParagraphProperties paragraphProperties44 = new ParagraphProperties(); Tabs tabs24 = new Tabs(); TabStop tabStop77 = new TabStop() { Val = TabStopValues.Left, Position = 6663 }; TabStop tabStop78 = new TabStop() { Val = TabStopValues.Left, Position = 8364 }; tabs24.Append(tabStop77); tabs24.Append(tabStop78); SpacingBetweenLines spacingBetweenLines38 = new SpacingBetweenLines() { Before = "40", After = "40" }; Justification justification19 = new Justification() { Val = JustificationValues.Right }; ParagraphMarkRunProperties paragraphMarkRunProperties44 = new ParagraphMarkRunProperties(); RunFonts runFonts83 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize69 = new FontSize() { Val = "20" }; paragraphMarkRunProperties44.Append(runFonts83); paragraphMarkRunProperties44.Append(fontSize69); paragraphProperties44.Append(tabs24); paragraphProperties44.Append(spacingBetweenLines38); paragraphProperties44.Append(justification19); paragraphProperties44.Append(paragraphMarkRunProperties44); Run run40 = new Run() { RsidRunProperties = "00690638" }; RunProperties runProperties40 = new RunProperties(); RunFonts runFonts84 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; Bold bold10 = new Bold(); FontSize fontSize70 = new FontSize() { Val = "20" }; runProperties40.Append(runFonts84); runProperties40.Append(bold10); runProperties40.Append(fontSize70); Text text39 = new Text(); //TODO add in total + freightCost double finalTotal = grandTotal + order.freightCost; text39.Text = "$" + String.Format("{0:0.00}", finalTotal); run40.Append(runProperties40); run40.Append(text39); paragraph44.Append(paragraphProperties44); paragraph44.Append(run40); tableCell24.Append(tableCellProperties24); tableCell24.Append(paragraph44); tableRow8.Append(tableCell23); tableRow8.Append(tableCell24); TableRow tableRow9 = new TableRow() { RsidTableRowAddition = "00B5104A", RsidTableRowProperties = "00BD60A1" }; TableCell tableCell25 = new TableCell(); TableCellProperties tableCellProperties25 = new TableCellProperties(); TableCellWidth tableCellWidth25 = new TableCellWidth() { Width = "2500", Type = TableWidthUnitValues.Dxa }; GridSpan gridSpan4 = new GridSpan() { Val = 2 }; tableCellProperties25.Append(tableCellWidth25); tableCellProperties25.Append(gridSpan4); Paragraph paragraph45 = new Paragraph() { RsidParagraphMarkRevision = "00690638", RsidParagraphAddition = "00B5104A", RsidParagraphProperties = "00B5104A", RsidRunAdditionDefault = "00B5104A" }; ParagraphProperties paragraphProperties45 = new ParagraphProperties(); Tabs tabs25 = new Tabs(); TabStop tabStop79 = new TabStop() { Val = TabStopValues.Left, Position = 6663 }; TabStop tabStop80 = new TabStop() { Val = TabStopValues.Left, Position = 8364 }; tabs25.Append(tabStop79); tabs25.Append(tabStop80); SpacingBetweenLines spacingBetweenLines39 = new SpacingBetweenLines() { Before = "40", After = "40" }; Justification justification20 = new Justification() { Val = JustificationValues.Right }; ParagraphMarkRunProperties paragraphMarkRunProperties45 = new ParagraphMarkRunProperties(); RunFonts runFonts85 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; Bold bold11 = new Bold(); FontSize fontSize71 = new FontSize() { Val = "20" }; paragraphMarkRunProperties45.Append(runFonts85); paragraphMarkRunProperties45.Append(bold11); paragraphMarkRunProperties45.Append(fontSize71); paragraphProperties45.Append(tabs25); paragraphProperties45.Append(spacingBetweenLines39); paragraphProperties45.Append(justification20); paragraphProperties45.Append(paragraphMarkRunProperties45); Run run41 = new Run() { RsidRunProperties = "00882792" }; RunProperties runProperties41 = new RunProperties(); RunFonts runFonts86 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; Bold bold12 = new Bold(); FontSize fontSize72 = new FontSize() { Val = "18" }; runProperties41.Append(runFonts86); runProperties41.Append(bold12); runProperties41.Append(fontSize72); Text text40 = new Text(); text40.Text = "Paid in Full"; run41.Append(runProperties41); run41.Append(text40); paragraph45.Append(paragraphProperties45); paragraph45.Append(run41); tableCell25.Append(tableCellProperties25); tableCell25.Append(paragraph45); tableRow9.Append(tableCell25); table3.Append(tableProperties3); table3.Append(tableGrid3); table3.Append(tableRow6); table3.Append(tableRow7); table3.Append(tableRow8); table3.Append(tableRow9); Paragraph paragraph46 = new Paragraph() { RsidParagraphMarkRevision = "00690638", RsidParagraphAddition = "00B5104A", RsidParagraphProperties = "00116604", RsidRunAdditionDefault = "00B5104A" }; ParagraphProperties paragraphProperties46 = new ParagraphProperties(); Tabs tabs26 = new Tabs(); TabStop tabStop81 = new TabStop() { Val = TabStopValues.Left, Position = 7938 }; tabs26.Append(tabStop81); SpacingBetweenLines spacingBetweenLines40 = new SpacingBetweenLines() { Before = "40", After = "40" }; ParagraphMarkRunProperties paragraphMarkRunProperties46 = new ParagraphMarkRunProperties(); RunFonts runFonts87 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; Bold bold13 = new Bold(); FontSize fontSize73 = new FontSize() { Val = "20" }; paragraphMarkRunProperties46.Append(runFonts87); paragraphMarkRunProperties46.Append(bold13); paragraphMarkRunProperties46.Append(fontSize73); paragraphProperties46.Append(tabs26); paragraphProperties46.Append(spacingBetweenLines40); paragraphProperties46.Append(paragraphMarkRunProperties46); paragraph46.Append(paragraphProperties46); SectionProperties sectionProperties3 = new SectionProperties() { RsidRPr = "00690638", RsidR = "00B5104A", RsidSect = "00EA7D1E" }; SectionType sectionType2 = new SectionType() { Val = SectionMarkValues.Continuous }; PageSize pageSize3 = new PageSize() { Width = (UInt32Value)11906U, Height = (UInt32Value)16838U }; PageMargin pageMargin3 = new PageMargin() { Top = 1440, Right = (UInt32Value)1440U, Bottom = 1440, Left = (UInt32Value)1440U, Header = (UInt32Value)708U, Footer = (UInt32Value)708U, Gutter = (UInt32Value)0U }; Columns columns3 = new Columns() { Space = "286" }; DocGrid docGrid3 = new DocGrid() { LinePitch = 360 }; sectionProperties3.Append(sectionType2); sectionProperties3.Append(pageSize3); sectionProperties3.Append(pageMargin3); sectionProperties3.Append(columns3); sectionProperties3.Append(docGrid3); body1.Append(paragraph1); body1.Append(paragraph2); body1.Append(paragraph3); body1.Append(paragraph4); body1.Append(paragraph5); body1.Append(paragraph6); body1.Append(paragraph7); body1.Append(paragraph8); if (customer != null) { if (customer.firstName != "" || customer.lastName != "") body1.Append(paragraph9); } else { if(order.firstName != "" || order.lastName != "") body1.Append(paragraph9); } if (customer.institution != "") body1.Append(paragraphInstitute); if(customer.address1 != "") body1.Append(paragraph10); if(customer.address2 != "") body1.Append(paragraph11); if(customer.address3 != "") body1.Append(paragraph12); if(customer.postCode != "") body1.Append(paragraph13); if(customer.country != "") body1.Append(paragraph14); body1.Append(paragraph15); body1.Append(table1); body1.Append(paragraph22); body1.Append(paragraph23); body1.Append(paragraph24); body1.Append(table2); body1.Append(paragraph38); body1.Append(table3); body1.Append(paragraph46); body1.Append(sectionProperties3); document1.Append(body1); mainDocumentPart1.Document = document1; }
public Paragraph AddChildren(bool keepnext) { Paragraph paragraph1 = new Paragraph() { RsidParagraphMarkRevision = "00E7001C", RsidParagraphAddition = "00E7001C", RsidParagraphProperties = "005205ED", RsidRunAdditionDefault = "00E7001C" }; ParagraphProperties paragraphProperties1 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines1 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties1 = new ParagraphMarkRunProperties(); RunFonts runFonts1 = new RunFonts() { ComplexScriptTheme = ThemeFontValues.MinorHighAnsi }; FontSize fontSize1 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript() { Val = "20" }; paragraphMarkRunProperties1.Append(runFonts1); paragraphMarkRunProperties1.Append(fontSize1); paragraphMarkRunProperties1.Append(fontSizeComplexScript1); KeepLines keeplines = new KeepLines(); paragraphProperties1.Append(keeplines); if (keepnext) { paragraphProperties1.Append(new KeepNext()); } paragraphProperties1.Append(spacingBetweenLines1); paragraphProperties1.Append(paragraphMarkRunProperties1); paragraph1.Append(paragraphProperties1); Run run1 = new Run() { RsidRunProperties = "00E7001C" }; RunProperties runProperties1 = new RunProperties(); RunFonts runFonts2 = new RunFonts() { ComplexScriptTheme = ThemeFontValues.MinorHighAnsi }; FontSize fontSize2 = new FontSize() { Val = "20" }; runProperties1.Append(fontSize2); runProperties1.Append(runFonts2); run1.Append(runProperties1); var needbreak = false; foreach (var child in children) { if (needbreak) { run1.Append(new Break()); } needbreak = true; Text text1 = new Text(); var name = child.Last == FamilyName ? child.First : "{0} {1}".Fmt(child.First, child.Last); text1.Text = "{0} {1}".Fmt(name, child.SafeAge); run1.Append(text1); } paragraph1.Append(run1); return(paragraph1); }
// Generates content of stylesWithEffectsPart2. private void GenerateStylesWithEffectsPart2Content(StylesWithEffectsPart stylesWithEffectsPart2) { Styles styles3 = new Styles(){ MCAttributes = new MarkupCompatibilityAttributes(){ Ignorable = "w14 w15 wp14" } }; styles3.AddNamespaceDeclaration("wpc", "http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas"); styles3.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); styles3.AddNamespaceDeclaration("o", "urn:schemas-microsoft-com:office:office"); styles3.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); styles3.AddNamespaceDeclaration("m", "http://schemas.openxmlformats.org/officeDocument/2006/math"); styles3.AddNamespaceDeclaration("v", "urn:schemas-microsoft-com:vml"); styles3.AddNamespaceDeclaration("wp14", "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing"); styles3.AddNamespaceDeclaration("wp", "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"); styles3.AddNamespaceDeclaration("w10", "urn:schemas-microsoft-com:office:word"); styles3.AddNamespaceDeclaration("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main"); styles3.AddNamespaceDeclaration("w14", "http://schemas.microsoft.com/office/word/2010/wordml"); styles3.AddNamespaceDeclaration("w15", "http://schemas.microsoft.com/office/word/2010/11/wordml"); styles3.AddNamespaceDeclaration("wpg", "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup"); styles3.AddNamespaceDeclaration("wpi", "http://schemas.microsoft.com/office/word/2010/wordprocessingInk"); styles3.AddNamespaceDeclaration("wne", "http://schemas.microsoft.com/office/word/2006/wordml"); styles3.AddNamespaceDeclaration("wps", "http://schemas.microsoft.com/office/word/2010/wordprocessingShape"); DocDefaults docDefaults3 = new DocDefaults(); RunPropertiesDefault runPropertiesDefault3 = new RunPropertiesDefault(); RunPropertiesBaseStyle runPropertiesBaseStyle3 = new RunPropertiesBaseStyle(); RunFonts runFonts35 = new RunFonts(){ AsciiTheme = ThemeFontValues.MinorHighAnsi, HighAnsiTheme = ThemeFontValues.MinorHighAnsi, EastAsiaTheme = ThemeFontValues.MinorEastAsia, ComplexScriptTheme = ThemeFontValues.MinorBidi }; Kern kern17 = new Kern(){ Val = (UInt32Value)2U }; FontSize fontSize3 = new FontSize(){ Val = "21" }; FontSizeComplexScript fontSizeComplexScript3 = new FontSizeComplexScript(){ Val = "22" }; Languages languages3 = new Languages(){ Val = "en-US", EastAsia = "ja-JP", Bidi = "ar-SA" }; runPropertiesBaseStyle3.Append(runFonts35); runPropertiesBaseStyle3.Append(kern17); runPropertiesBaseStyle3.Append(fontSize3); runPropertiesBaseStyle3.Append(fontSizeComplexScript3); runPropertiesBaseStyle3.Append(languages3); runPropertiesDefault3.Append(runPropertiesBaseStyle3); ParagraphPropertiesDefault paragraphPropertiesDefault3 = new ParagraphPropertiesDefault(); docDefaults3.Append(runPropertiesDefault3); docDefaults3.Append(paragraphPropertiesDefault3); LatentStyles latentStyles3 = new LatentStyles(){ DefaultLockedState = false, DefaultUiPriority = 99, DefaultSemiHidden = true, DefaultUnhideWhenUsed = true, DefaultPrimaryStyle = false, Count = 267 }; LatentStyleExceptionInfo latentStyleExceptionInfo275 = new LatentStyleExceptionInfo(){ Name = "Normal", UiPriority = 0, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo276 = new LatentStyleExceptionInfo(){ Name = "heading 1", UiPriority = 9, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo277 = new LatentStyleExceptionInfo(){ Name = "heading 2", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo278 = new LatentStyleExceptionInfo(){ Name = "heading 3", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo279 = new LatentStyleExceptionInfo(){ Name = "heading 4", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo280 = new LatentStyleExceptionInfo(){ Name = "heading 5", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo281 = new LatentStyleExceptionInfo(){ Name = "heading 6", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo282 = new LatentStyleExceptionInfo(){ Name = "heading 7", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo283 = new LatentStyleExceptionInfo(){ Name = "heading 8", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo284 = new LatentStyleExceptionInfo(){ Name = "heading 9", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo285 = new LatentStyleExceptionInfo(){ Name = "toc 1", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo286 = new LatentStyleExceptionInfo(){ Name = "toc 2", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo287 = new LatentStyleExceptionInfo(){ Name = "toc 3", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo288 = new LatentStyleExceptionInfo(){ Name = "toc 4", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo289 = new LatentStyleExceptionInfo(){ Name = "toc 5", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo290 = new LatentStyleExceptionInfo(){ Name = "toc 6", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo291 = new LatentStyleExceptionInfo(){ Name = "toc 7", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo292 = new LatentStyleExceptionInfo(){ Name = "toc 8", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo293 = new LatentStyleExceptionInfo(){ Name = "toc 9", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo294 = new LatentStyleExceptionInfo(){ Name = "caption", UiPriority = 35, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo295 = new LatentStyleExceptionInfo(){ Name = "Title", UiPriority = 10, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo296 = new LatentStyleExceptionInfo(){ Name = "Default Paragraph Font", UiPriority = 1 }; LatentStyleExceptionInfo latentStyleExceptionInfo297 = new LatentStyleExceptionInfo(){ Name = "Subtitle", UiPriority = 11, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo298 = new LatentStyleExceptionInfo(){ Name = "Strong", UiPriority = 22, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo299 = new LatentStyleExceptionInfo(){ Name = "Emphasis", UiPriority = 20, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo300 = new LatentStyleExceptionInfo(){ Name = "Table Grid", UiPriority = 59, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo301 = new LatentStyleExceptionInfo(){ Name = "Placeholder Text", UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo302 = new LatentStyleExceptionInfo(){ Name = "No Spacing", UiPriority = 36, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo303 = new LatentStyleExceptionInfo(){ Name = "Light Shading", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo304 = new LatentStyleExceptionInfo(){ Name = "Light List", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo305 = new LatentStyleExceptionInfo(){ Name = "Light Grid", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo306 = new LatentStyleExceptionInfo(){ Name = "Medium Shading 1", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo307 = new LatentStyleExceptionInfo(){ Name = "Medium Shading 2", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo308 = new LatentStyleExceptionInfo(){ Name = "Medium List 1", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo309 = new LatentStyleExceptionInfo(){ Name = "Medium List 2", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo310 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 1", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo311 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 2", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo312 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 3", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo313 = new LatentStyleExceptionInfo(){ Name = "Dark List", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo314 = new LatentStyleExceptionInfo(){ Name = "Colorful Shading", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo315 = new LatentStyleExceptionInfo(){ Name = "Colorful List", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo316 = new LatentStyleExceptionInfo(){ Name = "Colorful Grid", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo317 = new LatentStyleExceptionInfo(){ Name = "Light Shading Accent 1", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo318 = new LatentStyleExceptionInfo(){ Name = "Light List Accent 1", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo319 = new LatentStyleExceptionInfo(){ Name = "Light Grid Accent 1", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo320 = new LatentStyleExceptionInfo(){ Name = "Medium Shading 1 Accent 1", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo321 = new LatentStyleExceptionInfo(){ Name = "Medium Shading 2 Accent 1", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo322 = new LatentStyleExceptionInfo(){ Name = "Medium List 1 Accent 1", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo323 = new LatentStyleExceptionInfo(){ Name = "Revision", UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo324 = new LatentStyleExceptionInfo(){ Name = "List Paragraph", UiPriority = 34, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo325 = new LatentStyleExceptionInfo(){ Name = "Quote", UiPriority = 29, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo326 = new LatentStyleExceptionInfo(){ Name = "Intense Quote", UiPriority = 30, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo327 = new LatentStyleExceptionInfo(){ Name = "Medium List 2 Accent 1", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo328 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 1 Accent 1", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo329 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 2 Accent 1", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo330 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 3 Accent 1", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo331 = new LatentStyleExceptionInfo(){ Name = "Dark List Accent 1", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo332 = new LatentStyleExceptionInfo(){ Name = "Colorful Shading Accent 1", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo333 = new LatentStyleExceptionInfo(){ Name = "Colorful List Accent 1", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo334 = new LatentStyleExceptionInfo(){ Name = "Colorful Grid Accent 1", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo335 = new LatentStyleExceptionInfo(){ Name = "Light Shading Accent 2", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo336 = new LatentStyleExceptionInfo(){ Name = "Light List Accent 2", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo337 = new LatentStyleExceptionInfo(){ Name = "Light Grid Accent 2", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo338 = new LatentStyleExceptionInfo(){ Name = "Medium Shading 1 Accent 2", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo339 = new LatentStyleExceptionInfo(){ Name = "Medium Shading 2 Accent 2", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo340 = new LatentStyleExceptionInfo(){ Name = "Medium List 1 Accent 2", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo341 = new LatentStyleExceptionInfo(){ Name = "Medium List 2 Accent 2", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo342 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 1 Accent 2", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo343 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 2 Accent 2", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo344 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 3 Accent 2", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo345 = new LatentStyleExceptionInfo(){ Name = "Dark List Accent 2", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo346 = new LatentStyleExceptionInfo(){ Name = "Colorful Shading Accent 2", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo347 = new LatentStyleExceptionInfo(){ Name = "Colorful List Accent 2", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo348 = new LatentStyleExceptionInfo(){ Name = "Colorful Grid Accent 2", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo349 = new LatentStyleExceptionInfo(){ Name = "Light Shading Accent 3", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo350 = new LatentStyleExceptionInfo(){ Name = "Light List Accent 3", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo351 = new LatentStyleExceptionInfo(){ Name = "Light Grid Accent 3", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo352 = new LatentStyleExceptionInfo(){ Name = "Medium Shading 1 Accent 3", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo353 = new LatentStyleExceptionInfo(){ Name = "Medium Shading 2 Accent 3", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo354 = new LatentStyleExceptionInfo(){ Name = "Medium List 1 Accent 3", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo355 = new LatentStyleExceptionInfo(){ Name = "Medium List 2 Accent 3", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo356 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 1 Accent 3", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo357 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 2 Accent 3", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo358 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 3 Accent 3", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo359 = new LatentStyleExceptionInfo(){ Name = "Dark List Accent 3", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo360 = new LatentStyleExceptionInfo(){ Name = "Colorful Shading Accent 3", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo361 = new LatentStyleExceptionInfo(){ Name = "Colorful List Accent 3", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo362 = new LatentStyleExceptionInfo(){ Name = "Colorful Grid Accent 3", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo363 = new LatentStyleExceptionInfo(){ Name = "Light Shading Accent 4", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo364 = new LatentStyleExceptionInfo(){ Name = "Light List Accent 4", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo365 = new LatentStyleExceptionInfo(){ Name = "Light Grid Accent 4", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo366 = new LatentStyleExceptionInfo(){ Name = "Medium Shading 1 Accent 4", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo367 = new LatentStyleExceptionInfo(){ Name = "Medium Shading 2 Accent 4", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo368 = new LatentStyleExceptionInfo(){ Name = "Medium List 1 Accent 4", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo369 = new LatentStyleExceptionInfo(){ Name = "Medium List 2 Accent 4", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo370 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 1 Accent 4", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo371 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 2 Accent 4", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo372 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 3 Accent 4", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo373 = new LatentStyleExceptionInfo(){ Name = "Dark List Accent 4", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo374 = new LatentStyleExceptionInfo(){ Name = "Colorful Shading Accent 4", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo375 = new LatentStyleExceptionInfo(){ Name = "Colorful List Accent 4", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo376 = new LatentStyleExceptionInfo(){ Name = "Colorful Grid Accent 4", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo377 = new LatentStyleExceptionInfo(){ Name = "Light Shading Accent 5", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo378 = new LatentStyleExceptionInfo(){ Name = "Light List Accent 5", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo379 = new LatentStyleExceptionInfo(){ Name = "Light Grid Accent 5", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo380 = new LatentStyleExceptionInfo(){ Name = "Medium Shading 1 Accent 5", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo381 = new LatentStyleExceptionInfo(){ Name = "Medium Shading 2 Accent 5", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo382 = new LatentStyleExceptionInfo(){ Name = "Medium List 1 Accent 5", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo383 = new LatentStyleExceptionInfo(){ Name = "Medium List 2 Accent 5", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo384 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 1 Accent 5", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo385 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 2 Accent 5", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo386 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 3 Accent 5", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo387 = new LatentStyleExceptionInfo(){ Name = "Dark List Accent 5", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo388 = new LatentStyleExceptionInfo(){ Name = "Colorful Shading Accent 5", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo389 = new LatentStyleExceptionInfo(){ Name = "Colorful List Accent 5", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo390 = new LatentStyleExceptionInfo(){ Name = "Colorful Grid Accent 5", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo391 = new LatentStyleExceptionInfo(){ Name = "Light Shading Accent 6", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo392 = new LatentStyleExceptionInfo(){ Name = "Light List Accent 6", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo393 = new LatentStyleExceptionInfo(){ Name = "Light Grid Accent 6", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo394 = new LatentStyleExceptionInfo(){ Name = "Medium Shading 1 Accent 6", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo395 = new LatentStyleExceptionInfo(){ Name = "Medium Shading 2 Accent 6", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo396 = new LatentStyleExceptionInfo(){ Name = "Medium List 1 Accent 6", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo397 = new LatentStyleExceptionInfo(){ Name = "Medium List 2 Accent 6", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo398 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 1 Accent 6", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo399 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 2 Accent 6", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo400 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 3 Accent 6", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo401 = new LatentStyleExceptionInfo(){ Name = "Dark List Accent 6", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo402 = new LatentStyleExceptionInfo(){ Name = "Colorful Shading Accent 6", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo403 = new LatentStyleExceptionInfo(){ Name = "Colorful List Accent 6", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo404 = new LatentStyleExceptionInfo(){ Name = "Colorful Grid Accent 6", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo405 = new LatentStyleExceptionInfo(){ Name = "Subtle Emphasis", UiPriority = 19, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo406 = new LatentStyleExceptionInfo(){ Name = "Intense Emphasis", UiPriority = 21, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo407 = new LatentStyleExceptionInfo(){ Name = "Subtle Reference", UiPriority = 31, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo408 = new LatentStyleExceptionInfo(){ Name = "Intense Reference", UiPriority = 32, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo409 = new LatentStyleExceptionInfo(){ Name = "Book Title", UiPriority = 33, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo410 = new LatentStyleExceptionInfo(){ Name = "Bibliography", UiPriority = 37 }; LatentStyleExceptionInfo latentStyleExceptionInfo411 = new LatentStyleExceptionInfo(){ Name = "TOC Heading", UiPriority = 39, PrimaryStyle = true }; latentStyles3.Append(latentStyleExceptionInfo275); latentStyles3.Append(latentStyleExceptionInfo276); latentStyles3.Append(latentStyleExceptionInfo277); latentStyles3.Append(latentStyleExceptionInfo278); latentStyles3.Append(latentStyleExceptionInfo279); latentStyles3.Append(latentStyleExceptionInfo280); latentStyles3.Append(latentStyleExceptionInfo281); latentStyles3.Append(latentStyleExceptionInfo282); latentStyles3.Append(latentStyleExceptionInfo283); latentStyles3.Append(latentStyleExceptionInfo284); latentStyles3.Append(latentStyleExceptionInfo285); latentStyles3.Append(latentStyleExceptionInfo286); latentStyles3.Append(latentStyleExceptionInfo287); latentStyles3.Append(latentStyleExceptionInfo288); latentStyles3.Append(latentStyleExceptionInfo289); latentStyles3.Append(latentStyleExceptionInfo290); latentStyles3.Append(latentStyleExceptionInfo291); latentStyles3.Append(latentStyleExceptionInfo292); latentStyles3.Append(latentStyleExceptionInfo293); latentStyles3.Append(latentStyleExceptionInfo294); latentStyles3.Append(latentStyleExceptionInfo295); latentStyles3.Append(latentStyleExceptionInfo296); latentStyles3.Append(latentStyleExceptionInfo297); latentStyles3.Append(latentStyleExceptionInfo298); latentStyles3.Append(latentStyleExceptionInfo299); latentStyles3.Append(latentStyleExceptionInfo300); latentStyles3.Append(latentStyleExceptionInfo301); latentStyles3.Append(latentStyleExceptionInfo302); latentStyles3.Append(latentStyleExceptionInfo303); latentStyles3.Append(latentStyleExceptionInfo304); latentStyles3.Append(latentStyleExceptionInfo305); latentStyles3.Append(latentStyleExceptionInfo306); latentStyles3.Append(latentStyleExceptionInfo307); latentStyles3.Append(latentStyleExceptionInfo308); latentStyles3.Append(latentStyleExceptionInfo309); latentStyles3.Append(latentStyleExceptionInfo310); latentStyles3.Append(latentStyleExceptionInfo311); latentStyles3.Append(latentStyleExceptionInfo312); latentStyles3.Append(latentStyleExceptionInfo313); latentStyles3.Append(latentStyleExceptionInfo314); latentStyles3.Append(latentStyleExceptionInfo315); latentStyles3.Append(latentStyleExceptionInfo316); latentStyles3.Append(latentStyleExceptionInfo317); latentStyles3.Append(latentStyleExceptionInfo318); latentStyles3.Append(latentStyleExceptionInfo319); latentStyles3.Append(latentStyleExceptionInfo320); latentStyles3.Append(latentStyleExceptionInfo321); latentStyles3.Append(latentStyleExceptionInfo322); latentStyles3.Append(latentStyleExceptionInfo323); latentStyles3.Append(latentStyleExceptionInfo324); latentStyles3.Append(latentStyleExceptionInfo325); latentStyles3.Append(latentStyleExceptionInfo326); latentStyles3.Append(latentStyleExceptionInfo327); latentStyles3.Append(latentStyleExceptionInfo328); latentStyles3.Append(latentStyleExceptionInfo329); latentStyles3.Append(latentStyleExceptionInfo330); latentStyles3.Append(latentStyleExceptionInfo331); latentStyles3.Append(latentStyleExceptionInfo332); latentStyles3.Append(latentStyleExceptionInfo333); latentStyles3.Append(latentStyleExceptionInfo334); latentStyles3.Append(latentStyleExceptionInfo335); latentStyles3.Append(latentStyleExceptionInfo336); latentStyles3.Append(latentStyleExceptionInfo337); latentStyles3.Append(latentStyleExceptionInfo338); latentStyles3.Append(latentStyleExceptionInfo339); latentStyles3.Append(latentStyleExceptionInfo340); latentStyles3.Append(latentStyleExceptionInfo341); latentStyles3.Append(latentStyleExceptionInfo342); latentStyles3.Append(latentStyleExceptionInfo343); latentStyles3.Append(latentStyleExceptionInfo344); latentStyles3.Append(latentStyleExceptionInfo345); latentStyles3.Append(latentStyleExceptionInfo346); latentStyles3.Append(latentStyleExceptionInfo347); latentStyles3.Append(latentStyleExceptionInfo348); latentStyles3.Append(latentStyleExceptionInfo349); latentStyles3.Append(latentStyleExceptionInfo350); latentStyles3.Append(latentStyleExceptionInfo351); latentStyles3.Append(latentStyleExceptionInfo352); latentStyles3.Append(latentStyleExceptionInfo353); latentStyles3.Append(latentStyleExceptionInfo354); latentStyles3.Append(latentStyleExceptionInfo355); latentStyles3.Append(latentStyleExceptionInfo356); latentStyles3.Append(latentStyleExceptionInfo357); latentStyles3.Append(latentStyleExceptionInfo358); latentStyles3.Append(latentStyleExceptionInfo359); latentStyles3.Append(latentStyleExceptionInfo360); latentStyles3.Append(latentStyleExceptionInfo361); latentStyles3.Append(latentStyleExceptionInfo362); latentStyles3.Append(latentStyleExceptionInfo363); latentStyles3.Append(latentStyleExceptionInfo364); latentStyles3.Append(latentStyleExceptionInfo365); latentStyles3.Append(latentStyleExceptionInfo366); latentStyles3.Append(latentStyleExceptionInfo367); latentStyles3.Append(latentStyleExceptionInfo368); latentStyles3.Append(latentStyleExceptionInfo369); latentStyles3.Append(latentStyleExceptionInfo370); latentStyles3.Append(latentStyleExceptionInfo371); latentStyles3.Append(latentStyleExceptionInfo372); latentStyles3.Append(latentStyleExceptionInfo373); latentStyles3.Append(latentStyleExceptionInfo374); latentStyles3.Append(latentStyleExceptionInfo375); latentStyles3.Append(latentStyleExceptionInfo376); latentStyles3.Append(latentStyleExceptionInfo377); latentStyles3.Append(latentStyleExceptionInfo378); latentStyles3.Append(latentStyleExceptionInfo379); latentStyles3.Append(latentStyleExceptionInfo380); latentStyles3.Append(latentStyleExceptionInfo381); latentStyles3.Append(latentStyleExceptionInfo382); latentStyles3.Append(latentStyleExceptionInfo383); latentStyles3.Append(latentStyleExceptionInfo384); latentStyles3.Append(latentStyleExceptionInfo385); latentStyles3.Append(latentStyleExceptionInfo386); latentStyles3.Append(latentStyleExceptionInfo387); latentStyles3.Append(latentStyleExceptionInfo388); latentStyles3.Append(latentStyleExceptionInfo389); latentStyles3.Append(latentStyleExceptionInfo390); latentStyles3.Append(latentStyleExceptionInfo391); latentStyles3.Append(latentStyleExceptionInfo392); latentStyles3.Append(latentStyleExceptionInfo393); latentStyles3.Append(latentStyleExceptionInfo394); latentStyles3.Append(latentStyleExceptionInfo395); latentStyles3.Append(latentStyleExceptionInfo396); latentStyles3.Append(latentStyleExceptionInfo397); latentStyles3.Append(latentStyleExceptionInfo398); latentStyles3.Append(latentStyleExceptionInfo399); latentStyles3.Append(latentStyleExceptionInfo400); latentStyles3.Append(latentStyleExceptionInfo401); latentStyles3.Append(latentStyleExceptionInfo402); latentStyles3.Append(latentStyleExceptionInfo403); latentStyles3.Append(latentStyleExceptionInfo404); latentStyles3.Append(latentStyleExceptionInfo405); latentStyles3.Append(latentStyleExceptionInfo406); latentStyles3.Append(latentStyleExceptionInfo407); latentStyles3.Append(latentStyleExceptionInfo408); latentStyles3.Append(latentStyleExceptionInfo409); latentStyles3.Append(latentStyleExceptionInfo410); latentStyles3.Append(latentStyleExceptionInfo411); Style style21 = new Style(){ Type = StyleValues.Paragraph, StyleId = "Normal", Default = true }; StyleName styleName21 = new StyleName(){ Val = "Normal" }; PrimaryStyle primaryStyle3 = new PrimaryStyle(); StyleParagraphProperties styleParagraphProperties13 = new StyleParagraphProperties(); WidowControl widowControl13 = new WidowControl(){ Val = false }; Justification justification13 = new Justification(){ Val = JustificationValues.Both }; styleParagraphProperties13.Append(widowControl13); styleParagraphProperties13.Append(justification13); style21.Append(styleName21); style21.Append(primaryStyle3); style21.Append(styleParagraphProperties13); Style style22 = new Style(){ Type = StyleValues.Character, StyleId = "DefaultParagraphFont", Default = true }; StyleName styleName22 = new StyleName(){ Val = "Default Paragraph Font" }; UIPriority uIPriority9 = new UIPriority(){ Val = 1 }; SemiHidden semiHidden9 = new SemiHidden(); UnhideWhenUsed unhideWhenUsed7 = new UnhideWhenUsed(); style22.Append(styleName22); style22.Append(uIPriority9); style22.Append(semiHidden9); style22.Append(unhideWhenUsed7); Style style23 = new Style(){ Type = StyleValues.Table, StyleId = "TableNormal", Default = true }; StyleName styleName23 = new StyleName(){ Val = "Normal Table" }; UIPriority uIPriority10 = new UIPriority(){ Val = 99 }; SemiHidden semiHidden10 = new SemiHidden(); UnhideWhenUsed unhideWhenUsed8 = new UnhideWhenUsed(); StyleTableProperties styleTableProperties3 = new StyleTableProperties(); TableIndentation tableIndentation3 = new TableIndentation(){ Width = 0, Type = TableWidthUnitValues.Dxa }; 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(tableIndentation3); styleTableProperties3.Append(tableCellMarginDefault3); style23.Append(styleName23); style23.Append(uIPriority10); style23.Append(semiHidden10); style23.Append(unhideWhenUsed8); style23.Append(styleTableProperties3); Style style24 = new Style(){ Type = StyleValues.Numbering, StyleId = "NoList", Default = true }; StyleName styleName24 = new StyleName(){ Val = "No List" }; UIPriority uIPriority11 = new UIPriority(){ Val = 99 }; SemiHidden semiHidden11 = new SemiHidden(); UnhideWhenUsed unhideWhenUsed9 = new UnhideWhenUsed(); style24.Append(styleName24); style24.Append(uIPriority11); style24.Append(semiHidden11); style24.Append(unhideWhenUsed9); Style style25 = new Style(){ Type = StyleValues.Character, StyleId = "PlaceholderText" }; StyleName styleName25 = new StyleName(){ Val = "Placeholder Text" }; BasedOn basedOn3 = new BasedOn(){ Val = "DefaultParagraphFont" }; UIPriority uIPriority12 = new UIPriority(){ Val = 99 }; SemiHidden semiHidden12 = new SemiHidden(); Rsid rsid34 = new Rsid(){ Val = "000010BA" }; StyleRunProperties styleRunProperties3 = new StyleRunProperties(); Color color4 = new Color(){ Val = "808080" }; styleRunProperties3.Append(color4); style25.Append(styleName25); style25.Append(basedOn3); style25.Append(uIPriority12); style25.Append(semiHidden12); style25.Append(rsid34); style25.Append(styleRunProperties3); Style style26 = new Style(){ Type = StyleValues.Paragraph, StyleId = "Header" }; StyleName styleName26 = new StyleName(){ Val = "header" }; BasedOn basedOn4 = new BasedOn(){ Val = "Normal" }; LinkedStyle linkedStyle1 = new LinkedStyle(){ Val = "HeaderChar" }; UIPriority uIPriority13 = new UIPriority(){ Val = 99 }; UnhideWhenUsed unhideWhenUsed10 = new UnhideWhenUsed(); Rsid rsid35 = new Rsid(){ Val = "00E930A2" }; StyleParagraphProperties styleParagraphProperties14 = new StyleParagraphProperties(); Tabs tabs1 = new Tabs(); TabStop tabStop1 = new TabStop(){ Val = TabStopValues.Center, Position = 4252 }; TabStop tabStop2 = new TabStop(){ Val = TabStopValues.Right, Position = 8504 }; tabs1.Append(tabStop1); tabs1.Append(tabStop2); SnapToGrid snapToGrid1 = new SnapToGrid(){ Val = false }; styleParagraphProperties14.Append(tabs1); styleParagraphProperties14.Append(snapToGrid1); style26.Append(styleName26); style26.Append(basedOn4); style26.Append(linkedStyle1); style26.Append(uIPriority13); style26.Append(unhideWhenUsed10); style26.Append(rsid35); style26.Append(styleParagraphProperties14); Style style27 = new Style(){ Type = StyleValues.Character, StyleId = "HeaderChar", CustomStyle = true }; StyleName styleName27 = new StyleName(){ Val = "Header Char" }; BasedOn basedOn5 = new BasedOn(){ Val = "DefaultParagraphFont" }; LinkedStyle linkedStyle2 = new LinkedStyle(){ Val = "Header" }; UIPriority uIPriority14 = new UIPriority(){ Val = 99 }; Rsid rsid36 = new Rsid(){ Val = "00E930A2" }; style27.Append(styleName27); style27.Append(basedOn5); style27.Append(linkedStyle2); style27.Append(uIPriority14); style27.Append(rsid36); Style style28 = new Style(){ Type = StyleValues.Paragraph, StyleId = "Footer" }; StyleName styleName28 = new StyleName(){ Val = "footer" }; BasedOn basedOn6 = new BasedOn(){ Val = "Normal" }; LinkedStyle linkedStyle3 = new LinkedStyle(){ Val = "FooterChar" }; UIPriority uIPriority15 = new UIPriority(){ Val = 99 }; UnhideWhenUsed unhideWhenUsed11 = new UnhideWhenUsed(); Rsid rsid37 = new Rsid(){ Val = "00E930A2" }; StyleParagraphProperties styleParagraphProperties15 = new StyleParagraphProperties(); Tabs tabs2 = new Tabs(); TabStop tabStop3 = new TabStop(){ Val = TabStopValues.Center, Position = 4252 }; TabStop tabStop4 = new TabStop(){ Val = TabStopValues.Right, Position = 8504 }; tabs2.Append(tabStop3); tabs2.Append(tabStop4); SnapToGrid snapToGrid2 = new SnapToGrid(){ Val = false }; styleParagraphProperties15.Append(tabs2); styleParagraphProperties15.Append(snapToGrid2); style28.Append(styleName28); style28.Append(basedOn6); style28.Append(linkedStyle3); style28.Append(uIPriority15); style28.Append(unhideWhenUsed11); style28.Append(rsid37); style28.Append(styleParagraphProperties15); Style style29 = new Style(){ Type = StyleValues.Character, StyleId = "FooterChar", CustomStyle = true }; StyleName styleName29 = new StyleName(){ Val = "Footer Char" }; BasedOn basedOn7 = new BasedOn(){ Val = "DefaultParagraphFont" }; LinkedStyle linkedStyle4 = new LinkedStyle(){ Val = "Footer" }; UIPriority uIPriority16 = new UIPriority(){ Val = 99 }; Rsid rsid38 = new Rsid(){ Val = "00E930A2" }; style29.Append(styleName29); style29.Append(basedOn7); style29.Append(linkedStyle4); style29.Append(uIPriority16); style29.Append(rsid38); styles3.Append(docDefaults3); styles3.Append(latentStyles3); styles3.Append(style21); styles3.Append(style22); styles3.Append(style23); styles3.Append(style24); styles3.Append(style25); styles3.Append(style26); styles3.Append(style27); styles3.Append(style28); styles3.Append(style29); stylesWithEffectsPart2.Styles = styles3; }
public Paragraph AddAddress(bool keepnext) { Paragraph paragraph1 = new Paragraph() { RsidParagraphMarkRevision = "00E7001C", RsidParagraphAddition = "00E7001C", RsidParagraphProperties = "005205ED", RsidRunAdditionDefault = "00E7001C" }; ParagraphProperties paragraphProperties1 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines1 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties1 = new ParagraphMarkRunProperties(); RunFonts runFonts1 = new RunFonts() { ComplexScriptTheme = ThemeFontValues.MinorHighAnsi }; FontSize fontSize1 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript() { Val = "20" }; paragraphMarkRunProperties1.Append(runFonts1); paragraphMarkRunProperties1.Append(fontSize1); paragraphMarkRunProperties1.Append(fontSizeComplexScript1); KeepLines keeplines = new KeepLines(); paragraphProperties1.Append(keeplines); if (keepnext) { paragraphProperties1.Append(new KeepNext()); } paragraphProperties1.Append(spacingBetweenLines1); paragraphProperties1.Append(paragraphMarkRunProperties1); paragraph1.Append(paragraphProperties1); Run run1 = new Run() { RsidRunProperties = "00E7001C" }; RunProperties runProperties1 = new RunProperties(); RunFonts runFonts2 = new RunFonts() { ComplexScriptTheme = ThemeFontValues.MinorHighAnsi }; FontSize fontSize2 = new FontSize() { Val = "20" }; runProperties1.Append(fontSize2); runProperties1.Append(runFonts2); Text text1 = new Text(); text1.Text = Address; run1.Append(runProperties1); run1.Append(text1); paragraph1.Append(run1); if (Address2.HasValue()) { Run run3 = new Run() { RsidRunAddition = "00B14EF8" }; RunProperties runProperties3 = new RunProperties(); RunFonts runFonts4 = new RunFonts() { ComplexScriptTheme = ThemeFontValues.MinorHighAnsi }; FontSize fontSize3 = new FontSize() { Val = "20" }; runProperties1.Append(fontSize3); runProperties3.Append(runFonts4); Break break1 = new Break(); Text text3 = new Text(); text3.Text = Address2; run3.Append(runProperties3); run3.Append(break1); run3.Append(text3); paragraph1.Append(run3); } Run run4 = new Run() { RsidRunAddition = "00B14EF8" }; RunProperties runProperties4 = new RunProperties(); RunFonts runFonts5 = new RunFonts() { ComplexScriptTheme = ThemeFontValues.MinorHighAnsi }; runProperties4.Append(runFonts5); Break break2 = new Break(); run4.Append(runProperties4); run4.Append(break2); Run run5 = new Run() { RsidRunProperties = "00E7001C" }; RunProperties runProperties5 = new RunProperties(); RunFonts runFonts6 = new RunFonts() { ComplexScriptTheme = ThemeFontValues.MinorHighAnsi }; FontSize fontSize4 = new FontSize() { Val = "20" }; runProperties5.Append(fontSize4); runProperties5.Append(runFonts6); Text text4 = new Text(); text4.Text = CityStateZip; run5.Append(runProperties5); run5.Append(text4); paragraph1.Append(run4); paragraph1.Append(run5); return(paragraph1); }
// 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 Paragraph AddAlphaRow() { Paragraph paragraph1 = new Paragraph() { RsidParagraphMarkRevision = "005205ED", RsidParagraphAddition = "00A01149", RsidParagraphProperties = "005205ED", RsidRunAdditionDefault = "00E7001C" }; ParagraphProperties paragraphProperties1 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines1 = new SpacingBetweenLines() { After = "60", Line = "240", LineRule = LineSpacingRuleValues.Auto }; Justification justification1 = new Justification() { Val = JustificationValues.Center }; ParagraphMarkRunProperties paragraphMarkRunProperties1 = new ParagraphMarkRunProperties(); RunFonts runFonts1 = new RunFonts() { ComplexScriptTheme = ThemeFontValues.MinorHighAnsi }; Bold bold1 = new Bold(); FontSize fontSize1 = new FontSize() { Val = "32" }; FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript() { Val = "32" }; paragraphMarkRunProperties1.Append(runFonts1); paragraphMarkRunProperties1.Append(bold1); paragraphMarkRunProperties1.Append(fontSize1); paragraphMarkRunProperties1.Append(fontSizeComplexScript1); paragraphProperties1.Append(new KeepNext()); paragraphProperties1.Append(spacingBetweenLines1); paragraphProperties1.Append(justification1); paragraphProperties1.Append(paragraphMarkRunProperties1); Run run1 = new Run() { RsidRunProperties = "005205ED" }; RunProperties runProperties1 = new RunProperties(); RunFonts runFonts2 = new RunFonts() { ComplexScriptTheme = ThemeFontValues.MinorHighAnsi }; Bold bold2 = new Bold(); FontSize fontSize2 = new FontSize() { Val = "32" }; FontSizeComplexScript fontSizeComplexScript2 = new FontSizeComplexScript() { Val = "32" }; runProperties1.Append(runFonts2); runProperties1.Append(bold2); runProperties1.Append(fontSize2); runProperties1.Append(fontSizeComplexScript2); Text text1 = new Text(); text1.Text = this.FamilyName.Substring(0, 1); run1.Append(runProperties1); run1.Append(text1); paragraph1.Append(paragraphProperties1); paragraph1.Append(run1); return(paragraph1); }
public void MakeReport(/*string client, string analyst, int type*/) { using (WordprocessingDocument wordDocument = WordprocessingDocument.Open(reportFile, true)) { var mainPart = wordDocument.MainDocumentPart.Document; Table testtable = new Table(); TableProperties vishProps = new TableProperties(); //****------ TABLE BORDERS TableBorders vishBorders = new TableBorders(); TopBorder top = new TopBorder() { Val = BorderValues.Single, Color = "auto" }; LeftBorder left = new LeftBorder() { Val = BorderValues.Single, Color = "auto" }; RightBorder right = new RightBorder() { Val = BorderValues.Single, Color = "auto" }; BottomBorder bottom = new BottomBorder() { Val = BorderValues.Single, Color = "auto" }; InsideHorizontalBorder horizontal = new InsideHorizontalBorder() { Val = BorderValues.Single, Color = "auto", }; InsideVerticalBorder vertical = new InsideVerticalBorder() { Val = BorderValues.Single, Color = "auto" }; vishBorders.Append(top); vishBorders.Append(left); vishBorders.Append(right); vishBorders.Append(bottom); vishBorders.Append(horizontal); vishBorders.Append(vertical); //****------ TABLE STYLE StyleRunProperties stylerunprops = new StyleRunProperties(); TablePositionProperties tableposprops = new TablePositionProperties() { VerticalAnchor = VerticalAnchorValues.Margin, HorizontalAnchor = HorizontalAnchorValues.Margin }; RunFonts headResRunFonts = new RunFonts() { Ascii = "Arial" }; FontSize fontSize = new FontSize() { Val = "9" }; stylerunprops.Append(headResRunFonts, fontSize); TableStyle tableStyle = new TableStyle() { Val = "TableGrid" }; TableWidth tableWidth = new TableWidth() { Width = "10920", Type = TableWidthUnitValues.Dxa }; TableLook tableLook = new TableLook() { Val = "04A0", FirstRow = true, LastRow = false, FirstColumn = true, LastColumn = false, NoHorizontalBand = false, NoVerticalBand = true }; TableIndentation tableIndentation = new TableIndentation() { Width = -10, Type = TableWidthUnitValues.Dxa }; vishProps.Append(vishBorders, stylerunprops, tableWidth, tableposprops, tableStyle, tableLook, tableIndentation); testtable.Append(Columns(), vishProps); int[] widthIndex = new int[4] { 1780, 6230, 1590, 1320 }; int rows = perfectArray.GetUpperBound(0) + 1; int h = 0; for (int i = 0; i < rows; i++) { testtable.Append(HeaderRow()); var datarow = new TableRow(); var result = new TableCell(); var name = new TableCell(); var phone = new TableCell(); var ext = new TableCell(); var par1 = new Paragraph(new Run(new Text(String.Empty))); var par2 = new Paragraph(new Run(new Text(perfectArray[i, 0]))); var par3 = new Paragraph(new Run(new Text(perfectArray[i, 1]))); var par4 = new Paragraph(new Run(new Text(perfectArray[i, 2]))); result.Append(par1); name.Append(par2); phone.Append(par3); ext.Append(par4); datarow.Append(result, name, phone, ext); testtable.Append(datarow); testtable.Append(DatesRow()); testtable.Append(DescriptionRow()); } foreach (SdtBlock item in wordDocument.MainDocumentPart.Document.Body.Descendants <SdtBlock>().Where(e => e.Descendants <SdtAlias>().FirstOrDefault().Val == "PhoneTable")) { item.InsertAfterSelf(testtable); } using (WordprocessingDocument newDocument = WordprocessingDocument.Create(saveFile, WordprocessingDocumentType.Document, true)) { var maindoc = newDocument.MainDocumentPart; foreach (var parts in wordDocument.MainDocumentPart.Document.Descendants()) { maindoc.Document.Append(parts); } newDocument.MainDocumentPart.Document.Save(); } } }
public Paragraph AddEmails() { Paragraph paragraph1 = new Paragraph() { RsidParagraphMarkRevision = "00E7001C", RsidParagraphAddition = "00E7001C", RsidParagraphProperties = "005205ED", RsidRunAdditionDefault = "00E7001C" }; ParagraphProperties paragraphProperties1 = new ParagraphProperties(); SpacingBetweenLines spacingBetweenLines1 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; ParagraphMarkRunProperties paragraphMarkRunProperties1 = new ParagraphMarkRunProperties(); RunFonts runFonts1 = new RunFonts() { ComplexScriptTheme = ThemeFontValues.MinorHighAnsi }; FontSize fontSize1 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript() { Val = "20" }; paragraphMarkRunProperties1.Append(runFonts1); paragraphMarkRunProperties1.Append(fontSize1); paragraphMarkRunProperties1.Append(fontSizeComplexScript1); KeepLines keeplines = new KeepLines(); paragraphProperties1.Append(keeplines); paragraphProperties1.Append(spacingBetweenLines1); paragraphProperties1.Append(paragraphMarkRunProperties1); paragraph1.Append(paragraphProperties1); var needbreak = false; if (head.Email.HasValue()) { Run run4 = new Run() { RsidRunProperties = "00E7001C" }; if (needbreak) { run4.Append(new Break()); } needbreak = true; RunProperties runProperties4 = new RunProperties(); RunFonts runFonts5 = new RunFonts() { ComplexScriptTheme = ThemeFontValues.MinorHighAnsi }; FontSize fontSize3 = new FontSize() { Val = "20" }; runProperties4.Append(fontSize3); runProperties4.Append(runFonts5); Text text3 = new Text(); text3.Text = "{0}: {1}".Fmt(head.First, head.Email); run4.Append(runProperties4); run4.Append(text3); paragraph1.Append(run4); } if (spouse != null && spouse.Email.HasValue()) { Run run4 = new Run() { RsidRunProperties = "00E7001C" }; if (needbreak) { run4.Append(new Break()); } needbreak = true; RunProperties runProperties4 = new RunProperties(); RunFonts runFonts5 = new RunFonts() { ComplexScriptTheme = ThemeFontValues.MinorHighAnsi }; FontSize fontSize3 = new FontSize() { Val = "20" }; runProperties4.Append(fontSize3); runProperties4.Append(runFonts5); Text text3 = new Text(); text3.Text = "{0}: {1}".Fmt(spouse.First, spouse.Email); run4.Append(runProperties4); run4.Append(text3); paragraph1.Append(run4); } return(paragraph1); }
// Generates content of footerPart1. private void GenerateFooterPart1Content(FooterPart footerPart1) { Footer footer1 = new Footer() { MCAttributes = new MarkupCompatibilityAttributes() { Ignorable = "w14 wp14" } }; footer1.AddNamespaceDeclaration("wpc", "http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas"); footer1.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); footer1.AddNamespaceDeclaration("o", "urn:schemas-microsoft-com:office:office"); footer1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); footer1.AddNamespaceDeclaration("m", "http://schemas.openxmlformats.org/officeDocument/2006/math"); footer1.AddNamespaceDeclaration("v", "urn:schemas-microsoft-com:vml"); footer1.AddNamespaceDeclaration("wp14", "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing"); footer1.AddNamespaceDeclaration("wp", "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"); footer1.AddNamespaceDeclaration("w10", "urn:schemas-microsoft-com:office:word"); footer1.AddNamespaceDeclaration("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main"); footer1.AddNamespaceDeclaration("w14", "http://schemas.microsoft.com/office/word/2010/wordml"); footer1.AddNamespaceDeclaration("wpg", "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup"); footer1.AddNamespaceDeclaration("wpi", "http://schemas.microsoft.com/office/word/2010/wordprocessingInk"); footer1.AddNamespaceDeclaration("wne", "http://schemas.microsoft.com/office/word/2006/wordml"); footer1.AddNamespaceDeclaration("wps", "http://schemas.microsoft.com/office/word/2010/wordprocessingShape"); Paragraph paragraph51 = new Paragraph() { RsidParagraphAddition = "004F7F90", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties49 = new ParagraphProperties(); WidowControl widowControl49 = new WidowControl() { Val = false }; ParagraphBorders paragraphBorders1 = new ParagraphBorders(); TopBorder topBorder18 = new TopBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)5U }; paragraphBorders1.Append(topBorder18); AutoSpaceDE autoSpaceDE49 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN49 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent49 = new AdjustRightIndent() { Val = false }; SpacingBetweenLines spacingBetweenLines35 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; Justification justification10 = new Justification() { Val = JustificationValues.Center }; ParagraphMarkRunProperties paragraphMarkRunProperties49 = new ParagraphMarkRunProperties(); RunFonts runFonts91 = new RunFonts() { Ascii = "New Roman", HighAnsi = "New Roman", EastAsia = "New Roman", ComplexScript = "Times New Roman" }; FontSize fontSize91 = new FontSize() { Val = "18" }; FontSizeComplexScript fontSizeComplexScript91 = new FontSizeComplexScript() { Val = "18" }; paragraphMarkRunProperties49.Append(runFonts91); paragraphMarkRunProperties49.Append(fontSize91); paragraphMarkRunProperties49.Append(fontSizeComplexScript91); paragraphProperties49.Append(widowControl49); paragraphProperties49.Append(paragraphBorders1); paragraphProperties49.Append(autoSpaceDE49); paragraphProperties49.Append(autoSpaceDN49); paragraphProperties49.Append(adjustRightIndent49); paragraphProperties49.Append(spacingBetweenLines35); paragraphProperties49.Append(justification10); paragraphProperties49.Append(paragraphMarkRunProperties49); Run run43 = new Run(); RunProperties runProperties43 = new RunProperties(); RunFonts runFonts92 = new RunFonts() { Ascii = "New Roman", HighAnsi = "New Roman", EastAsia = "New Roman", ComplexScript = "Times New Roman" }; FontSize fontSize92 = new FontSize() { Val = "18" }; FontSizeComplexScript fontSizeComplexScript92 = new FontSizeComplexScript() { Val = "18" }; runProperties43.Append(runFonts92); runProperties43.Append(fontSize92); runProperties43.Append(fontSizeComplexScript92); Text text43 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text43.Text = "Страница "; run43.Append(runProperties43); run43.Append(text43); Run run44 = new Run(); RunProperties runProperties44 = new RunProperties(); RunFonts runFonts93 = new RunFonts() { Ascii = "New Roman", HighAnsi = "New Roman", EastAsia = "New Roman", ComplexScript = "Times New Roman" }; FontSize fontSize93 = new FontSize() { Val = "18" }; FontSizeComplexScript fontSizeComplexScript93 = new FontSizeComplexScript() { Val = "18" }; runProperties44.Append(runFonts93); runProperties44.Append(fontSize93); runProperties44.Append(fontSizeComplexScript93); FieldChar fieldChar1 = new FieldChar() { FieldCharType = FieldCharValues.Begin }; run44.Append(runProperties44); run44.Append(fieldChar1); Run run45 = new Run(); RunProperties runProperties45 = new RunProperties(); RunFonts runFonts94 = new RunFonts() { Ascii = "New Roman", HighAnsi = "New Roman", EastAsia = "New Roman", ComplexScript = "Times New Roman" }; FontSize fontSize94 = new FontSize() { Val = "18" }; FontSizeComplexScript fontSizeComplexScript94 = new FontSizeComplexScript() { Val = "18" }; runProperties45.Append(runFonts94); runProperties45.Append(fontSize94); runProperties45.Append(fontSizeComplexScript94); FieldCode fieldCode1 = new FieldCode(); fieldCode1.Text = "PAGE"; run45.Append(runProperties45); run45.Append(fieldCode1); Run run46 = new Run(); RunProperties runProperties46 = new RunProperties(); RunFonts runFonts95 = new RunFonts() { Ascii = "New Roman", HighAnsi = "New Roman", EastAsia = "New Roman", ComplexScript = "Times New Roman" }; FontSize fontSize95 = new FontSize() { Val = "18" }; FontSizeComplexScript fontSizeComplexScript95 = new FontSizeComplexScript() { Val = "18" }; runProperties46.Append(runFonts95); runProperties46.Append(fontSize95); runProperties46.Append(fontSizeComplexScript95); FieldChar fieldChar2 = new FieldChar() { FieldCharType = FieldCharValues.Separate }; run46.Append(runProperties46); run46.Append(fieldChar2); Run run47 = new Run() { RsidRunAddition = "00D60978" }; RunProperties runProperties47 = new RunProperties(); RunFonts runFonts96 = new RunFonts() { Ascii = "New Roman", HighAnsi = "New Roman", EastAsia = "New Roman", ComplexScript = "Times New Roman" }; NoProof noProof1 = new NoProof(); FontSize fontSize96 = new FontSize() { Val = "18" }; FontSizeComplexScript fontSizeComplexScript96 = new FontSizeComplexScript() { Val = "18" }; runProperties47.Append(runFonts96); runProperties47.Append(noProof1); runProperties47.Append(fontSize96); runProperties47.Append(fontSizeComplexScript96); Text text44 = new Text(); text44.Text = "1"; run47.Append(runProperties47); run47.Append(text44); Run run48 = new Run(); RunProperties runProperties48 = new RunProperties(); RunFonts runFonts97 = new RunFonts() { Ascii = "New Roman", HighAnsi = "New Roman", EastAsia = "New Roman", ComplexScript = "Times New Roman" }; FontSize fontSize97 = new FontSize() { Val = "18" }; FontSizeComplexScript fontSizeComplexScript97 = new FontSizeComplexScript() { Val = "18" }; runProperties48.Append(runFonts97); runProperties48.Append(fontSize97); runProperties48.Append(fontSizeComplexScript97); FieldChar fieldChar3 = new FieldChar() { FieldCharType = FieldCharValues.End }; run48.Append(runProperties48); run48.Append(fieldChar3); Run run49 = new Run(); RunProperties runProperties49 = new RunProperties(); RunFonts runFonts98 = new RunFonts() { Ascii = "New Roman", HighAnsi = "New Roman", EastAsia = "New Roman", ComplexScript = "Times New Roman" }; FontSize fontSize98 = new FontSize() { Val = "18" }; FontSizeComplexScript fontSizeComplexScript98 = new FontSizeComplexScript() { Val = "18" }; runProperties49.Append(runFonts98); runProperties49.Append(fontSize98); runProperties49.Append(fontSizeComplexScript98); Text text45 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text45.Text = " из "; run49.Append(runProperties49); run49.Append(text45); Run run50 = new Run(); RunProperties runProperties50 = new RunProperties(); RunFonts runFonts99 = new RunFonts() { Ascii = "New Roman", HighAnsi = "New Roman", EastAsia = "New Roman", ComplexScript = "Times New Roman" }; FontSize fontSize99 = new FontSize() { Val = "18" }; FontSizeComplexScript fontSizeComplexScript99 = new FontSizeComplexScript() { Val = "18" }; runProperties50.Append(runFonts99); runProperties50.Append(fontSize99); runProperties50.Append(fontSizeComplexScript99); FieldChar fieldChar4 = new FieldChar() { FieldCharType = FieldCharValues.Begin }; run50.Append(runProperties50); run50.Append(fieldChar4); Run run51 = new Run(); RunProperties runProperties51 = new RunProperties(); RunFonts runFonts100 = new RunFonts() { Ascii = "New Roman", HighAnsi = "New Roman", EastAsia = "New Roman", ComplexScript = "Times New Roman" }; FontSize fontSize100 = new FontSize() { Val = "18" }; FontSizeComplexScript fontSizeComplexScript100 = new FontSizeComplexScript() { Val = "18" }; runProperties51.Append(runFonts100); runProperties51.Append(fontSize100); runProperties51.Append(fontSizeComplexScript100); FieldCode fieldCode2 = new FieldCode(); fieldCode2.Text = "NUMPAGES"; run51.Append(runProperties51); run51.Append(fieldCode2); Run run52 = new Run(); RunProperties runProperties52 = new RunProperties(); RunFonts runFonts101 = new RunFonts() { Ascii = "New Roman", HighAnsi = "New Roman", EastAsia = "New Roman", ComplexScript = "Times New Roman" }; FontSize fontSize101 = new FontSize() { Val = "18" }; FontSizeComplexScript fontSizeComplexScript101 = new FontSizeComplexScript() { Val = "18" }; runProperties52.Append(runFonts101); runProperties52.Append(fontSize101); runProperties52.Append(fontSizeComplexScript101); FieldChar fieldChar5 = new FieldChar() { FieldCharType = FieldCharValues.Separate }; run52.Append(runProperties52); run52.Append(fieldChar5); Run run53 = new Run() { RsidRunAddition = "00D60978" }; RunProperties runProperties53 = new RunProperties(); RunFonts runFonts102 = new RunFonts() { Ascii = "New Roman", HighAnsi = "New Roman", EastAsia = "New Roman", ComplexScript = "Times New Roman" }; NoProof noProof2 = new NoProof(); FontSize fontSize102 = new FontSize() { Val = "18" }; FontSizeComplexScript fontSizeComplexScript102 = new FontSizeComplexScript() { Val = "18" }; runProperties53.Append(runFonts102); runProperties53.Append(noProof2); runProperties53.Append(fontSize102); runProperties53.Append(fontSizeComplexScript102); Text text46 = new Text(); text46.Text = "1"; run53.Append(runProperties53); run53.Append(text46); Run run54 = new Run(); RunProperties runProperties54 = new RunProperties(); RunFonts runFonts103 = new RunFonts() { Ascii = "New Roman", HighAnsi = "New Roman", EastAsia = "New Roman", ComplexScript = "Times New Roman" }; FontSize fontSize103 = new FontSize() { Val = "18" }; FontSizeComplexScript fontSizeComplexScript103 = new FontSizeComplexScript() { Val = "18" }; runProperties54.Append(runFonts103); runProperties54.Append(fontSize103); runProperties54.Append(fontSizeComplexScript103); FieldChar fieldChar6 = new FieldChar() { FieldCharType = FieldCharValues.End }; run54.Append(runProperties54); run54.Append(fieldChar6); Run run55 = new Run(); RunProperties runProperties55 = new RunProperties(); RunFonts runFonts104 = new RunFonts() { Ascii = "New Roman", HighAnsi = "New Roman", EastAsia = "New Roman", ComplexScript = "Times New Roman" }; FontSize fontSize104 = new FontSize() { Val = "18" }; FontSizeComplexScript fontSizeComplexScript104 = new FontSizeComplexScript() { Val = "18" }; runProperties55.Append(runFonts104); runProperties55.Append(fontSize104); runProperties55.Append(fontSizeComplexScript104); Text text47 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text47.Text = " "; run55.Append(runProperties55); run55.Append(text47); paragraph51.Append(paragraphProperties49); paragraph51.Append(run43); paragraph51.Append(run44); paragraph51.Append(run45); paragraph51.Append(run46); paragraph51.Append(run47); paragraph51.Append(run48); paragraph51.Append(run49); paragraph51.Append(run50); paragraph51.Append(run51); paragraph51.Append(run52); paragraph51.Append(run53); paragraph51.Append(run54); paragraph51.Append(run55); footer1.Append(paragraph51); footerPart1.Footer = footer1; }
/// <summary> /// Method that writes the XML data to the template /// </summary> /// <param name="root">A <see cref="XElement"/> containing the XML form field data.</param> public void WriteXMLToFields(XElement root) { JobDescription job = ExtractJobDescriptionFromXMLFormData(root); // Write PPA Fields PPA_EmployeeName.Write($"{root.Element("LastName").Value}, {root.Element("FirstName").Value}"); PPA_PayrollId.Write(root.Element("PayrollIdNumber").Value); // attempt to append newline subtext for Working Title PPA_ClassTitle.Write(job.ClassTitle); Run titleRun = new Run(); RunProperties titleRunProperties = new RunProperties(); FontSize titleRunFontSize = new FontSize() { Val = "16" }; titleRunProperties.Append(titleRunFontSize); titleRun.Append(titleRunProperties); Text titleRunText = new Text(job.WorkingTitle); titleRun.Append(titleRunText); PPA_ClassTitle.Paragraph.InsertAfterSelf(new Paragraph(titleRun)); PPA_Grade.Write(job.Grade); PPA_PositionNumber.Write(root.Element("PositionNumber").Value); PPA_StartDate.Write(DateTime.Parse(root.Element("StartDate").Value).ToString("MM/dd/yy")); PPA_EndDate.Write(DateTime.Parse(root.Element("EndDate").Value).ToString("MM/dd/yy")); PPA_DistrictDivision.Write(root.Element("DepartmentDivision").Value); PPA_AgencyActivity.Write(root.Element("DepartmentDivisionCode").Value); // Write Job Categories and Details int i = 0; foreach (JobDescriptionCategory category in job.Categories) { PPA_Categories[i].Write(category.Title, category.Weight, category.SelectedScore, category.GetCategoryRatedScore()); JobDescriptionTable.Append(category.GetCategoryHeaderRow()); JobDescriptionTable.Append(category.GenerateDetailsRow()); i++; } PPA_TotalRatingValue.Write(job.GetOverallScore().ToString()); RunFonts checkBoxRun = new RunFonts { Ascii = "Wingdings" }; RunProperties checkBoxRunProperties = new RunProperties(); checkBoxRunProperties.Append(checkBoxRun); RunFonts checkBoxRun1 = new RunFonts { Ascii = "Wingdings" }; RunProperties checkBoxRunProperties1 = new RunProperties(); checkBoxRunProperties1.Append(checkBoxRun1); switch (job.GetOverallRating()) { case "Unsatisfactory": PPA_UnsatisfactoryRatingCheckBox.Write("\u2713", true, checkBoxRunProperties); PPA_MeritNotApprovedCheckBox.Write("\u2713", true, checkBoxRunProperties1); break; case "Improvement Needed": PPA_NeedsImprovementRatingCheckBox.Write("\u2713", true, checkBoxRunProperties); PPA_MeritNotApprovedCheckBox.Write("\u2713", true, checkBoxRunProperties1); break; case "Satisfactory": PPA_SatisfactoryRatingCheckBox.Write("\u2713", true, checkBoxRunProperties); PPA_MeritApprovedCheckBox.Write("\u2713", true, checkBoxRunProperties1); break; case "Exceeds Satisfactory": PPA_ExceedsSatisfactoryRatingCheckBox.Write("\u2713", true, checkBoxRunProperties); PPA_MeritApprovedCheckBox.Write("\u2713", true, checkBoxRunProperties1); break; case "Outstanding": PPA_OutstandingRatingCheckBox.Write("\u2713", true, checkBoxRunProperties); PPA_MeritApprovedCheckBox.Write("\u2713", true, checkBoxRunProperties1); break; } // Write PAF form fields PAF_EmployeeName.Write($"{root.Element("LastName").Value}, {root.Element("FirstName").Value}"); PAF_PayrollId.Write(root.Element("PayrollIdNumber").Value); PAF_StartDate.Write(DateTime.Parse(root.Element("StartDate").Value).ToString("MM/dd/yy")); PAF_EndDate.Write(DateTime.Parse(root.Element("EndDate").Value).ToString("MM/dd/yy")); PAF_ClassGrade.Write($"{job.ClassTitle} - {job.Grade}"); PAF_DistrictDivision.Write(root.Element("DepartmentDivision").Value); // HTML from the RTF Textarea needs to be chunked. using (Stream chunkStream = PAF_Assessment_Chunk.GetStream(FileMode.Create, FileAccess.Write)) { using (StreamWriter stringStream = new StreamWriter(chunkStream)) { stringStream.Write($"<html>{root.Element("Assessment").Value}</html>"); } } AltChunk assessmentChunk = new AltChunk { Id = "assessmentChunk" }; PAF_Assessment.Paragraph.InsertBeforeSelf(assessmentChunk); using (Stream chunkStream = PAF_Recommendations_Chunk.GetStream(FileMode.Create, FileAccess.Write)) { using (StreamWriter stringStream = new StreamWriter(chunkStream)) { stringStream.Write($"<html>{root.Element("Recommendation").Value}</html>"); } } AltChunk recommendationsChunk = new AltChunk { Id = "recommendationsChunk" }; PAF_Recommendations.Paragraph.InsertBeforeSelf(recommendationsChunk); // Write Job Description Fields JOB_EmployeeName.Write($"{root.Element("LastName").Value}, {root.Element("FirstName").Value}"); JOB_DistrictDivision.Write(root.Element("DepartmentDivision").Value); JOB_AgencyActivity.Write(root.Element("DepartmentDivisionCode").Value); JOB_PositionNumber.Write(root.Element("PositionNumber").Value); JOB_ClassTitle.Write(job.ClassTitle); JOB_Grade.Write(job.Grade); JOB_WorkingTitle.Write(job.WorkingTitle); JOB_WorkAddress.Write(root.Element("WorkPlaceAddress").Value); JOB_WorkingHours.Write(job.WorkingHours); JOB_Supervisor.Write(root.Element("AuthorName").Value); JOB_Supervises.Write(root.Element("SupervisedByEmployee").Value); }
// Generates content of headerPart1. private void GenerateHeaderPart1Content(HeaderPart headerPart1) { Header header1 = new Header() { MCAttributes = new MarkupCompatibilityAttributes() { Ignorable = "w14 wp14" } }; header1.AddNamespaceDeclaration("wpc", "http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas"); header1.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); header1.AddNamespaceDeclaration("o", "urn:schemas-microsoft-com:office:office"); header1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); header1.AddNamespaceDeclaration("m", "http://schemas.openxmlformats.org/officeDocument/2006/math"); header1.AddNamespaceDeclaration("v", "urn:schemas-microsoft-com:vml"); header1.AddNamespaceDeclaration("wp14", "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing"); header1.AddNamespaceDeclaration("wp", "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"); header1.AddNamespaceDeclaration("w10", "urn:schemas-microsoft-com:office:word"); header1.AddNamespaceDeclaration("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main"); header1.AddNamespaceDeclaration("w14", "http://schemas.microsoft.com/office/word/2010/wordml"); header1.AddNamespaceDeclaration("wpg", "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup"); header1.AddNamespaceDeclaration("wpi", "http://schemas.microsoft.com/office/word/2010/wordprocessingInk"); header1.AddNamespaceDeclaration("wne", "http://schemas.microsoft.com/office/word/2006/wordml"); header1.AddNamespaceDeclaration("wps", "http://schemas.microsoft.com/office/word/2010/wordprocessingShape"); Paragraph paragraph52 = new Paragraph() { RsidParagraphAddition = "004F7F90", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties50 = new ParagraphProperties(); WidowControl widowControl50 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE50 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN50 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent50 = new AdjustRightIndent() { Val = false }; SpacingBetweenLines spacingBetweenLines36 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; Justification justification11 = new Justification() { Val = JustificationValues.Center }; ParagraphMarkRunProperties paragraphMarkRunProperties50 = new ParagraphMarkRunProperties(); RunFonts runFonts105 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize105 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript105 = new FontSizeComplexScript() { Val = "16" }; paragraphMarkRunProperties50.Append(runFonts105); paragraphMarkRunProperties50.Append(fontSize105); paragraphMarkRunProperties50.Append(fontSizeComplexScript105); paragraphProperties50.Append(widowControl50); paragraphProperties50.Append(autoSpaceDE50); paragraphProperties50.Append(autoSpaceDN50); paragraphProperties50.Append(adjustRightIndent50); paragraphProperties50.Append(spacingBetweenLines36); paragraphProperties50.Append(justification11); paragraphProperties50.Append(paragraphMarkRunProperties50); Run run56 = new Run(); RunProperties runProperties56 = new RunProperties(); RunFonts runFonts106 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; Bold bold19 = new Bold(); BoldComplexScript boldComplexScript19 = new BoldComplexScript(); FontSize fontSize106 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript106 = new FontSizeComplexScript() { Val = "16" }; runProperties56.Append(runFonts106); runProperties56.Append(bold19); runProperties56.Append(boldComplexScript19); runProperties56.Append(fontSize106); runProperties56.Append(fontSizeComplexScript106); Text text48 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text48.Text = "Смоленская государственная медицинская академия "; run56.Append(runProperties56); run56.Append(text48); paragraph52.Append(paragraphProperties50); paragraph52.Append(run56); Paragraph paragraph53 = new Paragraph() { RsidParagraphAddition = "004F7F90", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties51 = new ParagraphProperties(); WidowControl widowControl51 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE51 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN51 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent51 = new AdjustRightIndent() { Val = false }; SpacingBetweenLines spacingBetweenLines37 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; Justification justification12 = new Justification() { Val = JustificationValues.Center }; ParagraphMarkRunProperties paragraphMarkRunProperties51 = new ParagraphMarkRunProperties(); RunFonts runFonts107 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize107 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript107 = new FontSizeComplexScript() { Val = "16" }; paragraphMarkRunProperties51.Append(runFonts107); paragraphMarkRunProperties51.Append(fontSize107); paragraphMarkRunProperties51.Append(fontSizeComplexScript107); paragraphProperties51.Append(widowControl51); paragraphProperties51.Append(autoSpaceDE51); paragraphProperties51.Append(autoSpaceDN51); paragraphProperties51.Append(adjustRightIndent51); paragraphProperties51.Append(spacingBetweenLines37); paragraphProperties51.Append(justification12); paragraphProperties51.Append(paragraphMarkRunProperties51); Run run57 = new Run(); RunProperties runProperties57 = new RunProperties(); RunFonts runFonts108 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; Bold bold20 = new Bold(); BoldComplexScript boldComplexScript20 = new BoldComplexScript(); FontSize fontSize108 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript108 = new FontSizeComplexScript() { Val = "16" }; runProperties57.Append(runFonts108); runProperties57.Append(bold20); runProperties57.Append(boldComplexScript20); runProperties57.Append(fontSize108); runProperties57.Append(fontSizeComplexScript108); Text text49 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text49.Text = "Научно-исследовательский институт антимикробной химиотерапии "; run57.Append(runProperties57); run57.Append(text49); paragraph53.Append(paragraphProperties51); paragraph53.Append(run57); Paragraph paragraph54 = new Paragraph() { RsidParagraphAddition = "004F7F90", RsidRunAdditionDefault = "00900A10" }; ParagraphProperties paragraphProperties52 = new ParagraphProperties(); WidowControl widowControl52 = new WidowControl() { Val = false }; AutoSpaceDE autoSpaceDE52 = new AutoSpaceDE() { Val = false }; AutoSpaceDN autoSpaceDN52 = new AutoSpaceDN() { Val = false }; AdjustRightIndent adjustRightIndent52 = new AdjustRightIndent() { Val = false }; SpacingBetweenLines spacingBetweenLines38 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; Justification justification13 = new Justification() { Val = JustificationValues.Center }; ParagraphMarkRunProperties paragraphMarkRunProperties52 = new ParagraphMarkRunProperties(); RunFonts runFonts109 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; FontSize fontSize109 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript109 = new FontSizeComplexScript() { Val = "16" }; paragraphMarkRunProperties52.Append(runFonts109); paragraphMarkRunProperties52.Append(fontSize109); paragraphMarkRunProperties52.Append(fontSizeComplexScript109); paragraphProperties52.Append(widowControl52); paragraphProperties52.Append(autoSpaceDE52); paragraphProperties52.Append(autoSpaceDN52); paragraphProperties52.Append(adjustRightIndent52); paragraphProperties52.Append(spacingBetweenLines38); paragraphProperties52.Append(justification13); paragraphProperties52.Append(paragraphMarkRunProperties52); Run run58 = new Run(); RunProperties runProperties58 = new RunProperties(); RunFonts runFonts110 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" }; Bold bold21 = new Bold(); BoldComplexScript boldComplexScript21 = new BoldComplexScript(); FontSize fontSize110 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript110 = new FontSizeComplexScript() { Val = "16" }; runProperties58.Append(runFonts110); runProperties58.Append(bold21); runProperties58.Append(boldComplexScript21); runProperties58.Append(fontSize110); runProperties58.Append(fontSizeComplexScript110); Text text50 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text50.Text = "Клинико-диагностическая лаборатория, тел. 45-06-13 "; run58.Append(runProperties58); run58.Append(text50); paragraph54.Append(paragraphProperties52); paragraph54.Append(run58); header1.Append(paragraph52); header1.Append(paragraph53); header1.Append(paragraph54); headerPart1.Header = header1; }
public static void AddStyle(MainDocumentPart mainPart, string styleId, string styleName, string fontName, int fontSize, string rgbColor, bool isBold, bool isItalic, bool isUnderlined) { // Set the properties RunProperties rPr = new RunProperties(); Color color = new Color() { Val = rgbColor }; RunFonts rFont = new RunFonts(); rFont.Ascii = fontName; rPr.Append(color); rPr.Append(rFont); rPr.Append(new FontSize() { Val = (fontSize * 2).ToString() }); if (isBold) { rPr.Append(new Bold()); } if (isItalic) { rPr.Append(new Italic()); } if (isUnderlined) { rPr.Append(new Underline() { Val = UnderlineValues.Single }); } Style style = new Style(); 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 }
// 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 static void Print(Ticket SelectedTicket, string path) { string fileName = SelectedTicket.TicketHolder.Trim() + SelectedTicket.TicketType.Name.Trim() + ".docx"; string finalPath = path + "\\" + fileName; string code = SelectedTicket.TicketHolder + SelectedTicket.ID; try { File.Copy("template.docx", finalPath, true); } catch (Exception e) { Console.WriteLine(e.Message); } WordprocessingDocument doc = WordprocessingDocument.Open(finalPath, true); IDictionary<string, BookmarkStart> bookmarks = new Dictionary<string, BookmarkStart>(); foreach (BookmarkStart bms in doc.MainDocumentPart.RootElement.Descendants<BookmarkStart>()) { bookmarks[bms.Name] = bms; } string TicketCode = SelectedTicket.ID + SelectedTicket.TicketHolder[0] + SelectedTicket.TicketHolder[1] + SelectedTicket.TicketHolder[2]; bookmarks["TicketName"].Parent.InsertAfter<Run>(new Run(new Text("Electronic Rampage")), bookmarks["TicketName"]); bookmarks["Name"].Parent.InsertAfter<Run>(new Run(new Text(SelectedTicket.TicketHolder)), bookmarks["Name"]); bookmarks["Code"].Parent.InsertAfter<Run>(new Run(new Text(TicketCode)), bookmarks["Code"]); bookmarks["TicketType"].Parent.InsertAfter<Run>(new Run(new Text(SelectedTicket.TicketType.Name)), bookmarks["TicketType"]); Run run = new Run(new Text(code)); RunProperties prop = new RunProperties(); RunFonts font = new RunFonts() { Ascii = "Free 3 of 9 Extended", HighAnsi = "Free 3 of 9 Extended" }; FontSize size = new FontSize() { Val = SelectedTicket.ID.ToString() }; prop.Append(font); prop.Append(size); run.PrependChild<RunProperties>(prop); bookmarks["Barcode"].Parent.InsertAfter<Run>(run, bookmarks["Barcode"]); doc.Close(); System.Windows.MessageBox.Show("Ticket is aangemaakt"); }
public Paragraph GenerateLastParagraph() { Paragraph paragraph1 = new Paragraph() { RsidParagraphAddition = "00000000", RsidParagraphProperties = "008A3B59", RsidRunAdditionDefault = "008A3B59" }; ParagraphProperties paragraphProperties1 = new ParagraphProperties(); Justification justification1 = new Justification() { Val = JustificationValues.Left }; Run run1 = new Run(); RunProperties runProperties1 = new RunProperties(); RunFonts runFonts1 = new RunFonts() { Hint = FontTypeHintValues.EastAsia }; runProperties1.Append(runFonts1); Text text1 = new Text(); text1.Text = "敬告:1、管材检测执行标准:API SPEC 5CT、四川石油管理局发布Q/CY097-1998《钻井技术操作流程》、《套管油管检验规范》相关标准和内容。" + "2、《报告书》表格列出为质量检验合格管。" + "3、管材出库后的运输、不规范装卸,井场作业过程中发生的损伤,不属于质量承诺范围。" + "4、请固井工程师按实际入井管串顺序记录\"单根编号\"所在井下位置,便于管材质量跟踪管理、查询。"; run1.Append(runProperties1); run1.Append(text1); paragraph1.Append(paragraphProperties1); paragraph1.Append(run1); return paragraph1; }
// 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); }
private Paragraph GenerateReportDataHeadParagraph() { Paragraph paragraph1 = new Paragraph() { RsidParagraphMarkRevision = "00F24BD4", RsidParagraphAddition = "0073701D", RsidParagraphProperties = "00D25DD5", RsidRunAdditionDefault = "00D25DD5" }; ParagraphProperties paragraphProperties1 = new ParagraphProperties(); ParagraphStyleId paragraphStyleId1 = new ParagraphStyleId() { Val = "Heading1" }; SpacingBetweenLines spacingBetweenLines1 = new SpacingBetweenLines() { Before = "120", After = "120" }; Justification justification1 = new Justification() { Val = JustificationValues.Center }; ParagraphMarkRunProperties paragraphMarkRunProperties1 = new ParagraphMarkRunProperties(); RunFonts runFonts1 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" }; FontSize fontSize1 = new FontSize() { Val = "36" }; FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript() { Val = "36" }; paragraphMarkRunProperties1.Append(runFonts1); paragraphMarkRunProperties1.Append(fontSize1); paragraphMarkRunProperties1.Append(fontSizeComplexScript1); paragraphProperties1.Append(paragraphStyleId1); paragraphProperties1.Append(spacingBetweenLines1); paragraphProperties1.Append(justification1); paragraphProperties1.Append(paragraphMarkRunProperties1); Run run1 = new Run() { RsidRunProperties = "00F24BD4" }; RunProperties runProperties1 = new RunProperties(); RunFonts runFonts2 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" }; FontSize fontSize2 = new FontSize() { Val = "36" }; FontSizeComplexScript fontSizeComplexScript2 = new FontSizeComplexScript() { Val = "36" }; runProperties1.Append(runFonts2); runProperties1.Append(fontSize2); runProperties1.Append(fontSizeComplexScript2); Text text1 = new Text(); text1.Text = "管"; run1.Append(runProperties1); run1.Append(text1); Run run2 = new Run() { RsidRunAddition = "00F24BD4" }; RunProperties runProperties2 = new RunProperties(); RunFonts runFonts3 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" }; FontSize fontSize3 = new FontSize() { Val = "36" }; FontSizeComplexScript fontSizeComplexScript3 = new FontSizeComplexScript() { Val = "36" }; runProperties2.Append(runFonts3); runProperties2.Append(fontSize3); runProperties2.Append(fontSizeComplexScript3); Text text2 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text2.Text = " "; run2.Append(runProperties2); run2.Append(text2); Run run3 = new Run() { RsidRunProperties = "00F24BD4" }; RunProperties runProperties3 = new RunProperties(); RunFonts runFonts4 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" }; FontSize fontSize4 = new FontSize() { Val = "36" }; FontSizeComplexScript fontSizeComplexScript4 = new FontSizeComplexScript() { Val = "36" }; runProperties3.Append(runFonts4); runProperties3.Append(fontSize4); runProperties3.Append(fontSizeComplexScript4); Text text3 = new Text(); text3.Text = "材"; run3.Append(runProperties3); run3.Append(text3); Run run4 = new Run() { RsidRunAddition = "00F24BD4" }; RunProperties runProperties4 = new RunProperties(); RunFonts runFonts5 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" }; FontSize fontSize5 = new FontSize() { Val = "36" }; FontSizeComplexScript fontSizeComplexScript5 = new FontSizeComplexScript() { Val = "36" }; runProperties4.Append(runFonts5); runProperties4.Append(fontSize5); runProperties4.Append(fontSizeComplexScript5); Text text4 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text4.Text = " "; run4.Append(runProperties4); run4.Append(text4); Run run5 = new Run() { RsidRunProperties = "00F24BD4" }; RunProperties runProperties5 = new RunProperties(); RunFonts runFonts6 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" }; FontSize fontSize6 = new FontSize() { Val = "36" }; FontSizeComplexScript fontSizeComplexScript6 = new FontSizeComplexScript() { Val = "36" }; runProperties5.Append(runFonts6); runProperties5.Append(fontSize6); runProperties5.Append(fontSizeComplexScript6); Text text5 = new Text(); text5.Text = "单"; run5.Append(runProperties5); run5.Append(text5); Run run6 = new Run() { RsidRunAddition = "00F24BD4" }; RunProperties runProperties6 = new RunProperties(); RunFonts runFonts7 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" }; FontSize fontSize7 = new FontSize() { Val = "36" }; FontSizeComplexScript fontSizeComplexScript7 = new FontSizeComplexScript() { Val = "36" }; runProperties6.Append(runFonts7); runProperties6.Append(fontSize7); runProperties6.Append(fontSizeComplexScript7); Text text6 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text6.Text = " "; run6.Append(runProperties6); run6.Append(text6); Run run7 = new Run() { RsidRunProperties = "00F24BD4" }; RunProperties runProperties7 = new RunProperties(); RunFonts runFonts8 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" }; FontSize fontSize8 = new FontSize() { Val = "36" }; FontSizeComplexScript fontSizeComplexScript8 = new FontSizeComplexScript() { Val = "36" }; runProperties7.Append(runFonts8); runProperties7.Append(fontSize8); runProperties7.Append(fontSizeComplexScript8); Text text7 = new Text(); text7.Text = "根"; run7.Append(runProperties7); run7.Append(text7); Run run8 = new Run() { RsidRunAddition = "00F24BD4" }; RunProperties runProperties8 = new RunProperties(); RunFonts runFonts9 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" }; FontSize fontSize9 = new FontSize() { Val = "36" }; FontSizeComplexScript fontSizeComplexScript9 = new FontSizeComplexScript() { Val = "36" }; runProperties8.Append(runFonts9); runProperties8.Append(fontSize9); runProperties8.Append(fontSizeComplexScript9); Text text8 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text8.Text = " "; run8.Append(runProperties8); run8.Append(text8); Run run9 = new Run() { RsidRunProperties = "00F24BD4" }; RunProperties runProperties9 = new RunProperties(); RunFonts runFonts10 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" }; FontSize fontSize10 = new FontSize() { Val = "36" }; FontSizeComplexScript fontSizeComplexScript10 = new FontSizeComplexScript() { Val = "36" }; runProperties9.Append(runFonts10); runProperties9.Append(fontSize10); runProperties9.Append(fontSizeComplexScript10); Text text9 = new Text(); text9.Text = "检"; run9.Append(runProperties9); run9.Append(text9); Run run10 = new Run() { RsidRunAddition = "00F24BD4" }; RunProperties runProperties10 = new RunProperties(); RunFonts runFonts11 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" }; FontSize fontSize11 = new FontSize() { Val = "36" }; FontSizeComplexScript fontSizeComplexScript11 = new FontSizeComplexScript() { Val = "36" }; runProperties10.Append(runFonts11); runProperties10.Append(fontSize11); runProperties10.Append(fontSizeComplexScript11); Text text10 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text10.Text = " "; run10.Append(runProperties10); run10.Append(text10); Run run11 = new Run() { RsidRunProperties = "00F24BD4" }; RunProperties runProperties11 = new RunProperties(); RunFonts runFonts12 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" }; FontSize fontSize12 = new FontSize() { Val = "36" }; FontSizeComplexScript fontSizeComplexScript12 = new FontSizeComplexScript() { Val = "36" }; runProperties11.Append(runFonts12); runProperties11.Append(fontSize12); runProperties11.Append(fontSizeComplexScript12); Text text11 = new Text(); text11.Text = "验"; run11.Append(runProperties11); run11.Append(text11); Run run12 = new Run() { RsidRunAddition = "00F24BD4" }; RunProperties runProperties12 = new RunProperties(); RunFonts runFonts13 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" }; FontSize fontSize13 = new FontSize() { Val = "36" }; FontSizeComplexScript fontSizeComplexScript13 = new FontSizeComplexScript() { Val = "36" }; runProperties12.Append(runFonts13); runProperties12.Append(fontSize13); runProperties12.Append(fontSizeComplexScript13); Text text12 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text12.Text = " "; run12.Append(runProperties12); run12.Append(text12); Run run13 = new Run() { RsidRunProperties = "00F24BD4" }; RunProperties runProperties13 = new RunProperties(); RunFonts runFonts14 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" }; FontSize fontSize14 = new FontSize() { Val = "36" }; FontSizeComplexScript fontSizeComplexScript14 = new FontSizeComplexScript() { Val = "36" }; runProperties13.Append(runFonts14); runProperties13.Append(fontSize14); runProperties13.Append(fontSizeComplexScript14); Text text13 = new Text(); text13.Text = "信"; run13.Append(runProperties13); run13.Append(text13); Run run14 = new Run() { RsidRunAddition = "00F24BD4" }; RunProperties runProperties14 = new RunProperties(); RunFonts runFonts15 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" }; FontSize fontSize15 = new FontSize() { Val = "36" }; FontSizeComplexScript fontSizeComplexScript15 = new FontSizeComplexScript() { Val = "36" }; runProperties14.Append(runFonts15); runProperties14.Append(fontSize15); runProperties14.Append(fontSizeComplexScript15); Text text14 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text14.Text = " "; run14.Append(runProperties14); run14.Append(text14); Run run15 = new Run() { RsidRunProperties = "00F24BD4" }; RunProperties runProperties15 = new RunProperties(); RunFonts runFonts16 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" }; FontSize fontSize16 = new FontSize() { Val = "36" }; FontSizeComplexScript fontSizeComplexScript16 = new FontSizeComplexScript() { Val = "36" }; runProperties15.Append(runFonts16); runProperties15.Append(fontSize16); runProperties15.Append(fontSizeComplexScript16); Text text15 = new Text(); text15.Text = "息"; run15.Append(runProperties15); run15.Append(text15); Run run16 = new Run() { RsidRunAddition = "00F24BD4" }; RunProperties runProperties16 = new RunProperties(); RunFonts runFonts17 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" }; FontSize fontSize17 = new FontSize() { Val = "36" }; FontSizeComplexScript fontSizeComplexScript17 = new FontSizeComplexScript() { Val = "36" }; runProperties16.Append(runFonts17); runProperties16.Append(fontSize17); runProperties16.Append(fontSizeComplexScript17); Text text16 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text16.Text = " "; run16.Append(runProperties16); run16.Append(text16); Run run17 = new Run() { RsidRunProperties = "00F24BD4" }; RunProperties runProperties17 = new RunProperties(); RunFonts runFonts18 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" }; FontSize fontSize18 = new FontSize() { Val = "36" }; FontSizeComplexScript fontSizeComplexScript18 = new FontSizeComplexScript() { Val = "36" }; runProperties17.Append(runFonts18); runProperties17.Append(fontSize18); runProperties17.Append(fontSizeComplexScript18); Text text17 = new Text(); text17.Text = "统"; run17.Append(runProperties17); run17.Append(text17); Run run18 = new Run() { RsidRunAddition = "00F24BD4" }; RunProperties runProperties18 = new RunProperties(); RunFonts runFonts19 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" }; FontSize fontSize19 = new FontSize() { Val = "36" }; FontSizeComplexScript fontSizeComplexScript19 = new FontSizeComplexScript() { Val = "36" }; runProperties18.Append(runFonts19); runProperties18.Append(fontSize19); runProperties18.Append(fontSizeComplexScript19); Text text18 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text18.Text = " "; run18.Append(runProperties18); run18.Append(text18); Run run19 = new Run() { RsidRunProperties = "00F24BD4" }; RunProperties runProperties19 = new RunProperties(); RunFonts runFonts20 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" }; FontSize fontSize20 = new FontSize() { Val = "36" }; FontSizeComplexScript fontSizeComplexScript20 = new FontSizeComplexScript() { Val = "36" }; runProperties19.Append(runFonts20); runProperties19.Append(fontSize20); runProperties19.Append(fontSizeComplexScript20); Text text19 = new Text(); text19.Text = "计"; run19.Append(runProperties19); run19.Append(text19); Run run20 = new Run() { RsidRunAddition = "00F24BD4" }; RunProperties runProperties20 = new RunProperties(); RunFonts runFonts21 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" }; FontSize fontSize21 = new FontSize() { Val = "36" }; FontSizeComplexScript fontSizeComplexScript21 = new FontSizeComplexScript() { Val = "36" }; runProperties20.Append(runFonts21); runProperties20.Append(fontSize21); runProperties20.Append(fontSizeComplexScript21); Text text20 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text20.Text = " "; run20.Append(runProperties20); run20.Append(text20); BookmarkStart bookmarkStart1 = new BookmarkStart() { Name = "_GoBack", Id = "0" }; BookmarkEnd bookmarkEnd1 = new BookmarkEnd() { Id = "0" }; Run run21 = new Run() { RsidRunProperties = "00F24BD4" }; RunProperties runProperties21 = new RunProperties(); RunFonts runFonts22 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" }; FontSize fontSize22 = new FontSize() { Val = "36" }; FontSizeComplexScript fontSizeComplexScript22 = new FontSizeComplexScript() { Val = "36" }; runProperties21.Append(runFonts22); runProperties21.Append(fontSize22); runProperties21.Append(fontSizeComplexScript22); Text text21 = new Text(); text21.Text = "表"; run21.Append(runProperties21); run21.Append(text21); paragraph1.Append(paragraphProperties1); paragraph1.Append(run1); paragraph1.Append(run2); paragraph1.Append(run3); paragraph1.Append(run4); paragraph1.Append(run5); paragraph1.Append(run6); paragraph1.Append(run7); paragraph1.Append(run8); paragraph1.Append(run9); paragraph1.Append(run10); paragraph1.Append(run11); paragraph1.Append(run12); paragraph1.Append(run13); paragraph1.Append(run14); paragraph1.Append(run15); paragraph1.Append(run16); paragraph1.Append(run17); paragraph1.Append(run18); paragraph1.Append(run19); paragraph1.Append(run20); paragraph1.Append(bookmarkStart1); paragraph1.Append(bookmarkEnd1); paragraph1.Append(run21); return paragraph1; }
public void DoTable1(Table table1) { TableProperties tableProperties1 = new TableProperties(); TableWidth tableWidth1 = new TableWidth() { Width = "15120", Type = TableWidthUnitValues.Dxa }; TableIndentation tableIndentation1 = new TableIndentation() { Width = -72, Type = TableWidthUnitValues.Dxa }; TableLook tableLook1 = new TableLook() { Val = "01E0" }; tableProperties1.Append(tableWidth1); tableProperties1.Append(tableIndentation1); tableProperties1.Append(tableLook1); TableGrid tableGrid1 = new TableGrid(); GridColumn gridColumn1 = new GridColumn() { Width = "1173" }; GridColumn gridColumn2 = new GridColumn() { Width = "5103" }; GridColumn gridColumn3 = new GridColumn() { Width = "283" }; GridColumn gridColumn4 = new GridColumn() { Width = "3402" }; GridColumn gridColumn5 = new GridColumn() { Width = "5159" }; tableGrid1.Append(gridColumn1); tableGrid1.Append(gridColumn2); tableGrid1.Append(gridColumn3); tableGrid1.Append(gridColumn4); tableGrid1.Append(gridColumn5); TableRow tableRow1 = new TableRow() { RsidTableRowMarkRevision = "00ED7FB2", RsidTableRowAddition = "006B4849", RsidTableRowProperties = "00FA3A80" }; TableCell tableCell1 = new TableCell(); TableCellProperties tableCellProperties1 = new TableCellProperties(); TableCellWidth tableCellWidth1 = new TableCellWidth() { Width = "1173", Type = TableWidthUnitValues.Dxa }; TableCellBorders tableCellBorders1 = new TableCellBorders(); TopBorder topBorder1 = new TopBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)12U, Space = (UInt32Value)0U }; LeftBorder leftBorder1 = new LeftBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)12U, Space = (UInt32Value)0U }; BottomBorder bottomBorder1 = new BottomBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)12U, Space = (UInt32Value)0U }; RightBorder rightBorder1 = new RightBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)12U, Space = (UInt32Value)0U }; tableCellBorders1.Append(topBorder1); tableCellBorders1.Append(leftBorder1); tableCellBorders1.Append(bottomBorder1); tableCellBorders1.Append(rightBorder1); Shading shading1 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "auto" }; TableCellVerticalAlignment tableCellVerticalAlignment1 = new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center }; tableCellProperties1.Append(tableCellWidth1); tableCellProperties1.Append(tableCellBorders1); tableCellProperties1.Append(shading1); tableCellProperties1.Append(tableCellVerticalAlignment1); Paragraph paragraph2 = new Paragraph() { RsidParagraphMarkRevision = "00ED7FB2", RsidParagraphAddition = "006B4849", RsidParagraphProperties = "006B4849", RsidRunAdditionDefault = "006B4849" }; ParagraphProperties paragraphProperties2 = new ParagraphProperties(); ParagraphMarkRunProperties paragraphMarkRunProperties2 = new ParagraphMarkRunProperties(); RunFonts runFonts3 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; paragraphMarkRunProperties2.Append(runFonts3); paragraphProperties2.Append(paragraphMarkRunProperties2); Run run2 = new Run(); RunProperties runProperties2 = new RunProperties(); RunFonts runFonts4 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; runProperties2.Append(runFonts4); Text text2 = new Text(); text2.Text = "Location"; run2.Append(runProperties2); run2.Append(text2); paragraph2.Append(paragraphProperties2); paragraph2.Append(run2); tableCell1.Append(tableCellProperties1); tableCell1.Append(paragraph2); TableCell tableCell2 = new TableCell(); TableCellProperties tableCellProperties2 = new TableCellProperties(); TableCellWidth tableCellWidth2 = new TableCellWidth() { Width = "5103", Type = TableWidthUnitValues.Dxa }; TableCellBorders tableCellBorders2 = new TableCellBorders(); TopBorder topBorder2 = new TopBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)12U, Space = (UInt32Value)0U }; LeftBorder leftBorder2 = new LeftBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)12U, Space = (UInt32Value)0U }; BottomBorder bottomBorder2 = new BottomBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)12U, Space = (UInt32Value)0U }; RightBorder rightBorder2 = new RightBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)12U, Space = (UInt32Value)0U }; tableCellBorders2.Append(topBorder2); tableCellBorders2.Append(leftBorder2); tableCellBorders2.Append(bottomBorder2); tableCellBorders2.Append(rightBorder2); Shading shading2 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "auto" }; TableCellVerticalAlignment tableCellVerticalAlignment2 = new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center }; tableCellProperties2.Append(tableCellWidth2); tableCellProperties2.Append(tableCellBorders2); tableCellProperties2.Append(shading2); tableCellProperties2.Append(tableCellVerticalAlignment2); Paragraph paragraph3 = new Paragraph() { RsidParagraphMarkRevision = "00ED7FB2", RsidParagraphAddition = "006B4849", RsidParagraphProperties = "00030688", RsidRunAdditionDefault = "00030688" }; ParagraphProperties paragraphProperties3 = new ParagraphProperties(); Justification justification2 = new Justification() { Val = JustificationValues.Center }; ParagraphMarkRunProperties paragraphMarkRunProperties3 = new ParagraphMarkRunProperties(); RunFonts runFonts5 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; paragraphMarkRunProperties3.Append(runFonts5); paragraphProperties3.Append(justification2); paragraphProperties3.Append(paragraphMarkRunProperties3); ProofError proofError1 = new ProofError() { Type = ProofingErrorValues.SpellStart }; Run run3 = new Run(); RunProperties runProperties3 = new RunProperties(); RunFonts runFonts6 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; runProperties3.Append(runFonts6); Text text3 = new Text(); string Location = labSheetA1Sheet.SubsectorName.Substring(labSheetA1Sheet.SubsectorName.IndexOf(" ") + 1); text3.Text = labSheetA1Sheet.SubsectorName.Substring(0, labSheetA1Sheet.SubsectorName.IndexOf(" ")) + " (" + (Location.Length > 20 ? Location.Substring(0, 20).Replace("(", "").Replace(")", "") + " ...)" : Location.Replace("(", "").Replace(")", "") + ")"); run3.Append(runProperties3); run3.Append(text3); ProofError proofError2 = new ProofError() { Type = ProofingErrorValues.SpellEnd }; paragraph3.Append(paragraphProperties3); paragraph3.Append(proofError1); paragraph3.Append(run3); paragraph3.Append(proofError2); tableCell2.Append(tableCellProperties2); tableCell2.Append(paragraph3); TableCell tableCell3 = new TableCell(); TableCellProperties tableCellProperties3 = new TableCellProperties(); TableCellWidth tableCellWidth3 = new TableCellWidth() { Width = "283", Type = TableWidthUnitValues.Dxa }; TableCellBorders tableCellBorders3 = new TableCellBorders(); LeftBorder leftBorder3 = new LeftBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)12U, Space = (UInt32Value)0U }; RightBorder rightBorder3 = new RightBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)12U, Space = (UInt32Value)0U }; tableCellBorders3.Append(leftBorder3); tableCellBorders3.Append(rightBorder3); Shading shading3 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "auto" }; TableCellVerticalAlignment tableCellVerticalAlignment3 = new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center }; tableCellProperties3.Append(tableCellWidth3); tableCellProperties3.Append(tableCellBorders3); tableCellProperties3.Append(shading3); tableCellProperties3.Append(tableCellVerticalAlignment3); Paragraph paragraph4 = new Paragraph() { RsidParagraphMarkRevision = "008162D3", RsidParagraphAddition = "006B4849", RsidParagraphProperties = "008162D3", RsidRunAdditionDefault = "006B4849" }; ParagraphProperties paragraphProperties4 = new ParagraphProperties(); ParagraphMarkRunProperties paragraphMarkRunProperties4 = new ParagraphMarkRunProperties(); RunFonts runFonts7 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize1 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript() { Val = "20" }; paragraphMarkRunProperties4.Append(runFonts7); paragraphMarkRunProperties4.Append(fontSize1); paragraphMarkRunProperties4.Append(fontSizeComplexScript1); paragraphProperties4.Append(paragraphMarkRunProperties4); paragraph4.Append(paragraphProperties4); tableCell3.Append(tableCellProperties3); tableCell3.Append(paragraph4); TableCell tableCell4 = new TableCell(); TableCellProperties tableCellProperties4 = new TableCellProperties(); TableCellWidth tableCellWidth4 = new TableCellWidth() { Width = "3402", Type = TableWidthUnitValues.Dxa }; TableCellBorders tableCellBorders4 = new TableCellBorders(); TopBorder topBorder3 = new TopBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)12U, Space = (UInt32Value)0U }; LeftBorder leftBorder4 = new LeftBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)12U, Space = (UInt32Value)0U }; BottomBorder bottomBorder3 = new BottomBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)12U, Space = (UInt32Value)0U }; RightBorder rightBorder4 = new RightBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)12U, Space = (UInt32Value)0U }; tableCellBorders4.Append(topBorder3); tableCellBorders4.Append(leftBorder4); tableCellBorders4.Append(bottomBorder3); tableCellBorders4.Append(rightBorder4); Shading shading4 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "auto" }; TableCellVerticalAlignment tableCellVerticalAlignment4 = new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center }; tableCellProperties4.Append(tableCellWidth4); tableCellProperties4.Append(tableCellBorders4); tableCellProperties4.Append(shading4); tableCellProperties4.Append(tableCellVerticalAlignment4); Paragraph paragraph5 = new Paragraph() { RsidParagraphMarkRevision = "00ED7FB2", RsidParagraphAddition = "006B4849", RsidParagraphProperties = "008162D3", RsidRunAdditionDefault = "006B4849" }; ParagraphProperties paragraphProperties5 = new ParagraphProperties(); Justification justification3 = new Justification() { Val = JustificationValues.Center }; ParagraphMarkRunProperties paragraphMarkRunProperties5 = new ParagraphMarkRunProperties(); RunFonts runFonts8 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; paragraphMarkRunProperties5.Append(runFonts8); paragraphProperties5.Append(justification3); paragraphProperties5.Append(paragraphMarkRunProperties5); Run run4 = new Run() { RsidRunProperties = "006B4849" }; RunProperties runProperties4 = new RunProperties(); RunFonts runFonts9 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; Highlight highlight1 = new Highlight() { Val = HighlightColorValues.Yellow }; runProperties4.Append(runFonts9); runProperties4.Append(highlight1); Text text4 = new Text(); text4.Text = "Sampling / Processing Date:"; run4.Append(runProperties4); run4.Append(text4); Run run5 = new Run() { RsidRunProperties = "00ED7FB2" }; RunProperties runProperties5 = new RunProperties(); RunFonts runFonts10 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; runProperties5.Append(runFonts10); Text text5 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text5.Text = " "; run5.Append(runProperties5); run5.Append(text5); paragraph5.Append(paragraphProperties5); paragraph5.Append(run4); paragraph5.Append(run5); tableCell4.Append(tableCellProperties4); tableCell4.Append(paragraph5); TableCell tableCell5 = new TableCell(); TableCellProperties tableCellProperties5 = new TableCellProperties(); TableCellWidth tableCellWidth5 = new TableCellWidth() { Width = "5159", Type = TableWidthUnitValues.Dxa }; TableCellBorders tableCellBorders5 = new TableCellBorders(); TopBorder topBorder4 = new TopBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)12U, Space = (UInt32Value)0U }; LeftBorder leftBorder5 = new LeftBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)12U, Space = (UInt32Value)0U }; BottomBorder bottomBorder4 = new BottomBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)12U, Space = (UInt32Value)0U }; RightBorder rightBorder5 = new RightBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)12U, Space = (UInt32Value)0U }; tableCellBorders5.Append(topBorder4); tableCellBorders5.Append(leftBorder5); tableCellBorders5.Append(bottomBorder4); tableCellBorders5.Append(rightBorder5); Shading shading5 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "auto" }; TableCellVerticalAlignment tableCellVerticalAlignment5 = new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center }; tableCellProperties5.Append(tableCellWidth5); tableCellProperties5.Append(tableCellBorders5); tableCellProperties5.Append(shading5); tableCellProperties5.Append(tableCellVerticalAlignment5); Paragraph paragraph6 = new Paragraph() { RsidParagraphMarkRevision = "00ED7FB2", RsidParagraphAddition = "006B4849", RsidParagraphProperties = "00030688", RsidRunAdditionDefault = "00030688" }; ParagraphProperties paragraphProperties6 = new ParagraphProperties(); Justification justification4 = new Justification() { Val = JustificationValues.Center }; ParagraphMarkRunProperties paragraphMarkRunProperties6 = new ParagraphMarkRunProperties(); RunFonts runFonts11 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; Color color1 = new Color() { Val = "EAEAEA" }; paragraphMarkRunProperties6.Append(runFonts11); paragraphMarkRunProperties6.Append(color1); paragraphProperties6.Append(justification4); paragraphProperties6.Append(paragraphMarkRunProperties6); ProofError proofError3 = new ProofError() { Type = ProofingErrorValues.SpellStart }; Run run6 = new Run(); RunProperties runProperties6 = new RunProperties(); RunFonts runFonts12 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; runProperties6.Append(runFonts12); Text text6 = new Text(); DateTime SampleDate = new DateTime(int.Parse(labSheetA1Sheet.RunYear), int.Parse(labSheetA1Sheet.RunMonth), int.Parse(labSheetA1Sheet.RunDay)); DateTime ProcessDate = (bool.Parse(labSheetA1Sheet.IncubationStartSameDay) == true ? SampleDate : SampleDate.AddDays(1)); text6.Text = SampleDate.ToString("yyyy MMMM dd") + " / " + ProcessDate.ToString("yyyy MMMM dd"); run6.Append(runProperties6); run6.Append(text6); ProofError proofError4 = new ProofError() { Type = ProofingErrorValues.SpellEnd }; paragraph6.Append(paragraphProperties6); paragraph6.Append(proofError3); paragraph6.Append(run6); paragraph6.Append(proofError4); tableCell5.Append(tableCellProperties5); tableCell5.Append(paragraph6); tableRow1.Append(tableCell1); tableRow1.Append(tableCell2); tableRow1.Append(tableCell3); tableRow1.Append(tableCell4); tableRow1.Append(tableCell5); table1.Append(tableProperties1); table1.Append(tableGrid1); table1.Append(tableRow1); Paragraph paragraph7 = new Paragraph() { RsidParagraphMarkRevision = "00D10A17", RsidParagraphAddition = "00004340", RsidRunAdditionDefault = "00004340" }; ParagraphProperties paragraphProperties7 = new ParagraphProperties(); ParagraphMarkRunProperties paragraphMarkRunProperties7 = new ParagraphMarkRunProperties(); RunFonts runFonts15 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize2 = new FontSize() { Val = "8" }; paragraphMarkRunProperties7.Append(runFonts15); paragraphMarkRunProperties7.Append(fontSize2); paragraphProperties7.Append(paragraphMarkRunProperties7); paragraph7.Append(paragraphProperties7); }
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 ListeAl2() { try { TakingDocuments sonuc = new TakingDocuments(); sonuc.CreateWordprocessingDocument(@"SqlResults\Rapor.doc", "Sorgu Sonucu"); string folderPath = @"SqlResults\Rapor.doc"; string[,] deger = new string[dgwResults.RowCount + 1, dgwResults.ColumnCount]; for (int i = 0; i < dgwResults.ColumnCount; i++) { deger[0, i] = dgwResults.Columns[i].HeaderText.ToString(); } for (int i = 0; i <= dgwResults.RowCount - 1; i++) { for (int j = 0; j < dgwResults.Rows[i].Cells.Count; j++) { deger[i + 1, j] = dgwResults.Rows[i].Cells[j].Value.ToString(); } } sonuc.AddTable(folderPath, deger); Run HighLightRun = new Run(); RunProperties runPro = new RunProperties(); RunFonts runFont = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" }; Bold bold = new Bold(); Color color = new Color() { Val = "FF0000" }; FontSize fontSize = new FontSize() { Val = "12" }; FontSizeComplexScript fontSizeComplex = new FontSizeComplexScript() { Val = "12" }; Text runText = new Text() { Text = deger[0, 0] }; runPro.Append(runFont); runPro.Append(bold); runPro.Append(color); runPro.Append(fontSize); runPro.Append(fontSizeComplex); HighLightRun.Append(runPro); HighLightRun.Append(runText); } catch { } }
// Creates an Table instance and adds its children. public static Table GenerateTable(Document doc, System.Data.DataTable datetable) { Table table = new Table(); // PageSize pagesize = doc.Body.Descendants<PageSize>().First(); PageMargin pagemargin = doc.Body.Descendants<PageMargin>().First(); // var AvailableSumWidth = (int)(pagesize.Width - pagemargin.Right - pagemargin.Left); TableBorders tborder = new Func<TableBorders>(delegate() { 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); return tableBorders1; })(); table.AppendChild<TableProperties>(new TableProperties( new TableStyle() { Val = "a7" }, tborder, new TableWidth() { Width = "0", Type = TableWidthUnitValues.Auto }, new TableLook() { Val = "04A0", FirstRow = true, LastRow = false, FirstColumn = true, LastColumn = false, NoHorizontalBand = false, NoVerticalBand = true } )); int sumColumn = datetable.Columns.Count; int averwidth = AvailableSumWidth / sumColumn; Double set_colSumW = 0; int remainSumW = 0; foreach (System.Data.DataColumn item in datetable.Columns) { Object col_w = item.ExtendedProperties["width"]; if (col_w != null) { set_colSumW += Convert.ToDouble(col_w); remainSumW += averwidth; } } foreach (System.Data.DataColumn item in datetable.Columns) { Object col_w = item.ExtendedProperties["width"]; if (col_w != null) item.ExtendedProperties.Add("WordWidth", Math.Floor((remainSumW * Convert.ToDouble(col_w) / set_colSumW))); else item.ExtendedProperties.Add("WordWidth", averwidth); } for (int i = 0; i < sumColumn; i++) { int col_w = Convert.ToInt32(datetable.Columns[i].ExtendedProperties["WordWidth"]); table.AppendChild<GridColumn>(new GridColumn() { Width = col_w.ToString() }); } List<System.Data.DataRow> lstCol = new List<System.Data.DataRow>(); System.Data.DataRow dr = datetable.NewRow(); List<object> lstObj = new List<object>(); foreach (System.Data.DataColumn item in datetable.Columns) { lstObj.Add(item.ColumnName); } dr.ItemArray = lstObj.ToArray(); datetable.Rows.InsertAt(dr, 0); foreach (System.Data.DataRow item in datetable.Rows) { TableRow tableRow = new TableRow() { RsidTableRowAddition = "00D24D12", RsidTableRowProperties = "00D24D12" }; for (int i = 0; i < sumColumn; i++) { int col_w = Convert.ToInt32(datetable.Columns[i].ExtendedProperties["WordWidth"]); string cellValue = item[i].ToString(); TableCell tableCell1 = new TableCell(); TableCellProperties tableCellProperties1 = new TableCellProperties(); TableCellWidth tableCellWidth1 = new TableCellWidth() { Width = col_w.ToString(), Type = TableWidthUnitValues.Dxa }; tableCellProperties1.Append(tableCellWidth1); Paragraph paragraph1 = new Paragraph() { RsidParagraphAddition = "00D24D12", RsidParagraphProperties = "003246FB", RsidRunAdditionDefault = "00D24D12" }; Run run1 = new Run(); RunProperties runProperties1 = new RunProperties(); RunFonts runFonts1 = new RunFonts() { Hint = FontTypeHintValues.EastAsia }; runProperties1.Append(runFonts1); Text text1 = new Text(); text1.Text = cellValue; run1.Append(runProperties1); run1.Append(text1); BookmarkStart bookmarkStart1 = new BookmarkStart(); BookmarkEnd bookmarkEnd1 = new BookmarkEnd(); paragraph1.Append(run1); paragraph1.Append(bookmarkStart1); paragraph1.Append(bookmarkEnd1); tableCell1.Append(tableCellProperties1); tableCell1.Append(paragraph1); tableRow.Append(tableCell1); } table.Append(tableRow); } return table; }
public static Paragraph GenerateParagraph() { Paragraph paragraph1 = new Paragraph() { RsidParagraphMarkRevision = "00D36A28", RsidParagraphAddition = "00D36A28", RsidRunAdditionDefault = "005478FD", ParagraphId = "16FCFC06", TextId = "77777777" }; ParagraphProperties paragraphProperties1 = new ParagraphProperties(); ParagraphStyleId paragraphStyleId1 = new ParagraphStyleId() { Val = "TOC1" }; ParagraphMarkRunProperties paragraphMarkRunProperties1 = new ParagraphMarkRunProperties(); RunFonts runFonts1 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial", EastAsiaTheme = ThemeFontValues.MinorEastAsia }; Caps caps1 = new Caps() { Val = false }; NoProof noProof1 = new NoProof(); FontSize fontSize1 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript() { Val = "20" }; Languages languages1 = new Languages() { EastAsia = "en-CA" }; paragraphMarkRunProperties1.Append(runFonts1); paragraphMarkRunProperties1.Append(caps1); paragraphMarkRunProperties1.Append(noProof1); paragraphMarkRunProperties1.Append(fontSize1); paragraphMarkRunProperties1.Append(fontSizeComplexScript1); paragraphMarkRunProperties1.Append(languages1); paragraphProperties1.Append(paragraphStyleId1); paragraphProperties1.Append(paragraphMarkRunProperties1); Run run1 = new Run() { RsidRunProperties = "004D1F3B" }; RunProperties runProperties1 = new RunProperties(); RunFonts runFonts2 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize2 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript2 = new FontSizeComplexScript() { Val = "20" }; runProperties1.Append(runFonts2); runProperties1.Append(fontSize2); runProperties1.Append(fontSizeComplexScript2); FieldChar fieldChar1 = new FieldChar() { FieldCharType = FieldCharValues.Begin }; run1.Append(runProperties1); run1.Append(fieldChar1); BookmarkEnd bookmarkEnd1 = new BookmarkEnd() { Id = "3" }; BookmarkEnd bookmarkEnd2 = new BookmarkEnd() { Id = "4" }; BookmarkEnd bookmarkEnd3 = new BookmarkEnd() { Id = "5" }; Run run2 = new Run() { RsidRunProperties = "004D1F3B" }; RunProperties runProperties2 = new RunProperties(); RunFonts runFonts3 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize3 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript3 = new FontSizeComplexScript() { Val = "20" }; runProperties2.Append(runFonts3); runProperties2.Append(fontSize3); runProperties2.Append(fontSizeComplexScript3); FieldCode fieldCode1 = new FieldCode() { Space = SpaceProcessingModeValues.Preserve }; fieldCode1.Text = " TOC \\o \"1-2\" \\h \\z \\u "; run2.Append(runProperties2); run2.Append(fieldCode1); Run run3 = new Run() { RsidRunProperties = "004D1F3B" }; RunProperties runProperties3 = new RunProperties(); RunFonts runFonts4 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize4 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript4 = new FontSizeComplexScript() { Val = "20" }; runProperties3.Append(runFonts4); runProperties3.Append(fontSize4); runProperties3.Append(fontSizeComplexScript4); FieldChar fieldChar2 = new FieldChar() { FieldCharType = FieldCharValues.Separate }; run3.Append(runProperties3); run3.Append(fieldChar2); Hyperlink hyperlink1 = new Hyperlink() { History = true, Anchor = "_Toc459701534" }; Run run4 = new Run() { RsidRunProperties = "00D36A28", RsidRunAddition = "00D36A28" }; RunProperties runProperties4 = new RunProperties(); RunStyle runStyle1 = new RunStyle() { Val = "Hyperlink" }; RunFonts runFonts5 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; NoProof noProof2 = new NoProof(); FontSize fontSize5 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript5 = new FontSizeComplexScript() { Val = "20" }; runProperties4.Append(runStyle1); runProperties4.Append(runFonts5); runProperties4.Append(noProof2); runProperties4.Append(fontSize5); runProperties4.Append(fontSizeComplexScript5); Text text1 = new Text(); text1.Text = "Article 1 definitions and iNTERPRETATION"; run4.Append(runProperties4); run4.Append(text1); Run run5 = new Run() { RsidRunProperties = "00D36A28", RsidRunAddition = "00D36A28" }; RunProperties runProperties5 = new RunProperties(); RunFonts runFonts6 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; NoProof noProof3 = new NoProof(); WebHidden webHidden1 = new WebHidden(); FontSize fontSize6 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript6 = new FontSizeComplexScript() { Val = "20" }; runProperties5.Append(runFonts6); runProperties5.Append(noProof3); runProperties5.Append(webHidden1); runProperties5.Append(fontSize6); runProperties5.Append(fontSizeComplexScript6); TabChar tabChar1 = new TabChar(); run5.Append(runProperties5); run5.Append(tabChar1); Run run6 = new Run() { RsidRunProperties = "00D36A28", RsidRunAddition = "00D36A28" }; RunProperties runProperties6 = new RunProperties(); RunFonts runFonts7 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; NoProof noProof4 = new NoProof(); WebHidden webHidden2 = new WebHidden(); FontSize fontSize7 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript7 = new FontSizeComplexScript() { Val = "20" }; runProperties6.Append(runFonts7); runProperties6.Append(noProof4); runProperties6.Append(webHidden2); runProperties6.Append(fontSize7); runProperties6.Append(fontSizeComplexScript7); FieldChar fieldChar3 = new FieldChar() { FieldCharType = FieldCharValues.Begin }; run6.Append(runProperties6); run6.Append(fieldChar3); Run run7 = new Run() { RsidRunProperties = "00D36A28", RsidRunAddition = "00D36A28" }; RunProperties runProperties7 = new RunProperties(); RunFonts runFonts8 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; NoProof noProof5 = new NoProof(); WebHidden webHidden3 = new WebHidden(); FontSize fontSize8 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript8 = new FontSizeComplexScript() { Val = "20" }; runProperties7.Append(runFonts8); runProperties7.Append(noProof5); runProperties7.Append(webHidden3); runProperties7.Append(fontSize8); runProperties7.Append(fontSizeComplexScript8); FieldCode fieldCode2 = new FieldCode() { Space = SpaceProcessingModeValues.Preserve }; fieldCode2.Text = " PAGEREF _Toc459701534 \\h "; run7.Append(runProperties7); run7.Append(fieldCode2); Run run8 = new Run() { RsidRunProperties = "00D36A28", RsidRunAddition = "00D36A28" }; RunProperties runProperties8 = new RunProperties(); RunFonts runFonts9 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; NoProof noProof6 = new NoProof(); WebHidden webHidden4 = new WebHidden(); FontSize fontSize9 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript9 = new FontSizeComplexScript() { Val = "20" }; runProperties8.Append(runFonts9); runProperties8.Append(noProof6); runProperties8.Append(webHidden4); runProperties8.Append(fontSize9); runProperties8.Append(fontSizeComplexScript9); run8.Append(runProperties8); Run run9 = new Run() { RsidRunProperties = "00D36A28", RsidRunAddition = "00D36A28" }; RunProperties runProperties9 = new RunProperties(); RunFonts runFonts10 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; NoProof noProof7 = new NoProof(); WebHidden webHidden5 = new WebHidden(); FontSize fontSize10 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript10 = new FontSizeComplexScript() { Val = "20" }; runProperties9.Append(runFonts10); runProperties9.Append(noProof7); runProperties9.Append(webHidden5); runProperties9.Append(fontSize10); runProperties9.Append(fontSizeComplexScript10); FieldChar fieldChar4 = new FieldChar() { FieldCharType = FieldCharValues.Separate }; run9.Append(runProperties9); run9.Append(fieldChar4); Run run10 = new Run() { RsidRunProperties = "00D36A28", RsidRunAddition = "00D36A28" }; RunProperties runProperties10 = new RunProperties(); RunFonts runFonts11 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; NoProof noProof8 = new NoProof(); WebHidden webHidden6 = new WebHidden(); FontSize fontSize11 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript11 = new FontSizeComplexScript() { Val = "20" }; runProperties10.Append(runFonts11); runProperties10.Append(noProof8); runProperties10.Append(webHidden6); runProperties10.Append(fontSize11); runProperties10.Append(fontSizeComplexScript11); Text text2 = new Text(); text2.Text = "2"; run10.Append(runProperties10); run10.Append(text2); Run run11 = new Run() { RsidRunProperties = "00D36A28", RsidRunAddition = "00D36A28" }; RunProperties runProperties11 = new RunProperties(); RunFonts runFonts12 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; NoProof noProof9 = new NoProof(); WebHidden webHidden7 = new WebHidden(); FontSize fontSize12 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript12 = new FontSizeComplexScript() { Val = "20" }; runProperties11.Append(runFonts12); runProperties11.Append(noProof9); runProperties11.Append(webHidden7); runProperties11.Append(fontSize12); runProperties11.Append(fontSizeComplexScript12); FieldChar fieldChar5 = new FieldChar() { FieldCharType = FieldCharValues.End }; run11.Append(runProperties11); run11.Append(fieldChar5); hyperlink1.Append(run4); hyperlink1.Append(run5); hyperlink1.Append(run6); hyperlink1.Append(run7); hyperlink1.Append(run8); hyperlink1.Append(run9); hyperlink1.Append(run10); hyperlink1.Append(run11); paragraph1.Append(paragraphProperties1); paragraph1.Append(run1); paragraph1.Append(bookmarkEnd1); paragraph1.Append(bookmarkEnd2); paragraph1.Append(bookmarkEnd3); paragraph1.Append(run2); paragraph1.Append(run3); paragraph1.Append(hyperlink1); return(paragraph1); }
// 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); }
public void DoParagraphBelowTable3(Paragraph paragraph473) { ParagraphProperties paragraphProperties473 = new ParagraphProperties(); ParagraphMarkRunProperties paragraphMarkRunProperties473 = new ParagraphMarkRunProperties(); RunFonts runFonts602 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize261 = new FontSize() { Val = "18" }; FontSizeComplexScript fontSizeComplexScript259 = new FontSizeComplexScript() { Val = "22" }; paragraphMarkRunProperties473.Append(runFonts602); paragraphMarkRunProperties473.Append(fontSize261); paragraphMarkRunProperties473.Append(fontSizeComplexScript259); paragraphProperties473.Append(paragraphMarkRunProperties473); paragraph473.Append(paragraphProperties473); Paragraph paragraph474 = new Paragraph() { RsidParagraphMarkRevision = "00D10A17", RsidParagraphAddition = "00004340", RsidRunAdditionDefault = "00D53280" }; ParagraphProperties paragraphProperties474 = new ParagraphProperties(); ParagraphMarkRunProperties paragraphMarkRunProperties474 = new ParagraphMarkRunProperties(); RunFonts runFonts603 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize262 = new FontSize() { Val = "18" }; FontSizeComplexScript fontSizeComplexScript260 = new FontSizeComplexScript() { Val = "22" }; paragraphMarkRunProperties474.Append(runFonts603); paragraphMarkRunProperties474.Append(fontSize262); paragraphMarkRunProperties474.Append(fontSizeComplexScript260); paragraphProperties474.Append(paragraphMarkRunProperties474); Run run131 = new Run() { RsidRunProperties = "00D10A17" }; RunProperties runProperties131 = new RunProperties(); RunFonts runFonts604 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; FontSize fontSize263 = new FontSize() { Val = "18" }; FontSizeComplexScript fontSizeComplexScript261 = new FontSizeComplexScript() { Val = "22" }; runProperties131.Append(runFonts604); runProperties131.Append(fontSize263); runProperties131.Append(fontSizeComplexScript261); Text text131 = new Text(); text131.Text = "Note: All required information as per section 5.10.2 of ISO/IEC 17025 is available from the Laboratory Supervisor."; run131.Append(runProperties131); run131.Append(text131); paragraph474.Append(paragraphProperties474); paragraph474.Append(run131); }
private Paragraph CreateTextParagraph(string str) { Paragraph paragraph = new Paragraph() {}; Run run = new Run(); RunProperties runProperties = new RunProperties(); RunFonts runFonts = new RunFonts() { Hint = FontTypeHintValues.EastAsia }; runProperties.Append(runFonts); Text text = new Text() { Space = SpaceProcessingModeValues.Preserve }; text.Text = str; run.Append(runProperties); run.Append(text); paragraph.Append(run); return paragraph; }
// Creates an Numbering instance and adds its children. public static Numbering GenerateNumbering() { Numbering numbering1 = new Numbering() { MCAttributes = new MarkupCompatibilityAttributes() { Ignorable = "w14 w15 w16se w16cid wp14" } }; numbering1.AddNamespaceDeclaration("wpc", "http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas"); numbering1.AddNamespaceDeclaration("cx", "http://schemas.microsoft.com/office/drawing/2014/chartex"); numbering1.AddNamespaceDeclaration("cx1", "http://schemas.microsoft.com/office/drawing/2015/9/8/chartex"); numbering1.AddNamespaceDeclaration("cx2", "http://schemas.microsoft.com/office/drawing/2015/10/21/chartex"); numbering1.AddNamespaceDeclaration("cx3", "http://schemas.microsoft.com/office/drawing/2016/5/9/chartex"); numbering1.AddNamespaceDeclaration("cx4", "http://schemas.microsoft.com/office/drawing/2016/5/10/chartex"); numbering1.AddNamespaceDeclaration("cx5", "http://schemas.microsoft.com/office/drawing/2016/5/11/chartex"); numbering1.AddNamespaceDeclaration("cx6", "http://schemas.microsoft.com/office/drawing/2016/5/12/chartex"); numbering1.AddNamespaceDeclaration("cx7", "http://schemas.microsoft.com/office/drawing/2016/5/13/chartex"); numbering1.AddNamespaceDeclaration("cx8", "http://schemas.microsoft.com/office/drawing/2016/5/14/chartex"); numbering1.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); numbering1.AddNamespaceDeclaration("aink", "http://schemas.microsoft.com/office/drawing/2016/ink"); numbering1.AddNamespaceDeclaration("am3d", "http://schemas.microsoft.com/office/drawing/2017/model3d"); numbering1.AddNamespaceDeclaration("o", "urn:schemas-microsoft-com:office:office"); numbering1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); numbering1.AddNamespaceDeclaration("m", "http://schemas.openxmlformats.org/officeDocument/2006/math"); numbering1.AddNamespaceDeclaration("v", "urn:schemas-microsoft-com:vml"); numbering1.AddNamespaceDeclaration("wp14", "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing"); numbering1.AddNamespaceDeclaration("wp", "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"); numbering1.AddNamespaceDeclaration("w10", "urn:schemas-microsoft-com:office:word"); numbering1.AddNamespaceDeclaration("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main"); numbering1.AddNamespaceDeclaration("w14", "http://schemas.microsoft.com/office/word/2010/wordml"); numbering1.AddNamespaceDeclaration("w15", "http://schemas.microsoft.com/office/word/2012/wordml"); numbering1.AddNamespaceDeclaration("w16cid", "http://schemas.microsoft.com/office/word/2016/wordml/cid"); numbering1.AddNamespaceDeclaration("w16se", "http://schemas.microsoft.com/office/word/2015/wordml/symex"); numbering1.AddNamespaceDeclaration("wpg", "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup"); numbering1.AddNamespaceDeclaration("wpi", "http://schemas.microsoft.com/office/word/2010/wordprocessingInk"); numbering1.AddNamespaceDeclaration("wne", "http://schemas.microsoft.com/office/word/2006/wordml"); numbering1.AddNamespaceDeclaration("wps", "http://schemas.microsoft.com/office/word/2010/wordprocessingShape"); AbstractNum abstractNum1 = new AbstractNum() { AbstractNumberId = 0 }; abstractNum1.SetAttribute(new OpenXmlAttribute("w15", "restartNumberingAfterBreak", "http://schemas.microsoft.com/office/word/2012/wordml", "0")); Nsid nsid1 = new Nsid() { Val = "02791BC6" }; MultiLevelType multiLevelType1 = new MultiLevelType() { Val = MultiLevelValues.Multilevel }; TemplateCode templateCode1 = new TemplateCode() { Val = "565C7098" }; Level level1 = new Level() { LevelIndex = 0 }; StartNumberingValue startNumberingValue1 = new StartNumberingValue() { Val = 1 }; NumberingFormat numberingFormat1 = new NumberingFormat() { Val = NumberFormatValues.Decimal }; ParagraphStyleIdInLevel paragraphStyleIdInLevel1 = new ParagraphStyleIdInLevel() { Val = "Heading1" }; LevelSuffix levelSuffix1 = new LevelSuffix() { Val = LevelSuffixValues.Nothing }; LevelText levelText1 = new LevelText() { Val = "Article %1" }; LevelJustification levelJustification1 = new LevelJustification() { Val = LevelJustificationValues.Left }; PreviousParagraphProperties previousParagraphProperties1 = new PreviousParagraphProperties(); Indentation indentation1 = new Indentation() { Left = "0", FirstLine = "0" }; previousParagraphProperties1.Append(indentation1); NumberingSymbolRunProperties numberingSymbolRunProperties1 = new NumberingSymbolRunProperties(); RunFonts runFonts1 = new RunFonts() { Hint = FontTypeHintValues.Default }; numberingSymbolRunProperties1.Append(runFonts1); level1.Append(startNumberingValue1); level1.Append(numberingFormat1); level1.Append(paragraphStyleIdInLevel1); level1.Append(levelSuffix1); level1.Append(levelText1); level1.Append(levelJustification1); level1.Append(previousParagraphProperties1); level1.Append(numberingSymbolRunProperties1); Level level2 = new Level() { LevelIndex = 1 }; StartNumberingValue startNumberingValue2 = new StartNumberingValue() { Val = 1 }; NumberingFormat numberingFormat2 = new NumberingFormat() { Val = NumberFormatValues.Decimal }; ParagraphStyleIdInLevel paragraphStyleIdInLevel2 = new ParagraphStyleIdInLevel() { Val = "Heading2" }; LevelText levelText2 = new LevelText() { Val = "%1.%2" }; LevelJustification levelJustification2 = new LevelJustification() { Val = LevelJustificationValues.Left }; PreviousParagraphProperties previousParagraphProperties2 = new PreviousParagraphProperties(); Tabs tabs1 = new Tabs(); TabStop tabStop1 = new TabStop() { Val = TabStopValues.Number, Position = 720 }; tabs1.Append(tabStop1); Indentation indentation2 = new Indentation() { Left = "0", FirstLine = "0" }; previousParagraphProperties2.Append(tabs1); previousParagraphProperties2.Append(indentation2); NumberingSymbolRunProperties numberingSymbolRunProperties2 = new NumberingSymbolRunProperties(); RunFonts runFonts2 = new RunFonts() { Hint = FontTypeHintValues.Default, ComplexScript = "Times New Roman" }; Bold bold1 = new Bold() { Val = false }; Italic italic1 = new Italic() { Val = false }; ItalicComplexScript italicComplexScript1 = new ItalicComplexScript() { Val = false }; Caps caps1 = new Caps() { Val = false }; SmallCaps smallCaps1 = new SmallCaps() { Val = false }; Strike strike1 = new Strike() { Val = false }; DoubleStrike doubleStrike1 = new DoubleStrike() { Val = false }; NoProof noProof1 = new NoProof() { Val = false }; Vanish vanish1 = new Vanish() { Val = false }; Color color1 = new Color() { Val = "000000" }; Spacing spacing1 = new Spacing() { Val = 0 }; Kern kern1 = new Kern() { Val = 0U }; Position position1 = new Position() { Val = "0" }; Underline underline1 = new Underline() { Val = UnderlineValues.None }; TextEffect textEffect1 = new TextEffect() { Val = TextEffectValues.None }; VerticalTextAlignment verticalTextAlignment1 = new VerticalTextAlignment() { Val = VerticalPositionValues.Baseline }; Emphasis emphasis1 = new Emphasis() { Val = EmphasisMarkValues.None }; SpecVanish specVanish1 = new SpecVanish() { Val = false }; OpenXmlUnknownElement openXmlUnknownElement1 = OpenXmlUnknownElement.CreateOpenXmlUnknownElement("<w14:shadow w14:blurRad=\"0\" w14:dist=\"0\" w14:dir=\"0\" w14:sx=\"0\" w14:sy=\"0\" w14:kx=\"0\" w14:ky=\"0\" w14:algn=\"none\" xmlns:w14=\"http://schemas.microsoft.com/office/word/2010/wordml\"><w14:srgbClr w14:val=\"000000\" /></w14:shadow>"); OpenXmlUnknownElement openXmlUnknownElement2 = OpenXmlUnknownElement.CreateOpenXmlUnknownElement("<w14:textOutline w14:w=\"0\" w14:cap=\"rnd\" w14:cmpd=\"sng\" w14:algn=\"ctr\" xmlns:w14=\"http://schemas.microsoft.com/office/word/2010/wordml\"><w14:noFill /><w14:prstDash w14:val=\"solid\" /><w14:bevel /></w14:textOutline>"); numberingSymbolRunProperties2.Append(runFonts2); numberingSymbolRunProperties2.Append(bold1); numberingSymbolRunProperties2.Append(italic1); numberingSymbolRunProperties2.Append(italicComplexScript1); numberingSymbolRunProperties2.Append(caps1); numberingSymbolRunProperties2.Append(smallCaps1); numberingSymbolRunProperties2.Append(strike1); numberingSymbolRunProperties2.Append(doubleStrike1); numberingSymbolRunProperties2.Append(noProof1); numberingSymbolRunProperties2.Append(vanish1); numberingSymbolRunProperties2.Append(color1); numberingSymbolRunProperties2.Append(spacing1); numberingSymbolRunProperties2.Append(kern1); numberingSymbolRunProperties2.Append(position1); numberingSymbolRunProperties2.Append(underline1); numberingSymbolRunProperties2.Append(textEffect1); numberingSymbolRunProperties2.Append(verticalTextAlignment1); numberingSymbolRunProperties2.Append(emphasis1); numberingSymbolRunProperties2.Append(specVanish1); numberingSymbolRunProperties2.Append(openXmlUnknownElement1); numberingSymbolRunProperties2.Append(openXmlUnknownElement2); level2.Append(startNumberingValue2); level2.Append(numberingFormat2); level2.Append(paragraphStyleIdInLevel2); level2.Append(levelText2); level2.Append(levelJustification2); level2.Append(previousParagraphProperties2); level2.Append(numberingSymbolRunProperties2); Level level3 = new Level() { LevelIndex = 2 }; StartNumberingValue startNumberingValue3 = new StartNumberingValue() { Val = 1 }; NumberingFormat numberingFormat3 = new NumberingFormat() { Val = NumberFormatValues.LowerLetter }; ParagraphStyleIdInLevel paragraphStyleIdInLevel3 = new ParagraphStyleIdInLevel() { Val = "Heading3" }; LevelText levelText3 = new LevelText() { Val = "(%3)" }; LevelJustification levelJustification3 = new LevelJustification() { Val = LevelJustificationValues.Left }; PreviousParagraphProperties previousParagraphProperties3 = new PreviousParagraphProperties(); Tabs tabs2 = new Tabs(); TabStop tabStop2 = new TabStop() { Val = TabStopValues.Number, Position = 1800 }; tabs2.Append(tabStop2); Indentation indentation3 = new Indentation() { Left = "1800", Hanging = "720" }; previousParagraphProperties3.Append(tabs2); previousParagraphProperties3.Append(indentation3); NumberingSymbolRunProperties numberingSymbolRunProperties3 = new NumberingSymbolRunProperties(); RunFonts runFonts3 = new RunFonts() { Hint = FontTypeHintValues.Default }; numberingSymbolRunProperties3.Append(runFonts3); level3.Append(startNumberingValue3); level3.Append(numberingFormat3); level3.Append(paragraphStyleIdInLevel3); level3.Append(levelText3); level3.Append(levelJustification3); level3.Append(previousParagraphProperties3); level3.Append(numberingSymbolRunProperties3); Level level4 = new Level() { LevelIndex = 3 }; StartNumberingValue startNumberingValue4 = new StartNumberingValue() { Val = 1 }; NumberingFormat numberingFormat4 = new NumberingFormat() { Val = NumberFormatValues.LowerRoman }; ParagraphStyleIdInLevel paragraphStyleIdInLevel4 = new ParagraphStyleIdInLevel() { Val = "Heading4" }; LevelText levelText4 = new LevelText() { Val = "(%4)" }; LevelJustification levelJustification4 = new LevelJustification() { Val = LevelJustificationValues.Left }; PreviousParagraphProperties previousParagraphProperties4 = new PreviousParagraphProperties(); Tabs tabs3 = new Tabs(); TabStop tabStop3 = new TabStop() { Val = TabStopValues.Number, Position = 2160 }; tabs3.Append(tabStop3); Indentation indentation4 = new Indentation() { Left = "2160", Hanging = "720" }; previousParagraphProperties4.Append(tabs3); previousParagraphProperties4.Append(indentation4); NumberingSymbolRunProperties numberingSymbolRunProperties4 = new NumberingSymbolRunProperties(); RunFonts runFonts4 = new RunFonts() { Hint = FontTypeHintValues.Default }; Bold bold2 = new Bold() { Val = false }; Italic italic2 = new Italic() { Val = false }; numberingSymbolRunProperties4.Append(runFonts4); numberingSymbolRunProperties4.Append(bold2); numberingSymbolRunProperties4.Append(italic2); level4.Append(startNumberingValue4); level4.Append(numberingFormat4); level4.Append(paragraphStyleIdInLevel4); level4.Append(levelText4); level4.Append(levelJustification4); level4.Append(previousParagraphProperties4); level4.Append(numberingSymbolRunProperties4); Level level5 = new Level() { LevelIndex = 4 }; StartNumberingValue startNumberingValue5 = new StartNumberingValue() { Val = 1 }; NumberingFormat numberingFormat5 = new NumberingFormat() { Val = NumberFormatValues.LowerLetter }; ParagraphStyleIdInLevel paragraphStyleIdInLevel5 = new ParagraphStyleIdInLevel() { Val = "Heading5" }; LevelText levelText5 = new LevelText() { Val = "%5)" }; LevelJustification levelJustification5 = new LevelJustification() { Val = LevelJustificationValues.Left }; PreviousParagraphProperties previousParagraphProperties5 = new PreviousParagraphProperties(); Tabs tabs4 = new Tabs(); TabStop tabStop4 = new TabStop() { Val = TabStopValues.Number, Position = 2880 }; tabs4.Append(tabStop4); Indentation indentation5 = new Indentation() { Left = "2880", Hanging = "720" }; previousParagraphProperties5.Append(tabs4); previousParagraphProperties5.Append(indentation5); NumberingSymbolRunProperties numberingSymbolRunProperties5 = new NumberingSymbolRunProperties(); RunFonts runFonts5 = new RunFonts() { Hint = FontTypeHintValues.Default, Ascii = "Book Antiqua", HighAnsi = "Book Antiqua" }; Bold bold3 = new Bold() { Val = false }; Italic italic3 = new Italic() { Val = false }; FontSize fontSize1 = new FontSize() { Val = "22" }; numberingSymbolRunProperties5.Append(runFonts5); numberingSymbolRunProperties5.Append(bold3); numberingSymbolRunProperties5.Append(italic3); numberingSymbolRunProperties5.Append(fontSize1); level5.Append(startNumberingValue5); level5.Append(numberingFormat5); level5.Append(paragraphStyleIdInLevel5); level5.Append(levelText5); level5.Append(levelJustification5); level5.Append(previousParagraphProperties5); level5.Append(numberingSymbolRunProperties5); Level level6 = new Level() { LevelIndex = 5 }; StartNumberingValue startNumberingValue6 = new StartNumberingValue() { Val = 1 }; NumberingFormat numberingFormat6 = new NumberingFormat() { Val = NumberFormatValues.LowerRoman }; ParagraphStyleIdInLevel paragraphStyleIdInLevel6 = new ParagraphStyleIdInLevel() { Val = "Heading6" }; LevelText levelText6 = new LevelText() { Val = "(%6)" }; LevelJustification levelJustification6 = new LevelJustification() { Val = LevelJustificationValues.Left }; PreviousParagraphProperties previousParagraphProperties6 = new PreviousParagraphProperties(); Tabs tabs5 = new Tabs(); TabStop tabStop5 = new TabStop() { Val = TabStopValues.Number, Position = 1440 }; tabs5.Append(tabStop5); Indentation indentation6 = new Indentation() { Left = "1440", Hanging = "720" }; previousParagraphProperties6.Append(tabs5); previousParagraphProperties6.Append(indentation6); NumberingSymbolRunProperties numberingSymbolRunProperties6 = new NumberingSymbolRunProperties(); RunFonts runFonts6 = new RunFonts() { Hint = FontTypeHintValues.Default, Ascii = "Book Antiqua", HighAnsi = "Book Antiqua" }; Bold bold4 = new Bold() { Val = false }; Italic italic4 = new Italic() { Val = false }; FontSize fontSize2 = new FontSize() { Val = "22" }; numberingSymbolRunProperties6.Append(runFonts6); numberingSymbolRunProperties6.Append(bold4); numberingSymbolRunProperties6.Append(italic4); numberingSymbolRunProperties6.Append(fontSize2); level6.Append(startNumberingValue6); level6.Append(numberingFormat6); level6.Append(paragraphStyleIdInLevel6); level6.Append(levelText6); level6.Append(levelJustification6); level6.Append(previousParagraphProperties6); level6.Append(numberingSymbolRunProperties6); Level level7 = new Level() { LevelIndex = 6 }; StartNumberingValue startNumberingValue7 = new StartNumberingValue() { Val = 1 }; NumberingFormat numberingFormat7 = new NumberingFormat() { Val = NumberFormatValues.Decimal }; LevelText levelText7 = new LevelText() { Val = "%1.%2.%3.%4.%5.%6.%7." }; LevelJustification levelJustification7 = new LevelJustification() { Val = LevelJustificationValues.Left }; PreviousParagraphProperties previousParagraphProperties7 = new PreviousParagraphProperties(); Tabs tabs6 = new Tabs(); TabStop tabStop6 = new TabStop() { Val = TabStopValues.Number, Position = 5400 }; tabs6.Append(tabStop6); Indentation indentation7 = new Indentation() { Left = "3240", Hanging = "1080" }; previousParagraphProperties7.Append(tabs6); previousParagraphProperties7.Append(indentation7); NumberingSymbolRunProperties numberingSymbolRunProperties7 = new NumberingSymbolRunProperties(); RunFonts runFonts7 = new RunFonts() { Hint = FontTypeHintValues.Default }; numberingSymbolRunProperties7.Append(runFonts7); level7.Append(startNumberingValue7); level7.Append(numberingFormat7); level7.Append(levelText7); level7.Append(levelJustification7); level7.Append(previousParagraphProperties7); level7.Append(numberingSymbolRunProperties7); Level level8 = new Level() { LevelIndex = 7 }; StartNumberingValue startNumberingValue8 = new StartNumberingValue() { Val = 1 }; NumberingFormat numberingFormat8 = new NumberingFormat() { Val = NumberFormatValues.Decimal }; LevelText levelText8 = new LevelText() { Val = "%1.%2.%3.%4.%5.%6.%7.%8." }; LevelJustification levelJustification8 = new LevelJustification() { Val = LevelJustificationValues.Left }; PreviousParagraphProperties previousParagraphProperties8 = new PreviousParagraphProperties(); Tabs tabs7 = new Tabs(); TabStop tabStop7 = new TabStop() { Val = TabStopValues.Number, Position = 6120 }; tabs7.Append(tabStop7); Indentation indentation8 = new Indentation() { Left = "3744", Hanging = "1224" }; previousParagraphProperties8.Append(tabs7); previousParagraphProperties8.Append(indentation8); NumberingSymbolRunProperties numberingSymbolRunProperties8 = new NumberingSymbolRunProperties(); RunFonts runFonts8 = new RunFonts() { Hint = FontTypeHintValues.Default }; numberingSymbolRunProperties8.Append(runFonts8); level8.Append(startNumberingValue8); level8.Append(numberingFormat8); level8.Append(levelText8); level8.Append(levelJustification8); level8.Append(previousParagraphProperties8); level8.Append(numberingSymbolRunProperties8); Level level9 = new Level() { LevelIndex = 8 }; StartNumberingValue startNumberingValue9 = new StartNumberingValue() { Val = 1 }; NumberingFormat numberingFormat9 = new NumberingFormat() { Val = NumberFormatValues.Decimal }; LevelText levelText9 = new LevelText() { Val = "%1.%2.%3.%4.%5.%6.%7.%8.%9." }; LevelJustification levelJustification9 = new LevelJustification() { Val = LevelJustificationValues.Left }; PreviousParagraphProperties previousParagraphProperties9 = new PreviousParagraphProperties(); Tabs tabs8 = new Tabs(); TabStop tabStop8 = new TabStop() { Val = TabStopValues.Number, Position = 6840 }; tabs8.Append(tabStop8); Indentation indentation9 = new Indentation() { Left = "4320", Hanging = "1440" }; previousParagraphProperties9.Append(tabs8); previousParagraphProperties9.Append(indentation9); NumberingSymbolRunProperties numberingSymbolRunProperties9 = new NumberingSymbolRunProperties(); RunFonts runFonts9 = new RunFonts() { Hint = FontTypeHintValues.Default }; numberingSymbolRunProperties9.Append(runFonts9); level9.Append(startNumberingValue9); level9.Append(numberingFormat9); level9.Append(levelText9); level9.Append(levelJustification9); level9.Append(previousParagraphProperties9); level9.Append(numberingSymbolRunProperties9); abstractNum1.Append(nsid1); abstractNum1.Append(multiLevelType1); abstractNum1.Append(templateCode1); abstractNum1.Append(level1); abstractNum1.Append(level2); abstractNum1.Append(level3); abstractNum1.Append(level4); abstractNum1.Append(level5); abstractNum1.Append(level6); abstractNum1.Append(level7); abstractNum1.Append(level8); abstractNum1.Append(level9); NumberingInstance numberingInstance1 = new NumberingInstance() { NumberID = 1 }; AbstractNumId abstractNumId1 = new AbstractNumId() { Val = 0 }; LevelOverride levelOverride1 = new LevelOverride() { LevelIndex = 0 }; StartOverrideNumberingValue startOverrideNumberingValue1 = new StartOverrideNumberingValue() { Val = 2 }; levelOverride1.Append(startOverrideNumberingValue1); LevelOverride levelOverride2 = new LevelOverride() { LevelIndex = 1 }; StartOverrideNumberingValue startOverrideNumberingValue2 = new StartOverrideNumberingValue() { Val = 1 }; levelOverride2.Append(startOverrideNumberingValue2); LevelOverride levelOverride3 = new LevelOverride() { LevelIndex = 2 }; StartOverrideNumberingValue startOverrideNumberingValue3 = new StartOverrideNumberingValue() { Val = 1 }; levelOverride3.Append(startOverrideNumberingValue3); LevelOverride levelOverride4 = new LevelOverride() { LevelIndex = 3 }; StartOverrideNumberingValue startOverrideNumberingValue4 = new StartOverrideNumberingValue() { Val = 1 }; levelOverride4.Append(startOverrideNumberingValue4); LevelOverride levelOverride5 = new LevelOverride() { LevelIndex = 4 }; StartOverrideNumberingValue startOverrideNumberingValue5 = new StartOverrideNumberingValue() { Val = 1 }; levelOverride5.Append(startOverrideNumberingValue5); LevelOverride levelOverride6 = new LevelOverride() { LevelIndex = 5 }; StartOverrideNumberingValue startOverrideNumberingValue6 = new StartOverrideNumberingValue() { Val = 1 }; levelOverride6.Append(startOverrideNumberingValue6); LevelOverride levelOverride7 = new LevelOverride() { LevelIndex = 6 }; StartOverrideNumberingValue startOverrideNumberingValue7 = new StartOverrideNumberingValue() { Val = 1 }; levelOverride7.Append(startOverrideNumberingValue7); LevelOverride levelOverride8 = new LevelOverride() { LevelIndex = 7 }; StartOverrideNumberingValue startOverrideNumberingValue8 = new StartOverrideNumberingValue() { Val = 1 }; levelOverride8.Append(startOverrideNumberingValue8); LevelOverride levelOverride9 = new LevelOverride() { LevelIndex = 8 }; StartOverrideNumberingValue startOverrideNumberingValue9 = new StartOverrideNumberingValue() { Val = 1 }; levelOverride9.Append(startOverrideNumberingValue9); numberingInstance1.Append(abstractNumId1); numberingInstance1.Append(levelOverride1); numberingInstance1.Append(levelOverride2); numberingInstance1.Append(levelOverride3); numberingInstance1.Append(levelOverride4); numberingInstance1.Append(levelOverride5); numberingInstance1.Append(levelOverride6); numberingInstance1.Append(levelOverride7); numberingInstance1.Append(levelOverride8); numberingInstance1.Append(levelOverride9); NumberingInstance numberingInstance2 = new NumberingInstance() { NumberID = 2 }; AbstractNumId abstractNumId2 = new AbstractNumId() { Val = 0 }; numberingInstance2.Append(abstractNumId2); numbering1.Append(abstractNum1); numbering1.Append(numberingInstance1); numbering1.Append(numberingInstance2); return(numbering1); }
// Generates content of styleDefinitionsPart1. private void GenerateStyleDefinitionsPart1Content(StyleDefinitionsPart styleDefinitionsPart1) { Styles styles1 = new Styles() { MCAttributes = new MarkupCompatibilityAttributes() { Ignorable = "w14 w15" } }; styles1.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); styles1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); styles1.AddNamespaceDeclaration("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main"); styles1.AddNamespaceDeclaration("w14", "http://schemas.microsoft.com/office/word/2010/wordml"); styles1.AddNamespaceDeclaration("w15", "http://schemas.microsoft.com/office/word/2012/wordml"); DocDefaults docDefaults1 = new DocDefaults(); RunPropertiesDefault runPropertiesDefault1 = new RunPropertiesDefault(); RunPropertiesBaseStyle runPropertiesBaseStyle1 = new RunPropertiesBaseStyle(); RunFonts runFonts88 = new RunFonts() { AsciiTheme = ThemeFontValues.MinorHighAnsi, HighAnsiTheme = ThemeFontValues.MinorHighAnsi, EastAsiaTheme = ThemeFontValues.MinorHighAnsi, ComplexScriptTheme = ThemeFontValues.MinorBidi }; FontSize fontSize74 = new FontSize() { Val = "22" }; FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript() { Val = "22" }; Languages languages1 = new Languages() { Val = "en-NZ", EastAsia = "en-US", Bidi = "ar-SA" }; runPropertiesBaseStyle1.Append(runFonts88); runPropertiesBaseStyle1.Append(fontSize74); runPropertiesBaseStyle1.Append(fontSizeComplexScript1); runPropertiesBaseStyle1.Append(languages1); runPropertiesDefault1.Append(runPropertiesBaseStyle1); ParagraphPropertiesDefault paragraphPropertiesDefault1 = new ParagraphPropertiesDefault(); ParagraphPropertiesBaseStyle paragraphPropertiesBaseStyle1 = new ParagraphPropertiesBaseStyle(); SpacingBetweenLines spacingBetweenLines41 = new SpacingBetweenLines() { After = "160", Line = "259", LineRule = LineSpacingRuleValues.Auto }; paragraphPropertiesBaseStyle1.Append(spacingBetweenLines41); paragraphPropertiesDefault1.Append(paragraphPropertiesBaseStyle1); docDefaults1.Append(runPropertiesDefault1); docDefaults1.Append(paragraphPropertiesDefault1); LatentStyles latentStyles1 = new LatentStyles() { DefaultLockedState = false, DefaultUiPriority = 99, DefaultSemiHidden = false, DefaultUnhideWhenUsed = false, DefaultPrimaryStyle = false, Count = 371 }; LatentStyleExceptionInfo latentStyleExceptionInfo1 = new LatentStyleExceptionInfo() { Name = "Normal", UiPriority = 0, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo2 = new LatentStyleExceptionInfo() { Name = "heading 1", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo3 = new LatentStyleExceptionInfo() { Name = "heading 2", UiPriority = 9, SemiHidden = true, UnhideWhenUsed = true, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo4 = new LatentStyleExceptionInfo() { Name = "heading 3", UiPriority = 9, SemiHidden = true, UnhideWhenUsed = true, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo5 = new LatentStyleExceptionInfo() { Name = "heading 4", UiPriority = 9, SemiHidden = true, UnhideWhenUsed = true, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo6 = new LatentStyleExceptionInfo() { Name = "heading 5", UiPriority = 9, SemiHidden = true, UnhideWhenUsed = true, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo7 = new LatentStyleExceptionInfo() { Name = "heading 6", UiPriority = 9, SemiHidden = true, UnhideWhenUsed = true, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo8 = new LatentStyleExceptionInfo() { Name = "heading 7", UiPriority = 9, SemiHidden = true, UnhideWhenUsed = true, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo9 = new LatentStyleExceptionInfo() { Name = "heading 8", UiPriority = 9, SemiHidden = true, UnhideWhenUsed = true, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo10 = new LatentStyleExceptionInfo() { Name = "heading 9", UiPriority = 9, SemiHidden = true, UnhideWhenUsed = true, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo11 = new LatentStyleExceptionInfo() { Name = "index 1", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo12 = new LatentStyleExceptionInfo() { Name = "index 2", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo13 = new LatentStyleExceptionInfo() { Name = "index 3", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo14 = new LatentStyleExceptionInfo() { Name = "index 4", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo15 = new LatentStyleExceptionInfo() { Name = "index 5", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo16 = new LatentStyleExceptionInfo() { Name = "index 6", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo17 = new LatentStyleExceptionInfo() { Name = "index 7", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo18 = new LatentStyleExceptionInfo() { Name = "index 8", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo19 = new LatentStyleExceptionInfo() { Name = "index 9", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo20 = new LatentStyleExceptionInfo() { Name = "toc 1", UiPriority = 39, SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo21 = new LatentStyleExceptionInfo() { Name = "toc 2", UiPriority = 39, SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo22 = new LatentStyleExceptionInfo() { Name = "toc 3", UiPriority = 39, SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo23 = new LatentStyleExceptionInfo() { Name = "toc 4", UiPriority = 39, SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo24 = new LatentStyleExceptionInfo() { Name = "toc 5", UiPriority = 39, SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo25 = new LatentStyleExceptionInfo() { Name = "toc 6", UiPriority = 39, SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo26 = new LatentStyleExceptionInfo() { Name = "toc 7", UiPriority = 39, SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo27 = new LatentStyleExceptionInfo() { Name = "toc 8", UiPriority = 39, SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo28 = new LatentStyleExceptionInfo() { Name = "toc 9", UiPriority = 39, SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo29 = new LatentStyleExceptionInfo() { Name = "Normal Indent", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo30 = new LatentStyleExceptionInfo() { Name = "footnote text", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo31 = new LatentStyleExceptionInfo() { Name = "annotation text", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo32 = new LatentStyleExceptionInfo() { Name = "header", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo33 = new LatentStyleExceptionInfo() { Name = "footer", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo34 = new LatentStyleExceptionInfo() { Name = "index heading", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo35 = new LatentStyleExceptionInfo() { Name = "caption", UiPriority = 35, SemiHidden = true, UnhideWhenUsed = true, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo36 = new LatentStyleExceptionInfo() { Name = "table of figures", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo37 = new LatentStyleExceptionInfo() { Name = "envelope address", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo38 = new LatentStyleExceptionInfo() { Name = "envelope return", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo39 = new LatentStyleExceptionInfo() { Name = "footnote reference", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo40 = new LatentStyleExceptionInfo() { Name = "annotation reference", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo41 = new LatentStyleExceptionInfo() { Name = "line number", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo42 = new LatentStyleExceptionInfo() { Name = "page number", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo43 = new LatentStyleExceptionInfo() { Name = "endnote reference", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo44 = new LatentStyleExceptionInfo() { Name = "endnote text", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo45 = new LatentStyleExceptionInfo() { Name = "table of authorities", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo46 = new LatentStyleExceptionInfo() { Name = "macro", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo47 = new LatentStyleExceptionInfo() { Name = "toa heading", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo48 = new LatentStyleExceptionInfo() { Name = "List", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo49 = new LatentStyleExceptionInfo() { Name = "List Bullet", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo50 = new LatentStyleExceptionInfo() { Name = "List Number", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo51 = new LatentStyleExceptionInfo() { Name = "List 2", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo52 = new LatentStyleExceptionInfo() { Name = "List 3", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo53 = new LatentStyleExceptionInfo() { Name = "List 4", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo54 = new LatentStyleExceptionInfo() { Name = "List 5", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo55 = new LatentStyleExceptionInfo() { Name = "List Bullet 2", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo56 = new LatentStyleExceptionInfo() { Name = "List Bullet 3", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo57 = new LatentStyleExceptionInfo() { Name = "List Bullet 4", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo58 = new LatentStyleExceptionInfo() { Name = "List Bullet 5", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo59 = new LatentStyleExceptionInfo() { Name = "List Number 2", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo60 = new LatentStyleExceptionInfo() { Name = "List Number 3", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo61 = new LatentStyleExceptionInfo() { Name = "List Number 4", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo62 = new LatentStyleExceptionInfo() { Name = "List Number 5", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo63 = new LatentStyleExceptionInfo() { Name = "Title", UiPriority = 10, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo64 = new LatentStyleExceptionInfo() { Name = "Closing", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo65 = new LatentStyleExceptionInfo() { Name = "Signature", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo66 = new LatentStyleExceptionInfo() { Name = "Default Paragraph Font", UiPriority = 1, SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo67 = new LatentStyleExceptionInfo() { Name = "Body Text", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo68 = new LatentStyleExceptionInfo() { Name = "Body Text Indent", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo69 = new LatentStyleExceptionInfo() { Name = "List Continue", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo70 = new LatentStyleExceptionInfo() { Name = "List Continue 2", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo71 = new LatentStyleExceptionInfo() { Name = "List Continue 3", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo72 = new LatentStyleExceptionInfo() { Name = "List Continue 4", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo73 = new LatentStyleExceptionInfo() { Name = "List Continue 5", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo74 = new LatentStyleExceptionInfo() { Name = "Message Header", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo75 = new LatentStyleExceptionInfo() { Name = "Subtitle", UiPriority = 11, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo76 = new LatentStyleExceptionInfo() { Name = "Salutation", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo77 = new LatentStyleExceptionInfo() { Name = "Date", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo78 = new LatentStyleExceptionInfo() { Name = "Body Text First Indent", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo79 = new LatentStyleExceptionInfo() { Name = "Body Text First Indent 2", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo80 = new LatentStyleExceptionInfo() { Name = "Note Heading", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo81 = new LatentStyleExceptionInfo() { Name = "Body Text 2", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo82 = new LatentStyleExceptionInfo() { Name = "Body Text 3", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo83 = new LatentStyleExceptionInfo() { Name = "Body Text Indent 2", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo84 = new LatentStyleExceptionInfo() { Name = "Body Text Indent 3", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo85 = new LatentStyleExceptionInfo() { Name = "Block Text", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo86 = new LatentStyleExceptionInfo() { Name = "Hyperlink", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo87 = new LatentStyleExceptionInfo() { Name = "FollowedHyperlink", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo88 = new LatentStyleExceptionInfo() { Name = "Strong", UiPriority = 22, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo89 = new LatentStyleExceptionInfo() { Name = "Emphasis", UiPriority = 20, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo90 = new LatentStyleExceptionInfo() { Name = "Document Map", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo91 = new LatentStyleExceptionInfo() { Name = "Plain Text", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo92 = new LatentStyleExceptionInfo() { Name = "E-mail Signature", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo93 = new LatentStyleExceptionInfo() { Name = "HTML Top of Form", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo94 = new LatentStyleExceptionInfo() { Name = "HTML Bottom of Form", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo95 = new LatentStyleExceptionInfo() { Name = "Normal (Web)", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo96 = new LatentStyleExceptionInfo() { Name = "HTML Acronym", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo97 = new LatentStyleExceptionInfo() { Name = "HTML Address", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo98 = new LatentStyleExceptionInfo() { Name = "HTML Cite", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo99 = new LatentStyleExceptionInfo() { Name = "HTML Code", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo100 = new LatentStyleExceptionInfo() { Name = "HTML Definition", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo101 = new LatentStyleExceptionInfo() { Name = "HTML Keyboard", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo102 = new LatentStyleExceptionInfo() { Name = "HTML Preformatted", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo103 = new LatentStyleExceptionInfo() { Name = "HTML Sample", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo104 = new LatentStyleExceptionInfo() { Name = "HTML Typewriter", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo105 = new LatentStyleExceptionInfo() { Name = "HTML Variable", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo106 = new LatentStyleExceptionInfo() { Name = "Normal Table", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo107 = new LatentStyleExceptionInfo() { Name = "annotation subject", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo108 = new LatentStyleExceptionInfo() { Name = "No List", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo109 = new LatentStyleExceptionInfo() { Name = "Outline List 1", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo110 = new LatentStyleExceptionInfo() { Name = "Outline List 2", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo111 = new LatentStyleExceptionInfo() { Name = "Outline List 3", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo112 = new LatentStyleExceptionInfo() { Name = "Table Simple 1", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo113 = new LatentStyleExceptionInfo() { Name = "Table Simple 2", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo114 = new LatentStyleExceptionInfo() { Name = "Table Simple 3", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo115 = new LatentStyleExceptionInfo() { Name = "Table Classic 1", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo116 = new LatentStyleExceptionInfo() { Name = "Table Classic 2", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo117 = new LatentStyleExceptionInfo() { Name = "Table Classic 3", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo118 = new LatentStyleExceptionInfo() { Name = "Table Classic 4", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo119 = new LatentStyleExceptionInfo() { Name = "Table Colorful 1", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo120 = new LatentStyleExceptionInfo() { Name = "Table Colorful 2", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo121 = new LatentStyleExceptionInfo() { Name = "Table Colorful 3", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo122 = new LatentStyleExceptionInfo() { Name = "Table Columns 1", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo123 = new LatentStyleExceptionInfo() { Name = "Table Columns 2", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo124 = new LatentStyleExceptionInfo() { Name = "Table Columns 3", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo125 = new LatentStyleExceptionInfo() { Name = "Table Columns 4", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo126 = new LatentStyleExceptionInfo() { Name = "Table Columns 5", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo127 = new LatentStyleExceptionInfo() { Name = "Table Grid 1", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo128 = new LatentStyleExceptionInfo() { Name = "Table Grid 2", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo129 = new LatentStyleExceptionInfo() { Name = "Table Grid 3", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo130 = new LatentStyleExceptionInfo() { Name = "Table Grid 4", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo131 = new LatentStyleExceptionInfo() { Name = "Table Grid 5", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo132 = new LatentStyleExceptionInfo() { Name = "Table Grid 6", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo133 = new LatentStyleExceptionInfo() { Name = "Table Grid 7", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo134 = new LatentStyleExceptionInfo() { Name = "Table Grid 8", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo135 = new LatentStyleExceptionInfo() { Name = "Table List 1", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo136 = new LatentStyleExceptionInfo() { Name = "Table List 2", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo137 = new LatentStyleExceptionInfo() { Name = "Table List 3", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo138 = new LatentStyleExceptionInfo() { Name = "Table List 4", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo139 = new LatentStyleExceptionInfo() { Name = "Table List 5", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo140 = new LatentStyleExceptionInfo() { Name = "Table List 6", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo141 = new LatentStyleExceptionInfo() { Name = "Table List 7", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo142 = new LatentStyleExceptionInfo() { Name = "Table List 8", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo143 = new LatentStyleExceptionInfo() { Name = "Table 3D effects 1", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo144 = new LatentStyleExceptionInfo() { Name = "Table 3D effects 2", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo145 = new LatentStyleExceptionInfo() { Name = "Table 3D effects 3", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo146 = new LatentStyleExceptionInfo() { Name = "Table Contemporary", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo147 = new LatentStyleExceptionInfo() { Name = "Table Elegant", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo148 = new LatentStyleExceptionInfo() { Name = "Table Professional", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo149 = new LatentStyleExceptionInfo() { Name = "Table Subtle 1", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo150 = new LatentStyleExceptionInfo() { Name = "Table Subtle 2", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo151 = new LatentStyleExceptionInfo() { Name = "Table Web 1", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo152 = new LatentStyleExceptionInfo() { Name = "Table Web 2", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo153 = new LatentStyleExceptionInfo() { Name = "Table Web 3", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo154 = new LatentStyleExceptionInfo() { Name = "Balloon Text", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo155 = new LatentStyleExceptionInfo() { Name = "Table Grid", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo156 = new LatentStyleExceptionInfo() { Name = "Table Theme", SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo157 = new LatentStyleExceptionInfo() { Name = "Placeholder Text", SemiHidden = true }; LatentStyleExceptionInfo latentStyleExceptionInfo158 = new LatentStyleExceptionInfo() { Name = "No Spacing", UiPriority = 1, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo159 = new LatentStyleExceptionInfo() { Name = "Light Shading", UiPriority = 60 }; LatentStyleExceptionInfo latentStyleExceptionInfo160 = new LatentStyleExceptionInfo() { Name = "Light List", UiPriority = 61 }; LatentStyleExceptionInfo latentStyleExceptionInfo161 = new LatentStyleExceptionInfo() { Name = "Light Grid", UiPriority = 62 }; LatentStyleExceptionInfo latentStyleExceptionInfo162 = new LatentStyleExceptionInfo() { Name = "Medium Shading 1", UiPriority = 63 }; LatentStyleExceptionInfo latentStyleExceptionInfo163 = new LatentStyleExceptionInfo() { Name = "Medium Shading 2", UiPriority = 64 }; LatentStyleExceptionInfo latentStyleExceptionInfo164 = new LatentStyleExceptionInfo() { Name = "Medium List 1", UiPriority = 65 }; LatentStyleExceptionInfo latentStyleExceptionInfo165 = new LatentStyleExceptionInfo() { Name = "Medium List 2", UiPriority = 66 }; LatentStyleExceptionInfo latentStyleExceptionInfo166 = new LatentStyleExceptionInfo() { Name = "Medium Grid 1", UiPriority = 67 }; LatentStyleExceptionInfo latentStyleExceptionInfo167 = new LatentStyleExceptionInfo() { Name = "Medium Grid 2", UiPriority = 68 }; LatentStyleExceptionInfo latentStyleExceptionInfo168 = new LatentStyleExceptionInfo() { Name = "Medium Grid 3", UiPriority = 69 }; LatentStyleExceptionInfo latentStyleExceptionInfo169 = new LatentStyleExceptionInfo() { Name = "Dark List", UiPriority = 70 }; LatentStyleExceptionInfo latentStyleExceptionInfo170 = new LatentStyleExceptionInfo() { Name = "Colorful Shading", UiPriority = 71 }; LatentStyleExceptionInfo latentStyleExceptionInfo171 = new LatentStyleExceptionInfo() { Name = "Colorful List", UiPriority = 72 }; LatentStyleExceptionInfo latentStyleExceptionInfo172 = new LatentStyleExceptionInfo() { Name = "Colorful Grid", UiPriority = 73 }; LatentStyleExceptionInfo latentStyleExceptionInfo173 = new LatentStyleExceptionInfo() { Name = "Light Shading Accent 1", UiPriority = 60 }; LatentStyleExceptionInfo latentStyleExceptionInfo174 = new LatentStyleExceptionInfo() { Name = "Light List Accent 1", UiPriority = 61 }; LatentStyleExceptionInfo latentStyleExceptionInfo175 = new LatentStyleExceptionInfo() { Name = "Light Grid Accent 1", UiPriority = 62 }; LatentStyleExceptionInfo latentStyleExceptionInfo176 = new LatentStyleExceptionInfo() { Name = "Medium Shading 1 Accent 1", UiPriority = 63 }; LatentStyleExceptionInfo latentStyleExceptionInfo177 = new LatentStyleExceptionInfo() { Name = "Medium Shading 2 Accent 1", UiPriority = 64 }; LatentStyleExceptionInfo latentStyleExceptionInfo178 = new LatentStyleExceptionInfo() { Name = "Medium List 1 Accent 1", UiPriority = 65 }; LatentStyleExceptionInfo latentStyleExceptionInfo179 = new LatentStyleExceptionInfo() { Name = "Revision", SemiHidden = true }; LatentStyleExceptionInfo latentStyleExceptionInfo180 = new LatentStyleExceptionInfo() { Name = "List Paragraph", UiPriority = 34, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo181 = new LatentStyleExceptionInfo() { Name = "Quote", UiPriority = 29, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo182 = new LatentStyleExceptionInfo() { Name = "Intense Quote", UiPriority = 30, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo183 = new LatentStyleExceptionInfo() { Name = "Medium List 2 Accent 1", UiPriority = 66 }; LatentStyleExceptionInfo latentStyleExceptionInfo184 = new LatentStyleExceptionInfo() { Name = "Medium Grid 1 Accent 1", UiPriority = 67 }; LatentStyleExceptionInfo latentStyleExceptionInfo185 = new LatentStyleExceptionInfo() { Name = "Medium Grid 2 Accent 1", UiPriority = 68 }; LatentStyleExceptionInfo latentStyleExceptionInfo186 = new LatentStyleExceptionInfo() { Name = "Medium Grid 3 Accent 1", UiPriority = 69 }; LatentStyleExceptionInfo latentStyleExceptionInfo187 = new LatentStyleExceptionInfo() { Name = "Dark List Accent 1", UiPriority = 70 }; LatentStyleExceptionInfo latentStyleExceptionInfo188 = new LatentStyleExceptionInfo() { Name = "Colorful Shading Accent 1", UiPriority = 71 }; LatentStyleExceptionInfo latentStyleExceptionInfo189 = new LatentStyleExceptionInfo() { Name = "Colorful List Accent 1", UiPriority = 72 }; LatentStyleExceptionInfo latentStyleExceptionInfo190 = new LatentStyleExceptionInfo() { Name = "Colorful Grid Accent 1", UiPriority = 73 }; LatentStyleExceptionInfo latentStyleExceptionInfo191 = new LatentStyleExceptionInfo() { Name = "Light Shading Accent 2", UiPriority = 60 }; LatentStyleExceptionInfo latentStyleExceptionInfo192 = new LatentStyleExceptionInfo() { Name = "Light List Accent 2", UiPriority = 61 }; LatentStyleExceptionInfo latentStyleExceptionInfo193 = new LatentStyleExceptionInfo() { Name = "Light Grid Accent 2", UiPriority = 62 }; LatentStyleExceptionInfo latentStyleExceptionInfo194 = new LatentStyleExceptionInfo() { Name = "Medium Shading 1 Accent 2", UiPriority = 63 }; LatentStyleExceptionInfo latentStyleExceptionInfo195 = new LatentStyleExceptionInfo() { Name = "Medium Shading 2 Accent 2", UiPriority = 64 }; LatentStyleExceptionInfo latentStyleExceptionInfo196 = new LatentStyleExceptionInfo() { Name = "Medium List 1 Accent 2", UiPriority = 65 }; LatentStyleExceptionInfo latentStyleExceptionInfo197 = new LatentStyleExceptionInfo() { Name = "Medium List 2 Accent 2", UiPriority = 66 }; LatentStyleExceptionInfo latentStyleExceptionInfo198 = new LatentStyleExceptionInfo() { Name = "Medium Grid 1 Accent 2", UiPriority = 67 }; LatentStyleExceptionInfo latentStyleExceptionInfo199 = new LatentStyleExceptionInfo() { Name = "Medium Grid 2 Accent 2", UiPriority = 68 }; LatentStyleExceptionInfo latentStyleExceptionInfo200 = new LatentStyleExceptionInfo() { Name = "Medium Grid 3 Accent 2", UiPriority = 69 }; LatentStyleExceptionInfo latentStyleExceptionInfo201 = new LatentStyleExceptionInfo() { Name = "Dark List Accent 2", UiPriority = 70 }; LatentStyleExceptionInfo latentStyleExceptionInfo202 = new LatentStyleExceptionInfo() { Name = "Colorful Shading Accent 2", UiPriority = 71 }; LatentStyleExceptionInfo latentStyleExceptionInfo203 = new LatentStyleExceptionInfo() { Name = "Colorful List Accent 2", UiPriority = 72 }; LatentStyleExceptionInfo latentStyleExceptionInfo204 = new LatentStyleExceptionInfo() { Name = "Colorful Grid Accent 2", UiPriority = 73 }; LatentStyleExceptionInfo latentStyleExceptionInfo205 = new LatentStyleExceptionInfo() { Name = "Light Shading Accent 3", UiPriority = 60 }; LatentStyleExceptionInfo latentStyleExceptionInfo206 = new LatentStyleExceptionInfo() { Name = "Light List Accent 3", UiPriority = 61 }; LatentStyleExceptionInfo latentStyleExceptionInfo207 = new LatentStyleExceptionInfo() { Name = "Light Grid Accent 3", UiPriority = 62 }; LatentStyleExceptionInfo latentStyleExceptionInfo208 = new LatentStyleExceptionInfo() { Name = "Medium Shading 1 Accent 3", UiPriority = 63 }; LatentStyleExceptionInfo latentStyleExceptionInfo209 = new LatentStyleExceptionInfo() { Name = "Medium Shading 2 Accent 3", UiPriority = 64 }; LatentStyleExceptionInfo latentStyleExceptionInfo210 = new LatentStyleExceptionInfo() { Name = "Medium List 1 Accent 3", UiPriority = 65 }; LatentStyleExceptionInfo latentStyleExceptionInfo211 = new LatentStyleExceptionInfo() { Name = "Medium List 2 Accent 3", UiPriority = 66 }; LatentStyleExceptionInfo latentStyleExceptionInfo212 = new LatentStyleExceptionInfo() { Name = "Medium Grid 1 Accent 3", UiPriority = 67 }; LatentStyleExceptionInfo latentStyleExceptionInfo213 = new LatentStyleExceptionInfo() { Name = "Medium Grid 2 Accent 3", UiPriority = 68 }; LatentStyleExceptionInfo latentStyleExceptionInfo214 = new LatentStyleExceptionInfo() { Name = "Medium Grid 3 Accent 3", UiPriority = 69 }; LatentStyleExceptionInfo latentStyleExceptionInfo215 = new LatentStyleExceptionInfo() { Name = "Dark List Accent 3", UiPriority = 70 }; LatentStyleExceptionInfo latentStyleExceptionInfo216 = new LatentStyleExceptionInfo() { Name = "Colorful Shading Accent 3", UiPriority = 71 }; LatentStyleExceptionInfo latentStyleExceptionInfo217 = new LatentStyleExceptionInfo() { Name = "Colorful List Accent 3", UiPriority = 72 }; LatentStyleExceptionInfo latentStyleExceptionInfo218 = new LatentStyleExceptionInfo() { Name = "Colorful Grid Accent 3", UiPriority = 73 }; LatentStyleExceptionInfo latentStyleExceptionInfo219 = new LatentStyleExceptionInfo() { Name = "Light Shading Accent 4", UiPriority = 60 }; LatentStyleExceptionInfo latentStyleExceptionInfo220 = new LatentStyleExceptionInfo() { Name = "Light List Accent 4", UiPriority = 61 }; LatentStyleExceptionInfo latentStyleExceptionInfo221 = new LatentStyleExceptionInfo() { Name = "Light Grid Accent 4", UiPriority = 62 }; LatentStyleExceptionInfo latentStyleExceptionInfo222 = new LatentStyleExceptionInfo() { Name = "Medium Shading 1 Accent 4", UiPriority = 63 }; LatentStyleExceptionInfo latentStyleExceptionInfo223 = new LatentStyleExceptionInfo() { Name = "Medium Shading 2 Accent 4", UiPriority = 64 }; LatentStyleExceptionInfo latentStyleExceptionInfo224 = new LatentStyleExceptionInfo() { Name = "Medium List 1 Accent 4", UiPriority = 65 }; LatentStyleExceptionInfo latentStyleExceptionInfo225 = new LatentStyleExceptionInfo() { Name = "Medium List 2 Accent 4", UiPriority = 66 }; LatentStyleExceptionInfo latentStyleExceptionInfo226 = new LatentStyleExceptionInfo() { Name = "Medium Grid 1 Accent 4", UiPriority = 67 }; LatentStyleExceptionInfo latentStyleExceptionInfo227 = new LatentStyleExceptionInfo() { Name = "Medium Grid 2 Accent 4", UiPriority = 68 }; LatentStyleExceptionInfo latentStyleExceptionInfo228 = new LatentStyleExceptionInfo() { Name = "Medium Grid 3 Accent 4", UiPriority = 69 }; LatentStyleExceptionInfo latentStyleExceptionInfo229 = new LatentStyleExceptionInfo() { Name = "Dark List Accent 4", UiPriority = 70 }; LatentStyleExceptionInfo latentStyleExceptionInfo230 = new LatentStyleExceptionInfo() { Name = "Colorful Shading Accent 4", UiPriority = 71 }; LatentStyleExceptionInfo latentStyleExceptionInfo231 = new LatentStyleExceptionInfo() { Name = "Colorful List Accent 4", UiPriority = 72 }; LatentStyleExceptionInfo latentStyleExceptionInfo232 = new LatentStyleExceptionInfo() { Name = "Colorful Grid Accent 4", UiPriority = 73 }; LatentStyleExceptionInfo latentStyleExceptionInfo233 = new LatentStyleExceptionInfo() { Name = "Light Shading Accent 5", UiPriority = 60 }; LatentStyleExceptionInfo latentStyleExceptionInfo234 = new LatentStyleExceptionInfo() { Name = "Light List Accent 5", UiPriority = 61 }; LatentStyleExceptionInfo latentStyleExceptionInfo235 = new LatentStyleExceptionInfo() { Name = "Light Grid Accent 5", UiPriority = 62 }; LatentStyleExceptionInfo latentStyleExceptionInfo236 = new LatentStyleExceptionInfo() { Name = "Medium Shading 1 Accent 5", UiPriority = 63 }; LatentStyleExceptionInfo latentStyleExceptionInfo237 = new LatentStyleExceptionInfo() { Name = "Medium Shading 2 Accent 5", UiPriority = 64 }; LatentStyleExceptionInfo latentStyleExceptionInfo238 = new LatentStyleExceptionInfo() { Name = "Medium List 1 Accent 5", UiPriority = 65 }; LatentStyleExceptionInfo latentStyleExceptionInfo239 = new LatentStyleExceptionInfo() { Name = "Medium List 2 Accent 5", UiPriority = 66 }; LatentStyleExceptionInfo latentStyleExceptionInfo240 = new LatentStyleExceptionInfo() { Name = "Medium Grid 1 Accent 5", UiPriority = 67 }; LatentStyleExceptionInfo latentStyleExceptionInfo241 = new LatentStyleExceptionInfo() { Name = "Medium Grid 2 Accent 5", UiPriority = 68 }; LatentStyleExceptionInfo latentStyleExceptionInfo242 = new LatentStyleExceptionInfo() { Name = "Medium Grid 3 Accent 5", UiPriority = 69 }; LatentStyleExceptionInfo latentStyleExceptionInfo243 = new LatentStyleExceptionInfo() { Name = "Dark List Accent 5", UiPriority = 70 }; LatentStyleExceptionInfo latentStyleExceptionInfo244 = new LatentStyleExceptionInfo() { Name = "Colorful Shading Accent 5", UiPriority = 71 }; LatentStyleExceptionInfo latentStyleExceptionInfo245 = new LatentStyleExceptionInfo() { Name = "Colorful List Accent 5", UiPriority = 72 }; LatentStyleExceptionInfo latentStyleExceptionInfo246 = new LatentStyleExceptionInfo() { Name = "Colorful Grid Accent 5", UiPriority = 73 }; LatentStyleExceptionInfo latentStyleExceptionInfo247 = new LatentStyleExceptionInfo() { Name = "Light Shading Accent 6", UiPriority = 60 }; LatentStyleExceptionInfo latentStyleExceptionInfo248 = new LatentStyleExceptionInfo() { Name = "Light List Accent 6", UiPriority = 61 }; LatentStyleExceptionInfo latentStyleExceptionInfo249 = new LatentStyleExceptionInfo() { Name = "Light Grid Accent 6", UiPriority = 62 }; LatentStyleExceptionInfo latentStyleExceptionInfo250 = new LatentStyleExceptionInfo() { Name = "Medium Shading 1 Accent 6", UiPriority = 63 }; LatentStyleExceptionInfo latentStyleExceptionInfo251 = new LatentStyleExceptionInfo() { Name = "Medium Shading 2 Accent 6", UiPriority = 64 }; LatentStyleExceptionInfo latentStyleExceptionInfo252 = new LatentStyleExceptionInfo() { Name = "Medium List 1 Accent 6", UiPriority = 65 }; LatentStyleExceptionInfo latentStyleExceptionInfo253 = new LatentStyleExceptionInfo() { Name = "Medium List 2 Accent 6", UiPriority = 66 }; LatentStyleExceptionInfo latentStyleExceptionInfo254 = new LatentStyleExceptionInfo() { Name = "Medium Grid 1 Accent 6", UiPriority = 67 }; LatentStyleExceptionInfo latentStyleExceptionInfo255 = new LatentStyleExceptionInfo() { Name = "Medium Grid 2 Accent 6", UiPriority = 68 }; LatentStyleExceptionInfo latentStyleExceptionInfo256 = new LatentStyleExceptionInfo() { Name = "Medium Grid 3 Accent 6", UiPriority = 69 }; LatentStyleExceptionInfo latentStyleExceptionInfo257 = new LatentStyleExceptionInfo() { Name = "Dark List Accent 6", UiPriority = 70 }; LatentStyleExceptionInfo latentStyleExceptionInfo258 = new LatentStyleExceptionInfo() { Name = "Colorful Shading Accent 6", UiPriority = 71 }; LatentStyleExceptionInfo latentStyleExceptionInfo259 = new LatentStyleExceptionInfo() { Name = "Colorful List Accent 6", UiPriority = 72 }; LatentStyleExceptionInfo latentStyleExceptionInfo260 = new LatentStyleExceptionInfo() { Name = "Colorful Grid Accent 6", UiPriority = 73 }; LatentStyleExceptionInfo latentStyleExceptionInfo261 = new LatentStyleExceptionInfo() { Name = "Subtle Emphasis", UiPriority = 19, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo262 = new LatentStyleExceptionInfo() { Name = "Intense Emphasis", UiPriority = 21, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo263 = new LatentStyleExceptionInfo() { Name = "Subtle Reference", UiPriority = 31, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo264 = new LatentStyleExceptionInfo() { Name = "Intense Reference", UiPriority = 32, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo265 = new LatentStyleExceptionInfo() { Name = "Book Title", UiPriority = 33, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo266 = new LatentStyleExceptionInfo() { Name = "Bibliography", UiPriority = 37, SemiHidden = true, UnhideWhenUsed = true }; LatentStyleExceptionInfo latentStyleExceptionInfo267 = new LatentStyleExceptionInfo() { Name = "TOC Heading", UiPriority = 39, SemiHidden = true, UnhideWhenUsed = true, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo268 = new LatentStyleExceptionInfo() { Name = "Plain Table 1", UiPriority = 41 }; LatentStyleExceptionInfo latentStyleExceptionInfo269 = new LatentStyleExceptionInfo() { Name = "Plain Table 2", UiPriority = 42 }; LatentStyleExceptionInfo latentStyleExceptionInfo270 = new LatentStyleExceptionInfo() { Name = "Plain Table 3", UiPriority = 43 }; LatentStyleExceptionInfo latentStyleExceptionInfo271 = new LatentStyleExceptionInfo() { Name = "Plain Table 4", UiPriority = 44 }; LatentStyleExceptionInfo latentStyleExceptionInfo272 = new LatentStyleExceptionInfo() { Name = "Plain Table 5", UiPriority = 45 }; LatentStyleExceptionInfo latentStyleExceptionInfo273 = new LatentStyleExceptionInfo() { Name = "Grid Table Light", UiPriority = 40 }; LatentStyleExceptionInfo latentStyleExceptionInfo274 = new LatentStyleExceptionInfo() { Name = "Grid Table 1 Light", UiPriority = 46 }; LatentStyleExceptionInfo latentStyleExceptionInfo275 = new LatentStyleExceptionInfo() { Name = "Grid Table 2", UiPriority = 47 }; LatentStyleExceptionInfo latentStyleExceptionInfo276 = new LatentStyleExceptionInfo() { Name = "Grid Table 3", UiPriority = 48 }; LatentStyleExceptionInfo latentStyleExceptionInfo277 = new LatentStyleExceptionInfo() { Name = "Grid Table 4", UiPriority = 49 }; LatentStyleExceptionInfo latentStyleExceptionInfo278 = new LatentStyleExceptionInfo() { Name = "Grid Table 5 Dark", UiPriority = 50 }; LatentStyleExceptionInfo latentStyleExceptionInfo279 = new LatentStyleExceptionInfo() { Name = "Grid Table 6 Colorful", UiPriority = 51 }; LatentStyleExceptionInfo latentStyleExceptionInfo280 = new LatentStyleExceptionInfo() { Name = "Grid Table 7 Colorful", UiPriority = 52 }; LatentStyleExceptionInfo latentStyleExceptionInfo281 = new LatentStyleExceptionInfo() { Name = "Grid Table 1 Light Accent 1", UiPriority = 46 }; LatentStyleExceptionInfo latentStyleExceptionInfo282 = new LatentStyleExceptionInfo() { Name = "Grid Table 2 Accent 1", UiPriority = 47 }; LatentStyleExceptionInfo latentStyleExceptionInfo283 = new LatentStyleExceptionInfo() { Name = "Grid Table 3 Accent 1", UiPriority = 48 }; LatentStyleExceptionInfo latentStyleExceptionInfo284 = new LatentStyleExceptionInfo() { Name = "Grid Table 4 Accent 1", UiPriority = 49 }; LatentStyleExceptionInfo latentStyleExceptionInfo285 = new LatentStyleExceptionInfo() { Name = "Grid Table 5 Dark Accent 1", UiPriority = 50 }; LatentStyleExceptionInfo latentStyleExceptionInfo286 = new LatentStyleExceptionInfo() { Name = "Grid Table 6 Colorful Accent 1", UiPriority = 51 }; LatentStyleExceptionInfo latentStyleExceptionInfo287 = new LatentStyleExceptionInfo() { Name = "Grid Table 7 Colorful Accent 1", UiPriority = 52 }; LatentStyleExceptionInfo latentStyleExceptionInfo288 = new LatentStyleExceptionInfo() { Name = "Grid Table 1 Light Accent 2", UiPriority = 46 }; LatentStyleExceptionInfo latentStyleExceptionInfo289 = new LatentStyleExceptionInfo() { Name = "Grid Table 2 Accent 2", UiPriority = 47 }; LatentStyleExceptionInfo latentStyleExceptionInfo290 = new LatentStyleExceptionInfo() { Name = "Grid Table 3 Accent 2", UiPriority = 48 }; LatentStyleExceptionInfo latentStyleExceptionInfo291 = new LatentStyleExceptionInfo() { Name = "Grid Table 4 Accent 2", UiPriority = 49 }; LatentStyleExceptionInfo latentStyleExceptionInfo292 = new LatentStyleExceptionInfo() { Name = "Grid Table 5 Dark Accent 2", UiPriority = 50 }; LatentStyleExceptionInfo latentStyleExceptionInfo293 = new LatentStyleExceptionInfo() { Name = "Grid Table 6 Colorful Accent 2", UiPriority = 51 }; LatentStyleExceptionInfo latentStyleExceptionInfo294 = new LatentStyleExceptionInfo() { Name = "Grid Table 7 Colorful Accent 2", UiPriority = 52 }; LatentStyleExceptionInfo latentStyleExceptionInfo295 = new LatentStyleExceptionInfo() { Name = "Grid Table 1 Light Accent 3", UiPriority = 46 }; LatentStyleExceptionInfo latentStyleExceptionInfo296 = new LatentStyleExceptionInfo() { Name = "Grid Table 2 Accent 3", UiPriority = 47 }; LatentStyleExceptionInfo latentStyleExceptionInfo297 = new LatentStyleExceptionInfo() { Name = "Grid Table 3 Accent 3", UiPriority = 48 }; LatentStyleExceptionInfo latentStyleExceptionInfo298 = new LatentStyleExceptionInfo() { Name = "Grid Table 4 Accent 3", UiPriority = 49 }; LatentStyleExceptionInfo latentStyleExceptionInfo299 = new LatentStyleExceptionInfo() { Name = "Grid Table 5 Dark Accent 3", UiPriority = 50 }; LatentStyleExceptionInfo latentStyleExceptionInfo300 = new LatentStyleExceptionInfo() { Name = "Grid Table 6 Colorful Accent 3", UiPriority = 51 }; LatentStyleExceptionInfo latentStyleExceptionInfo301 = new LatentStyleExceptionInfo() { Name = "Grid Table 7 Colorful Accent 3", UiPriority = 52 }; LatentStyleExceptionInfo latentStyleExceptionInfo302 = new LatentStyleExceptionInfo() { Name = "Grid Table 1 Light Accent 4", UiPriority = 46 }; LatentStyleExceptionInfo latentStyleExceptionInfo303 = new LatentStyleExceptionInfo() { Name = "Grid Table 2 Accent 4", UiPriority = 47 }; LatentStyleExceptionInfo latentStyleExceptionInfo304 = new LatentStyleExceptionInfo() { Name = "Grid Table 3 Accent 4", UiPriority = 48 }; LatentStyleExceptionInfo latentStyleExceptionInfo305 = new LatentStyleExceptionInfo() { Name = "Grid Table 4 Accent 4", UiPriority = 49 }; LatentStyleExceptionInfo latentStyleExceptionInfo306 = new LatentStyleExceptionInfo() { Name = "Grid Table 5 Dark Accent 4", UiPriority = 50 }; LatentStyleExceptionInfo latentStyleExceptionInfo307 = new LatentStyleExceptionInfo() { Name = "Grid Table 6 Colorful Accent 4", UiPriority = 51 }; LatentStyleExceptionInfo latentStyleExceptionInfo308 = new LatentStyleExceptionInfo() { Name = "Grid Table 7 Colorful Accent 4", UiPriority = 52 }; LatentStyleExceptionInfo latentStyleExceptionInfo309 = new LatentStyleExceptionInfo() { Name = "Grid Table 1 Light Accent 5", UiPriority = 46 }; LatentStyleExceptionInfo latentStyleExceptionInfo310 = new LatentStyleExceptionInfo() { Name = "Grid Table 2 Accent 5", UiPriority = 47 }; LatentStyleExceptionInfo latentStyleExceptionInfo311 = new LatentStyleExceptionInfo() { Name = "Grid Table 3 Accent 5", UiPriority = 48 }; LatentStyleExceptionInfo latentStyleExceptionInfo312 = new LatentStyleExceptionInfo() { Name = "Grid Table 4 Accent 5", UiPriority = 49 }; LatentStyleExceptionInfo latentStyleExceptionInfo313 = new LatentStyleExceptionInfo() { Name = "Grid Table 5 Dark Accent 5", UiPriority = 50 }; LatentStyleExceptionInfo latentStyleExceptionInfo314 = new LatentStyleExceptionInfo() { Name = "Grid Table 6 Colorful Accent 5", UiPriority = 51 }; LatentStyleExceptionInfo latentStyleExceptionInfo315 = new LatentStyleExceptionInfo() { Name = "Grid Table 7 Colorful Accent 5", UiPriority = 52 }; LatentStyleExceptionInfo latentStyleExceptionInfo316 = new LatentStyleExceptionInfo() { Name = "Grid Table 1 Light Accent 6", UiPriority = 46 }; LatentStyleExceptionInfo latentStyleExceptionInfo317 = new LatentStyleExceptionInfo() { Name = "Grid Table 2 Accent 6", UiPriority = 47 }; LatentStyleExceptionInfo latentStyleExceptionInfo318 = new LatentStyleExceptionInfo() { Name = "Grid Table 3 Accent 6", UiPriority = 48 }; LatentStyleExceptionInfo latentStyleExceptionInfo319 = new LatentStyleExceptionInfo() { Name = "Grid Table 4 Accent 6", UiPriority = 49 }; LatentStyleExceptionInfo latentStyleExceptionInfo320 = new LatentStyleExceptionInfo() { Name = "Grid Table 5 Dark Accent 6", UiPriority = 50 }; LatentStyleExceptionInfo latentStyleExceptionInfo321 = new LatentStyleExceptionInfo() { Name = "Grid Table 6 Colorful Accent 6", UiPriority = 51 }; LatentStyleExceptionInfo latentStyleExceptionInfo322 = new LatentStyleExceptionInfo() { Name = "Grid Table 7 Colorful Accent 6", UiPriority = 52 }; LatentStyleExceptionInfo latentStyleExceptionInfo323 = new LatentStyleExceptionInfo() { Name = "List Table 1 Light", UiPriority = 46 }; LatentStyleExceptionInfo latentStyleExceptionInfo324 = new LatentStyleExceptionInfo() { Name = "List Table 2", UiPriority = 47 }; LatentStyleExceptionInfo latentStyleExceptionInfo325 = new LatentStyleExceptionInfo() { Name = "List Table 3", UiPriority = 48 }; LatentStyleExceptionInfo latentStyleExceptionInfo326 = new LatentStyleExceptionInfo() { Name = "List Table 4", UiPriority = 49 }; LatentStyleExceptionInfo latentStyleExceptionInfo327 = new LatentStyleExceptionInfo() { Name = "List Table 5 Dark", UiPriority = 50 }; LatentStyleExceptionInfo latentStyleExceptionInfo328 = new LatentStyleExceptionInfo() { Name = "List Table 6 Colorful", UiPriority = 51 }; LatentStyleExceptionInfo latentStyleExceptionInfo329 = new LatentStyleExceptionInfo() { Name = "List Table 7 Colorful", UiPriority = 52 }; LatentStyleExceptionInfo latentStyleExceptionInfo330 = new LatentStyleExceptionInfo() { Name = "List Table 1 Light Accent 1", UiPriority = 46 }; LatentStyleExceptionInfo latentStyleExceptionInfo331 = new LatentStyleExceptionInfo() { Name = "List Table 2 Accent 1", UiPriority = 47 }; LatentStyleExceptionInfo latentStyleExceptionInfo332 = new LatentStyleExceptionInfo() { Name = "List Table 3 Accent 1", UiPriority = 48 }; LatentStyleExceptionInfo latentStyleExceptionInfo333 = new LatentStyleExceptionInfo() { Name = "List Table 4 Accent 1", UiPriority = 49 }; LatentStyleExceptionInfo latentStyleExceptionInfo334 = new LatentStyleExceptionInfo() { Name = "List Table 5 Dark Accent 1", UiPriority = 50 }; LatentStyleExceptionInfo latentStyleExceptionInfo335 = new LatentStyleExceptionInfo() { Name = "List Table 6 Colorful Accent 1", UiPriority = 51 }; LatentStyleExceptionInfo latentStyleExceptionInfo336 = new LatentStyleExceptionInfo() { Name = "List Table 7 Colorful Accent 1", UiPriority = 52 }; LatentStyleExceptionInfo latentStyleExceptionInfo337 = new LatentStyleExceptionInfo() { Name = "List Table 1 Light Accent 2", UiPriority = 46 }; LatentStyleExceptionInfo latentStyleExceptionInfo338 = new LatentStyleExceptionInfo() { Name = "List Table 2 Accent 2", UiPriority = 47 }; LatentStyleExceptionInfo latentStyleExceptionInfo339 = new LatentStyleExceptionInfo() { Name = "List Table 3 Accent 2", UiPriority = 48 }; LatentStyleExceptionInfo latentStyleExceptionInfo340 = new LatentStyleExceptionInfo() { Name = "List Table 4 Accent 2", UiPriority = 49 }; LatentStyleExceptionInfo latentStyleExceptionInfo341 = new LatentStyleExceptionInfo() { Name = "List Table 5 Dark Accent 2", UiPriority = 50 }; LatentStyleExceptionInfo latentStyleExceptionInfo342 = new LatentStyleExceptionInfo() { Name = "List Table 6 Colorful Accent 2", UiPriority = 51 }; LatentStyleExceptionInfo latentStyleExceptionInfo343 = new LatentStyleExceptionInfo() { Name = "List Table 7 Colorful Accent 2", UiPriority = 52 }; LatentStyleExceptionInfo latentStyleExceptionInfo344 = new LatentStyleExceptionInfo() { Name = "List Table 1 Light Accent 3", UiPriority = 46 }; LatentStyleExceptionInfo latentStyleExceptionInfo345 = new LatentStyleExceptionInfo() { Name = "List Table 2 Accent 3", UiPriority = 47 }; LatentStyleExceptionInfo latentStyleExceptionInfo346 = new LatentStyleExceptionInfo() { Name = "List Table 3 Accent 3", UiPriority = 48 }; LatentStyleExceptionInfo latentStyleExceptionInfo347 = new LatentStyleExceptionInfo() { Name = "List Table 4 Accent 3", UiPriority = 49 }; LatentStyleExceptionInfo latentStyleExceptionInfo348 = new LatentStyleExceptionInfo() { Name = "List Table 5 Dark Accent 3", UiPriority = 50 }; LatentStyleExceptionInfo latentStyleExceptionInfo349 = new LatentStyleExceptionInfo() { Name = "List Table 6 Colorful Accent 3", UiPriority = 51 }; LatentStyleExceptionInfo latentStyleExceptionInfo350 = new LatentStyleExceptionInfo() { Name = "List Table 7 Colorful Accent 3", UiPriority = 52 }; LatentStyleExceptionInfo latentStyleExceptionInfo351 = new LatentStyleExceptionInfo() { Name = "List Table 1 Light Accent 4", UiPriority = 46 }; LatentStyleExceptionInfo latentStyleExceptionInfo352 = new LatentStyleExceptionInfo() { Name = "List Table 2 Accent 4", UiPriority = 47 }; LatentStyleExceptionInfo latentStyleExceptionInfo353 = new LatentStyleExceptionInfo() { Name = "List Table 3 Accent 4", UiPriority = 48 }; LatentStyleExceptionInfo latentStyleExceptionInfo354 = new LatentStyleExceptionInfo() { Name = "List Table 4 Accent 4", UiPriority = 49 }; LatentStyleExceptionInfo latentStyleExceptionInfo355 = new LatentStyleExceptionInfo() { Name = "List Table 5 Dark Accent 4", UiPriority = 50 }; LatentStyleExceptionInfo latentStyleExceptionInfo356 = new LatentStyleExceptionInfo() { Name = "List Table 6 Colorful Accent 4", UiPriority = 51 }; LatentStyleExceptionInfo latentStyleExceptionInfo357 = new LatentStyleExceptionInfo() { Name = "List Table 7 Colorful Accent 4", UiPriority = 52 }; LatentStyleExceptionInfo latentStyleExceptionInfo358 = new LatentStyleExceptionInfo() { Name = "List Table 1 Light Accent 5", UiPriority = 46 }; LatentStyleExceptionInfo latentStyleExceptionInfo359 = new LatentStyleExceptionInfo() { Name = "List Table 2 Accent 5", UiPriority = 47 }; LatentStyleExceptionInfo latentStyleExceptionInfo360 = new LatentStyleExceptionInfo() { Name = "List Table 3 Accent 5", UiPriority = 48 }; LatentStyleExceptionInfo latentStyleExceptionInfo361 = new LatentStyleExceptionInfo() { Name = "List Table 4 Accent 5", UiPriority = 49 }; LatentStyleExceptionInfo latentStyleExceptionInfo362 = new LatentStyleExceptionInfo() { Name = "List Table 5 Dark Accent 5", UiPriority = 50 }; LatentStyleExceptionInfo latentStyleExceptionInfo363 = new LatentStyleExceptionInfo() { Name = "List Table 6 Colorful Accent 5", UiPriority = 51 }; LatentStyleExceptionInfo latentStyleExceptionInfo364 = new LatentStyleExceptionInfo() { Name = "List Table 7 Colorful Accent 5", UiPriority = 52 }; LatentStyleExceptionInfo latentStyleExceptionInfo365 = new LatentStyleExceptionInfo() { Name = "List Table 1 Light Accent 6", UiPriority = 46 }; LatentStyleExceptionInfo latentStyleExceptionInfo366 = new LatentStyleExceptionInfo() { Name = "List Table 2 Accent 6", UiPriority = 47 }; LatentStyleExceptionInfo latentStyleExceptionInfo367 = new LatentStyleExceptionInfo() { Name = "List Table 3 Accent 6", UiPriority = 48 }; LatentStyleExceptionInfo latentStyleExceptionInfo368 = new LatentStyleExceptionInfo() { Name = "List Table 4 Accent 6", UiPriority = 49 }; LatentStyleExceptionInfo latentStyleExceptionInfo369 = new LatentStyleExceptionInfo() { Name = "List Table 5 Dark Accent 6", UiPriority = 50 }; LatentStyleExceptionInfo latentStyleExceptionInfo370 = new LatentStyleExceptionInfo() { Name = "List Table 6 Colorful Accent 6", UiPriority = 51 }; LatentStyleExceptionInfo latentStyleExceptionInfo371 = new LatentStyleExceptionInfo() { Name = "List Table 7 Colorful Accent 6", UiPriority = 52 }; 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); latentStyles1.Append(latentStyleExceptionInfo138); latentStyles1.Append(latentStyleExceptionInfo139); latentStyles1.Append(latentStyleExceptionInfo140); latentStyles1.Append(latentStyleExceptionInfo141); latentStyles1.Append(latentStyleExceptionInfo142); latentStyles1.Append(latentStyleExceptionInfo143); latentStyles1.Append(latentStyleExceptionInfo144); latentStyles1.Append(latentStyleExceptionInfo145); latentStyles1.Append(latentStyleExceptionInfo146); latentStyles1.Append(latentStyleExceptionInfo147); latentStyles1.Append(latentStyleExceptionInfo148); latentStyles1.Append(latentStyleExceptionInfo149); latentStyles1.Append(latentStyleExceptionInfo150); latentStyles1.Append(latentStyleExceptionInfo151); latentStyles1.Append(latentStyleExceptionInfo152); latentStyles1.Append(latentStyleExceptionInfo153); latentStyles1.Append(latentStyleExceptionInfo154); latentStyles1.Append(latentStyleExceptionInfo155); latentStyles1.Append(latentStyleExceptionInfo156); latentStyles1.Append(latentStyleExceptionInfo157); latentStyles1.Append(latentStyleExceptionInfo158); latentStyles1.Append(latentStyleExceptionInfo159); latentStyles1.Append(latentStyleExceptionInfo160); latentStyles1.Append(latentStyleExceptionInfo161); latentStyles1.Append(latentStyleExceptionInfo162); latentStyles1.Append(latentStyleExceptionInfo163); latentStyles1.Append(latentStyleExceptionInfo164); latentStyles1.Append(latentStyleExceptionInfo165); latentStyles1.Append(latentStyleExceptionInfo166); latentStyles1.Append(latentStyleExceptionInfo167); latentStyles1.Append(latentStyleExceptionInfo168); latentStyles1.Append(latentStyleExceptionInfo169); latentStyles1.Append(latentStyleExceptionInfo170); latentStyles1.Append(latentStyleExceptionInfo171); latentStyles1.Append(latentStyleExceptionInfo172); latentStyles1.Append(latentStyleExceptionInfo173); latentStyles1.Append(latentStyleExceptionInfo174); latentStyles1.Append(latentStyleExceptionInfo175); latentStyles1.Append(latentStyleExceptionInfo176); latentStyles1.Append(latentStyleExceptionInfo177); latentStyles1.Append(latentStyleExceptionInfo178); latentStyles1.Append(latentStyleExceptionInfo179); latentStyles1.Append(latentStyleExceptionInfo180); latentStyles1.Append(latentStyleExceptionInfo181); latentStyles1.Append(latentStyleExceptionInfo182); latentStyles1.Append(latentStyleExceptionInfo183); latentStyles1.Append(latentStyleExceptionInfo184); latentStyles1.Append(latentStyleExceptionInfo185); latentStyles1.Append(latentStyleExceptionInfo186); latentStyles1.Append(latentStyleExceptionInfo187); latentStyles1.Append(latentStyleExceptionInfo188); latentStyles1.Append(latentStyleExceptionInfo189); latentStyles1.Append(latentStyleExceptionInfo190); latentStyles1.Append(latentStyleExceptionInfo191); latentStyles1.Append(latentStyleExceptionInfo192); latentStyles1.Append(latentStyleExceptionInfo193); latentStyles1.Append(latentStyleExceptionInfo194); latentStyles1.Append(latentStyleExceptionInfo195); latentStyles1.Append(latentStyleExceptionInfo196); latentStyles1.Append(latentStyleExceptionInfo197); latentStyles1.Append(latentStyleExceptionInfo198); latentStyles1.Append(latentStyleExceptionInfo199); latentStyles1.Append(latentStyleExceptionInfo200); latentStyles1.Append(latentStyleExceptionInfo201); latentStyles1.Append(latentStyleExceptionInfo202); latentStyles1.Append(latentStyleExceptionInfo203); latentStyles1.Append(latentStyleExceptionInfo204); latentStyles1.Append(latentStyleExceptionInfo205); latentStyles1.Append(latentStyleExceptionInfo206); latentStyles1.Append(latentStyleExceptionInfo207); latentStyles1.Append(latentStyleExceptionInfo208); latentStyles1.Append(latentStyleExceptionInfo209); latentStyles1.Append(latentStyleExceptionInfo210); latentStyles1.Append(latentStyleExceptionInfo211); latentStyles1.Append(latentStyleExceptionInfo212); latentStyles1.Append(latentStyleExceptionInfo213); latentStyles1.Append(latentStyleExceptionInfo214); latentStyles1.Append(latentStyleExceptionInfo215); latentStyles1.Append(latentStyleExceptionInfo216); latentStyles1.Append(latentStyleExceptionInfo217); latentStyles1.Append(latentStyleExceptionInfo218); latentStyles1.Append(latentStyleExceptionInfo219); latentStyles1.Append(latentStyleExceptionInfo220); latentStyles1.Append(latentStyleExceptionInfo221); latentStyles1.Append(latentStyleExceptionInfo222); latentStyles1.Append(latentStyleExceptionInfo223); latentStyles1.Append(latentStyleExceptionInfo224); latentStyles1.Append(latentStyleExceptionInfo225); latentStyles1.Append(latentStyleExceptionInfo226); latentStyles1.Append(latentStyleExceptionInfo227); latentStyles1.Append(latentStyleExceptionInfo228); latentStyles1.Append(latentStyleExceptionInfo229); latentStyles1.Append(latentStyleExceptionInfo230); latentStyles1.Append(latentStyleExceptionInfo231); latentStyles1.Append(latentStyleExceptionInfo232); latentStyles1.Append(latentStyleExceptionInfo233); latentStyles1.Append(latentStyleExceptionInfo234); latentStyles1.Append(latentStyleExceptionInfo235); latentStyles1.Append(latentStyleExceptionInfo236); latentStyles1.Append(latentStyleExceptionInfo237); latentStyles1.Append(latentStyleExceptionInfo238); latentStyles1.Append(latentStyleExceptionInfo239); latentStyles1.Append(latentStyleExceptionInfo240); latentStyles1.Append(latentStyleExceptionInfo241); latentStyles1.Append(latentStyleExceptionInfo242); latentStyles1.Append(latentStyleExceptionInfo243); latentStyles1.Append(latentStyleExceptionInfo244); latentStyles1.Append(latentStyleExceptionInfo245); latentStyles1.Append(latentStyleExceptionInfo246); latentStyles1.Append(latentStyleExceptionInfo247); latentStyles1.Append(latentStyleExceptionInfo248); latentStyles1.Append(latentStyleExceptionInfo249); latentStyles1.Append(latentStyleExceptionInfo250); latentStyles1.Append(latentStyleExceptionInfo251); latentStyles1.Append(latentStyleExceptionInfo252); latentStyles1.Append(latentStyleExceptionInfo253); latentStyles1.Append(latentStyleExceptionInfo254); latentStyles1.Append(latentStyleExceptionInfo255); latentStyles1.Append(latentStyleExceptionInfo256); latentStyles1.Append(latentStyleExceptionInfo257); latentStyles1.Append(latentStyleExceptionInfo258); latentStyles1.Append(latentStyleExceptionInfo259); latentStyles1.Append(latentStyleExceptionInfo260); latentStyles1.Append(latentStyleExceptionInfo261); latentStyles1.Append(latentStyleExceptionInfo262); latentStyles1.Append(latentStyleExceptionInfo263); latentStyles1.Append(latentStyleExceptionInfo264); latentStyles1.Append(latentStyleExceptionInfo265); latentStyles1.Append(latentStyleExceptionInfo266); latentStyles1.Append(latentStyleExceptionInfo267); latentStyles1.Append(latentStyleExceptionInfo268); latentStyles1.Append(latentStyleExceptionInfo269); latentStyles1.Append(latentStyleExceptionInfo270); latentStyles1.Append(latentStyleExceptionInfo271); latentStyles1.Append(latentStyleExceptionInfo272); latentStyles1.Append(latentStyleExceptionInfo273); latentStyles1.Append(latentStyleExceptionInfo274); latentStyles1.Append(latentStyleExceptionInfo275); latentStyles1.Append(latentStyleExceptionInfo276); latentStyles1.Append(latentStyleExceptionInfo277); latentStyles1.Append(latentStyleExceptionInfo278); latentStyles1.Append(latentStyleExceptionInfo279); latentStyles1.Append(latentStyleExceptionInfo280); latentStyles1.Append(latentStyleExceptionInfo281); latentStyles1.Append(latentStyleExceptionInfo282); latentStyles1.Append(latentStyleExceptionInfo283); latentStyles1.Append(latentStyleExceptionInfo284); latentStyles1.Append(latentStyleExceptionInfo285); latentStyles1.Append(latentStyleExceptionInfo286); latentStyles1.Append(latentStyleExceptionInfo287); latentStyles1.Append(latentStyleExceptionInfo288); latentStyles1.Append(latentStyleExceptionInfo289); latentStyles1.Append(latentStyleExceptionInfo290); latentStyles1.Append(latentStyleExceptionInfo291); latentStyles1.Append(latentStyleExceptionInfo292); latentStyles1.Append(latentStyleExceptionInfo293); latentStyles1.Append(latentStyleExceptionInfo294); latentStyles1.Append(latentStyleExceptionInfo295); latentStyles1.Append(latentStyleExceptionInfo296); latentStyles1.Append(latentStyleExceptionInfo297); latentStyles1.Append(latentStyleExceptionInfo298); latentStyles1.Append(latentStyleExceptionInfo299); latentStyles1.Append(latentStyleExceptionInfo300); latentStyles1.Append(latentStyleExceptionInfo301); latentStyles1.Append(latentStyleExceptionInfo302); latentStyles1.Append(latentStyleExceptionInfo303); latentStyles1.Append(latentStyleExceptionInfo304); latentStyles1.Append(latentStyleExceptionInfo305); latentStyles1.Append(latentStyleExceptionInfo306); latentStyles1.Append(latentStyleExceptionInfo307); latentStyles1.Append(latentStyleExceptionInfo308); latentStyles1.Append(latentStyleExceptionInfo309); latentStyles1.Append(latentStyleExceptionInfo310); latentStyles1.Append(latentStyleExceptionInfo311); latentStyles1.Append(latentStyleExceptionInfo312); latentStyles1.Append(latentStyleExceptionInfo313); latentStyles1.Append(latentStyleExceptionInfo314); latentStyles1.Append(latentStyleExceptionInfo315); latentStyles1.Append(latentStyleExceptionInfo316); latentStyles1.Append(latentStyleExceptionInfo317); latentStyles1.Append(latentStyleExceptionInfo318); latentStyles1.Append(latentStyleExceptionInfo319); latentStyles1.Append(latentStyleExceptionInfo320); latentStyles1.Append(latentStyleExceptionInfo321); latentStyles1.Append(latentStyleExceptionInfo322); latentStyles1.Append(latentStyleExceptionInfo323); latentStyles1.Append(latentStyleExceptionInfo324); latentStyles1.Append(latentStyleExceptionInfo325); latentStyles1.Append(latentStyleExceptionInfo326); latentStyles1.Append(latentStyleExceptionInfo327); latentStyles1.Append(latentStyleExceptionInfo328); latentStyles1.Append(latentStyleExceptionInfo329); latentStyles1.Append(latentStyleExceptionInfo330); latentStyles1.Append(latentStyleExceptionInfo331); latentStyles1.Append(latentStyleExceptionInfo332); latentStyles1.Append(latentStyleExceptionInfo333); latentStyles1.Append(latentStyleExceptionInfo334); latentStyles1.Append(latentStyleExceptionInfo335); latentStyles1.Append(latentStyleExceptionInfo336); latentStyles1.Append(latentStyleExceptionInfo337); latentStyles1.Append(latentStyleExceptionInfo338); latentStyles1.Append(latentStyleExceptionInfo339); latentStyles1.Append(latentStyleExceptionInfo340); latentStyles1.Append(latentStyleExceptionInfo341); latentStyles1.Append(latentStyleExceptionInfo342); latentStyles1.Append(latentStyleExceptionInfo343); latentStyles1.Append(latentStyleExceptionInfo344); latentStyles1.Append(latentStyleExceptionInfo345); latentStyles1.Append(latentStyleExceptionInfo346); latentStyles1.Append(latentStyleExceptionInfo347); latentStyles1.Append(latentStyleExceptionInfo348); latentStyles1.Append(latentStyleExceptionInfo349); latentStyles1.Append(latentStyleExceptionInfo350); latentStyles1.Append(latentStyleExceptionInfo351); latentStyles1.Append(latentStyleExceptionInfo352); latentStyles1.Append(latentStyleExceptionInfo353); latentStyles1.Append(latentStyleExceptionInfo354); latentStyles1.Append(latentStyleExceptionInfo355); latentStyles1.Append(latentStyleExceptionInfo356); latentStyles1.Append(latentStyleExceptionInfo357); latentStyles1.Append(latentStyleExceptionInfo358); latentStyles1.Append(latentStyleExceptionInfo359); latentStyles1.Append(latentStyleExceptionInfo360); latentStyles1.Append(latentStyleExceptionInfo361); latentStyles1.Append(latentStyleExceptionInfo362); latentStyles1.Append(latentStyleExceptionInfo363); latentStyles1.Append(latentStyleExceptionInfo364); latentStyles1.Append(latentStyleExceptionInfo365); latentStyles1.Append(latentStyleExceptionInfo366); latentStyles1.Append(latentStyleExceptionInfo367); latentStyles1.Append(latentStyleExceptionInfo368); latentStyles1.Append(latentStyleExceptionInfo369); latentStyles1.Append(latentStyleExceptionInfo370); latentStyles1.Append(latentStyleExceptionInfo371); Style style1 = new Style() { Type = StyleValues.Paragraph, StyleId = "Normal", Default = true }; StyleName styleName1 = new StyleName() { Val = "Normal" }; PrimaryStyle primaryStyle1 = new PrimaryStyle(); style1.Append(styleName1); style1.Append(primaryStyle1); 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); Style style3 = 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 tableIndentation2 = 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(tableIndentation2); styleTableProperties1.Append(tableCellMarginDefault1); style3.Append(styleName3); style3.Append(uIPriority2); style3.Append(semiHidden2); style3.Append(unhideWhenUsed2); style3.Append(styleTableProperties1); Style style4 = 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(); style4.Append(styleName4); style4.Append(uIPriority3); style4.Append(semiHidden3); style4.Append(unhideWhenUsed3); Style style5 = new Style() { Type = StyleValues.Character, StyleId = "Hyperlink" }; StyleName styleName5 = new StyleName() { Val = "Hyperlink" }; BasedOn basedOn1 = new BasedOn() { Val = "DefaultParagraphFont" }; UIPriority uIPriority4 = new UIPriority() { Val = 99 }; UnhideWhenUsed unhideWhenUsed4 = new UnhideWhenUsed(); Rsid rsid26 = new Rsid() { Val = "00417926" }; StyleRunProperties styleRunProperties1 = new StyleRunProperties(); Color color1 = new Color() { Val = "0563C1", ThemeColor = ThemeColorValues.Hyperlink }; Underline underline1 = new Underline() { Val = UnderlineValues.Single }; styleRunProperties1.Append(color1); styleRunProperties1.Append(underline1); style5.Append(styleName5); style5.Append(basedOn1); style5.Append(uIPriority4); style5.Append(unhideWhenUsed4); style5.Append(rsid26); style5.Append(styleRunProperties1); Style style6 = new Style() { Type = StyleValues.Table, StyleId = "TableGrid" }; StyleName styleName6 = new StyleName() { Val = "Table Grid" }; BasedOn basedOn2 = new BasedOn() { Val = "TableNormal" }; UIPriority uIPriority5 = new UIPriority() { Val = 39 }; Rsid rsid27 = new Rsid() { Val = "00443ACA" }; StyleParagraphProperties styleParagraphProperties1 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines42 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; styleParagraphProperties1.Append(spacingBetweenLines42); StyleTableProperties styleTableProperties2 = new StyleTableProperties(); TableBorders tableBorders4 = new TableBorders(); TopBorder topBorder3 = new TopBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; LeftBorder leftBorder4 = new LeftBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; BottomBorder bottomBorder3 = new BottomBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; RightBorder rightBorder4 = new RightBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; InsideHorizontalBorder insideHorizontalBorder3 = new InsideHorizontalBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; InsideVerticalBorder insideVerticalBorder4 = new InsideVerticalBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; tableBorders4.Append(topBorder3); tableBorders4.Append(leftBorder4); tableBorders4.Append(bottomBorder3); tableBorders4.Append(rightBorder4); tableBorders4.Append(insideHorizontalBorder3); tableBorders4.Append(insideVerticalBorder4); styleTableProperties2.Append(tableBorders4); style6.Append(styleName6); style6.Append(basedOn2); style6.Append(uIPriority5); style6.Append(rsid27); style6.Append(styleParagraphProperties1); style6.Append(styleTableProperties2); styles1.Append(docDefaults1); styles1.Append(latentStyles1); styles1.Append(style1); styles1.Append(style2); styles1.Append(style3); styles1.Append(style4); styles1.Append(style5); styles1.Append(style6); styleDefinitionsPart1.Styles = styles1; }
// Creates an Style instance and adds its children. public static Style GenerateHeadingStyle() { Style style1 = new Style() { Type = StyleValues.Paragraph, StyleId = "Heading1" }; StyleName styleName1 = new StyleName() { Val = "heading 1" }; NextParagraphStyle nextParagraphStyle1 = new NextParagraphStyle() { Val = "Normal" }; LinkedStyle linkedStyle1 = new LinkedStyle() { Val = "Heading1Char" }; PrimaryStyle primaryStyle1 = new PrimaryStyle(); Rsid rsid1 = new Rsid() { Val = "00CF6683" }; StyleParagraphProperties styleParagraphProperties1 = new StyleParagraphProperties(); KeepNext keepNext1 = new KeepNext(); NumberingProperties numberingProperties1 = new NumberingProperties(); NumberingId numberingId1 = new NumberingId() { Val = 1 }; numberingProperties1.Append(numberingId1); SpacingBetweenLines spacingBetweenLines1 = new SpacingBetweenLines() { Before = "480" }; Justification justification1 = new Justification() { Val = JustificationValues.Center }; OutlineLevel outlineLevel1 = new OutlineLevel() { Val = 0 }; styleParagraphProperties1.Append(keepNext1); styleParagraphProperties1.Append(numberingProperties1); styleParagraphProperties1.Append(spacingBetweenLines1); styleParagraphProperties1.Append(justification1); styleParagraphProperties1.Append(outlineLevel1); StyleRunProperties styleRunProperties1 = new StyleRunProperties(); RunFonts runFonts1 = new RunFonts() { ComplexScript = "Arial" }; Bold bold1 = new Bold(); BoldComplexScript boldComplexScript1 = new BoldComplexScript(); Caps caps1 = new Caps(); FontSize fontSize1 = new FontSize() { Val = "24" }; FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript() { Val = "32" }; styleRunProperties1.Append(runFonts1); styleRunProperties1.Append(bold1); styleRunProperties1.Append(boldComplexScript1); styleRunProperties1.Append(caps1); styleRunProperties1.Append(fontSize1); styleRunProperties1.Append(fontSizeComplexScript1); style1.Append(styleName1); style1.Append(nextParagraphStyle1); style1.Append(linkedStyle1); style1.Append(primaryStyle1); style1.Append(rsid1); style1.Append(styleParagraphProperties1); style1.Append(styleRunProperties1); return(style1); }
// Generates content of mainDocumentPart1. private void GenerateMainDocumentPart1Content(MainDocumentPart mainDocumentPart1) { Document document1 = new Document(){ MCAttributes = new MarkupCompatibilityAttributes(){ Ignorable = "w14 w15 wp14" } }; document1.AddNamespaceDeclaration("wpc", "http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas"); document1.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); document1.AddNamespaceDeclaration("o", "urn:schemas-microsoft-com:office:office"); document1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); document1.AddNamespaceDeclaration("m", "http://schemas.openxmlformats.org/officeDocument/2006/math"); document1.AddNamespaceDeclaration("v", "urn:schemas-microsoft-com:vml"); document1.AddNamespaceDeclaration("wp14", "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing"); document1.AddNamespaceDeclaration("wp", "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"); document1.AddNamespaceDeclaration("w10", "urn:schemas-microsoft-com:office:word"); document1.AddNamespaceDeclaration("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main"); document1.AddNamespaceDeclaration("w14", "http://schemas.microsoft.com/office/word/2010/wordml"); document1.AddNamespaceDeclaration("w15", "http://schemas.microsoft.com/office/word/2010/11/wordml"); document1.AddNamespaceDeclaration("wpg", "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup"); document1.AddNamespaceDeclaration("wpi", "http://schemas.microsoft.com/office/word/2010/wordprocessingInk"); document1.AddNamespaceDeclaration("wne", "http://schemas.microsoft.com/office/word/2006/wordml"); document1.AddNamespaceDeclaration("wps", "http://schemas.microsoft.com/office/word/2010/wordprocessingShape"); Body body1 = new Body(); SdtBlock sdtBlock1 = new SdtBlock(); SdtProperties sdtProperties1 = new SdtProperties(); RunProperties runProperties1 = new RunProperties(); RunFonts runFonts1 = new RunFonts(){ Hint = FontTypeHintValues.EastAsia }; runProperties1.Append(runFonts1); SdtAlias sdtAlias1 = new SdtAlias(){ Val = "Test1.1.1" }; Tag tag1 = new Tag(){ Val = "Test1.1.1" }; SdtId sdtId1 = new SdtId(){ Val = -1832063964 }; SdtPlaceholder sdtPlaceholder1 = new SdtPlaceholder(); DocPartReference docPartReference1 = new DocPartReference(){ Val = "DefaultPlaceholder_1081868558" }; sdtPlaceholder1.Append(docPartReference1); ShowingPlaceholder showingPlaceholder1 = new ShowingPlaceholder(); SdtContentText sdtContentText1 = new SdtContentText(); sdtProperties1.Append(runProperties1); sdtProperties1.Append(sdtAlias1); sdtProperties1.Append(tag1); sdtProperties1.Append(sdtId1); sdtProperties1.Append(sdtPlaceholder1); sdtProperties1.Append(showingPlaceholder1); sdtProperties1.Append(sdtContentText1); SdtEndCharProperties sdtEndCharProperties1 = new SdtEndCharProperties(); SdtContentBlock sdtContentBlock1 = new SdtContentBlock(); Paragraph paragraph1 = new Paragraph(){ RsidParagraphAddition = "00535C5E", RsidRunAdditionDefault = "000010BA" }; Run run1 = new Run(){ RsidRunProperties = "003E0DED" }; RunProperties runProperties2 = new RunProperties(); RunStyle runStyle1 = new RunStyle(){ Val = "PlaceholderText" }; runProperties2.Append(runStyle1); Text text1 = new Text(); text1.Text = "Click here to enter text."; run1.Append(runProperties2); run1.Append(text1); paragraph1.Append(run1); sdtContentBlock1.Append(paragraph1); sdtBlock1.Append(sdtProperties1); sdtBlock1.Append(sdtEndCharProperties1); sdtBlock1.Append(sdtContentBlock1); SdtBlock sdtBlock2 = new SdtBlock(); SdtProperties sdtProperties2 = new SdtProperties(); RunProperties runProperties3 = new RunProperties(); RunFonts runFonts2 = new RunFonts(){ Hint = FontTypeHintValues.EastAsia }; runProperties3.Append(runFonts2); SdtAlias sdtAlias2 = new SdtAlias(){ Val = "Test1.1.2" }; Tag tag2 = new Tag(){ Val = "Test1.1.2" }; SdtId sdtId2 = new SdtId(){ Val = -2043657734 }; SdtPlaceholder sdtPlaceholder2 = new SdtPlaceholder(); DocPartReference docPartReference2 = new DocPartReference(){ Val = "DefaultPlaceholder_1081868558" }; sdtPlaceholder2.Append(docPartReference2); SdtContentText sdtContentText2 = new SdtContentText(); sdtProperties2.Append(runProperties3); sdtProperties2.Append(sdtAlias2); sdtProperties2.Append(tag2); sdtProperties2.Append(sdtId2); sdtProperties2.Append(sdtPlaceholder2); sdtProperties2.Append(sdtContentText2); SdtEndCharProperties sdtEndCharProperties2 = new SdtEndCharProperties(); SdtContentBlock sdtContentBlock2 = new SdtContentBlock(); Paragraph paragraph2 = new Paragraph(){ RsidParagraphAddition = "000010BA", RsidRunAdditionDefault = "000010BA" }; Run run2 = new Run(); RunProperties runProperties4 = new RunProperties(); RunFonts runFonts3 = new RunFonts(){ Hint = FontTypeHintValues.EastAsia }; runProperties4.Append(runFonts3); Text text2 = new Text(); text2.Text = "Test string"; run2.Append(runProperties4); run2.Append(text2); paragraph2.Append(run2); sdtContentBlock2.Append(paragraph2); sdtBlock2.Append(sdtProperties2); sdtBlock2.Append(sdtEndCharProperties2); sdtBlock2.Append(sdtContentBlock2); SdtBlock sdtBlock3 = new SdtBlock(); SdtProperties sdtProperties3 = new SdtProperties(); RunProperties runProperties5 = new RunProperties(); RunFonts runFonts4 = new RunFonts(){ Hint = FontTypeHintValues.EastAsia }; runProperties5.Append(runFonts4); SdtAlias sdtAlias3 = new SdtAlias(){ Val = "Test1.2.1" }; Tag tag3 = new Tag(){ Val = "Test1.2.1" }; SdtId sdtId3 = new SdtId(){ Val = 401180698 }; SdtPlaceholder sdtPlaceholder3 = new SdtPlaceholder(); DocPartReference docPartReference3 = new DocPartReference(){ Val = "DefaultPlaceholder_1081868558" }; sdtPlaceholder3.Append(docPartReference3); SdtContentText sdtContentText3 = new SdtContentText(); sdtProperties3.Append(runProperties5); sdtProperties3.Append(sdtAlias3); sdtProperties3.Append(tag3); sdtProperties3.Append(sdtId3); sdtProperties3.Append(sdtPlaceholder3); sdtProperties3.Append(sdtContentText3); SdtEndCharProperties sdtEndCharProperties3 = new SdtEndCharProperties(); SdtContentBlock sdtContentBlock3 = new SdtContentBlock(); Paragraph paragraph3 = new Paragraph(){ RsidParagraphAddition = "000010BA", RsidRunAdditionDefault = "000010BA" }; Run run3 = new Run(); RunProperties runProperties6 = new RunProperties(); RunFonts runFonts5 = new RunFonts(){ Hint = FontTypeHintValues.EastAsia }; runProperties6.Append(runFonts5); Text text3 = new Text(); text3.Text = "Appearance1"; run3.Append(runProperties6); run3.Append(text3); paragraph3.Append(run3); sdtContentBlock3.Append(paragraph3); sdtBlock3.Append(sdtProperties3); sdtBlock3.Append(sdtEndCharProperties3); sdtBlock3.Append(sdtContentBlock3); SdtBlock sdtBlock4 = new SdtBlock(); SdtProperties sdtProperties4 = new SdtProperties(); RunProperties runProperties7 = new RunProperties(); RunFonts runFonts6 = new RunFonts(){ Hint = FontTypeHintValues.EastAsia }; runProperties7.Append(runFonts6); SdtAlias sdtAlias4 = new SdtAlias(){ Val = "Test1.2.2" }; Tag tag4 = new Tag(){ Val = "Test1.2.2" }; SdtId sdtId4 = new SdtId(){ Val = 2096980748 }; SdtPlaceholder sdtPlaceholder4 = new SdtPlaceholder(); DocPartReference docPartReference4 = new DocPartReference(){ Val = "DefaultPlaceholder_1081868558" }; sdtPlaceholder4.Append(docPartReference4); W15.Appearance appearance1 = new W15.Appearance(){ Val = W15.SdtAppearance.Tags }; SdtContentText sdtContentText4 = new SdtContentText(); sdtProperties4.Append(runProperties7); sdtProperties4.Append(sdtAlias4); sdtProperties4.Append(tag4); sdtProperties4.Append(sdtId4); sdtProperties4.Append(sdtPlaceholder4); sdtProperties4.Append(appearance1); sdtProperties4.Append(sdtContentText4); SdtEndCharProperties sdtEndCharProperties4 = new SdtEndCharProperties(); SdtContentBlock sdtContentBlock4 = new SdtContentBlock(); Paragraph paragraph4 = new Paragraph(){ RsidParagraphAddition = "000010BA", RsidRunAdditionDefault = "000010BA" }; Run run4 = new Run(); RunProperties runProperties8 = new RunProperties(); RunFonts runFonts7 = new RunFonts(){ Hint = FontTypeHintValues.EastAsia }; runProperties8.Append(runFonts7); Text text4 = new Text(); text4.Text = "Appearance2"; run4.Append(runProperties8); run4.Append(text4); paragraph4.Append(run4); sdtContentBlock4.Append(paragraph4); sdtBlock4.Append(sdtProperties4); sdtBlock4.Append(sdtEndCharProperties4); sdtBlock4.Append(sdtContentBlock4); SdtBlock sdtBlock5 = new SdtBlock(); SdtProperties sdtProperties5 = new SdtProperties(); RunProperties runProperties9 = new RunProperties(); RunFonts runFonts8 = new RunFonts(){ Hint = FontTypeHintValues.EastAsia }; runProperties9.Append(runFonts8); SdtAlias sdtAlias5 = new SdtAlias(){ Val = "Test1.2.3" }; Tag tag5 = new Tag(){ Val = "Test1.2.3" }; SdtId sdtId5 = new SdtId(){ Val = -343394056 }; SdtPlaceholder sdtPlaceholder5 = new SdtPlaceholder(); DocPartReference docPartReference5 = new DocPartReference(){ Val = "DefaultPlaceholder_1081868558" }; sdtPlaceholder5.Append(docPartReference5); W15.Appearance appearance2 = new W15.Appearance(){ Val = W15.SdtAppearance.Hidden }; SdtContentText sdtContentText5 = new SdtContentText(); sdtProperties5.Append(runProperties9); sdtProperties5.Append(sdtAlias5); sdtProperties5.Append(tag5); sdtProperties5.Append(sdtId5); sdtProperties5.Append(sdtPlaceholder5); sdtProperties5.Append(appearance2); sdtProperties5.Append(sdtContentText5); SdtEndCharProperties sdtEndCharProperties5 = new SdtEndCharProperties(); SdtContentBlock sdtContentBlock5 = new SdtContentBlock(); Paragraph paragraph5 = new Paragraph(){ RsidParagraphAddition = "000010BA", RsidRunAdditionDefault = "000010BA" }; Run run5 = new Run(); RunProperties runProperties10 = new RunProperties(); RunFonts runFonts9 = new RunFonts(){ Hint = FontTypeHintValues.EastAsia }; runProperties10.Append(runFonts9); Text text5 = new Text(); text5.Text = "Appearance3"; run5.Append(runProperties10); run5.Append(text5); paragraph5.Append(run5); sdtContentBlock5.Append(paragraph5); sdtBlock5.Append(sdtProperties5); sdtBlock5.Append(sdtEndCharProperties5); sdtBlock5.Append(sdtContentBlock5); SdtBlock sdtBlock6 = new SdtBlock(); SdtProperties sdtProperties6 = new SdtProperties(); RunProperties runProperties11 = new RunProperties(); RunFonts runFonts10 = new RunFonts(){ Hint = FontTypeHintValues.EastAsia }; runProperties11.Append(runFonts10); SdtAlias sdtAlias6 = new SdtAlias(){ Val = "Test1.3.1" }; Tag tag6 = new Tag(){ Val = "Test1.3.1" }; SdtId sdtId6 = new SdtId(){ Val = 1119424041 }; SdtPlaceholder sdtPlaceholder6 = new SdtPlaceholder(); DocPartReference docPartReference6 = new DocPartReference(){ Val = "DefaultPlaceholder_1081868558" }; sdtPlaceholder6.Append(docPartReference6); SdtContentText sdtContentText6 = new SdtContentText(); sdtProperties6.Append(runProperties11); sdtProperties6.Append(sdtAlias6); sdtProperties6.Append(tag6); sdtProperties6.Append(sdtId6); sdtProperties6.Append(sdtPlaceholder6); sdtProperties6.Append(sdtContentText6); SdtEndCharProperties sdtEndCharProperties6 = new SdtEndCharProperties(); SdtContentBlock sdtContentBlock6 = new SdtContentBlock(); Paragraph paragraph6 = new Paragraph(){ RsidParagraphAddition = "000010BA", RsidRunAdditionDefault = "000010BA" }; Run run6 = new Run(); RunProperties runProperties12 = new RunProperties(); RunFonts runFonts11 = new RunFonts(){ Hint = FontTypeHintValues.EastAsia }; runProperties12.Append(runFonts11); Text text6 = new Text(); text6.Text = "Color Content Control1"; run6.Append(runProperties12); run6.Append(text6); paragraph6.Append(run6); sdtContentBlock6.Append(paragraph6); sdtBlock6.Append(sdtProperties6); sdtBlock6.Append(sdtEndCharProperties6); sdtBlock6.Append(sdtContentBlock6); SdtBlock sdtBlock7 = new SdtBlock(); SdtProperties sdtProperties7 = new SdtProperties(); RunProperties runProperties13 = new RunProperties(); RunFonts runFonts12 = new RunFonts(){ Hint = FontTypeHintValues.EastAsia }; runProperties13.Append(runFonts12); SdtAlias sdtAlias7 = new SdtAlias(){ Val = "Test1.3.2" }; Tag tag7 = new Tag(){ Val = "Test1.3.2" }; SdtId sdtId7 = new SdtId(){ Val = 550972260 }; SdtPlaceholder sdtPlaceholder7 = new SdtPlaceholder(); DocPartReference docPartReference7 = new DocPartReference(){ Val = "DefaultPlaceholder_1081868558" }; sdtPlaceholder7.Append(docPartReference7); W15.Color color1 = new W15.Color(){ Val = "0000FF" }; SdtContentText sdtContentText7 = new SdtContentText(); sdtProperties7.Append(runProperties13); sdtProperties7.Append(sdtAlias7); sdtProperties7.Append(tag7); sdtProperties7.Append(sdtId7); sdtProperties7.Append(sdtPlaceholder7); sdtProperties7.Append(color1); sdtProperties7.Append(sdtContentText7); SdtEndCharProperties sdtEndCharProperties7 = new SdtEndCharProperties(); SdtContentBlock sdtContentBlock7 = new SdtContentBlock(); Paragraph paragraph7 = new Paragraph(){ RsidParagraphAddition = "000010BA", RsidRunAdditionDefault = "000010BA" }; Run run7 = new Run(); RunProperties runProperties14 = new RunProperties(); RunFonts runFonts13 = new RunFonts(){ Hint = FontTypeHintValues.EastAsia }; runProperties14.Append(runFonts13); Text text7 = new Text(); text7.Text = "Color Content Control2"; run7.Append(runProperties14); run7.Append(text7); paragraph7.Append(run7); sdtContentBlock7.Append(paragraph7); sdtBlock7.Append(sdtProperties7); sdtBlock7.Append(sdtEndCharProperties7); sdtBlock7.Append(sdtContentBlock7); SdtBlock sdtBlock8 = new SdtBlock(); SdtProperties sdtProperties8 = new SdtProperties(); RunProperties runProperties15 = new RunProperties(); RunFonts runFonts14 = new RunFonts(){ Hint = FontTypeHintValues.EastAsia }; runProperties15.Append(runFonts14); SdtAlias sdtAlias8 = new SdtAlias(){ Val = "Test1.4.1" }; Tag tag8 = new Tag(){ Val = "Test1.4.1" }; SdtId sdtId8 = new SdtId(){ Val = 1758249604 }; W15.SdtRepeatedSection sdtRepeatedSection1 = new W15.SdtRepeatedSection(); sdtProperties8.Append(runProperties15); sdtProperties8.Append(sdtAlias8); sdtProperties8.Append(tag8); sdtProperties8.Append(sdtId8); sdtProperties8.Append(sdtRepeatedSection1); SdtEndCharProperties sdtEndCharProperties8 = new SdtEndCharProperties(); SdtContentBlock sdtContentBlock8 = new SdtContentBlock(); SdtBlock sdtBlock9 = new SdtBlock(); SdtProperties sdtProperties9 = new SdtProperties(); RunProperties runProperties16 = new RunProperties(); RunFonts runFonts15 = new RunFonts(){ Hint = FontTypeHintValues.EastAsia }; runProperties16.Append(runFonts15); SdtId sdtId9 = new SdtId(){ Val = 481433089 }; SdtPlaceholder sdtPlaceholder8 = new SdtPlaceholder(); DocPartReference docPartReference8 = new DocPartReference(){ Val = "DefaultPlaceholder_1081868562" }; sdtPlaceholder8.Append(docPartReference8); ShowingPlaceholder showingPlaceholder2 = new ShowingPlaceholder(); W15.SdtRepeatedSectionItem sdtRepeatedSectionItem1 = new W15.SdtRepeatedSectionItem(); sdtProperties9.Append(runProperties16); sdtProperties9.Append(sdtId9); sdtProperties9.Append(sdtPlaceholder8); sdtProperties9.Append(showingPlaceholder2); sdtProperties9.Append(sdtRepeatedSectionItem1); SdtEndCharProperties sdtEndCharProperties9 = new SdtEndCharProperties(); SdtContentBlock sdtContentBlock9 = new SdtContentBlock(); Paragraph paragraph8 = new Paragraph(){ RsidParagraphAddition = "000010BA", RsidRunAdditionDefault = "000010BA" }; Run run8 = new Run(){ RsidRunProperties = "003E0DED" }; RunProperties runProperties17 = new RunProperties(); RunStyle runStyle2 = new RunStyle(){ Val = "PlaceholderText" }; runProperties17.Append(runStyle2); Text text8 = new Text(); text8.Text = "Enter any content that you want to repeat, including other content controls. You can also insert this control around table rows in order to repeat parts of a table."; run8.Append(runProperties17); run8.Append(text8); paragraph8.Append(run8); sdtContentBlock9.Append(paragraph8); sdtBlock9.Append(sdtProperties9); sdtBlock9.Append(sdtEndCharProperties9); sdtBlock9.Append(sdtContentBlock9); sdtContentBlock8.Append(sdtBlock9); sdtBlock8.Append(sdtProperties8); sdtBlock8.Append(sdtEndCharProperties8); sdtBlock8.Append(sdtContentBlock8); SdtBlock sdtBlock10 = new SdtBlock(); SdtProperties sdtProperties10 = new SdtProperties(); RunProperties runProperties18 = new RunProperties(); RunFonts runFonts16 = new RunFonts(){ Hint = FontTypeHintValues.EastAsia }; runProperties18.Append(runFonts16); SdtAlias sdtAlias9 = new SdtAlias(){ Val = "Test1.4.2" }; Tag tag9 = new Tag(){ Val = "Test1.4.2" }; SdtId sdtId10 = new SdtId(){ Val = -78606169 }; W15.SdtRepeatedSection sdtRepeatedSection2 = new W15.SdtRepeatedSection(); sdtProperties10.Append(runProperties18); sdtProperties10.Append(sdtAlias9); sdtProperties10.Append(tag9); sdtProperties10.Append(sdtId10); sdtProperties10.Append(sdtRepeatedSection2); SdtEndCharProperties sdtEndCharProperties10 = new SdtEndCharProperties(); SdtContentBlock sdtContentBlock10 = new SdtContentBlock(); SdtBlock sdtBlock11 = new SdtBlock(); SdtProperties sdtProperties11 = new SdtProperties(); RunProperties runProperties19 = new RunProperties(); RunFonts runFonts17 = new RunFonts(){ Hint = FontTypeHintValues.EastAsia }; runProperties19.Append(runFonts17); SdtId sdtId11 = new SdtId(){ Val = -1356270719 }; SdtPlaceholder sdtPlaceholder9 = new SdtPlaceholder(); DocPartReference docPartReference9 = new DocPartReference(){ Val = "DefaultPlaceholder_1081868562" }; sdtPlaceholder9.Append(docPartReference9); W15.SdtRepeatedSectionItem sdtRepeatedSectionItem2 = new W15.SdtRepeatedSectionItem(); sdtProperties11.Append(runProperties19); sdtProperties11.Append(sdtId11); sdtProperties11.Append(sdtPlaceholder9); sdtProperties11.Append(sdtRepeatedSectionItem2); SdtEndCharProperties sdtEndCharProperties11 = new SdtEndCharProperties(); SdtContentBlock sdtContentBlock11 = new SdtContentBlock(); Paragraph paragraph9 = new Paragraph(){ RsidParagraphAddition = "000010BA", RsidRunAdditionDefault = "000010BA" }; ProofError proofError1 = new ProofError(){ Type = ProofingErrorValues.SpellStart }; ProofError proofError2 = new ProofError(){ Type = ProofingErrorValues.GrammarStart }; Run run9 = new Run(); RunProperties runProperties20 = new RunProperties(); RunFonts runFonts18 = new RunFonts(){ Hint = FontTypeHintValues.EastAsia }; runProperties20.Append(runFonts18); Text text9 = new Text(); text9.Text = "repeatingSectionItem"; run9.Append(runProperties20); run9.Append(text9); ProofError proofError3 = new ProofError(){ Type = ProofingErrorValues.SpellEnd }; ProofError proofError4 = new ProofError(){ Type = ProofingErrorValues.GrammarEnd }; paragraph9.Append(proofError1); paragraph9.Append(proofError2); paragraph9.Append(run9); paragraph9.Append(proofError3); paragraph9.Append(proofError4); sdtContentBlock11.Append(paragraph9); sdtBlock11.Append(sdtProperties11); sdtBlock11.Append(sdtEndCharProperties11); sdtBlock11.Append(sdtContentBlock11); sdtContentBlock10.Append(sdtBlock11); sdtBlock10.Append(sdtProperties10); sdtBlock10.Append(sdtEndCharProperties10); sdtBlock10.Append(sdtContentBlock10); SdtBlock sdtBlock12 = new SdtBlock(); SdtProperties sdtProperties12 = new SdtProperties(); RunProperties runProperties21 = new RunProperties(); RunFonts runFonts19 = new RunFonts(){ Hint = FontTypeHintValues.EastAsia }; runProperties21.Append(runFonts19); SdtAlias sdtAlias10 = new SdtAlias(){ Val = "Test1.4.3" }; Tag tag10 = new Tag(){ Val = "Test1.4.3" }; SdtId sdtId12 = new SdtId(){ Val = -294221661 }; W15.SdtRepeatedSection sdtRepeatedSection3 = new W15.SdtRepeatedSection(); W15.DoNotAllowInsertDeleteSection doNotAllowInsertDeleteSection1 = new W15.DoNotAllowInsertDeleteSection(){ Val = true }; sdtRepeatedSection3.Append(doNotAllowInsertDeleteSection1); sdtProperties12.Append(runProperties21); sdtProperties12.Append(sdtAlias10); sdtProperties12.Append(tag10); sdtProperties12.Append(sdtId12); sdtProperties12.Append(sdtRepeatedSection3); SdtEndCharProperties sdtEndCharProperties12 = new SdtEndCharProperties(); SdtContentBlock sdtContentBlock12 = new SdtContentBlock(); SdtBlock sdtBlock13 = new SdtBlock(); SdtProperties sdtProperties13 = new SdtProperties(); RunProperties runProperties22 = new RunProperties(); RunFonts runFonts20 = new RunFonts(){ Hint = FontTypeHintValues.EastAsia }; runProperties22.Append(runFonts20); SdtId sdtId13 = new SdtId(){ Val = 2112001363 }; Lock lock1 = new Lock(){ Val = LockingValues.SdtLocked }; SdtPlaceholder sdtPlaceholder10 = new SdtPlaceholder(); DocPartReference docPartReference10 = new DocPartReference(){ Val = "DefaultPlaceholder_1081868562" }; sdtPlaceholder10.Append(docPartReference10); W15.SdtRepeatedSectionItem sdtRepeatedSectionItem3 = new W15.SdtRepeatedSectionItem(); sdtProperties13.Append(runProperties22); sdtProperties13.Append(sdtId13); sdtProperties13.Append(lock1); sdtProperties13.Append(sdtPlaceholder10); sdtProperties13.Append(sdtRepeatedSectionItem3); SdtEndCharProperties sdtEndCharProperties13 = new SdtEndCharProperties(); SdtContentBlock sdtContentBlock13 = new SdtContentBlock(); Paragraph paragraph10 = new Paragraph(){ RsidParagraphAddition = "000010BA", RsidRunAdditionDefault = "000010BA" }; ProofError proofError5 = new ProofError(){ Type = ProofingErrorValues.SpellStart }; ProofError proofError6 = new ProofError(){ Type = ProofingErrorValues.GrammarStart }; Run run10 = new Run(); RunProperties runProperties23 = new RunProperties(); RunFonts runFonts21 = new RunFonts(){ Hint = FontTypeHintValues.EastAsia }; runProperties23.Append(runFonts21); Text text10 = new Text(); text10.Text = "doNotAllowInsertDeleteSection"; run10.Append(runProperties23); run10.Append(text10); ProofError proofError7 = new ProofError(){ Type = ProofingErrorValues.SpellEnd }; ProofError proofError8 = new ProofError(){ Type = ProofingErrorValues.GrammarEnd }; paragraph10.Append(proofError5); paragraph10.Append(proofError6); paragraph10.Append(run10); paragraph10.Append(proofError7); paragraph10.Append(proofError8); sdtContentBlock13.Append(paragraph10); sdtBlock13.Append(sdtProperties13); sdtBlock13.Append(sdtEndCharProperties13); sdtBlock13.Append(sdtContentBlock13); sdtContentBlock12.Append(sdtBlock13); sdtBlock12.Append(sdtProperties12); sdtBlock12.Append(sdtEndCharProperties12); sdtBlock12.Append(sdtContentBlock12); SdtBlock sdtBlock14 = new SdtBlock(); SdtProperties sdtProperties14 = new SdtProperties(); RunProperties runProperties24 = new RunProperties(); RunFonts runFonts22 = new RunFonts(){ Hint = FontTypeHintValues.EastAsia }; runProperties24.Append(runFonts22); SdtAlias sdtAlias11 = new SdtAlias(){ Val = "Test1.4.4" }; Tag tag11 = new Tag(){ Val = "Test1.4.4" }; SdtId sdtId14 = new SdtId(){ Val = -248501389 }; W15.SdtRepeatedSection sdtRepeatedSection4 = new W15.SdtRepeatedSection(); W15.SectionTitle sectionTitle1 = new W15.SectionTitle(){ Val = "Section title string" }; sdtRepeatedSection4.Append(sectionTitle1); sdtProperties14.Append(runProperties24); sdtProperties14.Append(sdtAlias11); sdtProperties14.Append(tag11); sdtProperties14.Append(sdtId14); sdtProperties14.Append(sdtRepeatedSection4); SdtEndCharProperties sdtEndCharProperties14 = new SdtEndCharProperties(); SdtContentBlock sdtContentBlock14 = new SdtContentBlock(); SdtBlock sdtBlock15 = new SdtBlock(); SdtProperties sdtProperties15 = new SdtProperties(); RunProperties runProperties25 = new RunProperties(); RunFonts runFonts23 = new RunFonts(){ Hint = FontTypeHintValues.EastAsia }; runProperties25.Append(runFonts23); SdtId sdtId15 = new SdtId(){ Val = 1971018620 }; SdtPlaceholder sdtPlaceholder11 = new SdtPlaceholder(); DocPartReference docPartReference11 = new DocPartReference(){ Val = "DefaultPlaceholder_1081868562" }; sdtPlaceholder11.Append(docPartReference11); W15.SdtRepeatedSectionItem sdtRepeatedSectionItem4 = new W15.SdtRepeatedSectionItem(); sdtProperties15.Append(runProperties25); sdtProperties15.Append(sdtId15); sdtProperties15.Append(sdtPlaceholder11); sdtProperties15.Append(sdtRepeatedSectionItem4); SdtEndCharProperties sdtEndCharProperties15 = new SdtEndCharProperties(); SdtContentBlock sdtContentBlock15 = new SdtContentBlock(); Paragraph paragraph11 = new Paragraph(){ RsidParagraphAddition = "000010BA", RsidRunAdditionDefault = "000010BA" }; ProofError proofError9 = new ProofError(){ Type = ProofingErrorValues.SpellStart }; ProofError proofError10 = new ProofError(){ Type = ProofingErrorValues.GrammarStart }; Run run11 = new Run(); RunProperties runProperties26 = new RunProperties(); RunFonts runFonts24 = new RunFonts(){ Hint = FontTypeHintValues.EastAsia }; runProperties26.Append(runFonts24); Text text11 = new Text(); text11.Text = "sectionTitle"; run11.Append(runProperties26); run11.Append(text11); ProofError proofError11 = new ProofError(){ Type = ProofingErrorValues.SpellEnd }; ProofError proofError12 = new ProofError(){ Type = ProofingErrorValues.GrammarEnd }; paragraph11.Append(proofError9); paragraph11.Append(proofError10); paragraph11.Append(run11); paragraph11.Append(proofError11); paragraph11.Append(proofError12); sdtContentBlock15.Append(paragraph11); sdtBlock15.Append(sdtProperties15); sdtBlock15.Append(sdtEndCharProperties15); sdtBlock15.Append(sdtContentBlock15); sdtContentBlock14.Append(sdtBlock15); sdtBlock14.Append(sdtProperties14); sdtBlock14.Append(sdtEndCharProperties14); sdtBlock14.Append(sdtContentBlock14); Table table1 = new Table(); TableProperties tableProperties1 = new TableProperties(); TableWidth tableWidth1 = new TableWidth(){ Width = "0", Type = TableWidthUnitValues.Auto }; TableBorders tableBorders1 = new TableBorders(); TopBorder topBorder1 = new TopBorder(){ Val = BorderValues.Double, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; LeftBorder leftBorder1 = new LeftBorder(){ Val = BorderValues.Double, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; BottomBorder bottomBorder1 = new BottomBorder(){ Val = BorderValues.Double, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; RightBorder rightBorder1 = new RightBorder(){ Val = BorderValues.Double, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; InsideHorizontalBorder insideHorizontalBorder1 = new InsideHorizontalBorder(){ Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; InsideVerticalBorder insideVerticalBorder1 = new InsideVerticalBorder(){ Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; tableBorders1.Append(topBorder1); tableBorders1.Append(leftBorder1); tableBorders1.Append(bottomBorder1); tableBorders1.Append(rightBorder1); tableBorders1.Append(insideHorizontalBorder1); tableBorders1.Append(insideVerticalBorder1); TableLayout tableLayout1 = new TableLayout(){ Type = TableLayoutValues.Fixed }; TableLook tableLook1 = new TableLook(){ Val = "0000" }; tableProperties1.Append(tableWidth1); tableProperties1.Append(tableBorders1); tableProperties1.Append(tableLayout1); tableProperties1.Append(tableLook1); TableGrid tableGrid1 = new TableGrid(); GridColumn gridColumn1 = new GridColumn(){ Width = "4788" }; GridColumn gridColumn2 = new GridColumn(){ Width = "4788" }; tableGrid1.Append(gridColumn1); tableGrid1.Append(gridColumn2); SdtRow sdtRow1 = new SdtRow(); SdtProperties sdtProperties16 = new SdtProperties(); SdtId sdtId16 = new SdtId(){ Val = 1391384564 }; SdtPlaceholder sdtPlaceholder12 = new SdtPlaceholder(); DocPartReference docPartReference12 = new DocPartReference(){ Val = "B207B2DF6D0E4E13956E6616811860CA" }; sdtPlaceholder12.Append(docPartReference12); W15.DataBinding dataBinding1 = new W15.DataBinding(){ XPath = "/books[1]/book", StoreItemId = "{F6DB09CA-2A79-464E-B71A-D37E08A01059}" }; W15.Appearance appearance3 = new W15.Appearance(){ Val = W15.SdtAppearance.Tags }; W15.SdtRepeatedSection sdtRepeatedSection5 = new W15.SdtRepeatedSection(); sdtProperties16.Append(sdtId16); sdtProperties16.Append(sdtPlaceholder12); sdtProperties16.Append(dataBinding1); sdtProperties16.Append(appearance3); sdtProperties16.Append(sdtRepeatedSection5); SdtEndCharProperties sdtEndCharProperties16 = new SdtEndCharProperties(); SdtContentRow sdtContentRow1 = new SdtContentRow(); SdtRow sdtRow2 = new SdtRow(); SdtProperties sdtProperties17 = new SdtProperties(); SdtId sdtId17 = new SdtId(){ Val = 1787311118 }; W15.Appearance appearance4 = new W15.Appearance(){ Val = W15.SdtAppearance.Tags }; W15.SdtRepeatedSectionItem sdtRepeatedSectionItem5 = new W15.SdtRepeatedSectionItem(); sdtProperties17.Append(sdtId17); sdtProperties17.Append(appearance4); sdtProperties17.Append(sdtRepeatedSectionItem5); SdtEndCharProperties sdtEndCharProperties17 = new SdtEndCharProperties(); SdtContentRow sdtContentRow2 = new SdtContentRow(); TableRow tableRow1 = new TableRow(){ RsidTableRowAddition = "00E930A2", RsidTableRowProperties = "00242789" }; SdtCell sdtCell1 = new SdtCell(); SdtProperties sdtProperties18 = new SdtProperties(); SdtAlias sdtAlias12 = new SdtAlias(){ Val = "Test1.5.1_1" }; Tag tag12 = new Tag(){ Val = "Test1.5.1_1" }; SdtId sdtId18 = new SdtId(){ Val = -1276551752 }; SdtPlaceholder sdtPlaceholder13 = new SdtPlaceholder(); DocPartReference docPartReference13 = new DocPartReference(){ Val = "B207B2DF6D0E4E13956E6616811860CA" }; sdtPlaceholder13.Append(docPartReference13); DataBinding dataBinding2 = new DataBinding(){ XPath = "/books[1]/book[1]/title[1]", StoreItemId = "{F6DB09CA-2A79-464E-B71A-D37E08A01059}" }; SdtContentText sdtContentText8 = new SdtContentText(); sdtProperties18.Append(sdtAlias12); sdtProperties18.Append(tag12); sdtProperties18.Append(sdtId18); sdtProperties18.Append(sdtPlaceholder13); sdtProperties18.Append(dataBinding2); sdtProperties18.Append(sdtContentText8); SdtEndCharProperties sdtEndCharProperties18 = new SdtEndCharProperties(); SdtContentCell sdtContentCell1 = new SdtContentCell(); TableCell tableCell1 = new TableCell(); TableCellProperties tableCellProperties1 = new TableCellProperties(); TableCellWidth tableCellWidth1 = new TableCellWidth(){ Width = "4788", Type = TableWidthUnitValues.Dxa }; Shading shading1 = new Shading(){ Val = ShadingPatternValues.Clear, Color = "auto", Fill = "auto" }; tableCellProperties1.Append(tableCellWidth1); tableCellProperties1.Append(shading1); Paragraph paragraph12 = new Paragraph(){ RsidParagraphAddition = "00E930A2", RsidParagraphProperties = "00E86739", RsidRunAdditionDefault = "00E930A2" }; Run run12 = new Run(); RunProperties runProperties27 = new RunProperties(); RunFonts runFonts25 = new RunFonts(){ Hint = FontTypeHintValues.EastAsia }; runProperties27.Append(runFonts25); Text text12 = new Text(); text12.Text = "Repeating Section,Row1"; run12.Append(runProperties27); run12.Append(text12); Run run13 = new Run(){ RsidRunAddition = "00E86739" }; RunProperties runProperties28 = new RunProperties(); RunFonts runFonts26 = new RunFonts(){ Hint = FontTypeHintValues.EastAsia }; runProperties28.Append(runFonts26); Text text13 = new Text(); text13.Text = ",Cell1"; run13.Append(runProperties28); run13.Append(text13); paragraph12.Append(run12); paragraph12.Append(run13); tableCell1.Append(tableCellProperties1); tableCell1.Append(paragraph12); sdtContentCell1.Append(tableCell1); sdtCell1.Append(sdtProperties18); sdtCell1.Append(sdtEndCharProperties18); sdtCell1.Append(sdtContentCell1); SdtCell sdtCell2 = new SdtCell(); SdtProperties sdtProperties19 = new SdtProperties(); RunProperties runProperties29 = new RunProperties(); Kern kern1 = new Kern(){ Val = (UInt32Value)0U }; runProperties29.Append(kern1); SdtAlias sdtAlias13 = new SdtAlias(){ Val = "Test1.5.1_2" }; Tag tag13 = new Tag(){ Val = "Test1.5.1_2" }; SdtId sdtId19 = new SdtId(){ Val = -1317331761 }; SdtPlaceholder sdtPlaceholder14 = new SdtPlaceholder(); DocPartReference docPartReference14 = new DocPartReference(){ Val = "B207B2DF6D0E4E13956E6616811860CA" }; sdtPlaceholder14.Append(docPartReference14); DataBinding dataBinding3 = new DataBinding(){ XPath = "/books[1]/book[1]/author[1]", StoreItemId = "{F6DB09CA-2A79-464E-B71A-D37E08A01059}" }; SdtContentText sdtContentText9 = new SdtContentText(); sdtProperties19.Append(runProperties29); sdtProperties19.Append(sdtAlias13); sdtProperties19.Append(tag13); sdtProperties19.Append(sdtId19); sdtProperties19.Append(sdtPlaceholder14); sdtProperties19.Append(dataBinding3); sdtProperties19.Append(sdtContentText9); SdtEndCharProperties sdtEndCharProperties19 = new SdtEndCharProperties(); SdtContentCell sdtContentCell2 = new SdtContentCell(); TableCell tableCell2 = new TableCell(); TableCellProperties tableCellProperties2 = new TableCellProperties(); TableCellWidth tableCellWidth2 = new TableCellWidth(){ Width = "4788", Type = TableWidthUnitValues.Dxa }; Shading shading2 = new Shading(){ Val = ShadingPatternValues.Clear, Color = "auto", Fill = "auto" }; tableCellProperties2.Append(tableCellWidth2); tableCellProperties2.Append(shading2); Paragraph paragraph13 = new Paragraph(){ RsidParagraphAddition = "00E930A2", RsidParagraphProperties = "00E86739", RsidRunAdditionDefault = "00E930A2" }; Run run14 = new Run(); RunProperties runProperties30 = new RunProperties(); Kern kern2 = new Kern(){ Val = (UInt32Value)0U }; runProperties30.Append(kern2); Text text14 = new Text(); text14.Text = "Repeating Section"; run14.Append(runProperties30); run14.Append(text14); Run run15 = new Run(){ RsidRunAddition = "00E86739" }; RunProperties runProperties31 = new RunProperties(); RunFonts runFonts27 = new RunFonts(){ Hint = FontTypeHintValues.EastAsia }; Kern kern3 = new Kern(){ Val = (UInt32Value)0U }; runProperties31.Append(runFonts27); runProperties31.Append(kern3); Text text15 = new Text(); text15.Text = ","; run15.Append(runProperties31); run15.Append(text15); Run run16 = new Run(); RunProperties runProperties32 = new RunProperties(); Kern kern4 = new Kern(){ Val = (UInt32Value)0U }; runProperties32.Append(kern4); Text text16 = new Text(); text16.Text = "Row1"; run16.Append(runProperties32); run16.Append(text16); Run run17 = new Run(){ RsidRunAddition = "00E86739" }; RunProperties runProperties33 = new RunProperties(); RunFonts runFonts28 = new RunFonts(){ Hint = FontTypeHintValues.EastAsia }; Kern kern5 = new Kern(){ Val = (UInt32Value)0U }; runProperties33.Append(runFonts28); runProperties33.Append(kern5); Text text17 = new Text(); text17.Text = ",Cell2"; run17.Append(runProperties33); run17.Append(text17); paragraph13.Append(run14); paragraph13.Append(run15); paragraph13.Append(run16); paragraph13.Append(run17); tableCell2.Append(tableCellProperties2); tableCell2.Append(paragraph13); sdtContentCell2.Append(tableCell2); sdtCell2.Append(sdtProperties19); sdtCell2.Append(sdtEndCharProperties19); sdtCell2.Append(sdtContentCell2); tableRow1.Append(sdtCell1); tableRow1.Append(sdtCell2); sdtContentRow2.Append(tableRow1); sdtRow2.Append(sdtProperties17); sdtRow2.Append(sdtEndCharProperties17); sdtRow2.Append(sdtContentRow2); SdtRow sdtRow3 = new SdtRow(); SdtProperties sdtProperties20 = new SdtProperties(); SdtId sdtId20 = new SdtId(){ Val = 689805002 }; W15.Appearance appearance5 = new W15.Appearance(){ Val = W15.SdtAppearance.Tags }; W15.SdtRepeatedSectionItem sdtRepeatedSectionItem6 = new W15.SdtRepeatedSectionItem(); sdtProperties20.Append(sdtId20); sdtProperties20.Append(appearance5); sdtProperties20.Append(sdtRepeatedSectionItem6); SdtEndCharProperties sdtEndCharProperties20 = new SdtEndCharProperties(); SdtContentRow sdtContentRow3 = new SdtContentRow(); TableRow tableRow2 = new TableRow(){ RsidTableRowAddition = "00E930A2", RsidTableRowProperties = "00242789" }; SdtCell sdtCell3 = new SdtCell(); SdtProperties sdtProperties21 = new SdtProperties(); SdtAlias sdtAlias14 = new SdtAlias(){ Val = "Test1.5.1_3" }; Tag tag14 = new Tag(){ Val = "Test1.5.1_3" }; SdtId sdtId21 = new SdtId(){ Val = 880594776 }; SdtPlaceholder sdtPlaceholder15 = new SdtPlaceholder(); DocPartReference docPartReference15 = new DocPartReference(){ Val = "4B632797D8B1461898B8F461443A20E0" }; sdtPlaceholder15.Append(docPartReference15); DataBinding dataBinding4 = new DataBinding(){ XPath = "/books[1]/book[4]/title[1]", StoreItemId = "{F6DB09CA-2A79-464E-B71A-D37E08A01059}" }; SdtContentText sdtContentText10 = new SdtContentText(); sdtProperties21.Append(sdtAlias14); sdtProperties21.Append(tag14); sdtProperties21.Append(sdtId21); sdtProperties21.Append(sdtPlaceholder15); sdtProperties21.Append(dataBinding4); sdtProperties21.Append(sdtContentText10); SdtEndCharProperties sdtEndCharProperties21 = new SdtEndCharProperties(); RunProperties runProperties34 = new RunProperties(); Kern kern6 = new Kern(){ Val = (UInt32Value)0U }; runProperties34.Append(kern6); sdtEndCharProperties21.Append(runProperties34); SdtContentCell sdtContentCell3 = new SdtContentCell(); TableCell tableCell3 = new TableCell(); TableCellProperties tableCellProperties3 = new TableCellProperties(); TableCellWidth tableCellWidth3 = new TableCellWidth(){ Width = "4788", Type = TableWidthUnitValues.Dxa }; Shading shading3 = new Shading(){ Val = ShadingPatternValues.Clear, Color = "auto", Fill = "auto" }; tableCellProperties3.Append(tableCellWidth3); tableCellProperties3.Append(shading3); Paragraph paragraph14 = new Paragraph(){ RsidParagraphAddition = "00E930A2", RsidParagraphProperties = "00E86739", RsidRunAdditionDefault = "00E930A2" }; Run run18 = new Run(); RunProperties runProperties35 = new RunProperties(); Kern kern7 = new Kern(){ Val = (UInt32Value)0U }; runProperties35.Append(kern7); Text text18 = new Text(); text18.Text = "Repeating Section"; run18.Append(runProperties35); run18.Append(text18); Run run19 = new Run(){ RsidRunAddition = "00E86739" }; RunProperties runProperties36 = new RunProperties(); RunFonts runFonts29 = new RunFonts(){ Hint = FontTypeHintValues.EastAsia }; Kern kern8 = new Kern(){ Val = (UInt32Value)0U }; runProperties36.Append(runFonts29); runProperties36.Append(kern8); Text text19 = new Text(); text19.Text = ","; run19.Append(runProperties36); run19.Append(text19); Run run20 = new Run(); RunProperties runProperties37 = new RunProperties(); Kern kern9 = new Kern(){ Val = (UInt32Value)0U }; runProperties37.Append(kern9); Text text20 = new Text(); text20.Text = "Row"; run20.Append(runProperties37); run20.Append(text20); Run run21 = new Run(); RunProperties runProperties38 = new RunProperties(); RunFonts runFonts30 = new RunFonts(){ Hint = FontTypeHintValues.EastAsia }; Kern kern10 = new Kern(){ Val = (UInt32Value)0U }; runProperties38.Append(runFonts30); runProperties38.Append(kern10); Text text21 = new Text(); text21.Text = "2"; run21.Append(runProperties38); run21.Append(text21); Run run22 = new Run(){ RsidRunAddition = "00E86739" }; RunProperties runProperties39 = new RunProperties(); RunFonts runFonts31 = new RunFonts(){ Hint = FontTypeHintValues.EastAsia }; Kern kern11 = new Kern(){ Val = (UInt32Value)0U }; runProperties39.Append(runFonts31); runProperties39.Append(kern11); Text text22 = new Text(); text22.Text = ",Cell1"; run22.Append(runProperties39); run22.Append(text22); paragraph14.Append(run18); paragraph14.Append(run19); paragraph14.Append(run20); paragraph14.Append(run21); paragraph14.Append(run22); tableCell3.Append(tableCellProperties3); tableCell3.Append(paragraph14); sdtContentCell3.Append(tableCell3); sdtCell3.Append(sdtProperties21); sdtCell3.Append(sdtEndCharProperties21); sdtCell3.Append(sdtContentCell3); SdtCell sdtCell4 = new SdtCell(); SdtProperties sdtProperties22 = new SdtProperties(); RunProperties runProperties40 = new RunProperties(); Kern kern12 = new Kern(){ Val = (UInt32Value)0U }; runProperties40.Append(kern12); SdtAlias sdtAlias15 = new SdtAlias(){ Val = "Test1.5.1_4" }; Tag tag15 = new Tag(){ Val = "Test1.5.1_4" }; SdtId sdtId22 = new SdtId(){ Val = -1022928317 }; SdtPlaceholder sdtPlaceholder16 = new SdtPlaceholder(); DocPartReference docPartReference16 = new DocPartReference(){ Val = "4B632797D8B1461898B8F461443A20E0" }; sdtPlaceholder16.Append(docPartReference16); DataBinding dataBinding5 = new DataBinding(){ XPath = "/books[1]/book[4]/author[1]", StoreItemId = "{F6DB09CA-2A79-464E-B71A-D37E08A01059}" }; SdtContentText sdtContentText11 = new SdtContentText(); sdtProperties22.Append(runProperties40); sdtProperties22.Append(sdtAlias15); sdtProperties22.Append(tag15); sdtProperties22.Append(sdtId22); sdtProperties22.Append(sdtPlaceholder16); sdtProperties22.Append(dataBinding5); sdtProperties22.Append(sdtContentText11); SdtEndCharProperties sdtEndCharProperties22 = new SdtEndCharProperties(); SdtContentCell sdtContentCell4 = new SdtContentCell(); TableCell tableCell4 = new TableCell(); TableCellProperties tableCellProperties4 = new TableCellProperties(); TableCellWidth tableCellWidth4 = new TableCellWidth(){ Width = "4788", Type = TableWidthUnitValues.Dxa }; Shading shading4 = new Shading(){ Val = ShadingPatternValues.Clear, Color = "auto", Fill = "auto" }; tableCellProperties4.Append(tableCellWidth4); tableCellProperties4.Append(shading4); Paragraph paragraph15 = new Paragraph(){ RsidParagraphAddition = "00E930A2", RsidParagraphProperties = "00E86739", RsidRunAdditionDefault = "009651D6" }; Run run23 = new Run(); RunProperties runProperties41 = new RunProperties(); Kern kern13 = new Kern(){ Val = (UInt32Value)0U }; runProperties41.Append(kern13); Text text23 = new Text(); text23.Text = "Repeating Section"; run23.Append(runProperties41); run23.Append(text23); Run run24 = new Run(){ RsidRunAddition = "00E86739" }; RunProperties runProperties42 = new RunProperties(); RunFonts runFonts32 = new RunFonts(){ Hint = FontTypeHintValues.EastAsia }; Kern kern14 = new Kern(){ Val = (UInt32Value)0U }; runProperties42.Append(runFonts32); runProperties42.Append(kern14); Text text24 = new Text(); text24.Text = ",Row2,Cell2"; run24.Append(runProperties42); run24.Append(text24); paragraph15.Append(run23); paragraph15.Append(run24); tableCell4.Append(tableCellProperties4); tableCell4.Append(paragraph15); sdtContentCell4.Append(tableCell4); sdtCell4.Append(sdtProperties22); sdtCell4.Append(sdtEndCharProperties22); sdtCell4.Append(sdtContentCell4); tableRow2.Append(sdtCell3); tableRow2.Append(sdtCell4); sdtContentRow3.Append(tableRow2); sdtRow3.Append(sdtProperties20); sdtRow3.Append(sdtEndCharProperties20); sdtRow3.Append(sdtContentRow3); sdtContentRow1.Append(sdtRow2); sdtContentRow1.Append(sdtRow3); sdtRow1.Append(sdtProperties16); sdtRow1.Append(sdtEndCharProperties16); sdtRow1.Append(sdtContentRow1); TableRow tableRow3 = new TableRow(){ RsidTableRowAddition = "00E930A2", RsidTableRowProperties = "00242789" }; TableCell tableCell5 = new TableCell(); TableCellProperties tableCellProperties5 = new TableCellProperties(); TableCellWidth tableCellWidth5 = new TableCellWidth(){ Width = "4788", Type = TableWidthUnitValues.Dxa }; Shading shading5 = new Shading(){ Val = ShadingPatternValues.Clear, Color = "auto", Fill = "auto" }; tableCellProperties5.Append(tableCellWidth5); tableCellProperties5.Append(shading5); Paragraph paragraph16 = new Paragraph(){ RsidParagraphAddition = "00E930A2", RsidParagraphProperties = "00242789", RsidRunAdditionDefault = "00E930A2" }; tableCell5.Append(tableCellProperties5); tableCell5.Append(paragraph16); TableCell tableCell6 = new TableCell(); TableCellProperties tableCellProperties6 = new TableCellProperties(); TableCellWidth tableCellWidth6 = new TableCellWidth(){ Width = "4788", Type = TableWidthUnitValues.Dxa }; Shading shading6 = new Shading(){ Val = ShadingPatternValues.Clear, Color = "auto", Fill = "auto" }; tableCellProperties6.Append(tableCellWidth6); tableCellProperties6.Append(shading6); Paragraph paragraph17 = new Paragraph(){ RsidParagraphAddition = "00E930A2", RsidParagraphProperties = "00242789", RsidRunAdditionDefault = "00E930A2" }; tableCell6.Append(tableCellProperties6); tableCell6.Append(paragraph17); tableRow3.Append(tableCell5); tableRow3.Append(tableCell6); table1.Append(tableProperties1); table1.Append(tableGrid1); table1.Append(sdtRow1); table1.Append(tableRow3); Paragraph paragraph18 = new Paragraph(){ RsidParagraphAddition = "00E930A2", RsidRunAdditionDefault = "00E930A2" }; SectionProperties sectionProperties1 = new SectionProperties(){ RsidR = "00E930A2" }; PageSize pageSize1 = new PageSize(){ Width = (UInt32Value)11906U, Height = (UInt32Value)16838U }; PageMargin pageMargin1 = new PageMargin(){ Top = 1985, Right = (UInt32Value)1701U, Bottom = 1701, Left = (UInt32Value)1701U, Header = (UInt32Value)851U, Footer = (UInt32Value)992U, Gutter = (UInt32Value)0U }; Columns columns1 = new Columns(){ Space = "425" }; DocGrid docGrid1 = new DocGrid(){ Type = DocGridValues.Lines, LinePitch = 360 }; sectionProperties1.Append(pageSize1); sectionProperties1.Append(pageMargin1); sectionProperties1.Append(columns1); sectionProperties1.Append(docGrid1); body1.Append(sdtBlock1); body1.Append(sdtBlock2); body1.Append(sdtBlock3); body1.Append(sdtBlock4); body1.Append(sdtBlock5); body1.Append(sdtBlock6); body1.Append(sdtBlock7); body1.Append(sdtBlock8); body1.Append(sdtBlock10); body1.Append(sdtBlock12); body1.Append(sdtBlock14); body1.Append(table1); body1.Append(paragraph18); body1.Append(sectionProperties1); document1.Append(body1); mainDocumentPart1.Document = document1; }
/// <summary> /// Add a style to the document /// </summary> /// <param name="isBold"> true --> bold; false --> not bold</param> /// <param name="isItalic"> true --> italic; false --> not italic </param> /// <param name="isUnderline"> true --> underline; false --> not underline </param> /// <param name="isOnlyRun"> If is true, return only a simple run, else do the other settings </param> /// <param name="rgbColor"> Text color of the run </param> /// <param name="underline"> Underline style </param> /// <returns></returns> public static RunProperties AddStyle(MainDocumentPart mainPart, bool isBold = false, bool isItalic = false, bool isUnderline = false, bool isOnlyRun = false, string styleId = "00", string styleName = "Default", string fontName = "Calibri", int fontSize = 12, string rgbColor = "000000", UnderlineValues underline = UnderlineValues.Single) { // we have to set the properties RunProperties rPr = new RunProperties(); Color color = new Color() { Val = rgbColor }; RunFonts rFont = new RunFonts(); rFont.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 = underline }); } rPr.Append(new FontSize() { Val = (fontSize * 2).ToString() }); if (!isOnlyRun) { Style style = new Style(); 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 } return(rPr); }
// Generates content of styleDefinitionsPart1. private void GenerateStyleDefinitionsPart1Content(StyleDefinitionsPart styleDefinitionsPart1) { Styles styles2 = new Styles(){ MCAttributes = new MarkupCompatibilityAttributes(){ Ignorable = "w14 w15" } }; 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"); styles2.AddNamespaceDeclaration("w15", "http://schemas.microsoft.com/office/word/2010/11/wordml"); DocDefaults docDefaults2 = new DocDefaults(); RunPropertiesDefault runPropertiesDefault2 = new RunPropertiesDefault(); RunPropertiesBaseStyle runPropertiesBaseStyle2 = new RunPropertiesBaseStyle(); RunFonts runFonts34 = new RunFonts(){ AsciiTheme = ThemeFontValues.MinorHighAnsi, HighAnsiTheme = ThemeFontValues.MinorHighAnsi, EastAsiaTheme = ThemeFontValues.MinorEastAsia, ComplexScriptTheme = ThemeFontValues.MinorBidi }; Kern kern16 = new Kern(){ Val = (UInt32Value)2U }; FontSize fontSize2 = new FontSize(){ Val = "21" }; FontSizeComplexScript fontSizeComplexScript2 = new FontSizeComplexScript(){ Val = "22" }; Languages languages2 = new Languages(){ Val = "en-US", EastAsia = "ja-JP", Bidi = "ar-SA" }; runPropertiesBaseStyle2.Append(runFonts34); runPropertiesBaseStyle2.Append(kern16); runPropertiesBaseStyle2.Append(fontSize2); runPropertiesBaseStyle2.Append(fontSizeComplexScript2); runPropertiesBaseStyle2.Append(languages2); runPropertiesDefault2.Append(runPropertiesBaseStyle2); ParagraphPropertiesDefault paragraphPropertiesDefault2 = new ParagraphPropertiesDefault(); 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 = 36, 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 style11 = new Style(){ Type = StyleValues.Paragraph, StyleId = "Normal", Default = true }; StyleName styleName11 = new StyleName(){ Val = "Normal" }; PrimaryStyle primaryStyle2 = new PrimaryStyle(); StyleParagraphProperties styleParagraphProperties7 = new StyleParagraphProperties(); WidowControl widowControl7 = new WidowControl(){ Val = false }; Justification justification7 = new Justification(){ Val = JustificationValues.Both }; styleParagraphProperties7.Append(widowControl7); styleParagraphProperties7.Append(justification7); style11.Append(styleName11); style11.Append(primaryStyle2); style11.Append(styleParagraphProperties7); Style style12 = new Style(){ Type = StyleValues.Character, StyleId = "DefaultParagraphFont", Default = true }; StyleName styleName12 = new StyleName(){ Val = "Default Paragraph Font" }; UIPriority uIPriority5 = new UIPriority(){ Val = 1 }; SemiHidden semiHidden5 = new SemiHidden(); UnhideWhenUsed unhideWhenUsed4 = new UnhideWhenUsed(); style12.Append(styleName12); style12.Append(uIPriority5); style12.Append(semiHidden5); style12.Append(unhideWhenUsed4); Style style13 = new Style(){ Type = StyleValues.Table, StyleId = "TableNormal", Default = true }; StyleName styleName13 = new StyleName(){ Val = "Normal Table" }; UIPriority uIPriority6 = new UIPriority(){ Val = 99 }; SemiHidden semiHidden6 = new SemiHidden(); UnhideWhenUsed unhideWhenUsed5 = new UnhideWhenUsed(); StyleTableProperties styleTableProperties2 = new StyleTableProperties(); TableIndentation tableIndentation2 = new TableIndentation(){ Width = 0, Type = TableWidthUnitValues.Dxa }; 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(tableCellMarginDefault2); style13.Append(styleName13); style13.Append(uIPriority6); style13.Append(semiHidden6); style13.Append(unhideWhenUsed5); style13.Append(styleTableProperties2); Style style14 = new Style(){ Type = StyleValues.Numbering, StyleId = "NoList", Default = true }; StyleName styleName14 = new StyleName(){ Val = "No List" }; UIPriority uIPriority7 = new UIPriority(){ Val = 99 }; SemiHidden semiHidden7 = new SemiHidden(); UnhideWhenUsed unhideWhenUsed6 = new UnhideWhenUsed(); style14.Append(styleName14); style14.Append(uIPriority7); style14.Append(semiHidden7); style14.Append(unhideWhenUsed6); Style style15 = new Style(){ Type = StyleValues.Character, StyleId = "PlaceholderText" }; StyleName styleName15 = new StyleName(){ Val = "Placeholder Text" }; BasedOn basedOn2 = new BasedOn(){ Val = "DefaultParagraphFont" }; UIPriority uIPriority8 = new UIPriority(){ Val = 99 }; SemiHidden semiHidden8 = new SemiHidden(); Rsid rsid15 = new Rsid(){ Val = "00930812" }; StyleRunProperties styleRunProperties2 = new StyleRunProperties(); Color color3 = new Color(){ Val = "808080" }; styleRunProperties2.Append(color3); style15.Append(styleName15); style15.Append(basedOn2); style15.Append(uIPriority8); style15.Append(semiHidden8); style15.Append(rsid15); style15.Append(styleRunProperties2); Style style16 = new Style(){ Type = StyleValues.Paragraph, StyleId = "B207B2DF6D0E4E13956E6616811860CA", CustomStyle = true }; StyleName styleName16 = new StyleName(){ Val = "B207B2DF6D0E4E13956E6616811860CA" }; Rsid rsid16 = new Rsid(){ Val = "00930812" }; StyleParagraphProperties styleParagraphProperties8 = new StyleParagraphProperties(); WidowControl widowControl8 = new WidowControl(){ Val = false }; Justification justification8 = new Justification(){ Val = JustificationValues.Both }; styleParagraphProperties8.Append(widowControl8); styleParagraphProperties8.Append(justification8); style16.Append(styleName16); style16.Append(rsid16); style16.Append(styleParagraphProperties8); Style style17 = new Style(){ Type = StyleValues.Paragraph, StyleId = "D4883C3CFFC34F409428ADC3628C6570", CustomStyle = true }; StyleName styleName17 = new StyleName(){ Val = "D4883C3CFFC34F409428ADC3628C6570" }; Rsid rsid17 = new Rsid(){ Val = "00930812" }; StyleParagraphProperties styleParagraphProperties9 = new StyleParagraphProperties(); WidowControl widowControl9 = new WidowControl(){ Val = false }; Justification justification9 = new Justification(){ Val = JustificationValues.Both }; styleParagraphProperties9.Append(widowControl9); styleParagraphProperties9.Append(justification9); style17.Append(styleName17); style17.Append(rsid17); style17.Append(styleParagraphProperties9); Style style18 = new Style(){ Type = StyleValues.Paragraph, StyleId = "133ECC909A29476B8F1E90DE917BAC44", CustomStyle = true }; StyleName styleName18 = new StyleName(){ Val = "133ECC909A29476B8F1E90DE917BAC44" }; Rsid rsid18 = new Rsid(){ Val = "00930812" }; StyleParagraphProperties styleParagraphProperties10 = new StyleParagraphProperties(); WidowControl widowControl10 = new WidowControl(){ Val = false }; Justification justification10 = new Justification(){ Val = JustificationValues.Both }; styleParagraphProperties10.Append(widowControl10); styleParagraphProperties10.Append(justification10); style18.Append(styleName18); style18.Append(rsid18); style18.Append(styleParagraphProperties10); Style style19 = new Style(){ Type = StyleValues.Paragraph, StyleId = "4B632797D8B1461898B8F461443A20E0", CustomStyle = true }; StyleName styleName19 = new StyleName(){ Val = "4B632797D8B1461898B8F461443A20E0" }; Rsid rsid19 = new Rsid(){ Val = "00930812" }; StyleParagraphProperties styleParagraphProperties11 = new StyleParagraphProperties(); WidowControl widowControl11 = new WidowControl(){ Val = false }; Justification justification11 = new Justification(){ Val = JustificationValues.Both }; styleParagraphProperties11.Append(widowControl11); styleParagraphProperties11.Append(justification11); style19.Append(styleName19); style19.Append(rsid19); style19.Append(styleParagraphProperties11); Style style20 = new Style(){ Type = StyleValues.Paragraph, StyleId = "8E3192E882304BDA9D0B4E69A021C365", CustomStyle = true }; StyleName styleName20 = new StyleName(){ Val = "8E3192E882304BDA9D0B4E69A021C365" }; Rsid rsid20 = new Rsid(){ Val = "00930812" }; StyleParagraphProperties styleParagraphProperties12 = new StyleParagraphProperties(); WidowControl widowControl12 = new WidowControl(){ Val = false }; Justification justification12 = new Justification(){ Val = JustificationValues.Both }; styleParagraphProperties12.Append(widowControl12); styleParagraphProperties12.Append(justification12); style20.Append(styleName20); style20.Append(rsid20); style20.Append(styleParagraphProperties12); styles2.Append(docDefaults2); styles2.Append(latentStyles2); styles2.Append(style11); styles2.Append(style12); styles2.Append(style13); styles2.Append(style14); styles2.Append(style15); styles2.Append(style16); styles2.Append(style17); styles2.Append(style18); styles2.Append(style19); styles2.Append(style20); styleDefinitionsPart1.Styles = styles2; }
/// <summary> /// Generates a level definition, either for a bullet list or for an ordered list. /// </summary> /// <param name="level">The level (1..9).</param> /// <param name="isOrdered">If set to <c>true</c>, this is an ordered list (numbers are shown before the list items), /// if false, this is an unordered list (bullets are shown before the list items).</param> /// <returns></returns> public Level GenerateLevel(int level, bool isOrdered) { var levelInst = new Level() { LevelIndex = level - 1 }; var startNumberingValue1 = new StartNumberingValue() { Val = 1 }; NumberingFormat numberingFormat; LevelText levelText; if (isOrdered) { numberingFormat = new NumberingFormat() { Val = NumberFormatValues.Decimal }; levelText = new LevelText() { Val = string.Format(System.Globalization.CultureInfo.InvariantCulture, "%{0}.", level) }; } else { numberingFormat = new NumberingFormat() { Val = NumberFormatValues.Bullet }; levelText = new LevelText() { Val = "·" }; } var levelJustification = new LevelJustification() { Val = LevelJustificationValues.Left }; var previousParagraphProperties = new PreviousParagraphProperties(); string indentationLeft = (360 + 360 * level).ToString(System.Globalization.CultureInfo.InvariantCulture); var indentation1 = new Indentation() { Left = indentationLeft, Hanging = "360" }; previousParagraphProperties.Append(indentation1); var numberingSymbolRunProperties = new NumberingSymbolRunProperties(); // needed only for bullet list, Font may depend on the bullet you want to show var runFonts1 = new RunFonts() { Hint = FontTypeHintValues.Default, Ascii = "Symbol", HighAnsi = "Symbol" }; numberingSymbolRunProperties.Append(runFonts1); levelInst.Append(startNumberingValue1); levelInst.Append(numberingFormat); levelInst.Append(levelText); levelInst.Append(levelJustification); levelInst.Append(previousParagraphProperties); if (!isOrdered) { levelInst.Append(numberingSymbolRunProperties); } return(levelInst); }
// Generates content of styleDefinitionsPart2. private void GenerateStyleDefinitionsPart2Content(StyleDefinitionsPart styleDefinitionsPart2) { Styles styles4 = new Styles(){ MCAttributes = new MarkupCompatibilityAttributes(){ Ignorable = "w14 w15" } }; styles4.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); styles4.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); styles4.AddNamespaceDeclaration("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main"); styles4.AddNamespaceDeclaration("w14", "http://schemas.microsoft.com/office/word/2010/wordml"); styles4.AddNamespaceDeclaration("w15", "http://schemas.microsoft.com/office/word/2010/11/wordml"); DocDefaults docDefaults4 = new DocDefaults(); RunPropertiesDefault runPropertiesDefault4 = new RunPropertiesDefault(); RunPropertiesBaseStyle runPropertiesBaseStyle4 = new RunPropertiesBaseStyle(); RunFonts runFonts36 = new RunFonts(){ AsciiTheme = ThemeFontValues.MinorHighAnsi, HighAnsiTheme = ThemeFontValues.MinorHighAnsi, EastAsiaTheme = ThemeFontValues.MinorEastAsia, ComplexScriptTheme = ThemeFontValues.MinorBidi }; Kern kern18 = new Kern(){ Val = (UInt32Value)2U }; FontSize fontSize4 = new FontSize(){ Val = "21" }; FontSizeComplexScript fontSizeComplexScript4 = new FontSizeComplexScript(){ Val = "22" }; Languages languages4 = new Languages(){ Val = "en-US", EastAsia = "ja-JP", Bidi = "ar-SA" }; runPropertiesBaseStyle4.Append(runFonts36); runPropertiesBaseStyle4.Append(kern18); runPropertiesBaseStyle4.Append(fontSize4); runPropertiesBaseStyle4.Append(fontSizeComplexScript4); runPropertiesBaseStyle4.Append(languages4); runPropertiesDefault4.Append(runPropertiesBaseStyle4); ParagraphPropertiesDefault paragraphPropertiesDefault4 = new ParagraphPropertiesDefault(); docDefaults4.Append(runPropertiesDefault4); docDefaults4.Append(paragraphPropertiesDefault4); LatentStyles latentStyles4 = new LatentStyles(){ DefaultLockedState = false, DefaultUiPriority = 99, DefaultSemiHidden = true, DefaultUnhideWhenUsed = true, DefaultPrimaryStyle = false, Count = 267 }; LatentStyleExceptionInfo latentStyleExceptionInfo412 = new LatentStyleExceptionInfo(){ Name = "Normal", UiPriority = 0, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo413 = new LatentStyleExceptionInfo(){ Name = "heading 1", UiPriority = 9, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo414 = new LatentStyleExceptionInfo(){ Name = "heading 2", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo415 = new LatentStyleExceptionInfo(){ Name = "heading 3", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo416 = new LatentStyleExceptionInfo(){ Name = "heading 4", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo417 = new LatentStyleExceptionInfo(){ Name = "heading 5", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo418 = new LatentStyleExceptionInfo(){ Name = "heading 6", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo419 = new LatentStyleExceptionInfo(){ Name = "heading 7", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo420 = new LatentStyleExceptionInfo(){ Name = "heading 8", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo421 = new LatentStyleExceptionInfo(){ Name = "heading 9", UiPriority = 9, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo422 = new LatentStyleExceptionInfo(){ Name = "toc 1", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo423 = new LatentStyleExceptionInfo(){ Name = "toc 2", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo424 = new LatentStyleExceptionInfo(){ Name = "toc 3", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo425 = new LatentStyleExceptionInfo(){ Name = "toc 4", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo426 = new LatentStyleExceptionInfo(){ Name = "toc 5", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo427 = new LatentStyleExceptionInfo(){ Name = "toc 6", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo428 = new LatentStyleExceptionInfo(){ Name = "toc 7", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo429 = new LatentStyleExceptionInfo(){ Name = "toc 8", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo430 = new LatentStyleExceptionInfo(){ Name = "toc 9", UiPriority = 39 }; LatentStyleExceptionInfo latentStyleExceptionInfo431 = new LatentStyleExceptionInfo(){ Name = "caption", UiPriority = 35, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo432 = new LatentStyleExceptionInfo(){ Name = "Title", UiPriority = 10, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo433 = new LatentStyleExceptionInfo(){ Name = "Default Paragraph Font", UiPriority = 1 }; LatentStyleExceptionInfo latentStyleExceptionInfo434 = new LatentStyleExceptionInfo(){ Name = "Subtitle", UiPriority = 11, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo435 = new LatentStyleExceptionInfo(){ Name = "Strong", UiPriority = 22, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo436 = new LatentStyleExceptionInfo(){ Name = "Emphasis", UiPriority = 20, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo437 = new LatentStyleExceptionInfo(){ Name = "Table Grid", UiPriority = 59, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo438 = new LatentStyleExceptionInfo(){ Name = "Placeholder Text", UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo439 = new LatentStyleExceptionInfo(){ Name = "No Spacing", UiPriority = 36, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo440 = new LatentStyleExceptionInfo(){ Name = "Light Shading", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo441 = new LatentStyleExceptionInfo(){ Name = "Light List", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo442 = new LatentStyleExceptionInfo(){ Name = "Light Grid", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo443 = new LatentStyleExceptionInfo(){ Name = "Medium Shading 1", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo444 = new LatentStyleExceptionInfo(){ Name = "Medium Shading 2", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo445 = new LatentStyleExceptionInfo(){ Name = "Medium List 1", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo446 = new LatentStyleExceptionInfo(){ Name = "Medium List 2", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo447 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 1", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo448 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 2", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo449 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 3", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo450 = new LatentStyleExceptionInfo(){ Name = "Dark List", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo451 = new LatentStyleExceptionInfo(){ Name = "Colorful Shading", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo452 = new LatentStyleExceptionInfo(){ Name = "Colorful List", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo453 = new LatentStyleExceptionInfo(){ Name = "Colorful Grid", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo454 = new LatentStyleExceptionInfo(){ Name = "Light Shading Accent 1", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo455 = new LatentStyleExceptionInfo(){ Name = "Light List Accent 1", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo456 = new LatentStyleExceptionInfo(){ Name = "Light Grid Accent 1", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo457 = new LatentStyleExceptionInfo(){ Name = "Medium Shading 1 Accent 1", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo458 = new LatentStyleExceptionInfo(){ Name = "Medium Shading 2 Accent 1", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo459 = new LatentStyleExceptionInfo(){ Name = "Medium List 1 Accent 1", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo460 = new LatentStyleExceptionInfo(){ Name = "Revision", UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo461 = new LatentStyleExceptionInfo(){ Name = "List Paragraph", UiPriority = 34, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo462 = new LatentStyleExceptionInfo(){ Name = "Quote", UiPriority = 29, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo463 = new LatentStyleExceptionInfo(){ Name = "Intense Quote", UiPriority = 30, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo464 = new LatentStyleExceptionInfo(){ Name = "Medium List 2 Accent 1", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo465 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 1 Accent 1", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo466 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 2 Accent 1", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo467 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 3 Accent 1", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo468 = new LatentStyleExceptionInfo(){ Name = "Dark List Accent 1", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo469 = new LatentStyleExceptionInfo(){ Name = "Colorful Shading Accent 1", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo470 = new LatentStyleExceptionInfo(){ Name = "Colorful List Accent 1", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo471 = new LatentStyleExceptionInfo(){ Name = "Colorful Grid Accent 1", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo472 = new LatentStyleExceptionInfo(){ Name = "Light Shading Accent 2", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo473 = new LatentStyleExceptionInfo(){ Name = "Light List Accent 2", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo474 = new LatentStyleExceptionInfo(){ Name = "Light Grid Accent 2", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo475 = new LatentStyleExceptionInfo(){ Name = "Medium Shading 1 Accent 2", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo476 = new LatentStyleExceptionInfo(){ Name = "Medium Shading 2 Accent 2", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo477 = new LatentStyleExceptionInfo(){ Name = "Medium List 1 Accent 2", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo478 = new LatentStyleExceptionInfo(){ Name = "Medium List 2 Accent 2", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo479 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 1 Accent 2", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo480 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 2 Accent 2", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo481 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 3 Accent 2", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo482 = new LatentStyleExceptionInfo(){ Name = "Dark List Accent 2", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo483 = new LatentStyleExceptionInfo(){ Name = "Colorful Shading Accent 2", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo484 = new LatentStyleExceptionInfo(){ Name = "Colorful List Accent 2", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo485 = new LatentStyleExceptionInfo(){ Name = "Colorful Grid Accent 2", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo486 = new LatentStyleExceptionInfo(){ Name = "Light Shading Accent 3", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo487 = new LatentStyleExceptionInfo(){ Name = "Light List Accent 3", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo488 = new LatentStyleExceptionInfo(){ Name = "Light Grid Accent 3", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo489 = new LatentStyleExceptionInfo(){ Name = "Medium Shading 1 Accent 3", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo490 = new LatentStyleExceptionInfo(){ Name = "Medium Shading 2 Accent 3", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo491 = new LatentStyleExceptionInfo(){ Name = "Medium List 1 Accent 3", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo492 = new LatentStyleExceptionInfo(){ Name = "Medium List 2 Accent 3", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo493 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 1 Accent 3", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo494 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 2 Accent 3", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo495 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 3 Accent 3", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo496 = new LatentStyleExceptionInfo(){ Name = "Dark List Accent 3", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo497 = new LatentStyleExceptionInfo(){ Name = "Colorful Shading Accent 3", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo498 = new LatentStyleExceptionInfo(){ Name = "Colorful List Accent 3", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo499 = new LatentStyleExceptionInfo(){ Name = "Colorful Grid Accent 3", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo500 = new LatentStyleExceptionInfo(){ Name = "Light Shading Accent 4", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo501 = new LatentStyleExceptionInfo(){ Name = "Light List Accent 4", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo502 = new LatentStyleExceptionInfo(){ Name = "Light Grid Accent 4", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo503 = new LatentStyleExceptionInfo(){ Name = "Medium Shading 1 Accent 4", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo504 = new LatentStyleExceptionInfo(){ Name = "Medium Shading 2 Accent 4", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo505 = new LatentStyleExceptionInfo(){ Name = "Medium List 1 Accent 4", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo506 = new LatentStyleExceptionInfo(){ Name = "Medium List 2 Accent 4", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo507 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 1 Accent 4", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo508 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 2 Accent 4", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo509 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 3 Accent 4", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo510 = new LatentStyleExceptionInfo(){ Name = "Dark List Accent 4", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo511 = new LatentStyleExceptionInfo(){ Name = "Colorful Shading Accent 4", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo512 = new LatentStyleExceptionInfo(){ Name = "Colorful List Accent 4", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo513 = new LatentStyleExceptionInfo(){ Name = "Colorful Grid Accent 4", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo514 = new LatentStyleExceptionInfo(){ Name = "Light Shading Accent 5", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo515 = new LatentStyleExceptionInfo(){ Name = "Light List Accent 5", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo516 = new LatentStyleExceptionInfo(){ Name = "Light Grid Accent 5", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo517 = new LatentStyleExceptionInfo(){ Name = "Medium Shading 1 Accent 5", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo518 = new LatentStyleExceptionInfo(){ Name = "Medium Shading 2 Accent 5", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo519 = new LatentStyleExceptionInfo(){ Name = "Medium List 1 Accent 5", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo520 = new LatentStyleExceptionInfo(){ Name = "Medium List 2 Accent 5", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo521 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 1 Accent 5", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo522 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 2 Accent 5", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo523 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 3 Accent 5", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo524 = new LatentStyleExceptionInfo(){ Name = "Dark List Accent 5", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo525 = new LatentStyleExceptionInfo(){ Name = "Colorful Shading Accent 5", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo526 = new LatentStyleExceptionInfo(){ Name = "Colorful List Accent 5", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo527 = new LatentStyleExceptionInfo(){ Name = "Colorful Grid Accent 5", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo528 = new LatentStyleExceptionInfo(){ Name = "Light Shading Accent 6", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo529 = new LatentStyleExceptionInfo(){ Name = "Light List Accent 6", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo530 = new LatentStyleExceptionInfo(){ Name = "Light Grid Accent 6", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo531 = new LatentStyleExceptionInfo(){ Name = "Medium Shading 1 Accent 6", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo532 = new LatentStyleExceptionInfo(){ Name = "Medium Shading 2 Accent 6", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo533 = new LatentStyleExceptionInfo(){ Name = "Medium List 1 Accent 6", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo534 = new LatentStyleExceptionInfo(){ Name = "Medium List 2 Accent 6", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo535 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 1 Accent 6", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo536 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 2 Accent 6", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo537 = new LatentStyleExceptionInfo(){ Name = "Medium Grid 3 Accent 6", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo538 = new LatentStyleExceptionInfo(){ Name = "Dark List Accent 6", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo539 = new LatentStyleExceptionInfo(){ Name = "Colorful Shading Accent 6", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo540 = new LatentStyleExceptionInfo(){ Name = "Colorful List Accent 6", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo541 = new LatentStyleExceptionInfo(){ Name = "Colorful Grid Accent 6", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false }; LatentStyleExceptionInfo latentStyleExceptionInfo542 = new LatentStyleExceptionInfo(){ Name = "Subtle Emphasis", UiPriority = 19, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo543 = new LatentStyleExceptionInfo(){ Name = "Intense Emphasis", UiPriority = 21, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo544 = new LatentStyleExceptionInfo(){ Name = "Subtle Reference", UiPriority = 31, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo545 = new LatentStyleExceptionInfo(){ Name = "Intense Reference", UiPriority = 32, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo546 = new LatentStyleExceptionInfo(){ Name = "Book Title", UiPriority = 33, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true }; LatentStyleExceptionInfo latentStyleExceptionInfo547 = new LatentStyleExceptionInfo(){ Name = "Bibliography", UiPriority = 37 }; LatentStyleExceptionInfo latentStyleExceptionInfo548 = new LatentStyleExceptionInfo(){ Name = "TOC Heading", UiPriority = 39, PrimaryStyle = true }; latentStyles4.Append(latentStyleExceptionInfo412); latentStyles4.Append(latentStyleExceptionInfo413); latentStyles4.Append(latentStyleExceptionInfo414); latentStyles4.Append(latentStyleExceptionInfo415); latentStyles4.Append(latentStyleExceptionInfo416); latentStyles4.Append(latentStyleExceptionInfo417); latentStyles4.Append(latentStyleExceptionInfo418); latentStyles4.Append(latentStyleExceptionInfo419); latentStyles4.Append(latentStyleExceptionInfo420); latentStyles4.Append(latentStyleExceptionInfo421); latentStyles4.Append(latentStyleExceptionInfo422); latentStyles4.Append(latentStyleExceptionInfo423); latentStyles4.Append(latentStyleExceptionInfo424); latentStyles4.Append(latentStyleExceptionInfo425); latentStyles4.Append(latentStyleExceptionInfo426); latentStyles4.Append(latentStyleExceptionInfo427); latentStyles4.Append(latentStyleExceptionInfo428); latentStyles4.Append(latentStyleExceptionInfo429); latentStyles4.Append(latentStyleExceptionInfo430); latentStyles4.Append(latentStyleExceptionInfo431); latentStyles4.Append(latentStyleExceptionInfo432); latentStyles4.Append(latentStyleExceptionInfo433); latentStyles4.Append(latentStyleExceptionInfo434); latentStyles4.Append(latentStyleExceptionInfo435); latentStyles4.Append(latentStyleExceptionInfo436); latentStyles4.Append(latentStyleExceptionInfo437); latentStyles4.Append(latentStyleExceptionInfo438); latentStyles4.Append(latentStyleExceptionInfo439); latentStyles4.Append(latentStyleExceptionInfo440); latentStyles4.Append(latentStyleExceptionInfo441); latentStyles4.Append(latentStyleExceptionInfo442); latentStyles4.Append(latentStyleExceptionInfo443); latentStyles4.Append(latentStyleExceptionInfo444); latentStyles4.Append(latentStyleExceptionInfo445); latentStyles4.Append(latentStyleExceptionInfo446); latentStyles4.Append(latentStyleExceptionInfo447); latentStyles4.Append(latentStyleExceptionInfo448); latentStyles4.Append(latentStyleExceptionInfo449); latentStyles4.Append(latentStyleExceptionInfo450); latentStyles4.Append(latentStyleExceptionInfo451); latentStyles4.Append(latentStyleExceptionInfo452); latentStyles4.Append(latentStyleExceptionInfo453); latentStyles4.Append(latentStyleExceptionInfo454); latentStyles4.Append(latentStyleExceptionInfo455); latentStyles4.Append(latentStyleExceptionInfo456); latentStyles4.Append(latentStyleExceptionInfo457); latentStyles4.Append(latentStyleExceptionInfo458); latentStyles4.Append(latentStyleExceptionInfo459); latentStyles4.Append(latentStyleExceptionInfo460); latentStyles4.Append(latentStyleExceptionInfo461); latentStyles4.Append(latentStyleExceptionInfo462); latentStyles4.Append(latentStyleExceptionInfo463); latentStyles4.Append(latentStyleExceptionInfo464); latentStyles4.Append(latentStyleExceptionInfo465); latentStyles4.Append(latentStyleExceptionInfo466); latentStyles4.Append(latentStyleExceptionInfo467); latentStyles4.Append(latentStyleExceptionInfo468); latentStyles4.Append(latentStyleExceptionInfo469); latentStyles4.Append(latentStyleExceptionInfo470); latentStyles4.Append(latentStyleExceptionInfo471); latentStyles4.Append(latentStyleExceptionInfo472); latentStyles4.Append(latentStyleExceptionInfo473); latentStyles4.Append(latentStyleExceptionInfo474); latentStyles4.Append(latentStyleExceptionInfo475); latentStyles4.Append(latentStyleExceptionInfo476); latentStyles4.Append(latentStyleExceptionInfo477); latentStyles4.Append(latentStyleExceptionInfo478); latentStyles4.Append(latentStyleExceptionInfo479); latentStyles4.Append(latentStyleExceptionInfo480); latentStyles4.Append(latentStyleExceptionInfo481); latentStyles4.Append(latentStyleExceptionInfo482); latentStyles4.Append(latentStyleExceptionInfo483); latentStyles4.Append(latentStyleExceptionInfo484); latentStyles4.Append(latentStyleExceptionInfo485); latentStyles4.Append(latentStyleExceptionInfo486); latentStyles4.Append(latentStyleExceptionInfo487); latentStyles4.Append(latentStyleExceptionInfo488); latentStyles4.Append(latentStyleExceptionInfo489); latentStyles4.Append(latentStyleExceptionInfo490); latentStyles4.Append(latentStyleExceptionInfo491); latentStyles4.Append(latentStyleExceptionInfo492); latentStyles4.Append(latentStyleExceptionInfo493); latentStyles4.Append(latentStyleExceptionInfo494); latentStyles4.Append(latentStyleExceptionInfo495); latentStyles4.Append(latentStyleExceptionInfo496); latentStyles4.Append(latentStyleExceptionInfo497); latentStyles4.Append(latentStyleExceptionInfo498); latentStyles4.Append(latentStyleExceptionInfo499); latentStyles4.Append(latentStyleExceptionInfo500); latentStyles4.Append(latentStyleExceptionInfo501); latentStyles4.Append(latentStyleExceptionInfo502); latentStyles4.Append(latentStyleExceptionInfo503); latentStyles4.Append(latentStyleExceptionInfo504); latentStyles4.Append(latentStyleExceptionInfo505); latentStyles4.Append(latentStyleExceptionInfo506); latentStyles4.Append(latentStyleExceptionInfo507); latentStyles4.Append(latentStyleExceptionInfo508); latentStyles4.Append(latentStyleExceptionInfo509); latentStyles4.Append(latentStyleExceptionInfo510); latentStyles4.Append(latentStyleExceptionInfo511); latentStyles4.Append(latentStyleExceptionInfo512); latentStyles4.Append(latentStyleExceptionInfo513); latentStyles4.Append(latentStyleExceptionInfo514); latentStyles4.Append(latentStyleExceptionInfo515); latentStyles4.Append(latentStyleExceptionInfo516); latentStyles4.Append(latentStyleExceptionInfo517); latentStyles4.Append(latentStyleExceptionInfo518); latentStyles4.Append(latentStyleExceptionInfo519); latentStyles4.Append(latentStyleExceptionInfo520); latentStyles4.Append(latentStyleExceptionInfo521); latentStyles4.Append(latentStyleExceptionInfo522); latentStyles4.Append(latentStyleExceptionInfo523); latentStyles4.Append(latentStyleExceptionInfo524); latentStyles4.Append(latentStyleExceptionInfo525); latentStyles4.Append(latentStyleExceptionInfo526); latentStyles4.Append(latentStyleExceptionInfo527); latentStyles4.Append(latentStyleExceptionInfo528); latentStyles4.Append(latentStyleExceptionInfo529); latentStyles4.Append(latentStyleExceptionInfo530); latentStyles4.Append(latentStyleExceptionInfo531); latentStyles4.Append(latentStyleExceptionInfo532); latentStyles4.Append(latentStyleExceptionInfo533); latentStyles4.Append(latentStyleExceptionInfo534); latentStyles4.Append(latentStyleExceptionInfo535); latentStyles4.Append(latentStyleExceptionInfo536); latentStyles4.Append(latentStyleExceptionInfo537); latentStyles4.Append(latentStyleExceptionInfo538); latentStyles4.Append(latentStyleExceptionInfo539); latentStyles4.Append(latentStyleExceptionInfo540); latentStyles4.Append(latentStyleExceptionInfo541); latentStyles4.Append(latentStyleExceptionInfo542); latentStyles4.Append(latentStyleExceptionInfo543); latentStyles4.Append(latentStyleExceptionInfo544); latentStyles4.Append(latentStyleExceptionInfo545); latentStyles4.Append(latentStyleExceptionInfo546); latentStyles4.Append(latentStyleExceptionInfo547); latentStyles4.Append(latentStyleExceptionInfo548); Style style30 = new Style(){ Type = StyleValues.Paragraph, StyleId = "Normal", Default = true }; StyleName styleName30 = new StyleName(){ Val = "Normal" }; PrimaryStyle primaryStyle4 = new PrimaryStyle(); StyleParagraphProperties styleParagraphProperties16 = new StyleParagraphProperties(); WidowControl widowControl14 = new WidowControl(){ Val = false }; Justification justification14 = new Justification(){ Val = JustificationValues.Both }; styleParagraphProperties16.Append(widowControl14); styleParagraphProperties16.Append(justification14); style30.Append(styleName30); style30.Append(primaryStyle4); style30.Append(styleParagraphProperties16); Style style31 = new Style(){ Type = StyleValues.Character, StyleId = "DefaultParagraphFont", Default = true }; StyleName styleName31 = new StyleName(){ Val = "Default Paragraph Font" }; UIPriority uIPriority17 = new UIPriority(){ Val = 1 }; SemiHidden semiHidden13 = new SemiHidden(); UnhideWhenUsed unhideWhenUsed12 = new UnhideWhenUsed(); style31.Append(styleName31); style31.Append(uIPriority17); style31.Append(semiHidden13); style31.Append(unhideWhenUsed12); Style style32 = new Style(){ Type = StyleValues.Table, StyleId = "TableNormal", Default = true }; StyleName styleName32 = new StyleName(){ Val = "Normal Table" }; UIPriority uIPriority18 = new UIPriority(){ Val = 99 }; SemiHidden semiHidden14 = new SemiHidden(); UnhideWhenUsed unhideWhenUsed13 = new UnhideWhenUsed(); StyleTableProperties styleTableProperties4 = new StyleTableProperties(); TableIndentation tableIndentation4 = new TableIndentation(){ Width = 0, Type = TableWidthUnitValues.Dxa }; 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(tableIndentation4); styleTableProperties4.Append(tableCellMarginDefault4); style32.Append(styleName32); style32.Append(uIPriority18); style32.Append(semiHidden14); style32.Append(unhideWhenUsed13); style32.Append(styleTableProperties4); Style style33 = new Style(){ Type = StyleValues.Numbering, StyleId = "NoList", Default = true }; StyleName styleName33 = new StyleName(){ Val = "No List" }; UIPriority uIPriority19 = new UIPriority(){ Val = 99 }; SemiHidden semiHidden15 = new SemiHidden(); UnhideWhenUsed unhideWhenUsed14 = new UnhideWhenUsed(); style33.Append(styleName33); style33.Append(uIPriority19); style33.Append(semiHidden15); style33.Append(unhideWhenUsed14); Style style34 = new Style(){ Type = StyleValues.Character, StyleId = "PlaceholderText" }; StyleName styleName34 = new StyleName(){ Val = "Placeholder Text" }; BasedOn basedOn8 = new BasedOn(){ Val = "DefaultParagraphFont" }; UIPriority uIPriority20 = new UIPriority(){ Val = 99 }; SemiHidden semiHidden16 = new SemiHidden(); Rsid rsid39 = new Rsid(){ Val = "000010BA" }; StyleRunProperties styleRunProperties4 = new StyleRunProperties(); Color color5 = new Color(){ Val = "808080" }; styleRunProperties4.Append(color5); style34.Append(styleName34); style34.Append(basedOn8); style34.Append(uIPriority20); style34.Append(semiHidden16); style34.Append(rsid39); style34.Append(styleRunProperties4); Style style35 = new Style(){ Type = StyleValues.Paragraph, StyleId = "Header" }; StyleName styleName35 = new StyleName(){ Val = "header" }; BasedOn basedOn9 = new BasedOn(){ Val = "Normal" }; LinkedStyle linkedStyle5 = new LinkedStyle(){ Val = "HeaderChar" }; UIPriority uIPriority21 = new UIPriority(){ Val = 99 }; UnhideWhenUsed unhideWhenUsed15 = new UnhideWhenUsed(); Rsid rsid40 = new Rsid(){ Val = "00E930A2" }; StyleParagraphProperties styleParagraphProperties17 = new StyleParagraphProperties(); Tabs tabs3 = new Tabs(); TabStop tabStop5 = new TabStop(){ Val = TabStopValues.Center, Position = 4252 }; TabStop tabStop6 = new TabStop(){ Val = TabStopValues.Right, Position = 8504 }; tabs3.Append(tabStop5); tabs3.Append(tabStop6); SnapToGrid snapToGrid3 = new SnapToGrid(){ Val = false }; styleParagraphProperties17.Append(tabs3); styleParagraphProperties17.Append(snapToGrid3); style35.Append(styleName35); style35.Append(basedOn9); style35.Append(linkedStyle5); style35.Append(uIPriority21); style35.Append(unhideWhenUsed15); style35.Append(rsid40); style35.Append(styleParagraphProperties17); Style style36 = new Style(){ Type = StyleValues.Character, StyleId = "HeaderChar", CustomStyle = true }; StyleName styleName36 = new StyleName(){ Val = "Header Char" }; BasedOn basedOn10 = new BasedOn(){ Val = "DefaultParagraphFont" }; LinkedStyle linkedStyle6 = new LinkedStyle(){ Val = "Header" }; UIPriority uIPriority22 = new UIPriority(){ Val = 99 }; Rsid rsid41 = new Rsid(){ Val = "00E930A2" }; style36.Append(styleName36); style36.Append(basedOn10); style36.Append(linkedStyle6); style36.Append(uIPriority22); style36.Append(rsid41); Style style37 = new Style(){ Type = StyleValues.Paragraph, StyleId = "Footer" }; StyleName styleName37 = new StyleName(){ Val = "footer" }; BasedOn basedOn11 = new BasedOn(){ Val = "Normal" }; LinkedStyle linkedStyle7 = new LinkedStyle(){ Val = "FooterChar" }; UIPriority uIPriority23 = new UIPriority(){ Val = 99 }; UnhideWhenUsed unhideWhenUsed16 = new UnhideWhenUsed(); Rsid rsid42 = new Rsid(){ Val = "00E930A2" }; StyleParagraphProperties styleParagraphProperties18 = new StyleParagraphProperties(); Tabs tabs4 = new Tabs(); TabStop tabStop7 = new TabStop(){ Val = TabStopValues.Center, Position = 4252 }; TabStop tabStop8 = new TabStop(){ Val = TabStopValues.Right, Position = 8504 }; tabs4.Append(tabStop7); tabs4.Append(tabStop8); SnapToGrid snapToGrid4 = new SnapToGrid(){ Val = false }; styleParagraphProperties18.Append(tabs4); styleParagraphProperties18.Append(snapToGrid4); style37.Append(styleName37); style37.Append(basedOn11); style37.Append(linkedStyle7); style37.Append(uIPriority23); style37.Append(unhideWhenUsed16); style37.Append(rsid42); style37.Append(styleParagraphProperties18); Style style38 = new Style(){ Type = StyleValues.Character, StyleId = "FooterChar", CustomStyle = true }; StyleName styleName38 = new StyleName(){ Val = "Footer Char" }; BasedOn basedOn12 = new BasedOn(){ Val = "DefaultParagraphFont" }; LinkedStyle linkedStyle8 = new LinkedStyle(){ Val = "Footer" }; UIPriority uIPriority24 = new UIPriority(){ Val = 99 }; Rsid rsid43 = new Rsid(){ Val = "00E930A2" }; style38.Append(styleName38); style38.Append(basedOn12); style38.Append(linkedStyle8); style38.Append(uIPriority24); style38.Append(rsid43); styles4.Append(docDefaults4); styles4.Append(latentStyles4); styles4.Append(style30); styles4.Append(style31); styles4.Append(style32); styles4.Append(style33); styles4.Append(style34); styles4.Append(style35); styles4.Append(style36); styles4.Append(style37); styles4.Append(style38); styleDefinitionsPart2.Styles = styles4; }
public static List <Paragraph> GetBulletList(WordprocessingDocument doc, List <Tuple <string, int> > list) { var items = new List <Paragraph>(); var numberingPart = GetOrCreateNumberingDefinitionsPart(doc); // Insert an AbstractNum into the numbering part numbering list. The order seems to matter or it will not pass the // Open XML SDK Productity Tools validation test. AbstractNum comes first and then NumberingInstance and we want to // insert this AFTER the last AbstractNum and BEFORE the first NumberingInstance or we will get a validation error. var abstractNumberId = numberingPart.Numbering.Elements <AbstractNum>().Count() + 1; var abstractLevel1 = new Level(new NumberingFormat() { Val = NumberFormatValues.Bullet }, new LevelText() { Val = "·" }) { LevelIndex = 0 }; var abstractLevel2 = new Level(new NumberingFormat() { Val = NumberFormatValues.Bullet }, new LevelText() { Val = "o" }) { LevelIndex = 1 }; var abstractLevel3 = new Level(new NumberingFormat() { Val = NumberFormatValues.Bullet }, new LevelText() { Val = "·" }) { LevelIndex = 2 }; var abstractLevel4 = new Level(new NumberingFormat() { Val = NumberFormatValues.Bullet }, new LevelText() { Val = "o" }) { LevelIndex = 3 }; var ml = new MultiLevelType() { Val = MultiLevelValues.HybridMultilevel }; var abstractNum1 = new AbstractNum(ml) { AbstractNumberId = abstractNumberId }; abstractNum1.Append(abstractLevel1); abstractNum1.Append(abstractLevel2); abstractNum1.Append(abstractLevel3); abstractNum1.Append(abstractLevel4); if (abstractNumberId == 1) { numberingPart.Numbering.Append(abstractNum1); } else { var lastAbstractNum = numberingPart.Numbering.Elements <AbstractNum>().Last(); numberingPart.Numbering.InsertAfter(abstractNum1, lastAbstractNum); } // Insert an NumberingInstance into the numbering part numbering list. The order seems to matter or it will not pass the // Open XML SDK Productity Tools validation test. AbstractNum comes first and then NumberingInstance and we want to // insert this AFTER the last NumberingInstance and AFTER all the AbstractNum entries or we will get a validation error. var numberId = numberingPart.Numbering.Elements <NumberingInstance>().Count() + 1; var numberingInstance1 = new NumberingInstance() { NumberID = numberId }; var abstractNumId1 = new AbstractNumId() { Val = abstractNumberId }; numberingInstance1.Append(abstractNumId1); if (numberId == 1) { numberingPart.Numbering.Append(numberingInstance1); } else { var lastNumberingInstance = numberingPart.Numbering.Elements <NumberingInstance>().Last(); numberingPart.Numbering.InsertAfter(numberingInstance1, lastNumberingInstance); } var body = doc.MainDocumentPart.Document.Body; foreach (var item in list) { // Create items for paragraph properties var numberingProperties = new NumberingProperties(new NumberingLevelReference() { Val = item.Item2 }, new NumberingId() { Val = numberId }); var spacingBetweenLines1 = new SpacingBetweenLines() { After = "0" }; // Get rid of space between bullets var indentation = new Indentation() { Left = (720 + 360 * item.Item2).ToString(), Hanging = (360).ToString(), }; // correct indentation var paragraphMarkRunProperties1 = new ParagraphMarkRunProperties(); if (item.Item2 % 2 == 0) { var runFonts1 = new RunFonts() { Ascii = "Symbol", HighAnsi = "Symbol" }; paragraphMarkRunProperties1.Append(runFonts1); } else { var runFonts1 = new RunFonts() { Ascii = "Courier New", HighAnsi = "Courier New" }; paragraphMarkRunProperties1.Append(runFonts1); } // create paragraph properties var paragraphProperties = new ParagraphProperties(numberingProperties, spacingBetweenLines1, indentation, paragraphMarkRunProperties1); // Create paragraph var newPara = new Paragraph(paragraphProperties); // Add run to the paragraph newPara.AppendChild(new Run(new Text(item.Item1))); // Add one bullet item to the body items.Add(newPara); } return(items); }