开发者

Selected text action as Word AddIn in C#

开发者 https://www.devze.com 2023-03-08 12:24 出处:网络
I\'d like to have a Word 2007+ AddIn (in C#) which after selecting text and the right mou开发者_C百科se click shows a pop-up menu with MY OWN Item and after clicking this Item I can use the selected t

I'd like to have a Word 2007+ AddIn (in C#) which after selecting text and the right mou开发者_C百科se click shows a pop-up menu with MY OWN Item and after clicking this Item I can use the selected text as string in the event handler.

Please, I am completely new to the AddIn development. How to do that two things?


Would you prefer VBA or C#? Both are viable options. I will say however, VBA is a more lightweight solution. A good VBA example can be found here and a beautiful C# example here. Hope that helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号