/// <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)
 {
     CommandBarEntryCollection commandBarEntryCollection = (CommandBarEntryCollection)editValue;
     CommandBarEntry[] commandBarEntries = new CommandBarEntry[commandBarEntryCollection.Count];
     if (commandBarEntryCollection.Count > 0)
         commandBarEntryCollection.CopyTo(commandBarEntries, 0);
     return commandBarEntries;
 }
        /// <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)
        {
            CommandBarEntryCollection commandBarEntryCollection = (CommandBarEntryCollection)editValue;

            CommandBarEntry[] commandBarEntries = new CommandBarEntry[commandBarEntryCollection.Count];
            if (commandBarEntryCollection.Count > 0)
            {
                commandBarEntryCollection.CopyTo(commandBarEntries, 0);
            }
            return(commandBarEntries);
        }
 /// <summary>
 /// Determines whether the CommandBarEntryCollection contains a specific element.
 /// </summary>
 /// <param name="value">The CommandBarEntry to locate in the CommandBarEntryCollection.</param>
 /// <returns>true if the CommandBarEntryCollection contains the specified value; otherwise, false.</returns>
 public bool Contains(CommandBarEntry value)
 {
     return List.Contains(value);
 }
 /// <summary>
 /// Adds the specified array of CommandBarEntry values to the end of the CommandBarEntryCollection.
 /// </summary>
 /// <param name="value">The array of CommandBarEntry values to be added to the end of the CommandBarEntryCollection.</param>
 public void AddRange(CommandBarEntry[] value)
 {
     foreach (CommandBarEntry commandBarEntry in value)
         this.Add(commandBarEntry);
 }
 /// <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(CommandBarEntry value)
 {
     return List.Add(value);
 }
 /// <summary>
 /// Initializes a new instance of the CommandBarEntryCollection class.
 /// </summary>
 /// <param name="value">Array of commands to initializes this command collection with.</param>
 public CommandBarEntryCollection(CommandBarEntry[] 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(CommandBarEntry value)
 {
     List.Remove(value);
 }
 /// <summary>
 /// Inserts an element into the CommandBarEntryCollection at the specified index.
 /// </summary>
 /// <param name="index">The zero-based index at which value should be inserted.</param>
 /// <param name="value">The CommandBarEntry to insert.</param>
 public void Insert(int index, CommandBarEntry value)
 {
     List.Insert(index, value);
 }
 /// <summary>
 /// Searches for the specified CommandBarEntry and returns the zero-based index of the
 /// first occurrence within the entire CommandBarEntryCollection.
 /// </summary>
 /// <param name="value">The CommandBarEntry to locate in the CommandBarEntryCollection.</param>
 /// <returns>The zero-based index of the first occurrence of value within the entire CommandBarEntryCollection, if found; otherwise, -1.</returns>
 public int IndexOf(CommandBarEntry value)
 {
     return List.IndexOf(value);
 }
 /// <summary>
 /// Copies the entire CommandBarEntryCollection 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 CommandBarEntryCollection. 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(CommandBarEntry[] array, int index)
 {
     List.CopyTo(array, index);
 }
Exemple #11
0
 /// <summary>
 /// Determines whether the CommandBarEntryCollection contains a specific element.
 /// </summary>
 /// <param name="value">The CommandBarEntry to locate in the CommandBarEntryCollection.</param>
 /// <returns>true if the CommandBarEntryCollection contains the specified value; otherwise, false.</returns>
 public bool Contains(CommandBarEntry value)
 {
     return(List.Contains(value));
 }
Exemple #12
0
 /// <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(CommandBarEntry value)
 {
     return(List.Add(value));
 }
Exemple #13
0
 /// <summary>
 /// Removes the first occurrence of a specific Command from the CommandCollection.
 /// </summary>
 /// <param name="value">The Command to remove.</param>
 public void Remove(CommandBarEntry value)
 {
     List.Remove(value);
 }
Exemple #14
0
 /// <summary>
 /// Inserts an element into the CommandBarEntryCollection at the specified index.
 /// </summary>
 /// <param name="index">The zero-based index at which value should be inserted.</param>
 /// <param name="value">The CommandBarEntry to insert.</param>
 public void Insert(int index, CommandBarEntry value)
 {
     List.Insert(index, value);
 }
Exemple #15
0
 /// <summary>
 /// Searches for the specified CommandBarEntry and returns the zero-based index of the
 /// first occurrence within the entire CommandBarEntryCollection.
 /// </summary>
 /// <param name="value">The CommandBarEntry to locate in the CommandBarEntryCollection.</param>
 /// <returns>The zero-based index of the first occurrence of value within the entire CommandBarEntryCollection, if found; otherwise, -1.</returns>
 public int IndexOf(CommandBarEntry value)
 {
     return(List.IndexOf(value));
 }