コード例 #1
0
ファイル: Tab.cs プロジェクト: hiodava/Romero
        public CT_TabStop AddNewTab()
        {
            CT_TabStop s = new CT_TabStop();

            this.tabField.Add(s);
            return(s);
        }
コード例 #2
0
ファイル: Tab.cs プロジェクト: hiodava/Romero
        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);
        }
コード例 #3
0
ファイル: Tab.cs プロジェクト: xoposhiy/npoi
 public CT_TabStop AddNewTab()
 {
     CT_TabStop s = new CT_TabStop();
     this.tabField.Add(s);
     return s;
 }
コード例 #4
0
ファイル: Tab.cs プロジェクト: 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;
 }