颜色#RRGGBB与string 相互转换 this.ForeColor = ColorTranslator.FromHtml("#FF0000"); string str = ColorTranslator.ToHtml(System.Drawing.Color.FromArgb(255, 0, 0)); MessageBox.Show(str); C# 2024-05-30 53 点赞 0 评论 80 浏览