FaceType是一个枚举类型;

cbFace.Text是一个枚举值对应的字符串;

下面的代码可以得到枚举值

FaceType aaa = (FaceType)Enum.Parse(typeof(FaceType), cbFace.Text);

 

相关文章:

  • 2021-06-15
  • 2022-12-23
  • 2021-07-21
  • 2022-12-23
  • 2021-12-08
  • 2022-12-23
  • 2021-06-22
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-29
  • 2022-12-23
  • 2022-12-23
  • 2022-03-05
  • 2022-12-23
相关资源
相似解决方案