internal static CT_TextTabStopList Parse(XElement node, XmlNamespaceManager namespaceManager) { CT_TextTabStopList ttsl = new CT_TextTabStopList(); ttsl.tab = new List <CT_TextTabStop>(); foreach (XElement childNode in node.ChildElements()) { if (childNode.Name.LocalName == "tab") { ttsl.tab.Add(CT_TextTabStop.Parse(childNode, namespaceManager)); } } return(ttsl); }
public static CT_TextTabStop Parse(XElement node, XmlNamespaceManager namespaceManager) { if (node == null) { return(null); } CT_TextTabStop ctObj = new CT_TextTabStop(); ctObj.pos = XmlHelper.ReadInt(node.Attribute("pos")); if (node.Attribute("algn") != null) { ctObj.algn = (ST_TextTabAlignType)Enum.Parse(typeof(ST_TextTabAlignType), node.Attribute("algn").Value); } return(ctObj); }