コード例 #1
0
 /// <summary>
 /// Adds the elements of another SubButtonItemCollection to the end of this SubButtonItemCollection.
 /// </summary>
 /// <param name="items">
 /// The SubButtonItemCollection whose elements are to be added to the end of this SubButtonItemCollection.
 /// </param>
 public virtual void AddRange(SubButtonItemCollection items)
 {
     foreach (SubButtonItem item in items)
     {
         this.List.Add(item);
     }
 }
コード例 #2
0
 public Enumerator(SubButtonItemCollection collection)
 {
     this.wrapped = ((System.Collections.CollectionBase)collection).GetEnumerator();
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the SubButtonItemCollection class, containing elements
 /// copied from another instance of SubButtonItemCollection
 /// </summary>
 /// <param name="items">
 /// The SubButtonItemCollection whose elements are to be added to the new SubButtonItemCollection.
 /// </param>
 public SubButtonItemCollection(SubButtonItemCollection items)
 {
     this.AddRange(items);
 }
コード例 #4
0
			public Enumerator(SubButtonItemCollection collection)
			{
				this.wrapped = ((System.Collections.CollectionBase)collection).GetEnumerator();
			}
コード例 #5
0
		/// <summary>
		/// Adds the elements of another SubButtonItemCollection to the end of this SubButtonItemCollection.
		/// </summary>
		/// <param name="items">
		/// The SubButtonItemCollection whose elements are to be added to the end of this SubButtonItemCollection.
		/// </param>
		public virtual void AddRange(SubButtonItemCollection items)
		{
			foreach (SubButtonItem item in items)
			{
				this.List.Add(item);
			}
		}
コード例 #6
0
		/// <summary>
		/// Initializes a new instance of the SubButtonItemCollection class, containing elements
		/// copied from another instance of SubButtonItemCollection
		/// </summary>
		/// <param name="items">
		/// The SubButtonItemCollection whose elements are to be added to the new SubButtonItemCollection.
		/// </param>
		public SubButtonItemCollection(SubButtonItemCollection items)
		{
			this.AddRange(items);
		}