Пример #1
0
        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;
            }
        }
Пример #2
0
        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);
            }
        }
Пример #3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="tag"></param>
 /// <param name="type"></param>
 public HtmlTag(string tag, HTMLTagType type)
 {
     _tagname = tag;
     _type = type;
 }