Icon
ConsoleMonster
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 27 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 17
- Property Icons.All
- Property Icons.Back
- Property Icons.Done
- Property Icons.Exit
- Property Icons.Favorite
- Property Icons.Help
- Property Icons.Item
- Property Icons.List
- Property Icons.Run
- Property Icons.Settings
- Property Icons.Targets
- Property Icons.Tasks
- Property Icons.Warning
- Method Icon.Named
- Method Icon.Parse
- Property Icon.None
- Property MenuItem.Icon
Accepted by parameters 10
- Method GlyphSetExtensions.Icon
- Extension method IGlyphSet.Icon
- Method Icon.Equals
- Method Icon.op_Equality
- Method Icon.op_Equality
- Method Icon.op_Inequality
- Method Icon.op_Inequality
- Method Icon.TryParse
- Extension method MenuItem.Icon
- Method MenuItemFluent.Icon
Methods
public bool Equals(Icon other) #Indicates whether the current object is equal to another object of the same type.
Parameters
- other ConsoleMonster.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 ConsoleMonster.Icon
- right ConsoleMonster.Icon
Returns
boolpublic static bool op_Inequality(Icon left, Icon right) #Whether two icons have different keys.
Parameters
- left ConsoleMonster.Icon
- right ConsoleMonster.Icon
Returns
boolpublic static Icon Parse(string value) #Reads an icon key, ignoring case.
Parameters
- value string
- The key.