如何阅读“列表分隔符"从控制面板的区域配置设置? [英] How to read "List Separator" settings from Regional configuration of control panel?

查看:45
本文介绍了如何阅读“列表分隔符"从控制面板的区域配置设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为 MS Word、Excel 制作多文化插件我需要在列表分隔符"选项下识别区域设置中提供的设置值,如何使用 C# 读取?

I'm making multi culture plugin for MS Word,Excel where I need to identify setting value provided in Regional Settings under "List Separator" Option, how can I read using C# ?

此列表分隔符稍后用于构建 Excel 公式、word 邮件合并标题等.

This List separator is later on being used to construct Excel formulas, word mail merge header, etc.

推荐答案

尝试使用 System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparatorSystem.Globalization.CultureInfo.GetCultureInfo("en-US").TextInfo.ListSeparator 如果您要查找特定文化的信息.

Try using System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator or System.Globalization.CultureInfo.GetCultureInfo("en-US").TextInfo.ListSeparator if you look for a specific culture's information.

这篇关于如何阅读“列表分隔符"从控制面板的区域配置设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆