IconifyIconSet Class
Represents an icon set loaded from a file in the IconifyJSON format, using Iconify.Load.
public sealed class IconifyIconSetProperties
| Name | Description |
|---|---|
| Count | Gets the number of icons and aliases in the icon set. |
| Icons | Gets the icons and the aliases of the icon set, including the hidden icons. |
| Info | Gets the description of the icon set, or null when the file has no info property. |
| Prefix | Gets the prefix of the icon set, such as mdi. |
Count
IconifyIconSet.csIcons
IconifyIconSet.csGets the icons and the aliases of the icon set, including the hidden icons.
public IReadOnlyList<IconifyIcon> Icons { get; }Property value
Gets the description of the icon set, or null when the file has no info property.
public IconifyIconSetInfo? Info { get; }Property value
Prefix
IconifyIconSet.csIndexers
| Name | Description |
|---|---|
| this[string] | Gets the icon or the alias with the specified name. The comparison is case-sensitive. |
this[string]
IconifyIconSet.csGets the icon or the alias with the specified name. The comparison is case-sensitive.
public IconifyIcon this[string name] { get; }Parameters
namestring- The name of the icon, such as
account-circle.
Property value
Exceptions
KeyNotFoundException- The icon set has no icon with this name.
Methods
| Name | Description |
|---|---|
| ContainsIcon(string) | Determines whether the icon set has an icon or an alias with the specified name. The comparison is case-sensitive. |
| TryGetIcon(string, IconifyIcon?) | Gets the icon or the alias with the specified name. The comparison is case-sensitive. |
ContainsIcon(string)
IconifyIconSet.csTryGetIcon(string, IconifyIcon?)
IconifyIconSet.csGets the icon or the alias with the specified name. The comparison is case-sensitive.
public bool TryGetIcon(string name, out IconifyIcon? icon)Parameters
namestring- The name of the icon, such as
account-circle. iconIconifyIcon?- The icon, when it exists.
Returns
bool true when the icon set has an icon with this name; otherwise, false.