namespace TestWordAddIn1 { partial class Ribbon1 : Microsoft.Office.Tools.Ribbon.RibbonBase { /// /// 必需的设计器变量。 /// private System.ComponentModel.IContainer components = null; public Ribbon1() : base(Globals.Factory.GetRibbonFactory()) { InitializeComponent(); } /// /// 清理所有正在使用的资源。 /// /// 如果应释放托管资源,为 true;否则为 false。 protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region 组件设计器生成的代码 /// /// 设计器支持所需的方法 - 不要修改 /// 使用代码编辑器修改此方法的内容。 /// private void InitializeComponent() { this.tab1 = this.Factory.CreateRibbonTab(); this.group1 = this.Factory.CreateRibbonGroup(); this.button1 = this.Factory.CreateRibbonButton(); this.btnLoadDocument = this.Factory.CreateRibbonButton(); this.button3 = this.Factory.CreateRibbonButton(); this.group2 = this.Factory.CreateRibbonGroup(); this.btnProofread = this.Factory.CreateRibbonButton(); this.btnOpenForm = this.Factory.CreateRibbonButton(); this.button8 = this.Factory.CreateRibbonButton(); this.button6 = this.Factory.CreateRibbonButton(); this.tab1.SuspendLayout(); this.group1.SuspendLayout(); this.group2.SuspendLayout(); this.SuspendLayout(); // // tab1 // this.tab1.ControlId.ControlIdType = Microsoft.Office.Tools.Ribbon.RibbonControlIdType.Office; this.tab1.Groups.Add(this.group1); this.tab1.Groups.Add(this.group2); this.tab1.Label = "测试加载项"; this.tab1.Name = "tab1"; // // group1 // this.group1.Items.Add(this.button1); this.group1.Items.Add(this.btnLoadDocument); this.group1.Items.Add(this.button3); this.group1.Label = "分组1"; this.group1.Name = "group1"; // // button1 // this.button1.Label = "获取当前文本"; this.button1.Name = "button1"; this.button1.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.button1_Click); // // btnLoadDocument // this.btnLoadDocument.Label = "加载文档"; this.btnLoadDocument.Name = "btnLoadDocument"; this.btnLoadDocument.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.button2_Click); // // button3 // this.button3.Label = "插入"; this.button3.Name = "button3"; this.button3.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.button3_Click); // // group2 // this.group2.Items.Add(this.btnProofread); this.group2.Items.Add(this.btnOpenForm); this.group2.Items.Add(this.button8); this.group2.Items.Add(this.button6); this.group2.Label = "分组2"; this.group2.Name = "group2"; // // btnProofread // this.btnProofread.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge; this.btnProofread.Image = global::TestWordAddIn1.Properties.Resources.search_proofread; this.btnProofread.Label = "开始校验"; this.btnProofread.Name = "btnProofread"; this.btnProofread.ShowImage = true; this.btnProofread.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.button4_Click); // // btnOpenForm // this.btnOpenForm.Image = global::TestWordAddIn1.Properties.Resources.favicon; this.btnOpenForm.Label = "打开原生窗口"; this.btnOpenForm.Name = "btnOpenForm"; this.btnOpenForm.ShowImage = true; this.btnOpenForm.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.btnOpenForm_Click); // // button8 // this.button8.Label = "测试3"; this.button8.Name = "button8"; this.button8.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.button8_Click); // // button6 // this.button6.Label = "保存文档"; this.button6.Name = "button6"; this.button6.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.button6_Click); // // Ribbon1 // this.Name = "Ribbon1"; this.RibbonType = "Microsoft.Word.Document"; this.Tabs.Add(this.tab1); this.Load += new Microsoft.Office.Tools.Ribbon.RibbonUIEventHandler(this.Ribbon1_Load); this.tab1.ResumeLayout(false); this.tab1.PerformLayout(); this.group1.ResumeLayout(false); this.group1.PerformLayout(); this.group2.ResumeLayout(false); this.group2.PerformLayout(); this.ResumeLayout(false); } #endregion internal Microsoft.Office.Tools.Ribbon.RibbonTab tab1; internal Microsoft.Office.Tools.Ribbon.RibbonGroup group1; internal Microsoft.Office.Tools.Ribbon.RibbonButton button1; internal Microsoft.Office.Tools.Ribbon.RibbonButton btnLoadDocument; internal Microsoft.Office.Tools.Ribbon.RibbonButton button3; internal Microsoft.Office.Tools.Ribbon.RibbonGroup group2; internal Microsoft.Office.Tools.Ribbon.RibbonButton btnProofread; internal Microsoft.Office.Tools.Ribbon.RibbonButton btnOpenForm; internal Microsoft.Office.Tools.Ribbon.RibbonButton button8; internal Microsoft.Office.Tools.Ribbon.RibbonButton button6; } partial class ThisRibbonCollection { internal Ribbon1 Ribbon1 { get { return this.GetRibbon(); } } } }