/// <summary>
 /// Gets an array of objects containing the specified collection.
 /// </summary>
 /// <param name="editValue">The collection to edit.</param>
 /// <returns>An array containing the collection objects.</returns>
 protected override object[] GetItems(object editValue)
 {
     MenuDefinitionEntryCollection commandContextMenuDefinitionEntryCollection = (MenuDefinitionEntryCollection)editValue;
     MenuDefinitionEntry[] commandContextMenuDefinitionEntries = new MenuDefinitionEntry[commandContextMenuDefinitionEntryCollection.Count];
     if (commandContextMenuDefinitionEntryCollection.Count > 0)
         commandContextMenuDefinitionEntryCollection.CopyTo(commandContextMenuDefinitionEntries, 0);
     return commandContextMenuDefinitionEntries;
 }
        /// <summary>
        /// Gets an array of objects containing the specified collection.
        /// </summary>
        /// <param name="editValue">The collection to edit.</param>
        /// <returns>An array containing the collection objects.</returns>
        protected override object[] GetItems(object editValue)
        {
            MenuDefinitionEntryCollection commandContextMenuDefinitionEntryCollection = (MenuDefinitionEntryCollection)editValue;

            MenuDefinitionEntry[] commandContextMenuDefinitionEntries = new MenuDefinitionEntry[commandContextMenuDefinitionEntryCollection.Count];
            if (commandContextMenuDefinitionEntryCollection.Count > 0)
            {
                commandContextMenuDefinitionEntryCollection.CopyTo(commandContextMenuDefinitionEntries, 0);
            }
            return(commandContextMenuDefinitionEntries);
        }
 /// <summary>
 /// Adds the specified command bar entry to the end of the command bar entry collection.
 /// </summary>
 /// <param name="value">The command bar entry to be added to the end of the command bar entry collection.</param>
 /// <returns>The index at which the command bar entry has been added.</returns>
 public int Add(MenuDefinitionEntry value)
 {
     return(List.Add(value));
 }
 /// <summary>
 /// Removes the first occurrence of a specific Command from the CommandCollection.
 /// </summary>
 /// <param name="value">The Command to remove.</param>
 public void Remove(MenuDefinitionEntry value)
 {
     List.Remove(value);
 }
 /// <summary>
 /// Inserts an element into the MenuDefinitionEntryCollection at the specified index.
 /// </summary>
 /// <param name="index">The zero-based index at which value should be inserted.</param>
 /// <param name="value">The MenuDefinitionEntry to insert.</param>
 public void Insert(int index, MenuDefinitionEntry value)
 {
     List.Insert(index, value);
 }
 /// <summary>
 /// Searches for the specified MenuDefinitionEntry and returns the zero-based index of the
 /// first occurrence within the entire MenuDefinitionEntryCollection.
 /// </summary>
 /// <param name="value">The MenuDefinitionEntry to locate in the MenuDefinitionEntryCollection.</param>
 /// <returns>The zero-based index of the first occurrence of value within the entire MenuDefinitionEntryCollection, if found; otherwise, -1.</returns>
 public int IndexOf(MenuDefinitionEntry value)
 {
     return(List.IndexOf(value));
 }
 /// <summary>
 /// Determines whether the MenuDefinitionEntryCollection contains a specific element.
 /// </summary>
 /// <param name="value">The MenuDefinitionEntry to locate in the MenuDefinitionEntryCollection.</param>
 /// <returns>true if the MenuDefinitionEntryCollection contains the specified value; otherwise, false.</returns>
 public bool Contains(MenuDefinitionEntry value)
 {
     return(List.Contains(value));
 }
 /// <summary>
 /// Adds the specified command bar entry to the end of the command bar entry collection.
 /// </summary>
 /// <param name="value">The command bar entry to be added to the end of the command bar entry collection.</param>
 /// <returns>The index at which the command bar entry has been added.</returns>
 public int Add(MenuDefinitionEntry value)
 {
     return List.Add(value);
 }
 /// <summary>
 /// Initializes a new instance of the MenuDefinitionEntryCollection class.
 /// </summary>
 /// <param name="value">Array of commands to initializes this command collection with.</param>
 public MenuDefinitionEntryCollection(MenuDefinitionEntry[] value)
 {
     AddRange(value);
 }
 /// <summary>
 /// Removes the first occurrence of a specific Command from the CommandCollection.
 /// </summary>
 /// <param name="value">The Command to remove.</param>
 public void Remove(MenuDefinitionEntry value)
 {
     List.Remove(value);
 }
 /// <summary>
 /// Inserts an element into the MenuDefinitionEntryCollection at the specified index.
 /// </summary>
 /// <param name="index">The zero-based index at which value should be inserted.</param>
 /// <param name="value">The MenuDefinitionEntry to insert.</param>
 public void Insert(int index, MenuDefinitionEntry value)
 {
     List.Insert(index, value);
 }
 /// <summary>
 /// Searches for the specified MenuDefinitionEntry and returns the zero-based index of the
 /// first occurrence within the entire MenuDefinitionEntryCollection.
 /// </summary>
 /// <param name="value">The MenuDefinitionEntry to locate in the MenuDefinitionEntryCollection.</param>
 /// <returns>The zero-based index of the first occurrence of value within the entire MenuDefinitionEntryCollection, if found; otherwise, -1.</returns>
 public int IndexOf(MenuDefinitionEntry value)
 {
     return List.IndexOf(value);
 }
 /// <summary>
 /// Copies the entire MenuDefinitionEntryCollection to a one-dimensional Array, starting at the
 /// specified index of the target array.
 /// </summary>
 /// <param name="array">The one-dimensional Array that is the destination of the elements copied from MenuDefinitionEntryCollection. The Array must have zero-based indexing.</param>
 /// <param name="index">The zero-based index in array at which copying begins.</param>
 public void CopyTo(MenuDefinitionEntry[] array, int index)
 {
     List.CopyTo(array, index);
 }
 /// <summary>
 /// Determines whether the MenuDefinitionEntryCollection contains a specific element.
 /// </summary>
 /// <param name="value">The MenuDefinitionEntry to locate in the MenuDefinitionEntryCollection.</param>
 /// <returns>true if the MenuDefinitionEntryCollection contains the specified value; otherwise, false.</returns>
 public bool Contains(MenuDefinitionEntry value)
 {
     return List.Contains(value);
 }
 /// <summary>
 /// Adds the specified array of MenuDefinitionEntry values to the end of the MenuDefinitionEntryCollection.
 /// </summary>
 /// <param name="value">The array of MenuDefinitionEntry values to be added to the end of the MenuDefinitionEntryCollection.</param>
 public void AddRange(MenuDefinitionEntry[] value)
 {
     foreach (MenuDefinitionEntry commandBarEntry in value)
         this.Add(commandBarEntry);
 }