/// <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); }