是否可以以编程方式使用 Outlook 'Language' 设置?
Is it possible to use the Outlook 'Language' setting programmatically?
我目前正在为我的公司开发 C# Outlook-Add-In,它允许用户通过 outlook 在 cisco jabber 中计划视频会议,我想知道它是否可能以某种方式编程 access/use Outlook-Options 我的代码中的“语言”设置?
为了 add-in 安装能够根据用户现有的 outlook 设置自动设置 App.config 中的语言,这是必需的。
我发现了这个问题,但我肯定不允许(我什至不知道是否可能)访问其他用户注册表:Outlook Version language
感谢任何帮助,谢谢。
根据 MSDN 文档,您无需阅读注册表,您可以使用 LanguageSettings.LanguageID property 获取语言 ID。
Specifies a language setting in a Microsoft Office application. The
MsoAppLanguageID
enumeration is used with the LanguageSettings member
of the Application object to determine the language used for the
install language, the user interface language, or the Help language.
MsoAppLanguageID enumeration (Office) Name Value Description
msoLanguageIDExeMode
4 Execution mode language.
msoLanguageIDHelp
3 Help language.
msoLanguageIDInstall
1 Install language.
msoLanguageIDUI
2 User interface language.
msoLanguageIDUIPrevious
5 User interface language used prior to the current user interface language.
在我的例子中是 1045,指的是波兰语。
我目前正在为我的公司开发 C# Outlook-Add-In,它允许用户通过 outlook 在 cisco jabber 中计划视频会议,我想知道它是否可能以某种方式编程 access/use Outlook-Options 我的代码中的“语言”设置?
为了 add-in 安装能够根据用户现有的 outlook 设置自动设置 App.config 中的语言,这是必需的。
我发现了这个问题,但我肯定不允许(我什至不知道是否可能)访问其他用户注册表:Outlook Version language
感谢任何帮助,谢谢。
根据 MSDN 文档,您无需阅读注册表,您可以使用 LanguageSettings.LanguageID property 获取语言 ID。
Specifies a language setting in a Microsoft Office application. The
MsoAppLanguageID
enumeration is used with the LanguageSettings member of the Application object to determine the language used for the install language, the user interface language, or the Help language.MsoAppLanguageID enumeration (Office) Name Value Description
msoLanguageIDExeMode
4 Execution mode language.
msoLanguageIDHelp
3 Help language.
msoLanguageIDInstall
1 Install language.
msoLanguageIDUI
2 User interface language.
msoLanguageIDUIPrevious
5 User interface language used prior to the current user interface language.
在我的例子中是 1045,指的是波兰语。