コード例 #1
0
 /// <summary>
 /// Adds a OrgNodeType to the collection at a specific index.
 /// </summary>
 /// <param name="index">The index at which to add the item.</param>
 /// <param name="item">The OrgNodeType to add.</param>
 public void AddAt(int index, OrgNodeType item)
 {
     List.Insert(index, item);
 }
コード例 #2
0
 /// <summary>
 /// Adds a OrgNodeType to the collection.
 /// </summary>
 /// <param name="item">The OrgNodeType to add.</param>
 public void Add(OrgNodeType item)
 {
     List.Add(item);
 }
コード例 #3
0
 private void SetItemProperties(OrgNodeType item)
 {
     item._Parent = Parent;
 }
コード例 #4
0
 /// <summary>
 /// Removes a OrgNodeType from the collection.
 /// </summary>
 /// <param name="item">The OrgNodeType to remove.</param>
 public void Remove(OrgNodeType item)
 {
     List.Remove(item);
 }
コード例 #5
0
 /// <summary>
 /// Determines zero-based index of a OrgNodeType within the collection.
 /// </summary>
 /// <param name="item">The OrgNodeType to locate within the collection.</param>
 /// <returns>The zero-based index.</returns>
 public int IndexOf(OrgNodeType item)
 {
     return List.IndexOf(item);
 }
コード例 #6
0
 /// <summary>
 /// Determines if a OrgNodeType is in the collection.
 /// </summary>
 /// <param name="item">The OrgNodeType to search for.</param>
 /// <returns>true if the OrgNodeType exists within the collection. false otherwise.</returns>
 public bool Contains(OrgNodeType item)
 {
     return List.Contains(item);
 }