Office Add-in 中获取Office语言信息的方法C#
private void ThisAddIn_Startup(object sender, System.EventArgs e) { Office.LanguageSettings objLanguageSetting = Application.LanguageSettings; CultureInfo objCultureInfo = new CultureInfo(objLanguageSetting .get_LanguageID(Office.MsoAppLanguageID.msoLanguageIDUI)); Properties.Resources.Culture = objCultureInfo; }在Visual Studio 中如果不能检测到代码中规定的资源,程序将使用默认的Resources.resx中的资源。
征诛志异,三让两家王朝;功同开辟,一桮万古江南。