Пример #1
0
        public static string TagName(this SciterElement el)
        {
            Debug.Assert(el != null);

            string name    = el.Tag;
            string id      = el.GetAttribute("id");
            string classes = el.GetAttribute("class");

            if (id != null)
            {
                name += id;
            }
            if (classes != null)
            {
                name += string.Join(".", classes.Split(' '));
            }
            return(name);
        }