Api IconAttribute
class

IconAttribute

public sealed class IconAttribute : Attribute

Sets the icon of a type or a type member. Colors are expected in HTML formats, like "rgb(255,255,255)" or "#FFFFFF". This info can then be retrieved via DisplayInfo library.

Constructors

IconAttribute(String icon, String bgColor, String fgColor)
IconAttribute(String icon)

Properties

Name Type Description
Value virtual String
BackgroundColor Color? The preferred background color for the icon.
ForegroundColor Color? The preferred color of the icon itself.
Assembly: Sandbox.System Full Name: IconAttribute