Icon Class

Namespace:
Weavy.Core.Models
Assembly:
Weavy.Core.dll

Metadata about an icon used in our interface.

public class Icon
Inheritance:
System.Object → Icon

Constructors

Icon()
Icon(String)
Icon(String, String)

Properties

Color Gets or sets the icon color (must be one of the theme colors in our css), e.g. "red-500".
Name Gets or sets the icon name (must be in our icon sprite), e.g. "file-document-box".
Size Gets or sets the size of the icon, i.e. 18, 24, 36, 48.

Extension Methods

IsNullOrDefault(T) Gets a value indicating if the specified value has the default value of the generic type.
Serialize(object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(object, Formatting?, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
IsValid(object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.