Esempio n. 1
0
        public CT_TabStop AddNewTab()
        {
            CT_TabStop s = new CT_TabStop();

            this.tabField.Add(s);
            return(s);
        }
Esempio n. 2
0
        public static CT_TabStop Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_TabStop ctObj = new CT_TabStop();

            if (node.Attributes["w:val"] != null)
            {
                ctObj.val = (ST_TabJc)Enum.Parse(typeof(ST_TabJc), node.Attributes["w:val"].Value);
            }
            if (node.Attributes["w:leader"] != null)
            {
                ctObj.leader = (ST_TabTlc)Enum.Parse(typeof(ST_TabTlc), node.Attributes["w:leader"].Value);
            }
            ctObj.pos = XmlHelper.ReadString(node.Attributes["w:pos"]);
            return(ctObj);
        }
Esempio n. 3
0
File: Tab.cs Progetto: xoposhiy/npoi
 public CT_TabStop AddNewTab()
 {
     CT_TabStop s = new CT_TabStop();
     this.tabField.Add(s);
     return s;
 }
Esempio n. 4
0
File: Tab.cs Progetto: 89sos98/npoi
 public static CT_TabStop Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_TabStop ctObj = new CT_TabStop();
     if (node.Attributes["w:val"] != null)
         ctObj.val = (ST_TabJc)Enum.Parse(typeof(ST_TabJc), node.Attributes["w:val"].Value);
     if (node.Attributes["w:leader"] != null)
         ctObj.leader = (ST_TabTlc)Enum.Parse(typeof(ST_TabTlc), node.Attributes["w:leader"].Value);
     ctObj.pos = XmlHelper.ReadString(node.Attributes["w:pos"]);
     return ctObj;
 }