/// <summary> /// Чистый класс, добавление аргумента и базы осуществляется через XMLSubArgument, XMLBase /// </summary> public OXMLMathSubscriptWrap() { XMLSubscript = new M.Subscript(); XMLBase = new M.Base(); XMLSubArgument = new M.SubArgument(); XMLSubscript.Append(OXMLMathControlPropertiesWrap.DefaultSubscriptProperties()); XMLSubscript.Append(XMLBase); XMLSubscript.Append(XMLSubArgument); }
//..................................................................... /// <summary> /// /// </summary> /// <returns></returns> private M.MathFunction MakeMath003_Function( ) { M.Subscript parm1 = OpenDocxMathExprs.MakeScriptLower("A", "c,head"); M.Run parm2 = OpenDocxMathExprs.MakeMathRun(";"); M.Subscript parm3 = OpenDocxMathExprs.MakeScriptLower("A", "c,base"); M.Run parm4 = OpenDocxMathExprs.MakeMathRun("*;"); M.Subscript parm5 = OpenDocxMathExprs.MakeScriptLower("A", "c,base"); return(OpenDocxMathExprs.MakeMathFunction("min", parm1, parm2, parm3, parm4, parm5)); }
//..................................................................... /// <summary> /// /// </summary> /// <param name="matBase"></param> /// <param name="matSubn"></param> /// <returns></returns> public static M.Subscript MakeScriptLower(string matBase, string matSubn) { M.SubscriptProperties properties = new M.SubscriptProperties( ); properties.Append(OpenDocxMathExprs.MakeControlProperties(true)); //--------------------------------------------- M.Subscript subscript = new M.Subscript( ); subscript.Append(properties); subscript.Append(OpenDocxMathExprs.MakeMathBase(matBase)); subscript.Append(OpenDocxMathExprs.MakeScriptArgumentLower(matSubn)); return(subscript); }