问题描述
我正在为 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.ListSeparator
或 System.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.