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