daixinet

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

枚举

m_Theme.HorizontalAlignment = (HorizontalAlignment)Enum.Parse(typeof(HorizontalAlignment), m_HorizontalAlignment);

结构

m_Theme.FontWeight = (FontWeight)System.ComponentModel.TypeDescriptor.GetConverter(typeof(FontWeight)).ConvertFromString(m_FontWeightName); 

 

posted on 2012-07-31 15:39  daixinet.com  阅读(1345)  评论(0编辑  收藏  举报