How to read “List Separator” settings from Regiona

2019-01-26 03:02发布

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# ?

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

1条回答
叼着烟拽天下
2楼-- · 2019-01-26 03:36

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.

查看更多
登录 后发表回答