Пример #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="stack"></param>
 /// <param name="style"></param>
 /// <returns></returns>
 public static FaStack WithStyle([NotNull] this FaStack stack, [NotNull] FaStyle style)
 {
     return(stack.Customize(style.ClassAttribute));
 }
Пример #2
0
 /// <summary>
 /// Applies a style to the icon.
 /// </summary>
 /// <param name="icon">The icon the style is applied.</param>
 /// <param name="style">The <see cref="FaStyle"/> that will be
 /// applied to the icon.</param>
 /// <returns>The updated icon.</returns>
 public static FaIcon WithStyle([NotNull] this FaIcon icon, [NotNull] FaStyle style)
 {
     icon.AddClassAttribute(style.ClassAttribute);
     return(icon);
 }