9 references to FromName
BinaryFormatTests (1)
FormatTests\FormattedObject\BinaryFormatWriterTests.cs (1)
208
Color.
FromName
("Blue"),
System.ComponentModel.TypeConverter (1)
src\libraries\Common\src\System\Drawing\ColorConverterCommon.cs (1)
45
return Color.
FromName
(colorName);
System.Drawing.Common.Tests (4)
System\Drawing\ColorTranslatorTests.cs (4)
146
yield return new object[] { "''", Color.
FromName
("") };
147
yield return new object[] { "\"\"", Color.
FromName
("") };
157
yield return new object[] { "'None'", Color.
FromName
("None") };
158
yield return new object[] { "\"None\"", Color.
FromName
("None") };
System.Drawing.Primitives (2)
src\libraries\Common\src\System\Drawing\ColorConverterCommon.cs (1)
45
return Color.
FromName
(colorName);
System\Drawing\Color.cs (1)
473
color <= 0 || color > KnownColor.RebeccaPurple ?
FromName
(color.ToString()) : new Color(color);
System.Windows.Forms (1)
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.cs (1)
661
return Color.
FromName
(strColor);