Esempio n. 1
0
 /// <summary>
 /// CT_MathPr class constructor
 /// </summary>
 public CT_MathPr()
 {
     this.naryLimField = new CT_LimLoc();
     this.intLimField = new CT_LimLoc();
     //this.intraSpField = new CT_TwipsMeasure();
     //this.interSpField = new CT_TwipsMeasure();
     //this.postSpField = new CT_TwipsMeasure();
     //this.preSpField = new CT_TwipsMeasure();
     this.defJcField = new CT_OMathJc();
     this.rMarginField = new CT_TwipsMeasure();
     this.lMarginField = new CT_TwipsMeasure();
     //this.dispDefField = new CT_OnOff();
     this.smallFracField = new CT_OnOff();
     this.brkBinSubField = new CT_BreakBinSub();
     this.brkBinField = new CT_BreakBin();
     this.mathFontField = new CT_String();
     this.mathFont.val = "Cambria Math";
     this.brkBin.val = ST_BreakBin.before;
     this.brkBinSub.val = ST_BreakBinSub.Item;
     this.smallFrac.val = ST_OnOff.off;
     this.lMargin.val = 0;
     this.rMargin.val = 0;
     this.defJc.val = ST_Jc.centerGroup;
     this.itemField = new CT_TwipsMeasure();
     (this.Item as CT_TwipsMeasure).val = 1440;
     this.itemElementName = "wrapIndent";
     this.intLim.val = ST_LimLoc.subSup;
     this.naryLim.val = ST_LimLoc.undOvr;
 }
Esempio n. 2
0
 public static CT_BreakBin Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_BreakBin ctObj = new CT_BreakBin();
     if (node.Attributes["m:val"] != null)
         ctObj.val = (ST_BreakBin)Enum.Parse(typeof(ST_BreakBin), node.Attributes["m:val"].Value);
     return ctObj;
 }