6 using System.Collections;
11 using System.Collections.Generic;
21 partial class Ribbon1 : Microsoft.
Office.Tools.Ribbon.RibbonBase
26 private System.ComponentModel.IContainer
components =
null;
29 : base(
Globals.Factory.GetRibbonFactory())
49 MessageBox.Show(em.ToString());
59 protected override void Dispose(
bool disposing)
65 base.Dispose(disposing);
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();
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();
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();
108 this.
tab1.ControlId.ControlIdType = Microsoft.Office.Tools.Ribbon.RibbonControlIdType.Office;
110 this.
tab1.Label =
"Violet";
111 this.
tab1.Name =
"tab1";
121 this.
group2.Label =
"Other";
122 this.
group2.Name =
"group2";
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);
135 this.
StrokeThickness.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge;
136 this.
StrokeThickness.Image = global::violet.Properties.Resources.strokes;
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);
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);
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);
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);
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);
188 this.
button1.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge;
189 this.
button1.Image = ((System.Drawing.Image)(resources.GetObject(
"button1.Image")));
193 this.
button1.Click +=
new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.
clear_Click);
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);
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);
230 this.
Curve.Label =
"";
231 this.
Curve.Name =
"Curve";
235 this.
red_btn.Image = global::violet.Properties.Resources.red;
239 this.
red_btn.Click +=
new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.
red_btn_Click);
243 this.
orange_btn.Image = global::violet.Properties.Resources.orange;
251 this.
yellow_btn.Image = global::violet.Properties.Resources.yellow1;
259 this.
blue_btn.Image = global::violet.Properties.Resources.blue;
267 this.
violet.Image = ((System.Drawing.Image)(resources.GetObject(
"violet.Image")));
269 this.
violet.Name =
"violet";
270 this.
violet.ShowImage =
true;
271 this.
violet.Click +=
new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.
violet_Click);
275 this.
green_btn.Image = global::violet.Properties.Resources.green;
283 this.
black_btn.Image = global::violet.Properties.Resources.black;
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);
299 this.
white_btn.Image = global::violet.Properties.Resources.white1;
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);
321 internal Microsoft.Office.Tools.Ribbon.RibbonTab
tab1;
322 internal Microsoft.Office.Tools.Ribbon.RibbonButton
circle_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;
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;
352 get {
return this.GetRibbon<Ribbon1>(); }
internal Microsoft.Office.Tools.Ribbon.RibbonButton px5
void bgp_Click(object sender, RibbonControlEventArgs e)
internal Microsoft.Office.Tools.Ribbon.RibbonButton black_btn
internal Microsoft.Office.Tools.Ribbon.RibbonButton px1
internal Microsoft.Office.Tools.Ribbon.RibbonButton line_btn
void green_btn_Click(object sender, RibbonControlEventArgs e)
void clear_Click(object sender, RibbonControlEventArgs e)
internal Microsoft.Office.Tools.Ribbon.RibbonButton white_btn
void px5_Click(object sender, RibbonControlEventArgs e)
internal Microsoft.Office.Tools.Ribbon.RibbonButton blue_btn
internal Microsoft.Office.Tools.Ribbon.RibbonButton violet
void yellow_btn_Click(object sender, RibbonControlEventArgs e)
void px8_Click(object sender, RibbonControlEventArgs e)
internal Microsoft.Office.Tools.Ribbon.RibbonTab tab1
internal Microsoft.Office.Tools.Ribbon.RibbonButton rectangle_btn
void px3_Click(object sender, RibbonControlEventArgs e)
void selBtn_Click(object sender, RibbonControlEventArgs e)
internal Microsoft.Office.Tools.Ribbon.RibbonButton bgp
void px1_Click(object sender, RibbonControlEventArgs e)
void blue_btn_Click(object sender, RibbonControlEventArgs e)
internal Microsoft.Office.Tools.Ribbon.RibbonButton gray
void red_btn_Click(object sender, RibbonControlEventArgs e)
void gray_Click(object sender, RibbonControlEventArgs e)
internal Microsoft.Office.Tools.Ribbon.RibbonButton selBtn
internal Microsoft.Office.Tools.Ribbon.RibbonButton button1
某一類的形狀.包含UI 的界面,繪製方式.更新方式.新增方式
internal Microsoft.Office.Tools.Ribbon.RibbonButton redo
void undo_Click(object sender, RibbonControlEventArgs e)
使UNIX上開發的C程式移植到windows上 /summary>
internal Microsoft.Office.Tools.Ribbon.RibbonButton red_btn
internal Microsoft.Office.Tools.Ribbon.RibbonGroup group2
internal Microsoft.Office.Tools.Ribbon.RibbonMenu StrokeThickness
void redo_Click(object sender, RibbonControlEventArgs e)
void InitializeComponent()
此為設計工具支援所需的方法 - 請勿使用程式碼編輯器 修改這個方法的內容。
internal Microsoft.Office.Tools.Ribbon.RibbonButton circle_btn
internal Microsoft.Office.Tools.Ribbon.RibbonButton px8
void violet_Click(object sender, RibbonControlEventArgs e)
internal Microsoft.Office.Tools.Ribbon.RibbonButton px3
static IList< ShapeObj > SupportedShape(getForm myview)
define supported shape
internal Microsoft.Office.Tools.Ribbon.RibbonButton Undo
internal Microsoft.Office.Tools.Ribbon.RibbonButton yellow_btn
void Construt(ShapeObj obj)
void black_btn_Click(object sender, RibbonControlEventArgs e)
void Ribbon1_Load(object sender, RibbonUIEventArgs e)
internal Microsoft.Office.Tools.Ribbon.RibbonButton green_btn
System.ComponentModel.IContainer components
void white_btn_Click(object sender, RibbonControlEventArgs e)
Microsoft.Office.Core Office
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)