Question

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[]?

Was it helpful?

Solution

Try using the indexer directly:

allCommands["..."]
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top