/// <summary> /// Initializes a new instance of the HtmlTag class. Renders the opening tag of an HTML node, including any attributes. /// </summary> /// <param name="writer"> /// The HTMLTextWriter. /// </param> /// <param name="tag"> /// The type of HTML tag. /// </param> /// <param name="style"> /// The style. /// </param> /// <param name="attributes"> /// HTML attributes. /// </param> public HtmlTag(HtmlTextWriter writer, HtmlTextWriterTag tag, TagStyle style, params HtmlAttribute[] attributes) { this.writer = writer; this.attributes = attributes; this.tag = tag.ToString().ToLower(); this.tagStyle = style; this.StartRender(); }
/// <summary> /// Initializes a new instance of the HtmlTag class. Renders the opening tag of an HTML node, including any attributes. /// </summary> /// <param name="writer"> /// The HTMLTextWriter. /// </param> /// <param name="tag"> /// The type of HTML tag. /// </param> /// <param name="attributes"> /// HTML attributes. /// </param> public HtmlTag(HtmlTextWriter writer, string tag, params HtmlAttribute[] attributes) { this.writer = writer; this.attributes = attributes; this.tag = tag; this.tagStyle = TagStyle.Inline; this.StartRender(); }
public static TagStyle dir(this TagStyle tag, Dir value) { tag.Dir = value; return(tag); }
public static TagStyle xmllang(this TagStyle tag, string value) { tag.XmlLang = value; return(tag); }
public static TagStyle lang(this TagStyle tag, LangCode value) { tag.Lang = value; return(tag); }
public static TagStyle xmlspace(this TagStyle tag, string value) { tag.XmlSpace = value; return(tag); }
public static TagStyle title(this TagStyle tag, string value) { tag.Title = value; return(tag); }
public static TagStyle media(this TagStyle tag, Media value) { tag.Media = value; return(tag); }
public static TagStyle type(this TagStyle tag, MimeType value) { tag.Type = value; return(tag); }