// Toggles the boolean controlling the visibility of the Drawing Tools Format Tab public void ToggleVisibility(Office.IRibbonControl control, bool pressed) { DisableFormatTab = pressed; _ribbon.InvalidateControlMso("TabDrawingToolsFormat"); _ribbon.InvalidateControl("VisibleFormatShapes"); }