Vra

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 dit nuttig?

Oplossing

Try using the indexer directly:

allCommands["..."]
Gelisensieer onder: CC-BY-SA met toeskrywing
Nie verbonde aan StackOverflow
scroll top