public static CT_Num Parse(XmlNode node, XmlNamespaceManager namespaceManager) { if (node == null) return null; CT_Num ctObj = new CT_Num(); ctObj.numId = XmlHelper.ReadString(node.Attributes["w:numId"]); ctObj.lvlOverride = new List<CT_NumLvl>(); foreach (XmlNode childNode in node.ChildNodes) { if (childNode.LocalName == "abstractNumId") ctObj.abstractNumId = CT_DecimalNumber.Parse(childNode, namespaceManager); else if (childNode.LocalName == "lvlOverride") ctObj.lvlOverride.Add(CT_NumLvl.Parse(childNode, namespaceManager)); } return ctObj; }
public void SetCTNum(CT_Num ctNum) { this.ctNum = ctNum; }
public XWPFNum(CT_Num ctNum, XWPFNumbering numbering) { this.ctNum = ctNum; this.numbering = numbering; }
public XWPFNum(XWPFNumbering numbering) { this.ctNum = null; this.numbering = numbering; }
public XWPFNum(CT_Num ctNum) { this.ctNum = ctNum; this.numbering = null; }
public XWPFNum() { this.ctNum = null; this.numbering = null; }
public void SetNumArray(int pos, CT_Num ct_Num) { if (this.numField == null) this.numField = new List<CT_Num>(); if (pos < 0 || pos >= numField.Count) numField.Add(ct_Num); numField[pos] = ct_Num; }
public CT_Num AddNewNum() { CT_Num num = new CT_Num(); if (this.numField == null) this.numField = new List<CT_Num>(); numField.Add(num); return num; }
public void SetNumArray(int pos, CT_Num cT_Num) { if (pos < 0 || pos >= numField.Count) numField.Add(cT_Num); numField[pos] = cT_Num; }
public CT_Num AddNewNum() { CT_Num num = new CT_Num(); numField.Add(num); return num; }