Vb.net colordialog color.name属性 [英] Vb.net colordialog color.name property

查看:169
本文介绍了Vb.net colordialog color.name属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当返回十六进制而不是说绿色蓝色时,如何更改Hex.Code中Color.Name的返回值或者选择了什么颜色名称。

我想要为 MS ColorDialog <中选择的任何颜色返回人类可读名称 / b>。



我的尝试:



广泛的互联网搜索转换值的代码。

How do you change the return of the Color.Name, from the Hex Color.Code, when the Hex is returned instead of say "Green" or "Blue" or whatever the Color Name is that has been selected.
I want the Human Readable Name to be returned for any of the Colors selected in the MS ColorDialog.

What I have tried:

Extensive Internet Search for code the Convert values.

推荐答案

ColorDialog类 [ ^ ]返回 System.Drawing.Color [ ^ ]。正如MSDN文档所述,名称属性 [ ^ ] color 返回用户定义的颜色名称,颜色是从名称创建的,还是已知颜色的名称。对于自定义颜色,返回RGB值
ColorDialog class[^] returns System.Drawing.Color[^]. As MSDN documentation states a Name property[^] of color returns either the user-defined name of the color, if the color was created from a name, or the name of the known color. For custom colors, the RGB value is returned.


这篇关于Vb.net colordialog color.name属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆