示例#1
0
 public override StmlNode Add(StmlNode node)
 {
     if (!(node is ListItemElement))
     {
         return(null);
     }
     return(base.Add(node));
 }
示例#2
0
        public virtual StmlNode Add(StmlNode node)
        {
            node.Parent = this;
            if (this.ChildNodes.Count > 0)
            {
                node.PrevNode = this.ChildNodes[this.ChildNodes.Count - 1];
                this.ChildNodes[this.ChildNodes.Count - 1].NextNode = node;
            }

            this.ChildNodes.Add(node);
            return(node);
        }