My Project
C:/Users/Lab_411_02/Desktop/Violet1 - dox/violet/violet/Ribbon1.Designer.cs
查看本檔案說明文件.
1 
2 using ShapeLib.VShape;
3 using System;
6 using System.Collections;
9 // /使用集合物件
11 using System.Collections.Generic;
12 using System.Windows;
15 namespace violet
18 {
21  partial class Ribbon1 : Microsoft.Office.Tools.Ribbon.RibbonBase
25  {
26  private System.ComponentModel.IContainer components = null; //不懂意思
27 
28  public Ribbon1()
29  : base(Globals.Factory.GetRibbonFactory())
30  {
32  try
35  {
36  //Check();
37  IList<ShapeObj> ret = shapeLib.SupportedShape(Check);
38 
39  foreach (ShapeObj obj in ret)
40  {
41  Construt(obj);
42 
45  }
46  }
47  catch (Exception em)
48  {
49  MessageBox.Show(em.ToString());
50 
51  }
52 
53  }
54 
59  protected override void Dispose(bool disposing)
60  {
61  if (disposing && (components != null))
62  {
63  components.Dispose();
64  }
65  base.Dispose(disposing);
66  }
67 
68  #region 元件設計工具產生的程式碼
69 
74  private void InitializeComponent()
75  {
76  System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Ribbon1));
77  this.tab1 = this.Factory.CreateRibbonTab();
78  this.group2 = this.Factory.CreateRibbonGroup();
79  this.selBtn = this.Factory.CreateRibbonButton();
80  this.StrokeThickness = this.Factory.CreateRibbonMenu();
81  this.px1 = this.Factory.CreateRibbonButton();
82  this.px3 = this.Factory.CreateRibbonButton();
83  this.px5 = this.Factory.CreateRibbonButton();
84  this.px8 = this.Factory.CreateRibbonButton();
85  this.bgp = this.Factory.CreateRibbonButton();
86  this.button1 = this.Factory.CreateRibbonButton();
87  this.Undo = this.Factory.CreateRibbonButton();
88  this.redo = this.Factory.CreateRibbonButton();
89  this.circle_btn = this.Factory.CreateRibbonButton();
90  this.rectangle_btn = this.Factory.CreateRibbonButton();
91  this.line_btn = this.Factory.CreateRibbonButton();
92  this.Curve = this.Factory.CreateRibbonButton();
93  this.red_btn = this.Factory.CreateRibbonButton();
94  this.orange_btn = this.Factory.CreateRibbonButton();
95  this.yellow_btn = this.Factory.CreateRibbonButton();
96  this.blue_btn = this.Factory.CreateRibbonButton();
97  this.violet = this.Factory.CreateRibbonButton();
98  this.green_btn = this.Factory.CreateRibbonButton();
99  this.black_btn = this.Factory.CreateRibbonButton();
100  this.gray = this.Factory.CreateRibbonButton();
101  this.white_btn = this.Factory.CreateRibbonButton();
102  this.tab1.SuspendLayout();
103  this.group2.SuspendLayout();
104  this.SuspendLayout();
105  //
106  // tab1
107  //
108  this.tab1.ControlId.ControlIdType = Microsoft.Office.Tools.Ribbon.RibbonControlIdType.Office;
109  this.tab1.Groups.Add(this.group2);
110  this.tab1.Label = "Violet";
111  this.tab1.Name = "tab1";
112  //
113  // group2
114  //
115  this.group2.Items.Add(this.selBtn);
116  this.group2.Items.Add(this.StrokeThickness);
117  this.group2.Items.Add(this.bgp);
118  this.group2.Items.Add(this.button1);
119  this.group2.Items.Add(this.Undo);
120  this.group2.Items.Add(this.redo);
121  this.group2.Label = "Other";
122  this.group2.Name = "group2";
123  //
124  // selBtn
125  //
126  this.selBtn.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge;
127  this.selBtn.Image = ((System.Drawing.Image)(resources.GetObject("selBtn.Image")));
128  this.selBtn.Label = "Select";
129  this.selBtn.Name = "selBtn";
130  this.selBtn.ShowImage = true;
131  this.selBtn.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.selBtn_Click);
132  //
133  // StrokeThickness
134  //
135  this.StrokeThickness.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge;
136  this.StrokeThickness.Image = global::violet.Properties.Resources.strokes;
137  this.StrokeThickness.Items.Add(this.px1);
138  this.StrokeThickness.Items.Add(this.px3);
139  this.StrokeThickness.Items.Add(this.px5);
140  this.StrokeThickness.Items.Add(this.px8);
141  this.StrokeThickness.Label = "Strokes";
142  this.StrokeThickness.Name = "StrokeThickness";
143  this.StrokeThickness.ShowImage = true;
144  //
145  // px1
146  //
147  this.px1.Image = global::violet.Properties.Resources._1px;
148  this.px1.Label = "1 px";
149  this.px1.Name = "px1";
150  this.px1.ShowImage = true;
151  this.px1.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.px1_Click);
152  //
153  // px3
154  //
155  this.px3.Image = global::violet.Properties.Resources._3px1;
156  this.px3.Label = "3 px";
157  this.px3.Name = "px3";
158  this.px3.ShowImage = true;
159  this.px3.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.px3_Click);
160  //
161  // px5
162  //
163  this.px5.Image = global::violet.Properties.Resources._5px;
164  this.px5.Label = "5 px";
165  this.px5.Name = "px5";
166  this.px5.ShowImage = true;
167  this.px5.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.px5_Click);
168  //
169  // px8
170  //
171  this.px8.Image = global::violet.Properties.Resources._8px;
172  this.px8.Label = "8 px";
173  this.px8.Name = "px8";
174  this.px8.ShowImage = true;
175  this.px8.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.px8_Click);
176  //
177  // bgp
178  //
179  this.bgp.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge;
180  this.bgp.Image = global::violet.Properties.Resources.point11;
181  this.bgp.Label = "Background Point";
182  this.bgp.Name = "bgp";
183  this.bgp.ShowImage = true;
184  this.bgp.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.bgp_Click);
185  //
186  // button1
187  //
188  this.button1.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge;
189  this.button1.Image = ((System.Drawing.Image)(resources.GetObject("button1.Image")));
190  this.button1.Label = "Clear";
191  this.button1.Name = "button1";
192  this.button1.ShowImage = true;
193  this.button1.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.clear_Click);
194  //
195  // Undo
196  //
197  this.Undo.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge;
198  this.Undo.Image = ((System.Drawing.Image)(resources.GetObject("Undo.Image")));
199  this.Undo.Label = "Undo";
200  this.Undo.Name = "Undo";
201  this.Undo.ShowImage = true;
202  this.Undo.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.undo_Click);
203  //
204  // redo
205  //
206  this.redo.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge;
207  this.redo.Image = ((System.Drawing.Image)(resources.GetObject("redo.Image")));
208  this.redo.Label = "Redo";
209  this.redo.Name = "redo";
210  this.redo.ShowImage = true;
211  this.redo.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.redo_Click);
212  //
213  // circle_btn
214  //
215  this.circle_btn.Label = "";
216  this.circle_btn.Name = "circle_btn";
217  //
218  // rectangle_btn
219  //
220  this.rectangle_btn.Label = "";
221  this.rectangle_btn.Name = "rectangle_btn";
222  //
223  // line_btn
224  //
225  this.line_btn.Label = "";
226  this.line_btn.Name = "line_btn";
227  //
228  // Curve
229  //
230  this.Curve.Label = "";
231  this.Curve.Name = "Curve";
232  //
233  // red_btn
234  //
235  this.red_btn.Image = global::violet.Properties.Resources.red;
236  this.red_btn.Label = " ";
237  this.red_btn.Name = "red_btn";
238  this.red_btn.ShowImage = true;
239  this.red_btn.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.red_btn_Click);
240  //
241  // orange_btn
242  //
243  this.orange_btn.Image = global::violet.Properties.Resources.orange;
244  this.orange_btn.Label = " ";
245  this.orange_btn.Name = "orange_btn";
246  this.orange_btn.ShowImage = true;
247  this.orange_btn.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.button7_Click);
248  //
249  // yellow_btn
250  //
251  this.yellow_btn.Image = global::violet.Properties.Resources.yellow1;
252  this.yellow_btn.Label = " ";
253  this.yellow_btn.Name = "yellow_btn";
254  this.yellow_btn.ShowImage = true;
255  this.yellow_btn.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.yellow_btn_Click);
256  //
257  // blue_btn
258  //
259  this.blue_btn.Image = global::violet.Properties.Resources.blue;
260  this.blue_btn.Label = " ";
261  this.blue_btn.Name = "blue_btn";
262  this.blue_btn.ShowImage = true;
263  this.blue_btn.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.blue_btn_Click);
264  //
265  // violet
266  //
267  this.violet.Image = ((System.Drawing.Image)(resources.GetObject("violet.Image")));
268  this.violet.Label = " ";
269  this.violet.Name = "violet";
270  this.violet.ShowImage = true;
271  this.violet.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.violet_Click);
272  //
273  // green_btn
274  //
275  this.green_btn.Image = global::violet.Properties.Resources.green;
276  this.green_btn.Label = " ";
277  this.green_btn.Name = "green_btn";
278  this.green_btn.ShowImage = true;
279  this.green_btn.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.green_btn_Click);
280  //
281  // black_btn
282  //
283  this.black_btn.Image = global::violet.Properties.Resources.black;
284  this.black_btn.Label = " ";
285  this.black_btn.Name = "black_btn";
286  this.black_btn.ShowImage = true;
287  this.black_btn.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.black_btn_Click);
288  //
289  // gray
290  //
291  this.gray.Image = ((System.Drawing.Image)(resources.GetObject("gray.Image")));
292  this.gray.Label = " ";
293  this.gray.Name = "gray";
294  this.gray.ShowImage = true;
295  this.gray.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.gray_Click);
296  //
297  // white_btn
298  //
299  this.white_btn.Image = global::violet.Properties.Resources.white1;
300  this.white_btn.Label = " ";
301  this.white_btn.Name = "white_btn";
302  this.white_btn.ShowImage = true;
303  this.white_btn.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.white_btn_Click);
304  //
305  // Ribbon1
306  //
307  this.Name = "Ribbon1";
308  this.RibbonType = "Microsoft.Word.Document";
309  this.Tabs.Add(this.tab1);
310  this.Load += new Microsoft.Office.Tools.Ribbon.RibbonUIEventHandler(this.Ribbon1_Load);
311  this.tab1.ResumeLayout(false);
312  this.tab1.PerformLayout();
313  this.group2.ResumeLayout(false);
314  this.group2.PerformLayout();
315  this.ResumeLayout(false);
316 
317  }
318 
319  #endregion
320 
321  internal Microsoft.Office.Tools.Ribbon.RibbonTab tab1;
322  internal Microsoft.Office.Tools.Ribbon.RibbonButton circle_btn;
323  internal Microsoft.Office.Tools.Ribbon.RibbonButton rectangle_btn;
324  internal Microsoft.Office.Tools.Ribbon.RibbonButton line_btn;
325  internal Microsoft.Office.Tools.Ribbon.RibbonButton button1;
326  internal Microsoft.Office.Tools.Ribbon.RibbonGroup group2;
327  internal Microsoft.Office.Tools.Ribbon.RibbonButton bgp;
328  internal Microsoft.Office.Tools.Ribbon.RibbonButton Curve;
329  internal Microsoft.Office.Tools.Ribbon.RibbonButton red_btn;
330  internal Microsoft.Office.Tools.Ribbon.RibbonButton orange_btn;
331  internal Microsoft.Office.Tools.Ribbon.RibbonButton yellow_btn;
332  internal Microsoft.Office.Tools.Ribbon.RibbonButton green_btn;
333  internal Microsoft.Office.Tools.Ribbon.RibbonButton black_btn;
334  internal Microsoft.Office.Tools.Ribbon.RibbonButton blue_btn;
335  internal Microsoft.Office.Tools.Ribbon.RibbonButton white_btn;
336  internal Microsoft.Office.Tools.Ribbon.RibbonMenu StrokeThickness;
337  internal Microsoft.Office.Tools.Ribbon.RibbonButton px1;
338  internal Microsoft.Office.Tools.Ribbon.RibbonButton px3;
339  internal Microsoft.Office.Tools.Ribbon.RibbonButton px5;
340  internal Microsoft.Office.Tools.Ribbon.RibbonButton selBtn;
341  internal Microsoft.Office.Tools.Ribbon.RibbonButton redo;
342  internal Microsoft.Office.Tools.Ribbon.RibbonButton Undo;
343  internal Microsoft.Office.Tools.Ribbon.RibbonButton violet;
344  internal Microsoft.Office.Tools.Ribbon.RibbonButton gray;
345  internal Microsoft.Office.Tools.Ribbon.RibbonButton px8;
346 }
347 
348 partial class ThisRibbonCollection
349 {
350  internal Ribbon1 Ribbon1
351  {
352  get { return this.GetRibbon<Ribbon1>(); }
353  }
354 }
355 }
internal Microsoft.Office.Tools.Ribbon.RibbonButton px5
void bgp_Click(object sender, RibbonControlEventArgs e)
Definition: Ribbon1.cs:160
internal Microsoft.Office.Tools.Ribbon.RibbonButton black_btn
internal Microsoft.Office.Tools.Ribbon.RibbonButton px1
internal Microsoft.Office.Tools.Ribbon.RibbonButton line_btn
必要的設計工具變數。
Definition: Ribbon1.cs:13
void green_btn_Click(object sender, RibbonControlEventArgs e)
Definition: Ribbon1.cs:192
void clear_Click(object sender, RibbonControlEventArgs e)
Definition: Ribbon1.cs:150
internal Microsoft.Office.Tools.Ribbon.RibbonButton white_btn
void px5_Click(object sender, RibbonControlEventArgs e)
Definition: Ribbon1.cs:232
internal Microsoft.Office.Tools.Ribbon.RibbonButton blue_btn
internal Microsoft.Office.Tools.Ribbon.RibbonButton violet
void yellow_btn_Click(object sender, RibbonControlEventArgs e)
Definition: Ribbon1.cs:187
void px8_Click(object sender, RibbonControlEventArgs e)
Definition: Ribbon1.cs:237
internal Microsoft.Office.Tools.Ribbon.RibbonTab tab1
internal Microsoft.Office.Tools.Ribbon.RibbonButton rectangle_btn
void px3_Click(object sender, RibbonControlEventArgs e)
Definition: Ribbon1.cs:227
void selBtn_Click(object sender, RibbonControlEventArgs e)
Definition: Ribbon1.cs:243
internal Microsoft.Office.Tools.Ribbon.RibbonButton bgp
void px1_Click(object sender, RibbonControlEventArgs e)
Definition: Ribbon1.cs:222
void blue_btn_Click(object sender, RibbonControlEventArgs e)
Definition: Ribbon1.cs:202
internal Microsoft.Office.Tools.Ribbon.RibbonButton gray
void red_btn_Click(object sender, RibbonControlEventArgs e)
Definition: Ribbon1.cs:177
void gray_Click(object sender, RibbonControlEventArgs e)
Definition: Ribbon1.cs:212
internal Microsoft.Office.Tools.Ribbon.RibbonButton selBtn
internal Microsoft.Office.Tools.Ribbon.RibbonButton button1
某一類的形狀.包含UI 的界面,繪製方式.更新方式.新增方式
Definition: ShapeObj.cs:59
internal Microsoft.Office.Tools.Ribbon.RibbonButton redo
void undo_Click(object sender, RibbonControlEventArgs e)
Definition: Ribbon1.cs:256
使UNIX上開發的C程式移植到windows上 /summary>
Definition: Form1.cs:19
internal Microsoft.Office.Tools.Ribbon.RibbonButton red_btn
internal Microsoft.Office.Tools.Ribbon.RibbonGroup group2
IForm Check()
Definition: Ribbon1.cs:17
internal Microsoft.Office.Tools.Ribbon.RibbonMenu StrokeThickness
void redo_Click(object sender, RibbonControlEventArgs e)
Definition: Ribbon1.cs:251
void InitializeComponent()
此為設計工具支援所需的方法 - 請勿使用程式碼編輯器 修改這個方法的內容。
internal Microsoft.Office.Tools.Ribbon.RibbonButton circle_btn
internal Microsoft.Office.Tools.Ribbon.RibbonButton px8
void violet_Click(object sender, RibbonControlEventArgs e)
Definition: Ribbon1.cs:207
internal Microsoft.Office.Tools.Ribbon.RibbonButton px3
static IList< ShapeObj > SupportedShape(getForm myview)
define supported shape
Definition: shapeLib.cs:27
internal Microsoft.Office.Tools.Ribbon.RibbonButton Undo
internal Microsoft.Office.Tools.Ribbon.RibbonButton yellow_btn
void Construt(ShapeObj obj)
Definition: Ribbon1.cs:38
void black_btn_Click(object sender, RibbonControlEventArgs e)
Definition: Ribbon1.cs:197
void Ribbon1_Load(object sender, RibbonUIEventArgs e)
Definition: Ribbon1.cs:144
internal Microsoft.Office.Tools.Ribbon.RibbonButton green_btn
System.ComponentModel.IContainer components
void white_btn_Click(object sender, RibbonControlEventArgs e)
Definition: Ribbon1.cs:217
Microsoft.Office.Core Office
Definition: ThisAddIn.cs:7
override void Dispose(bool disposing)
清除任何使用中的資源。
internal Microsoft.Office.Tools.Ribbon.RibbonButton orange_btn
internal Microsoft.Office.Tools.Ribbon.RibbonButton Curve
void button7_Click(object sender, RibbonControlEventArgs e)
Definition: Ribbon1.cs:182