//..................................................................... /// <summary> /// /// </summary> /// <returns></returns> private OpxM.FractionProperties MakeFractionProperties( ) { OpxM.FractionProperties fractionProperties1 = new OpxM.FractionProperties( ); OpxM.ControlProperties controlProperties1 = new OpxM.ControlProperties( ); //RunProperties runProperties4 = new RunProperties( ); //RunFonts runFonts3 = new RunFonts( ) { Ascii = "Cambria Math", HighAnsi = "Cambria Math", EastAsia = "Cambria Math" }; //runProperties4.Append( runFonts3 ); controlProperties1.Append(this.CambriaFont2( )); fractionProperties1.Append(controlProperties1); return(fractionProperties1); }
//..................................................................... /// <summary> /// /// </summary> /// <param name="useItalic"></param> /// <returns></returns> public static M.ControlProperties MakeControlProperties(bool useItalic = false) { RunProperties propertiesRUN = new RunProperties( ); propertiesRUN.Append(OpenDocxMathExprs.MakeMathFont()); if (useItalic) { propertiesRUN.Append(OpenDocxMathExprs.MakeMathFontItalic()); } //--------------------------------------------- M.ControlProperties propertiesCTRL = new M.ControlProperties( ); propertiesCTRL.Append(propertiesRUN); return(propertiesCTRL); }
//..................................................................... /// <summary> /// 分子 /// </summary> /// <returns></returns> private OpxM.Numerator mathNumer_B_B2_4AC( ) { OpxM.Numerator numerator1 = new OpxM.Numerator( ); OpxM.Run run3 = mathMINUS( ); OpxM.Run run4 = mathB( ); OpxM.Run run5 = mathPM( ); //..................................................................... OpxM.Radical radical1 = new OpxM.Radical( ); OpxM.RadicalProperties radicalProperties1 = new OpxM.RadicalProperties( ); OpxM.HideDegree hideDegree1 = new OpxM.HideDegree( ) { Val = OpxM.BooleanValues.One }; OpxM.ControlProperties controlProperties2 = new OpxM.ControlProperties( ); //RunProperties runProperties10 = CambriaFont2( ); controlProperties2.Append(CambriaFont2( )); radicalProperties1.Append(hideDegree1); radicalProperties1.Append(controlProperties2); //--------------------------------------------- OpxM.Degree degree1 = new OpxM.Degree( ); OpxM.Base base1 = new OpxM.Base( ); OpxM.Superscript superscript1 = new OpxM.Superscript( ); OpxM.SuperscriptProperties superscriptProperties1 = new OpxM.SuperscriptProperties( ); OpxM.ControlProperties controlProperties3 = new OpxM.ControlProperties( ); //RunProperties runProperties11 = new RunProperties( ); //RunFonts runFonts = new RunFonts( ) { Ascii = "Cambria Math", HighAnsi = "Cambria Math", EastAsia = "Cambria Math" }; //runProperties11.Append( runFonts ); controlProperties3.Append(this.CambriaFont2( )); superscriptProperties1.Append(controlProperties3); OpxM.Base base2 = new OpxM.Base( ); //--------------------------------------------- OpxM.Run run6 = mathB2( ); base2.Append(run6); OpxM.SuperArgument superArgument1 = new OpxM.SuperArgument( ); //--------------------------------------------- OpxM.Run run7 = mathCP2( ); //--------------------------------------------- superArgument1.Append(run7); superscript1.Append(superscriptProperties1); superscript1.Append(base2); superscript1.Append(superArgument1); OpxM.Run run8 = mathCN4( ); OpxM.Run run9 = mathAC( ); //--------------------------------------------- base1.Append(superscript1); base1.Append(run8); base1.Append(run9); radical1.Append(radicalProperties1); radical1.Append(degree1); radical1.Append(base1); numerator1.Append(run3); numerator1.Append(run4); numerator1.Append(run5); numerator1.Append(radical1); return(numerator1); }
/// <summary> /// /// </summary> /// <returns></returns> private static M.Superscript MakeScriptUpper( ) { M.Superscript superscript1 = new M.Superscript( ); M.SuperscriptProperties superscriptProperties1 = new M.SuperscriptProperties( ); M.ControlProperties controlProperties3 = new M.ControlProperties( ); RunProperties runProperties10 = new RunProperties( ); RunFonts runFonts8 = new RunFonts( ) { Ascii = "Cambria Math", HighAnsi = "Cambria Math" }; Italic italic2 = new Italic( ); runProperties10.Append(runFonts8); runProperties10.Append(italic2); controlProperties3.Append(runProperties10); superscriptProperties1.Append(controlProperties3); M.Base base2 = new M.Base( ); M.Run run6 = new M.Run( ); RunProperties runProperties11 = new RunProperties( ); RunFonts runFonts9 = new RunFonts( ) { Ascii = "Cambria Math", HighAnsi = "Cambria Math" }; runProperties11.Append(runFonts9); M.Text text6 = new M.Text( ); text6.Text = "x"; run6.Append(runProperties11); run6.Append(text6); base2.Append(run6); M.SuperArgument superArgument2 = new M.SuperArgument( ); M.Run run7 = new M.Run( ); RunProperties runProperties12 = new RunProperties( ); RunFonts runFonts10 = new RunFonts( ) { Ascii = "Cambria Math", HighAnsi = "Cambria Math" }; runProperties12.Append(runFonts10); M.Text text7 = new M.Text( ); text7.Text = "3"; run7.Append(runProperties12); run7.Append(text7); superArgument2.Append(run7); superscript1.Append(superscriptProperties1); superscript1.Append(base2); superscript1.Append(superArgument2); return(superscript1); }