The ForegroundColor
property of the IconAttribute
class specifies the preferred color of the icon itself. This property is nullable, meaning it can hold a Color
value or be set to null
if no specific foreground color is desired.
The ForegroundColor
property of the IconAttribute
class specifies the preferred color of the icon itself. This property is nullable, meaning it can hold a Color
value or be set to null
if no specific foreground color is desired.
To use the ForegroundColor
property, you can set it when applying the IconAttribute
to a class or member. The color should be specified in a format that is compatible with HTML color specifications, such as "rgb(255,255,255)" or "#FFFFFF".
[IconAttribute(ForegroundColor = Color.Red)] public class MyClass { // Class implementation }