Outlook VSTO - Add new line to WordEditor Document Hyperlink
问题 I am using following code to add hyperlinks to my MailItem object link = url + System.Environment.NewLine; Microsoft.Office.Interop.Outlook.MailItem currentMessage = MyAddIn.Application.ActiveInspector().CurrentItem; Microsoft.Office.Interop.Word.Document doc = currentMessage.GetInspector.WordEditor; Microsoft.Office.Interop.Word.Selection sel = doc.Windows[1].Selection; doc.Hyperlinks.Add(sel.Range, ref result, ref missing, ref missing, ref link, ref missing); While this does insert each