c# vsto ribbon 按钮图片切换

    技术2026-03-28  9

    //获取office的运行路径,下面俩必须申明到公共变量,不在方法体中 static string RunningPath = AppDomain.CurrentDomain.BaseDirectory; // Image Red = Image.FromFile(RunningPath + "\\Resources\\Red.png"); //方法中设置 btn.Image = Red;

     

    Processed: 0.013, SQL: 9