隐藏Visio 2010的Quick Access Toolbar
我的做法是建立一个Visio 2010 add-in 然后用Ribbon Xml来隐藏Quick Access Toolbar(QAT).
ThisAddIn.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml.Linq; using Visio = Microsoft.Office.Interop.Visio; using Office = Microsoft.Office.Core; namespace VisioAddIn1 { public partial class ThisAddIn { protected override Microsoft.Office.Core.IRibbonExtensibility CreateRibbonExtensibilityObject() { return new Ribbon1(); } private void ThisAddIn_Startup(object sender, System.EventArgs e) { } private void ThisAddIn_Shutdown(object sender, System.EventArgs e) { } #region VSTO generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InternalStartup() { this.Startup += new System.EventHandler(ThisAddIn_Startup); this.Shutdown += new System.EventHandler(ThisAddIn_Shutdown); } #endregion } }
Ribbon1.xml
<?xml version="1.0" encoding="UTF-8"?> <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load"> <ribbon startFromScratch="true"> <qat> <sharedControls> </sharedControls> </qat> </ribbon> </customUI>
征诛志异,三让两家王朝;功同开辟,一桮万古江南。