1、CodeFunction的Parameters集合中的CodeElement可转换为哪种接口?换种说法是如何获取参数的类型?  
2、如果获取事件代理的定义?  
3、如何增加事件响应代码到当前类中?  
4、为何自定义方法或其它元素的注释代码不能获取?包括在代码窗口引用自己的类库时无法看见提示?
5、哪里有VSUserControlHostLib.DLL下载?

解决方案 »

  1.   

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

  2.   

    看这个吧。
    http://www.cnblogs.com/dragon/archive/2005/03/25/125533.html
     
    应该可以Addin了
      

  3.   

    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
      

  4.   

    上面的问题有答案了:
       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;