0

using Microsoft.VisualStudio.CommandBars;

In the following sample.

var applicationObject = (DTE2)application;
var allCommands = ((CommandBars)applicationObject.CommandBars);

Simple question: Why am I missing allComands.Item[]?

Theun Arbeider
  • 5,259
  • 11
  • 45
  • 68

1 Answers1

0

Try using the indexer directly:

allCommands["..."]
Darin Dimitrov
  • 1,023,142
  • 271
  • 3,287
  • 2,928