/// <summary> /// Removes the first occurrence of a specific SubButtonItem from this SubButtonItemCollection. /// </summary> /// <param name="value"> /// The SubButtonItem value to remove from this SubButtonItemCollection. /// </param> public virtual void Remove(SubButtonItem value) { this.List.Remove(value); }
/// <summary> /// Return the zero-based index of the first occurrence of a specific value /// in this SubButtonItemCollection /// </summary> /// <param name="value"> /// The SubButtonItem value to locate in the SubButtonItemCollection. /// </param> /// <returns> /// The zero-based index of the first occurrence of the _ELEMENT value if found; /// -1 otherwise. /// </returns> public virtual int IndexOf(SubButtonItem value) { return(this.List.IndexOf(value)); }
/// <summary> /// Inserts an element into the SubButtonItemCollection at the specified index /// </summary> /// <param name="index"> /// The index at which the SubButtonItem is to be inserted. /// </param> /// <param name="value"> /// The SubButtonItem to insert. /// </param> public virtual void Insert(int index, SubButtonItem value) { this.List.Insert(index, value); }
/// <summary> /// Adds an instance of type SubButtonItem to the end of this SubButtonItemCollection. /// </summary> /// <param name="value"> /// The SubButtonItem to be added to the end of this SubButtonItemCollection. /// </param> public virtual void Add(SubButtonItem value) { this.List.Add(value); }
/// <summary> /// Determines whether a specfic SubButtonItem value is in this SubButtonItemCollection. /// </summary> /// <param name="value"> /// The SubButtonItem value to locate in this SubButtonItemCollection. /// </param> /// <returns> /// true if value is found in this SubButtonItemCollection; /// false otherwise. /// </returns> public virtual bool Contains(SubButtonItem value) { return(this.List.Contains(value)); }
public SubButtonItemEventArgs(SubButtonItem p_Item) { m_SubItem = p_Item; }
/// <summary> /// Return the zero-based index of the first occurrence of a specific value /// in this SubButtonItemCollection /// </summary> /// <param name="value"> /// The SubButtonItem value to locate in the SubButtonItemCollection. /// </param> /// <returns> /// The zero-based index of the first occurrence of the _ELEMENT value if found; /// -1 otherwise. /// </returns> public virtual int IndexOf(SubButtonItem value) { return this.List.IndexOf(value); }
/// <summary> /// Determines whether a specfic SubButtonItem value is in this SubButtonItemCollection. /// </summary> /// <param name="value"> /// The SubButtonItem value to locate in this SubButtonItemCollection. /// </param> /// <returns> /// true if value is found in this SubButtonItemCollection; /// false otherwise. /// </returns> public virtual bool Contains(SubButtonItem value) { return this.List.Contains(value); }
/// <summary> /// Adds the elements of an array to the end of this SubButtonItemCollection. /// </summary> /// <param name="items"> /// The array whose elements are to be added to the end of this SubButtonItemCollection. /// </param> public virtual void AddRange(SubButtonItem[] items) { foreach (SubButtonItem item in items) { this.List.Add(item); } }
/// <summary> /// Initializes a new instance of the SubButtonItemCollection class, containing elements /// copied from an array. /// </summary> /// <param name="items"> /// The array whose elements are to be added to the new SubButtonItemCollection. /// </param> public SubButtonItemCollection(SubButtonItem[] items) { this.AddRange(items); }