示例#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>();
示例#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;
示例#3
0
 /// <summary>
 /// Returns the label of the icon, eg "Alternate GitHub"
 /// </summary>
 public static string Label(this FAIcons icon) => icon.GetAttributeOfType <FAIconAttribute>().Label;
示例#4
0
 /// <summary>
 /// Returns the unicode character of the icon, eg "f113"
 /// </summary>
 public static string Unicode(this FAIcons icon) => icon.GetAttributeOfType <FAIconAttribute>().Unicode;
示例#5
0
 /// <summary>
 /// Returns the key of the icon, eg "github-alt"
 /// </summary>
 public static string Key(this FAIcons icon) => icon.GetAttributeOfType <FAIconAttribute>().Key;