Exemple #1
0
        int IList.Add(object item)
        {
            ForControl item2 = (ForControl)item;
            int        num   = this.listItems.Add(item2);

            return(num);
        }
Exemple #2
0
        /// <summary>
        /// Removes the specified item from collection
        /// </summary>
        /// <param name="item">The item to Remove</param>
        public void Remove(ForControl item)
        {
            int index = this.IndexOf(item);

            if (index >= 0)
            {
                this.RemoveAt(index);
            }
        }
Exemple #3
0
        /// <summary>
        /// Determines whether the specified <see cref="System.Object" /> is equal to the current <see cref="Hemrika.SharePresence.Html5.WebControls.ForControl" />
        /// </summary>
        /// <param name="o">The <see cref="System.Object" /> to compare with the current ForControl</param>
        /// <returns>true if the specified <see cref="System.Object" /> is equal to the current <see cref="Hemrika.SharePresence.Html5.WebControls.ForControl" />; otherwise, false.</returns>
        public override bool Equals(object o)
        {
            ForControl item = o as ForControl;

            if (item == null)
            {
                return(false);
            }
            return(this.RefID.Equals(item.RefID));
        }
Exemple #4
0
 /// <summary>
 /// Searches for the specified System.Object and returns the zero-based index of the first occurrence within the entire System.Collections.ArrayList.
 /// </summary>
 /// <param name="item">The System.Object to locate in the System.Collections.ArrayList. The value can be null.</param>
 /// <returns>The zero-based index of the first occurrence of value within the entire System.Collections.ArrayList, if found; otherwise, -1.</returns>
 public int IndexOf(ForControl item)
 {
     return(this.listItems.IndexOf(item));
 }
Exemple #5
0
 /// <summary>
 /// Determines if the collection contains a specified item
 /// </summary>
 /// <param name="item">The item to look for</param>
 /// <returns>True if collection contains the specified item; otherwise false</returns>
 public bool Contains(ForControl item)
 {
     return(this.listItems.Contains(item));
 }
Exemple #6
0
 /// <summary>
 /// Adds a new item to the collection
 /// </summary>
 /// <param name="item">New Item to Add</param>
 public void Add(ForControl item)
 {
     this.listItems.Add(item);
 }
Exemple #7
0
 /// <summary>
 /// Inserts an element into the Collection at the specified index.
 /// </summary>
 /// <param name="index">The zero-based index at which value should be inserted.</param>
 /// <param name="item">The value to insert</param>
 public void Insert(int index, ForControl item)
 {
     this.listItems.Insert(index, item);
 }