I'm developing a Word Vsto 2013+ with C# and I'm using Ribbon xml. Now I want to get the state of a built-in checkbox. The idMso is NavigationPaneShowHide
and it is located in the GroupViewShowHide
groupbox in the TabView
tab.
I tried to 'overwrite' the onAction
callback of the checkbox, but it didn't worked.
You can check the visibility of the navigation pane like this:
CommandBar navPane = app.CommandBars["Navigation"];
// check navPane.Visible;
I don't believe there is a way to look at a built-in ribbon checkbox.