Icon
ChartForgeX
An icon catalog key such as server or tabler:server. Each renderer binds the key to its own artwork (glyph, SVG path or emoji fallback), so a key is never a URL or markup. Keys are compared without regard to case.
Inheritance
- ValueType
- Icon
Usage
Explore 21 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 13
- Method Icon.Named
- Method Icon.Parse
- Property Icon.None
- Property Icons.All
- Property Icons.Bicycle
- Property Icons.Droplet
- Property Icons.Flame
- Property Icons.ForkKnife
- Property Icons.Lightning
- Property Icons.Person
- Property Icons.Runner
- Property MetricCard.Icon
- Property RadialMetricCard.Icon
Accepted by parameters 8
- Method Icon.Equals
- Method Icon.op_Equality
- Method Icon.op_Equality
- Method Icon.op_Inequality
- Method Icon.op_Inequality
- Method Icon.TryParse
- Method MetricCard.WithIcon
- Method RadialMetricCard.WithIcon
Methods
public bool Equals(Icon other) #Indicates whether the current object is equal to another object of the same type.
Parameters
- other ChartForgeX.Icon
- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.public override bool Equals(object obj) #Indicates whether this instance and a specified object are equal.
Parameters
- obj object
- The object to compare with the current instance.
Returns
bool true if obj and this instance are the same type and represent the same value; otherwise, false.public override int GetHashCode() #Returns the hash code for this instance.
Returns
int A 32-bit signed integer that is the hash code for this instance.public static Icon Named(string key) #An icon by catalog key.
Parameters
- key string
- Letters, digits, hyphens, underscores and dots, optionally after a pack: prefix.
public static bool op_Equality(Icon left, Icon right) #Whether two icons have the same key.
Parameters
- left ChartForgeX.Icon
- right ChartForgeX.Icon
Returns
boolpublic static bool op_Inequality(Icon left, Icon right) #Whether two icons have different keys.
Parameters
- left ChartForgeX.Icon
- right ChartForgeX.Icon
Returns
boolpublic static Icon Parse(string value) #Reads an icon key, ignoring case.
Parameters
- value string
- The key.