17 references to Name
System.ComponentModel.TypeConverter (9)
System\Drawing\ColorConverter.cs (9)
63
if (ColorTable.IsKnownNamedColor(c.
Name
))
65
return c.
Name
;
69
return "'" + c.
Name
+ "'";
105
else if (ColorTable.IsKnownNamedColor(c.
Name
))
107
member = typeof(Color).GetProperty(c.
Name
) ?? typeof(SystemColors).GetProperty(c.
Name
);
117
args = new object[] { c.
Name
};
149
public int Compare(Color left, Color right) => string.CompareOrdinal(left.
Name
, right.
Name
);
System.Drawing.Primitives (3)
System\Drawing\Color.cs (2)
387
private string NameAndARGBValue => $"{{Name = {
Name
}, ARGB = ({A}, {R}, {G}, {B})}}";
573
IsNamedColor ? $"{nameof(Color)} [{
Name
}]" :
System\Drawing\ColorTranslator.cs (1)
388
colorString = c.
Name
;
System.Windows.Forms.Design (3)
System\Drawing\Design\ColorEditor.ColorUI.cs (1)
278
graphics.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)
50
backColor.
Name
.Should().Be("Control");
54
backColor.
Name
.Should().Be("Purple");