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