WineMonk / WineMonk.github.io

blog
1 stars 0 forks source link

C#中Brush、Color、String相互转换 | WineMonk #95

Open WineMonk opened 1 year ago

WineMonk commented 1 year ago

https://shaoshao.net.cn/2022/12/31/202212312056-CSharp%E4%B8%ADBrush%E3%80%81Color%E3%80%81String%E7%9B%B8%E4%BA%92%E8%BD%AC%E6%8D%A2/

C#中Brush、Color、String相互转换1、String转换成Color ​ Color color = (Color)ColorConverter.ConvertFromString(string); 2、String转换成Brush ​ BrushConverter brushConverter = new BrushConverter();​

WineMonk commented 1 year ago
    //hello gitalk
    string title = "hello gitalk";