public HtmlStyle Style() { if (_style == null) { _style = new HtmlStyle(); } return(_style); }
/// <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); }