//..................................................................... /// <summary> /// /// </summary> /// <returns></returns> private Paragraph MakeP2( ) { Paragraph paragraph3 = new Paragraph( ) { RsidParagraphMarkRevision = "00985895", RsidParagraphAddition = "00985895", RsidRunAdditionDefault = "00985895" }; M.Paragraph paragraph4 = new M.Paragraph( ); M.OfficeMath officeMath2 = new M.OfficeMath( ); M.Run run3 = OpenDocxMathExprs.MakeMathRun("y=2+1"); // new M.Run( ); officeMath2.Append(run3); M.Justification justification = new M.Justification( ) { Val = M.JustificationValues.Left }; M.ParagraphProperties paraProperties = new M.ParagraphProperties( ); paraProperties.Append(justification); paragraph4.Append(paraProperties); paragraph4.Append(officeMath2); paragraph3.Append(paragraph4); return(paragraph3); }
/// <summary> /// /// </summary> /// <returns></returns> private Paragraph MakeP1( ) { Paragraph paragraphNORM = new Paragraph( ) { RsidParagraphMarkRevision = "00985895", RsidParagraphAddition = "00337477", RsidRunAdditionDefault = "00985895" }; M.Justification justification = new M.Justification( ) { Val = M.JustificationValues.Right }; M.ParagraphProperties paraProperties = new M.ParagraphProperties( ); paraProperties.Append(justification); M.Paragraph paragraphMATH = new M.Paragraph( ); M.OfficeMath paraMathLine = new M.OfficeMath( ); M.Run run1 = OpenDocxMathExprs.MakeMathRun("x=1+2/3=1.6667"); // new M.Run( ); paraMathLine.Append(run1); paragraphMATH.Append(paraMathLine); paragraphMATH.Append(paraProperties); paragraphNORM.Append(paragraphMATH); return(paragraphNORM); }