How to read "List Separator" settings from Regional configuration of control panel?

shahjapan picture shahjapan · Jul 26, 2011 · Viewed 19.7k times · Source

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.

Answer

floele picture floele · Jul 26, 2011

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.