寻找与 'SearchREsults.item.select' for Office API 或 'WordEditor' for VSTO 工作方式相同的 Outlook API

Looking for Outlook API that works in the same way as 'SearchREsults.item.select' for Office API or 'WordEditor' for VSTO

我正在开发适用于 Outlook 的 Office 加载项,需要 select 邮件正文中的文本。

这是使用

完成的方法
  1. word/excel办公室API-searchResults.items[0].select('Select')
  2. VSTO -mailItem.GetInspector.WordEditor.Application()

能否请您建议实现相同功能的方式,但使用 Outlook API 或可在 Outlook Office 加载项中使用的任何其他方式?

您可以使用 item.getSelectedDataAsync API。 link 低于

https://dev.office.com/reference/add-ins/outlook/1.6/Office.context.mailbox.item?product=outlook

谢谢