public void PositionFootnote(FootnotePosition footnotePosition) { //ExStart //ExFor:Document.FootnoteOptions //ExFor:FootnoteOptions //ExFor:FootnoteOptions.Position //ExFor:FootnotePosition //ExSummary:Shows how to select a different place where the document collects and displays its footnotes. Document doc = new Document(); DocumentBuilder builder = new DocumentBuilder(doc); // A footnote is a way to attach a reference or a side comment to text // that does not interfere with the main body text's flow. // Inserting a footnote adds a small superscript reference symbol // at the main body text where we insert the footnote. // Each footnote also creates an entry at the bottom of the page, consisting of a symbol // that matches the reference symbol in the main body text. // The reference text that we pass to the document builder's "InsertFootnote" method. builder.Write("Hello world!"); builder.InsertFootnote(FootnoteType.Footnote, "Footnote contents."); // We can use the "Position" property to determine where the document will place all its footnotes. // If we set the value of the "Position" property to "FootnotePosition.BottomOfPage", // every footnote will show up at the bottom of the page that contains its reference mark. This is the default value. // If we set the value of the "Position" property to "FootnotePosition.BeneathText", // every footnote will show up at the end of the page's text that contains its reference mark. doc.FootnoteOptions.Position = footnotePosition; doc.Save(ArtifactsDir + "InlineStory.PositionFootnote.docx"); //ExEnd doc = new Document(ArtifactsDir + "InlineStory.PositionFootnote.docx"); Assert.AreEqual(footnotePosition, doc.FootnoteOptions.Position); TestUtil.VerifyFootnote(FootnoteType.Footnote, true, string.Empty, "Footnote contents.", (Footnote)doc.GetChild(NodeType.Footnote, 0, true)); }
internal static string smethod_7(FootnotePosition A_0, bool A_1) { int num = 7; switch (A_0) { case FootnotePosition.PrintAsEndOfSection: if (A_1) { return(BookmarkStart.b("帬䨮到䜲瀴夶崸", num)); } return(BookmarkStart.b("帬䨮到䜲ᠴ制圸强", num)); case FootnotePosition.PrintAtBottomOfPage: if (A_1) { return(BookmarkStart.b("崬丮嘰嘲眴堶䴸伺刼刾", num)); } return(BookmarkStart.b("崬丮嘰嘲ᠴ唶嘸伺䤼倾ⱀ", num)); case FootnotePosition.PrintImmediatelyBeneathText: if (A_1) { return(BookmarkStart.b("伬䨮弰嘲吴䌶儸漺堼䜾㕀", num)); } return(BookmarkStart.b("伬䨮弰嘲吴䌶儸ᘺ䤼娾㥀㝂", num)); case FootnotePosition.PrintAsEndOfDocument: if (A_1) { return(BookmarkStart.b("䤬䀮到瘲嬴匶", num)); } return(BookmarkStart.b("䤬䀮到Ḳ倴夶崸", num)); } return(""); }
protected override void vmethod_0() { Class17 class2 = (Class17)base.wordAttrCollection_0; if (class2.method_60() && !class2.method_6(0x898)) { class2.method_87((int)class2.method_32(0x898)); } base.method_7(SprmCode.SBkc, 0x7ee); base.method_7(SprmCode.SNfcPgn, 0x7da); base.method_7(SprmCode.ScnsPgn, 0x7e4); base.method_3(SprmCode.SFTitlePage, 0x7f8); base.method_3(SprmCode.SFPgnRestart, 0x802); base.method_3(SprmCode.SLBetween, 0x80c); base.method_9(SprmCode.SDmBinFirst, 0x816); base.method_9(SprmCode.SDmBinOther, 0x820); base.method_9(SprmCode.SDmPaperReq, 0x82a); base.method_6(SprmCode.SFEndnote, 0x834); base.method_7(SprmCode.SLnc, 0x83e); base.method_9(SprmCode.SNLnnMod, 0x848); base.method_27(SprmCode.SBrcTop, base.wordAttrCollection_0.method_31(0x852), 8f); base.method_27(SprmCode.SBrcLeft, base.wordAttrCollection_0.method_31(0x85c), 8f); base.method_27(SprmCode.SBrcBottom, base.wordAttrCollection_0.method_31(0x866), 8f); base.method_27(SprmCode.SBrcRight, base.wordAttrCollection_0.method_31(0x870), 8f); base.method_11(SprmCode.SDyaLinePitch, 0x87a, 20f); if (base.wordAttrCollection_0.method_6(0x884)) { base.class345_0.method_1(SprmCode.SLnnMin, ((int)base.wordAttrCollection_0.method_32(0x884)) - 1); } base.method_7(SprmCode.SHeadingPgn, 0x88e); base.method_9(SprmCode.SPgnStart97, 0x898); base.method_7(SprmCode.SBOrientation, 0x8a2); this.method_66(); base.method_30(SprmCode.SBrcTopEx, 0x852); base.method_30(SprmCode.SBrcLeftEx, 0x85c); base.method_30(SprmCode.SBrcBottomEx, 0x866); base.method_30(SprmCode.SBrcRightEx, 0x870); base.method_18(SprmCode.SRsid, 0x8ca); bool flag = class2.method_88() == PageOrientation.Landscape; float num3 = class2.method_96(); float num = class2.method_98(); float num2 = num3; float num4 = num; if (flag && (num3 < num)) { num2 = num; num4 = num3; } base.method_17(SprmCode.SXaPage, num2, 20f); base.method_17(SprmCode.SYaPage, num4, 20f); base.method_17(SprmCode.SDxaLeft, class2.method_32(0x8e8), 20f); base.method_17(SprmCode.SDxaRight, class2.method_32(0x8f2), 20f); base.method_17(SprmCode.SDyaTop, class2.method_32(0x8fc), 20f); base.method_17(SprmCode.SDyaBottom, class2.method_32(0x906), 20f); base.method_11(SprmCode.SDzaGutter, 0x908, 20f); base.method_13(SprmCode.SDyaHdrTop, 0x910, 20f); base.method_13(SprmCode.SDyaHdrBottom, 0x91a, 20f); base.method_7(SprmCode.SVjc, 0x924); this.method_65(); base.method_3(SprmCode.SFProtected, 0x956); base.method_13(SprmCode.SDxaLnn, 0x960, 20f); base.method_3(SprmCode.SFRTLGutter, 0x96a); base.method_18(SprmCode.SDxtCharSpace, 0x974); base.method_9(SprmCode.SClm, 0x97e); base.method_10(SprmCode.STextFlow, 0x988); base.method_3(SprmCode.SFBiDi, 0x992); object obj2 = base.wordAttrCollection_0.method_31(0x9c4); if (obj2 != null) { FootnotePosition position = (FootnotePosition)obj2; position = ((position == FootnotePosition.PrintAtBottomOfPage) || (position == FootnotePosition.PrintImmediatelyBeneathText)) ? position : FootnotePosition.PrintAtBottomOfPage; base.method_8(SprmCode.SFpc, position); } base.method_7(SprmCode.SRncFtn, 0x9ce); base.method_7(SprmCode.SRncEdn, 0xa32); base.method_9(SprmCode.SNFtn, 0x9d8); base.method_9(SprmCode.SNfcFtnRef, 0x9e2); base.method_9(SprmCode.SNEdn, 0xa3c); base.method_9(SprmCode.SNfcEdnRef, 0xa46); base.method_46(SprmCode.SPropRMark, SprmCode.SWall); }
internal void method_54(FootnotePosition A_0) { this.method_52(2, A_0); }
internal void method_149(FootnotePosition A_0) { this.method_138().Position = A_0; }
// Generates content of documentSettingsPart1. private void GenerateDocumentSettingsPart1Content(DocumentSettingsPart documentSettingsPart1) { Settings settings1 = new Settings(){ MCAttributes = new MarkupCompatibilityAttributes(){ Ignorable = "w14 w15" } }; settings1.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); settings1.AddNamespaceDeclaration("o", "urn:schemas-microsoft-com:office:office"); settings1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); settings1.AddNamespaceDeclaration("m", "http://schemas.openxmlformats.org/officeDocument/2006/math"); settings1.AddNamespaceDeclaration("v", "urn:schemas-microsoft-com:vml"); settings1.AddNamespaceDeclaration("w10", "urn:schemas-microsoft-com:office:word"); settings1.AddNamespaceDeclaration("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main"); settings1.AddNamespaceDeclaration("w14", "http://schemas.microsoft.com/office/word/2010/wordml"); settings1.AddNamespaceDeclaration("w15", "http://schemas.microsoft.com/office/word/2010/11/wordml"); settings1.AddNamespaceDeclaration("sl", "http://schemas.openxmlformats.org/schemaLibrary/2006/main"); Zoom zoom1 = new Zoom(){ Percent = "120" }; BordersDoNotSurroundHeader bordersDoNotSurroundHeader1 = new BordersDoNotSurroundHeader(); BordersDoNotSurroundFooter bordersDoNotSurroundFooter1 = new BordersDoNotSurroundFooter(); DefaultTabStop defaultTabStop1 = new DefaultTabStop(){ Val = 840 }; DisplayHorizontalDrawingGrid displayHorizontalDrawingGrid1 = new DisplayHorizontalDrawingGrid(){ Val = 0 }; DisplayVerticalDrawingGrid displayVerticalDrawingGrid1 = new DisplayVerticalDrawingGrid(){ Val = 2 }; CharacterSpacingControl characterSpacingControl1 = new CharacterSpacingControl(){ Val = CharacterSpacingValues.CompressPunctuation }; HeaderShapeDefaults headerShapeDefaults1 = new HeaderShapeDefaults(); Ovml.ShapeDefaults shapeDefaults1 = new Ovml.ShapeDefaults(){ Extension = V.ExtensionHandlingBehaviorValues.Edit, MaxShapeId = 2049 }; V.TextBox textBox1 = new V.TextBox(){ Inset = "5.85pt,.7pt,5.85pt,.7pt" }; shapeDefaults1.Append(textBox1); headerShapeDefaults1.Append(shapeDefaults1); FootnoteDocumentWideProperties footnoteDocumentWideProperties1 = new FootnoteDocumentWideProperties(); FootnotePosition footnotePosition2 = new FootnotePosition(){ Val = FootnotePositionValues.BeneathText }; FootnoteSpecialReference footnoteSpecialReference1 = new FootnoteSpecialReference(){ Id = -1 }; FootnoteSpecialReference footnoteSpecialReference2 = new FootnoteSpecialReference(){ Id = 0 }; footnoteDocumentWideProperties1.Append(footnotePosition2); footnoteDocumentWideProperties1.Append(footnoteSpecialReference1); footnoteDocumentWideProperties1.Append(footnoteSpecialReference2); EndnoteDocumentWideProperties endnoteDocumentWideProperties1 = new EndnoteDocumentWideProperties(); EndnoteSpecialReference endnoteSpecialReference1 = new EndnoteSpecialReference(){ Id = -1 }; EndnoteSpecialReference endnoteSpecialReference2 = new EndnoteSpecialReference(){ Id = 0 }; endnoteDocumentWideProperties1.Append(endnoteSpecialReference1); endnoteDocumentWideProperties1.Append(endnoteSpecialReference2); Compatibility compatibility1 = new Compatibility(); SpaceForUnderline spaceForUnderline1 = new SpaceForUnderline(); BalanceSingleByteDoubleByteWidth balanceSingleByteDoubleByteWidth1 = new BalanceSingleByteDoubleByteWidth(); DoNotLeaveBackslashAlone doNotLeaveBackslashAlone1 = new DoNotLeaveBackslashAlone(); UnderlineTrailingSpaces underlineTrailingSpaces1 = new UnderlineTrailingSpaces(); DoNotExpandShiftReturn doNotExpandShiftReturn1 = new DoNotExpandShiftReturn(); AdjustLineHeightInTable adjustLineHeightInTable1 = new AdjustLineHeightInTable(); UseFarEastLayout useFarEastLayout1 = new UseFarEastLayout(); CompatibilitySetting compatibilitySetting1 = new CompatibilitySetting(){ Name = CompatSettingNameValues.CompatibilityMode, Uri = "http://schemas.microsoft.com/office/word", Val = "15" }; CompatibilitySetting compatibilitySetting2 = new CompatibilitySetting(){ Name = CompatSettingNameValues.OverrideTableStyleFontSizeAndJustification, Uri = "http://schemas.microsoft.com/office/word", Val = "1" }; CompatibilitySetting compatibilitySetting3 = new CompatibilitySetting(){ Name = CompatSettingNameValues.EnableOpenTypeFeatures, Uri = "http://schemas.microsoft.com/office/word", Val = "1" }; CompatibilitySetting compatibilitySetting4 = new CompatibilitySetting(){ Name = CompatSettingNameValues.DoNotFlipMirrorIndents, Uri = "http://schemas.microsoft.com/office/word", Val = "1" }; CompatibilitySetting compatibilitySetting5 = new CompatibilitySetting(){ Name = CompatSettingNameValues.DifferentiateMultirowTableHeaders, Uri = "http://schemas.microsoft.com/office/word", Val = "1" }; compatibility1.Append(spaceForUnderline1); compatibility1.Append(balanceSingleByteDoubleByteWidth1); compatibility1.Append(doNotLeaveBackslashAlone1); compatibility1.Append(underlineTrailingSpaces1); compatibility1.Append(doNotExpandShiftReturn1); compatibility1.Append(adjustLineHeightInTable1); compatibility1.Append(useFarEastLayout1); compatibility1.Append(compatibilitySetting1); compatibility1.Append(compatibilitySetting2); compatibility1.Append(compatibilitySetting3); compatibility1.Append(compatibilitySetting4); compatibility1.Append(compatibilitySetting5); Rsids rsids1 = new Rsids(); RsidRoot rsidRoot1 = new RsidRoot(){ Val = "0065051C" }; Rsid rsid1 = new Rsid(){ Val = "00023006" }; Rsid rsid2 = new Rsid(){ Val = "000375B4" }; Rsid rsid3 = new Rsid(){ Val = "000B3CD4" }; Rsid rsid4 = new Rsid(){ Val = "000D444D" }; Rsid rsid5 = new Rsid(){ Val = "00155FE4" }; Rsid rsid6 = new Rsid(){ Val = "00157205" }; Rsid rsid7 = new Rsid(){ Val = "00184FE2" }; Rsid rsid8 = new Rsid(){ Val = "0021780B" }; Rsid rsid9 = new Rsid(){ Val = "00246099" }; Rsid rsid10 = new Rsid(){ Val = "002630CE" }; Rsid rsid11 = new Rsid(){ Val = "002822D5" }; Rsid rsid12 = new Rsid(){ Val = "002B1150" }; Rsid rsid13 = new Rsid(){ Val = "00312F55" }; Rsid rsid14 = new Rsid(){ Val = "003164B1" }; Rsid rsid15 = new Rsid(){ Val = "003E3E28" }; Rsid rsid16 = new Rsid(){ Val = "003E4104" }; Rsid rsid17 = new Rsid(){ Val = "003F4155" }; Rsid rsid18 = new Rsid(){ Val = "00432250" }; Rsid rsid19 = new Rsid(){ Val = "00442213" }; Rsid rsid20 = new Rsid(){ Val = "0046772B" }; Rsid rsid21 = new Rsid(){ Val = "004E1BAE" }; Rsid rsid22 = new Rsid(){ Val = "005168C8" }; Rsid rsid23 = new Rsid(){ Val = "00554C36" }; Rsid rsid24 = new Rsid(){ Val = "0056510B" }; Rsid rsid25 = new Rsid(){ Val = "005812F7" }; Rsid rsid26 = new Rsid(){ Val = "00591DB3" }; Rsid rsid27 = new Rsid(){ Val = "005C5F46" }; Rsid rsid28 = new Rsid(){ Val = "006150B3" }; Rsid rsid29 = new Rsid(){ Val = "0065051C" }; Rsid rsid30 = new Rsid(){ Val = "006529C4" }; Rsid rsid31 = new Rsid(){ Val = "00654EDD" }; Rsid rsid32 = new Rsid(){ Val = "006617B0" }; Rsid rsid33 = new Rsid(){ Val = "00673762" }; Rsid rsid34 = new Rsid(){ Val = "006811F2" }; Rsid rsid35 = new Rsid(){ Val = "006905DC" }; Rsid rsid36 = new Rsid(){ Val = "00717274" }; Rsid rsid37 = new Rsid(){ Val = "00726D63" }; Rsid rsid38 = new Rsid(){ Val = "00735B16" }; Rsid rsid39 = new Rsid(){ Val = "0078395F" }; Rsid rsid40 = new Rsid(){ Val = "007C5C36" }; Rsid rsid41 = new Rsid(){ Val = "007E083A" }; Rsid rsid42 = new Rsid(){ Val = "00802542" }; Rsid rsid43 = new Rsid(){ Val = "00815205" }; Rsid rsid44 = new Rsid(){ Val = "008601D0" }; Rsid rsid45 = new Rsid(){ Val = "008A3AEB" }; Rsid rsid46 = new Rsid(){ Val = "00A0620B" }; Rsid rsid47 = new Rsid(){ Val = "00A85C79" }; Rsid rsid48 = new Rsid(){ Val = "00A97EF2" }; Rsid rsid49 = new Rsid(){ Val = "00B02BB2" }; Rsid rsid50 = new Rsid(){ Val = "00B226C3" }; Rsid rsid51 = new Rsid(){ Val = "00B242C6" }; Rsid rsid52 = new Rsid(){ Val = "00B65CCF" }; Rsid rsid53 = new Rsid(){ Val = "00BE0751" }; Rsid rsid54 = new Rsid(){ Val = "00C746AE" }; Rsid rsid55 = new Rsid(){ Val = "00CA03FE" }; Rsid rsid56 = new Rsid(){ Val = "00CA6E11" }; Rsid rsid57 = new Rsid(){ Val = "00D15121" }; Rsid rsid58 = new Rsid(){ Val = "00D70034" }; Rsid rsid59 = new Rsid(){ Val = "00D71FEB" }; Rsid rsid60 = new Rsid(){ Val = "00DC4725" }; Rsid rsid61 = new Rsid(){ Val = "00DD0BFF" }; Rsid rsid62 = new Rsid(){ Val = "00E1398B" }; Rsid rsid63 = new Rsid(){ Val = "00EC4B3C" }; Rsid rsid64 = new Rsid(){ Val = "00F35C24" }; Rsid rsid65 = new Rsid(){ Val = "00F9059B" }; Rsid rsid66 = new Rsid(){ Val = "00F90D0E" }; Rsid rsid67 = new Rsid(){ Val = "00FC0551" }; Rsid rsid68 = new Rsid(){ Val = "00FD7597" }; Rsid rsid69 = new Rsid(){ Val = "00FE4421" }; Rsid rsid70 = new Rsid(){ Val = "00FF4163" }; rsids1.Append(rsidRoot1); rsids1.Append(rsid1); rsids1.Append(rsid2); rsids1.Append(rsid3); rsids1.Append(rsid4); rsids1.Append(rsid5); rsids1.Append(rsid6); rsids1.Append(rsid7); rsids1.Append(rsid8); rsids1.Append(rsid9); rsids1.Append(rsid10); rsids1.Append(rsid11); rsids1.Append(rsid12); rsids1.Append(rsid13); rsids1.Append(rsid14); rsids1.Append(rsid15); rsids1.Append(rsid16); rsids1.Append(rsid17); rsids1.Append(rsid18); rsids1.Append(rsid19); rsids1.Append(rsid20); rsids1.Append(rsid21); rsids1.Append(rsid22); rsids1.Append(rsid23); rsids1.Append(rsid24); rsids1.Append(rsid25); rsids1.Append(rsid26); rsids1.Append(rsid27); rsids1.Append(rsid28); rsids1.Append(rsid29); rsids1.Append(rsid30); rsids1.Append(rsid31); rsids1.Append(rsid32); rsids1.Append(rsid33); rsids1.Append(rsid34); rsids1.Append(rsid35); rsids1.Append(rsid36); rsids1.Append(rsid37); rsids1.Append(rsid38); rsids1.Append(rsid39); rsids1.Append(rsid40); rsids1.Append(rsid41); rsids1.Append(rsid42); rsids1.Append(rsid43); rsids1.Append(rsid44); rsids1.Append(rsid45); rsids1.Append(rsid46); rsids1.Append(rsid47); rsids1.Append(rsid48); rsids1.Append(rsid49); rsids1.Append(rsid50); rsids1.Append(rsid51); rsids1.Append(rsid52); rsids1.Append(rsid53); rsids1.Append(rsid54); rsids1.Append(rsid55); rsids1.Append(rsid56); rsids1.Append(rsid57); rsids1.Append(rsid58); rsids1.Append(rsid59); rsids1.Append(rsid60); rsids1.Append(rsid61); rsids1.Append(rsid62); rsids1.Append(rsid63); rsids1.Append(rsid64); rsids1.Append(rsid65); rsids1.Append(rsid66); rsids1.Append(rsid67); rsids1.Append(rsid68); rsids1.Append(rsid69); rsids1.Append(rsid70); M.MathProperties mathProperties1 = new M.MathProperties(); M.MathFont mathFont1 = new M.MathFont(){ Val = "Cambria Math" }; M.BreakBinary breakBinary1 = new M.BreakBinary(){ Val = M.BreakBinaryOperatorValues.Before }; M.BreakBinarySubtraction breakBinarySubtraction1 = new M.BreakBinarySubtraction(){ Val = M.BreakBinarySubtractionValues.MinusMinus }; M.SmallFraction smallFraction1 = new M.SmallFraction(){ Val = M.BooleanValues.Zero }; M.DisplayDefaults displayDefaults1 = new M.DisplayDefaults(); M.LeftMargin leftMargin1 = new M.LeftMargin(){ Val = (UInt32Value)0U }; M.RightMargin rightMargin1 = new M.RightMargin(){ Val = (UInt32Value)0U }; M.DefaultJustification defaultJustification1 = new M.DefaultJustification(){ Val = M.JustificationValues.CenterGroup }; M.WrapIndent wrapIndent1 = new M.WrapIndent(){ Val = (UInt32Value)1440U }; M.IntegralLimitLocation integralLimitLocation1 = new M.IntegralLimitLocation(){ Val = M.LimitLocationValues.SubscriptSuperscript }; M.NaryLimitLocation naryLimitLocation1 = new M.NaryLimitLocation(){ Val = M.LimitLocationValues.UnderOver }; mathProperties1.Append(mathFont1); mathProperties1.Append(breakBinary1); mathProperties1.Append(breakBinarySubtraction1); mathProperties1.Append(smallFraction1); mathProperties1.Append(displayDefaults1); mathProperties1.Append(leftMargin1); mathProperties1.Append(rightMargin1); mathProperties1.Append(defaultJustification1); mathProperties1.Append(wrapIndent1); mathProperties1.Append(integralLimitLocation1); mathProperties1.Append(naryLimitLocation1); ThemeFontLanguages themeFontLanguages1 = new ThemeFontLanguages(){ Val = "en-US", EastAsia = "ja-JP" }; ColorSchemeMapping colorSchemeMapping1 = new ColorSchemeMapping(){ Background1 = ColorSchemeIndexValues.Light1, Text1 = ColorSchemeIndexValues.Dark1, Background2 = ColorSchemeIndexValues.Light2, Text2 = ColorSchemeIndexValues.Dark2, Accent1 = ColorSchemeIndexValues.Accent1, Accent2 = ColorSchemeIndexValues.Accent2, Accent3 = ColorSchemeIndexValues.Accent3, Accent4 = ColorSchemeIndexValues.Accent4, Accent5 = ColorSchemeIndexValues.Accent5, Accent6 = ColorSchemeIndexValues.Accent6, Hyperlink = ColorSchemeIndexValues.Hyperlink, FollowedHyperlink = ColorSchemeIndexValues.FollowedHyperlink }; ShapeDefaults shapeDefaults2 = new ShapeDefaults(); Ovml.ShapeDefaults shapeDefaults3 = new Ovml.ShapeDefaults(){ Extension = V.ExtensionHandlingBehaviorValues.Edit, MaxShapeId = 2049 }; V.TextBox textBox2 = new V.TextBox(){ Inset = "5.85pt,.7pt,5.85pt,.7pt" }; shapeDefaults3.Append(textBox2); Ovml.ShapeLayout shapeLayout1 = new Ovml.ShapeLayout(){ Extension = V.ExtensionHandlingBehaviorValues.Edit }; Ovml.ShapeIdMap shapeIdMap1 = new Ovml.ShapeIdMap(){ Extension = V.ExtensionHandlingBehaviorValues.Edit, Data = "1" }; shapeLayout1.Append(shapeIdMap1); shapeDefaults2.Append(shapeDefaults3); shapeDefaults2.Append(shapeLayout1); DecimalSymbol decimalSymbol1 = new DecimalSymbol(){ Val = "." }; ListSeparator listSeparator1 = new ListSeparator(){ Val = "," }; W15.ChartTrackingRefBased chartTrackingRefBased1 = new W15.ChartTrackingRefBased(); W15.PersistentDocumentId persistentDocumentId1 = new W15.PersistentDocumentId(){ Val = "{57C27CDA-3B4C-42CA-80EF-A200C26DFF13}" }; settings1.Append(zoom1); settings1.Append(bordersDoNotSurroundHeader1); settings1.Append(bordersDoNotSurroundFooter1); settings1.Append(defaultTabStop1); settings1.Append(displayHorizontalDrawingGrid1); settings1.Append(displayVerticalDrawingGrid1); settings1.Append(characterSpacingControl1); settings1.Append(headerShapeDefaults1); settings1.Append(footnoteDocumentWideProperties1); settings1.Append(endnoteDocumentWideProperties1); settings1.Append(compatibility1); settings1.Append(rsids1); settings1.Append(mathProperties1); settings1.Append(themeFontLanguages1); settings1.Append(colorSchemeMapping1); settings1.Append(shapeDefaults2); settings1.Append(decimalSymbol1); settings1.Append(listSeparator1); settings1.Append(chartTrackingRefBased1); settings1.Append(persistentDocumentId1); documentSettingsPart1.Settings = settings1; }
// 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(); Paragraph paragraph1 = new Paragraph(){ RsidParagraphAddition = "003E4104", RsidRunAdditionDefault = "0065051C" }; Run run1 = new Run(); RunProperties runProperties1 = new RunProperties(); RunFonts runFonts1 = new RunFonts(){ Hint = FontTypeHintValues.EastAsia }; runProperties1.Append(runFonts1); Text text1 = new Text(); text1.Text = "A"; run1.Append(runProperties1); run1.Append(text1); Run run2 = new Run(){ RsidRunAddition = "003E4104" }; RunProperties runProperties2 = new RunProperties(); RunStyle runStyle1 = new RunStyle(){ Val = "a5" }; runProperties2.Append(runStyle1); FootnoteReference footnoteReference1 = new FootnoteReference(){ Id = 1 }; run2.Append(runProperties2); run2.Append(footnoteReference1); BookmarkStart bookmarkStart1 = new BookmarkStart(){ Name = "_GoBack", Id = "0" }; BookmarkEnd bookmarkEnd1 = new BookmarkEnd(){ Id = "0" }; paragraph1.Append(run1); paragraph1.Append(run2); paragraph1.Append(bookmarkStart1); paragraph1.Append(bookmarkEnd1); Paragraph paragraph2 = new Paragraph(){ RsidParagraphAddition = "003E4104", RsidRunAdditionDefault = "003E4104" }; Run run3 = new Run(); RunProperties runProperties3 = new RunProperties(); RunFonts runFonts2 = new RunFonts(){ Hint = FontTypeHintValues.EastAsia }; runProperties3.Append(runFonts2); Text text2 = new Text(); text2.Text = "B"; run3.Append(runProperties3); run3.Append(text2); Run run4 = new Run(); RunProperties runProperties4 = new RunProperties(); RunStyle runStyle2 = new RunStyle(){ Val = "a5" }; runProperties4.Append(runStyle2); FootnoteReference footnoteReference2 = new FootnoteReference(){ Id = 2 }; run4.Append(runProperties4); run4.Append(footnoteReference2); paragraph2.Append(run3); paragraph2.Append(run4); Paragraph paragraph3 = new Paragraph(){ RsidParagraphAddition = "003E4104", RsidRunAdditionDefault = "003E4104" }; Run run5 = new Run(); RunProperties runProperties5 = new RunProperties(); RunFonts runFonts3 = new RunFonts(){ Hint = FontTypeHintValues.EastAsia }; runProperties5.Append(runFonts3); Text text3 = new Text(); text3.Text = "C"; run5.Append(runProperties5); run5.Append(text3); Run run6 = new Run(); RunProperties runProperties6 = new RunProperties(); RunStyle runStyle3 = new RunStyle(){ Val = "a5" }; runProperties6.Append(runStyle3); FootnoteReference footnoteReference3 = new FootnoteReference(){ Id = 3 }; run6.Append(runProperties6); run6.Append(footnoteReference3); paragraph3.Append(run5); paragraph3.Append(run6); SectionProperties sectionProperties1 = new SectionProperties(){ RsidR = "003E4104" }; FootnoteProperties footnoteProperties1 = new FootnoteProperties(); FootnotePosition footnotePosition1 = new FootnotePosition(){ Val = FootnotePositionValues.BeneathText }; footnoteProperties1.Append(footnotePosition1); 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 }; W15.FootnoteColumns footnoteColumns1 = new W15.FootnoteColumns(){ Val = 4 }; sectionProperties1.Append(footnoteProperties1); sectionProperties1.Append(pageSize1); sectionProperties1.Append(pageMargin1); sectionProperties1.Append(columns1); sectionProperties1.Append(docGrid1); sectionProperties1.Append(footnoteColumns1); body1.Append(paragraph1); body1.Append(paragraph2); body1.Append(paragraph3); body1.Append(sectionProperties1); document1.Append(body1); mainDocumentPart1.Document = document1; }