Пример #1
0
        public virtual THtmlTag InnerText(string value)
        {
            Enforce.Argument(() => value);
            Enforce.That(RenderMode != TagRenderMode.SelfClosing);

            HtmlTagBuilder.SetInnerText(value);
            return((THtmlTag)this);
        }
Пример #2
0
 public override string ToString()
 {
     return(HtmlTagBuilder.ToString(RenderMode));
 }
Пример #3
0
 protected HtmlTagBaseBuilder(HtmlTextWriterTag tag)
 {
     HtmlTagBuilder = new HtmlTagBuilder(tag);
 }
Пример #4
0
 protected virtual THtmlTag SetStyle(HtmlTextWriterStyle style, object value)
 {
     Enforce.Argument(() => value);
     HtmlTagBuilder.MergeStyle(style, value);
     return((THtmlTag)this);
 }
Пример #5
0
 protected virtual THtmlTag SetAttribute(HtmlTextWriterAttribute attribute, object value)
 {
     Enforce.Argument(() => value);
     HtmlTagBuilder.MergeAttribute(attribute, value);
     return((THtmlTag)this);
 }