Addin开发提问兼散分

JasonHeung 2005-09-08 03:28:58
1、CodeFunction的Parameters集合中的CodeElement可转换为哪种接口?换种说法是如何获取参数的类型?
2、如果获取事件代理的定义?
3、如何增加事件响应代码到当前类中?
4、为何自定义方法或其它元素的注释代码不能获取?包括在代码窗口引用自己的类库时无法看见提示?
5、哪里有VSUserControlHostLib.DLL下载?
...全文
164 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
JasonHeung 2005-09-19
  • 打赏
  • 举报
回复
上面的问题有答案了:
AttributeCollection attributes;
attributes = TypeDescriptor.GetAttributes(button1);

// Sets an Attribute to the specific attribute.
BrowsableAttribute myAttribute = BrowsableAttribute.Yes;

if (attributes.Contains(myAttribute))
textBox1.Text = "button1 has a browsable attribute.";
else
textBox1.Text = "button1 does not have a browsable attribute.";

AttributeCollection attributes;
attributes = TypeDescriptor.GetAttributes(button1);

// Gets the designer attribute from the collection.
DesignerAttribute myDesigner;
myDesigner = (DesignerAttribute)attributes[typeof(DesignerAttribute)];
// Prints the value of the attribute in a text box.
textBox1.Text = myDesigner.DesignerTypeName;
JasonHeung 2005-09-19
  • 打赏
  • 举报
回复
再问一个问题,如何获取方法或者变量上面定义的属性?
nm3000 2005-09-15
  • 打赏
  • 举报
回复
jf 中秋节快乐!
JasonHeung 2005-09-15
  • 打赏
  • 举报
回复
谢谢上面的回复,不过都不能直接或者间接解答提出的问题:)
祝每一个善良的人中秋节快乐!
zhongwanli 2005-09-14
  • 打赏
  • 举报
回复
MARK
JasonHeung 2005-09-14
  • 打赏
  • 举报
回复
UP.
2021‘someday 2005-09-14
  • 打赏
  • 举报
回复
jf
shrinerain 2005-09-14
  • 打赏
  • 举报
回复
jf~~
singlepine 2005-09-14
  • 打赏
  • 举报
回复
http://www.microsoft.com/china/msdn/library/office/office/listbuttonfaces.mspx
http://www.microsoft.com/china/msdn/archives/library/dnofftalk/html/office05022002.asp
http://www.microsoft.com/china/msdn/library/office/office/Office2003DeveloperToolProg.mspx
o1o 2005-09-08
  • 打赏
  • 举报
回复
看这个吧。
http://www.cnblogs.com/dragon/archive/2005/03/25/125533.html

应该可以Addin了
o1o 2005-09-08
  • 打赏
  • 举报
回复
我是一个初学者,太多的东西不懂了。
看看这个或许对你有帮助,至少应该可以从这儿找得到VSUserControlHostLib.DLL的下载地址。
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vstchFAQAboutVSNETAutomation.asp

110,535

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧