获取SPField货币字符

如何获取SPField货币类型中的货币符号呢,需要用到 RegionInfo

 

SPField field = list.Fields["单价"];
int id = ((Microsoft.SharePoint.SPFieldCurrency)(fd)).CurrencyLocaleId;
RegionInfo rf = new RegionInfo(id);
Console.WriteLine(rf.CurrencySymbol);

 

注:命名空间 System.Globalization;

posted @ 2010-02-08 15:50  Anlycp  阅读(231)  评论(0编辑  收藏  举报