internal CommandBarItem[] this[char mnemonic]
{
get
{
ArrayList list = new ArrayList();
foreach (CommandBarItem item in items)
{
if ((item.IsVisible) && (item.IsEnabled))
{
string text = item.Text;
for (int i = 0; i < text.Length; i++)
{
if ((text[i] == '&') && (i + 1 < text.Length) && (text[i + 1] != '&'))
{
if (mnemonic == Char.ToUpper(text[i + 1], CultureInfo.InvariantCulture))
{
list.Add(item);
}
}
}
}
}
CommandBarItem[] array = new CommandBarItem[list.Count];
list.CopyTo(array, 0);
return array;
}
}