17 references to Name
System.ComponentModel.TypeConverter (9)
System\Drawing\ColorConverter.cs (9)
63if (ColorTable.IsKnownNamedColor(c.Name)) 65return c.Name; 69return "'" + c.Name + "'"; 105else if (ColorTable.IsKnownNamedColor(c.Name)) 107member = typeof(Color).GetProperty(c.Name) ?? typeof(SystemColors).GetProperty(c.Name); 117args = new object[] { c.Name }; 149public int Compare(Color left, Color right) => string.CompareOrdinal(left.Name, right.Name);
System.Drawing.Primitives (3)
System\Drawing\Color.cs (2)
387private string NameAndARGBValue => $"{{Name = {Name}, ARGB = ({A}, {R}, {G}, {B})}}"; 573IsNamedColor ? $"{nameof(Color)} [{Name}]" :
System\Drawing\ColorTranslator.cs (1)
388colorString = c.Name;
System.Windows.Forms.Design (3)
System\Drawing\Design\ColorEditor.ColorUI.cs (1)
278graphics.DrawString(value.Name, font, foreBrush, die.Bounds.X + 26, die.Bounds.Y);
System\Drawing\Design\ColorEditor.SystemColorComparer.cs (2)
16=> string.Compare(x.Name, y.Name, false, CultureInfo.InvariantCulture);
System.Windows.Forms.Design.Tests (2)
System\Windows\Forms\Design\InheritedPropertyDescriptorTests.cs (2)
50backColor.Name.Should().Be("Control"); 54backColor.Name.Should().Be("Purple");