コード例 #1
0
        //.....................................................................
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public static M.SubSuperscript MakeScriptBoth(string strBase, string strUpper, string strLower)
        {
            M.SubSuperscript script = new M.SubSuperscript( );

            M.SubSuperscriptProperties properties = new M.SubSuperscriptProperties( );

            properties.Append(OpenDocxMathExprs.MakeControlProperties(true));

            script.Append(properties);

            script.Append(OpenDocxMathExprs.MakeMathBase(strBase));
            script.Append(OpenDocxMathExprs.MakeScriptArgumentLower(strLower));
            script.Append(OpenDocxMathExprs.MakeScriptArgumentUpper(strUpper));

            return(script);
        }
コード例 #2
0
        private static M.SubSuperscript MakeScriptBoth( )
        {
            M.SubSuperscript subSuperscript1 = new M.SubSuperscript( );

            M.SubSuperscriptProperties subSuperscriptProperties1 = new M.SubSuperscriptProperties( );

            subSuperscriptProperties1.Append(OpenDocxMathExprs.MakeControlProperties(true));

            M.Base base1 = OpenDocxMathExprs.MakeMathBase("A");      // new M.Base( );

            //---------------------------------------------
            M.SubArgument subArgument1 = OpenDocxMathExprs.MakeScriptArgumentLower("i");

            M.SuperArgument superArgument1 = OpenDocxMathExprs.MakeScriptArgumentUpper("w");

            //---------------------------------------------
            subSuperscript1.Append(subSuperscriptProperties1);
            subSuperscript1.Append(base1);
            subSuperscript1.Append(subArgument1);
            subSuperscript1.Append(superArgument1);

            return(subSuperscript1);
        }
コード例 #3
0
        private static M.Fraction MakeRun3( )
        {
            M.SubSuperscript upperSCR = MakeScriptBoth( );

            M.Superscript lowerSCR = OpenDocxMathExprs.MakeScriptUpper("x", "3");     //.ma MakeScriptUpper( );

            return(OpenDocxMathExprs.MakeFraction(upperSCR, lowerSCR));

            //M.Fraction fraction1 = new M.Fraction( );

            //M.FractionProperties fractionProperties1 = HansOpenDocx.MakeFractionProperties( );

            //M.Numerator numerator1 = new M.Numerator( );
            //numerator1.Append( upperSCR );

            //M.Denominator denominator1 = new M.Denominator( );
            //denominator1.Append( lowerSCR );

            //fraction1.Append( fractionProperties1 );
            //fraction1.Append( numerator1 );
            //fraction1.Append( denominator1 );

            //return fraction1;
        }