Esempio n. 1
0
 public HtmlStyle Style()
 {
     if (_style == null)
     {
         _style = new HtmlStyle();
     }
     return(_style);
 }
Esempio n. 2
0
 /// <summary>
 /// Set the 'style' attribute. Ex: .Style(new HtmlStyle().Color(Color.Red))
 /// </summary>
 /// <param name="style">The style. Ex: new HtmlStyle().Color(Color.Red)</param>
 /// <returns></returns>
 public virtual T Style(HtmlStyle style)
 {
     Style().MergeStyle(style);
     return((T)this);
 }