How do I get the color from a hexadecimal color code using .NET?

前端 未结 16 965
不思量自难忘°
不思量自难忘° 2020-11-22 06:45

How can I get a color from a hexadecimal color code (e.g. #FFDFD991)?

I am reading a file and am getting a hexadecimal color code. I need to create the

16条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-22 06:53

    You can see Silverlight/WPF sets ellipse with hexadecimal colour for using a hex value:

    your_contorl.Color = DirectCast(ColorConverter.ConvertFromString("#D8E0A627"), Color)
    

提交回复
热议问题