Esempio n. 1
0
 /// <summary>
 /// Returns the <see cref="FAIconAttribute" /> associated with the icon, containing its metadata
 /// </summary>
 public static FAIconAttribute GetFAIconAttribute(this FAIcons icon) =>
 icon.GetAttributeOfType <FAIconAttribute>();
Esempio n. 2
0
 /// <summary>
 /// Returns the style enum of the icon, eg <see cref="FAStyle.Brands" />
 /// </summary>
 public static FAStyle FAStyle(this FAIcons icon) => icon.GetAttributeOfType <FAIconAttribute>().Style;
Esempio n. 3
0
 /// <summary>
 /// Returns the label of the icon, eg "Alternate GitHub"
 /// </summary>
 public static string Label(this FAIcons icon) => icon.GetAttributeOfType <FAIconAttribute>().Label;
Esempio n. 4
0
 /// <summary>
 /// Returns the unicode character of the icon, eg "f113"
 /// </summary>
 public static string Unicode(this FAIcons icon) => icon.GetAttributeOfType <FAIconAttribute>().Unicode;
Esempio n. 5
0
 /// <summary>
 /// Returns the key of the icon, eg "github-alt"
 /// </summary>
 public static string Key(this FAIcons icon) => icon.GetAttributeOfType <FAIconAttribute>().Key;