2 using System.Collections.Generic;
5 using System.Threading.Tasks;
7 using System.Collections;
8 using Microsoft.Office.Tools.Ribbon;
17 ArrayList ret =
new ArrayList();
32 System.Reflection.Assembly myAssembly = System.Reflection.Assembly.GetExecutingAssembly();
33 System.IO.Stream myStream = myAssembly.GetManifestResourceStream(
"ShapeLib.icons.red.png");
34 ui.
image =
new System.Drawing.Bitmap(myStream);
46 myStream = myAssembly.GetManifestResourceStream(
"ShapeLib.icons.green.png");
47 ui.
image =
new System.Drawing.Bitmap(myStream);
58 myStream = myAssembly.GetManifestResourceStream(
"ShapeLib.icons.blue.png");
59 ui.
image =
new System.Drawing.Bitmap(myStream);
69 myStream = myAssembly.GetManifestResourceStream(
"ShapeLib.icons.black.png");
70 ui.
image =
new System.Drawing.Bitmap(myStream);
80 myStream = myAssembly.GetManifestResourceStream(
"ShapeLib.icons.white1.png");
81 ui.
image =
new System.Drawing.Bitmap(myStream);
91 myStream = myAssembly.GetManifestResourceStream(
"ShapeLib.icons.yellow.png");
92 ui.
image =
new System.Drawing.Bitmap(myStream);
102 myStream = myAssembly.GetManifestResourceStream(
"ShapeLib.icons.orange.png");
103 ui.
image =
new System.Drawing.Bitmap(myStream);
112 new void btn_Click(
object sender, RibbonControlEventArgs e)
114 RibbonButton btn = sender as RibbonButton;
117 String txt = btn.Label;
119 if (String.IsNullOrEmpty(txt))
RibbonControlEventHandler click
string belong
判斷按下Button控制項
某一類的形狀.包含UI 的界面,繪製方式.更新方式.新增方式
override System.Collections.ArrayList getMenuItem()
覆寫System.Collections.ArrayList
new void btn_Click(object sender, RibbonControlEventArgs e)
System.Drawing.Image image