Missing CommandBars.Item
-
13-11-2019 - |
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[]
?
Solution
Try using the indexer directly:
allCommands["..."]
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow