是否有任何机制可以在 Outlook 中以编程方式启用/禁用“对话视图”?
我只看到四个记录的与对话相关的属性:AlwaysExpandConversation、ShowConversationByDate、ShowConversationSendersAboveSubject 和 ShowFullConversations。这些都假设已经应用了“对话视图”。
我是否缺少完全打开和关闭对话视图的属性/方法?
CommandBars.ExecuteMso 方法(Office)
“在没有特定命令的对象模型的情况下,此方法很有用。适用于内置按钮、toggleButtons 和 splitButtons 的控件。...”
Sub ExecuteMso_ShowInConversation()
' Hover over the button where you would add it to the ribbon,
' you will see the text ends with "ShowInConversations"
ActiveExplorer.CommandBars.ExecuteMso ("ShowInConversations")
End Sub
Office 2016 帮助文件:Office Fluent 用户界面控件标识符
GitHub:Office Fluent UI 命令标识符