Пример #1
0
        public static CT_TextSpacingPercent Parse(XElement node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_TextSpacingPercent ctObj = new CT_TextSpacingPercent();

            ctObj.val = XmlHelper.ReadInt(node.Attribute("val"));
            return(ctObj);
        }
Пример #2
0
        public static CT_TextSpacing Parse(XElement node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_TextSpacing ctObj = new CT_TextSpacing();

            foreach (XElement childNode in node.ChildElements())
            {
                if (childNode.Name.LocalName == "spcPct")
                {
                    ctObj.spcPct = CT_TextSpacingPercent.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "spcPts")
                {
                    ctObj.spcPts = CT_TextSpacingPoint.Parse(childNode, namespaceManager);
                }
            }
            return(ctObj);
        }
Пример #3
0
 public CT_TextSpacingPercent AddNewSpcPct()
 {
     this.spcPctField = new CT_TextSpacingPercent();
     return(this.spcPctField);
 }