Пример #1
0
		/// <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();
		}
Пример #2
0
		/// <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();
		}
Пример #3
0
 public static TagStyle dir(this TagStyle tag, Dir value)
 {
     tag.Dir = value; return(tag);
 }
Пример #4
0
 public static TagStyle xmllang(this TagStyle tag, string value)
 {
     tag.XmlLang = value; return(tag);
 }
Пример #5
0
 public static TagStyle lang(this TagStyle tag, LangCode value)
 {
     tag.Lang = value; return(tag);
 }
Пример #6
0
 public static TagStyle xmlspace(this TagStyle tag, string value)
 {
     tag.XmlSpace = value; return(tag);
 }
Пример #7
0
 public static TagStyle title(this TagStyle tag, string value)
 {
     tag.Title = value; return(tag);
 }
Пример #8
0
 public static TagStyle media(this TagStyle tag, Media value)
 {
     tag.Media = value; return(tag);
 }
Пример #9
0
 public static TagStyle type(this TagStyle tag, MimeType value)
 {
     tag.Type = value; return(tag);
 }