public HTMLTag(HTMLTag aTagParent, string aTagName, HTMLTagType aTagType) { _TagParent = aTagParent; _TagType = aTagType; if ((aTagType == HTMLTagType.HTML) || (aTagType == HTMLTagType.ShortHTML)) { _TagName = aTagName.ToUpper(); } else { _TagName = aTagName; } }
private FontStyle TagToFontStyle(HTMLTagType tag) { switch (tag) { case HTMLTagType.FontBoldedStyle: return(FontStyle.Bold); case HTMLTagType.FontItalicStyle: return(FontStyle.Italic); case HTMLTagType.FontULinedStyle: return(FontStyle.Underline); case HTMLTagType.FontStrikeStyle: return(FontStyle.Strikeout); default: return(FontStyle.Regular); } }
/// <summary> /// Constructor /// </summary> /// <param name="tag"></param> /// <param name="type"></param> public HtmlTag(string tag, HTMLTagType type) { _tagname = tag; _type = type; }