コード例 #1
0
ファイル: NodeTypeCollection.cs プロジェクト: EflfK/Parser
        public void Remove(FormulaEntryNode Node)
        {
            int num = this.IndexOf(Node);

            if (num >= 0)
            {
                this.RemoveAt(num);
            }
        }
コード例 #2
0
ファイル: NodeTypeCollection.cs プロジェクト: EflfK/Parser
        public void Add(FormulaEntryNode Node)
        {
            this.Nodes.Add(Node);

            /*
             *          if (this.marked)
             *          {
             *  Node.Dirty = true;
             *          }*/
        }
コード例 #3
0
ファイル: NodeTypeCollection.cs プロジェクト: EflfK/Parser
 public void AddRange(FormulaEntryNode[] Nodes)
 {
     if (Nodes == null)
     {
         throw new ArgumentNullException("Node");
     }
     for (int i = 0; i < Nodes.Length; i++)
     {
         FormulaEntryNode item = Nodes[i];
         this.Add(item);
     }
 }
コード例 #4
0
ファイル: NodeTypeCollection.cs プロジェクト: EflfK/Parser
        int IList.Add(object item)
        {
            FormulaEntryNode node = (FormulaEntryNode)item;
            int result            = this.Nodes.Add(node);

            /*
             *          if (this.marked)
             *          {
             *                  listItem.Dirty = true;
             *          }*/
            return(result);
        }
コード例 #5
0
ファイル: NodeTypeCollection.cs プロジェクト: EflfK/Parser
 public void Insert(int index, FormulaEntryNode Node)
 {
     this.Nodes.Insert(index, Node);
 }
コード例 #6
0
ファイル: NodeTypeCollection.cs プロジェクト: EflfK/Parser
 public int IndexOf(FormulaEntryNode Node)
 {
     return(this.Nodes.IndexOf(Node));
 }
コード例 #7
0
ファイル: NodeTypeCollection.cs プロジェクト: EflfK/Parser
 public bool Contains(FormulaEntryNode Node)
 {
     return(this.Nodes.Contains(Node));
 }