The ForegroundColor
property of the IconAttribute
class specifies the preferred color of the icon itself. This property is of type System.Nullable<Color>
, meaning it can hold a Color
value or be null
if no specific color is set.
The ForegroundColor
property of the IconAttribute
class specifies the preferred color of the icon itself. This property is of type System.Nullable<Color>
, meaning it can hold a Color
value or be null
if no specific color is set.
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 can be interpreted as a Color
, such as an HTML color string (e.g., "#FFFFFF" for white).
[IconAttribute(ForegroundColor = "#FF5733")] public class MyCustomClass { // Class implementation }