コード例 #1
0
        //.....................................................................
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public static M.Superscript MakeScriptUpper(string mathBase, string mathArgm)
        {
            M.SuperscriptProperties properties = new M.SuperscriptProperties( );

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

            //---------------------------------------------
            M.Superscript script = new M.Superscript( );

            script.Append(properties);

            script.Append(OpenDocxMathExprs.MakeMathBase(mathBase));
            script.Append(OpenDocxMathExprs.MakeScriptArgumentUpper(mathArgm));

            return(script);
        }
コード例 #2
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);
        }
コード例 #3
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);
        }