如何在资源管理器阅读窗格中获取当前所选电子邮件的 WordEditor 属性?

How to get the WordEditor property of the currently selected email in an explorer reading pane?

我为电子邮件实现了上下文菜单,其中包括资源管理器阅读窗格。为了在右键单击时获取鼠标下方的文本,我使用了 WordEditor。我认为没有任何其他方法可以找出鼠标点击的位置。

'_olItem comes from the current selection
olInspector = CType(_olItem.GetInspector, Outlook.Inspector)
wDoc = CType(olInspector.WordEditor, Word.Document)
'then go off and work with word

对于Explorer 阅读窗格,只有先调用GetInspector 才能获取WordEditor 吗?

问的一个原因是我看到 Inline responses Outlook has the ActiveInlineResponseWordEditor 属性.

我的插件也监听新检查员

Private Sub oInsps_NewInspector(ByVal Inspector As Microsoft.Office.Interop.Outlook.Inspector) Handles oInsps.NewInspector
'do something here with this inspector
End Sub

如果我无法避免调用 GetInspector 来获取单词编辑器,那么在 newinspector 事件触发时是否有 属性 检查员告诉我这个检查员实际上来自阅读窗格和我调用 GetInspector?

使用Explorer.PreviewPane.WordEditor.