IconAttributeclass

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.

objectAttributeIconAttribute
Namespace
global
Assembly
Sandbox.System
Declaration
public sealed class IconAttribute : System.Attribute

Constructors2

Showing 2 constructors

Properties3

Showing 3 properties

public System.Nullable`1<Color> IconAttribute.BackgroundColor { get; set; }PUBLICGETSET

The preferred background color for the icon.

Returns:Nullable<Color>

public System.Nullable`1<Color> IconAttribute.ForegroundColor { get; set; }PUBLICGETSET

The preferred color of the icon itself.

Returns:Nullable<Color>

public virtual sealed string IconAttribute.Value { get; set; }PUBLICVIRTUALGETSET

Returns:string

On this page