//.....................................................................
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        private OpxM.RunProperties PlainStyleValue( )
        {
            OpxM.RunProperties properties = new OpxM.RunProperties( );

            OpxM.Style style = new OpxM.Style( )
            {
                Val = OpxM.StyleValues.Plain
            };

            properties.Append(style);

            return(properties);
        }
Example #2
0
        public OXMLMathRunWrap(string text)
        {
            _text = text;

            XMLRun = new M.Run();

                RunProperties runProperties4 = new RunProperties();
                RunFonts runFonts4 = new RunFonts(){ Ascii = "Cambria Math", HighAnsi = "Cambria Math" };
                Languages languages4 = new Languages(){ Val = "en-US" };

                runProperties4.Append(runFonts4);
                runProperties4.Append(languages4);
                M.Text text3 = new M.Text();
                text3.Text = text;

            XMLRun.Append(runProperties4);
            if (text != "") XMLRun.Append(text3);
        }