Exemplo n.º 1
0
        /// <summary>
        /// Adds the specified TitleButton object to the collection.
        /// </summary>
        /// <param name="value">The TitleButton object to add to the collection.</param>
        /// <returns>The TitleButton object added to the collection.</returns>
        public TitleButton Add(TitleButton value)
        {
            // Use base class to process actual collection operation
            base.List.Add(value as object);

            return(value);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Returns the index of the first occurrence of the given TitleButton.
 /// </summary>
 /// <param name="value">The TitleButton to locate.</param>
 /// <returns>Index of object; otherwise -1</returns>
 public int IndexOf(TitleButton value)
 {
     // Find the 0 based index of the requested entry
     return(base.List.IndexOf(value));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Determines whether a TitleButton is in the collection.
 /// </summary>
 /// <param name="value">The TitleButton to locate in the collection.</param>
 /// <returns>true if item is found in the collection; otherwise, false.</returns>
 public bool Contains(TitleButton value)
 {
     // Use base class to process actual collection operation
     return(base.List.Contains(value as object));
 }
Exemplo n.º 4
0
 /// <summary>
 /// Inserts a TitleButton instance into the collection at the specified location.
 /// </summary>
 /// <param name="index">The location in the collection where you want to add the TitleButton.</param>
 /// <param name="value">The TitleButton object to insert.</param>
 public void Insert(int index, TitleButton value)
 {
     // Use base class to process actual collection operation
     base.List.Insert(index, value as object);
 }
Exemplo n.º 5
0
 /// <summary>
 /// Removes a TitleButton from the collection.
 /// </summary>
 /// <param name="value">A TitleButton to remove from the collection.</param>
 public void Remove(TitleButton value)
 {
     // Use base class to process actual collection operation
     base.List.Remove(value as object);
 }