I cant really seem to find a documentation for word addins in C#. Like to find out how to insert text I played with intellisense for half and hour to find Application.Selection.Range.InsertAfter(); Is there a documentation to this I’m trying to figure out how to print out formatted text like a link but I’m finding little resources.
I cant really seem to find a documentation for word addins in C#. Like
Share
Your are not really specifying what you want to do exactly. One of the best starting points into figuring out how to do stuff in office automation is to record a macro and then look at what it generated.
For this question I entered a line of text in a document:
Then I used ctrl+leftarrow 3 times to move the cursor before ‘this’ and selected the next 4 chars (this). Then I turned the selection into a hyperlink pointing to stackoverflow
This is resulting code:
In general it’s not that hard to convert this vba stuff to c# and finding the proper methods