Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法使用 Outlook 插件和 c#. 为选定的邮件项目颜色、文本颜色、背景颜色等项目获取 Outlook 主题颜色?
只有所有 Office 应用程序的主题可用,而不是每个主题的特定 UI 实现(例如选择、文本、背景等)。您可以截取屏幕截图并在图像编辑应用程序中使用颜色选择器来确定各个元素的颜色。
否则,可以在注册表中的“UI 主题”键中读取特定主题,该键位于 HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common(例如 0 = “Colorful”、4 = “Black”等)。