Пример #1
0
 static ElementBuilder CreateImage(string src, string title)
 {
     ElementBuilder e = new ElementBuilder(ElementBuilder.HTMLTag.img);
     e.AddAttribute("src", src);
     e.AddAttribute("title", title);
     return e;
 }
Пример #2
0
        static ElementBuilder CreateImage(string src, string title)
        {
            ElementBuilder e = new ElementBuilder(ElementBuilder.HTMLTag.img);

            e.AddAttribute("src", src);
            e.AddAttribute("title", title);
            return(e);
        }
Пример #3
0
        static ElementBuilder CreateInput(string type, string name, string value)
        {
            ElementBuilder e = new ElementBuilder(ElementBuilder.HTMLTag.a);

            e.AddAttribute("type", type);
            e.AddAttribute("name", name);
            e.AddContent(value);
            return(e);
        }
Пример #4
0
        static ElementBuilder CreateURL(string url, string title, string text)
        {
            ElementBuilder e = new ElementBuilder(ElementBuilder.HTMLTag.a);

            e.AddAttribute("href", url);
            e.AddAttribute("title", title);
            e.AddContent(text);
            return(e);
        }
Пример #5
0
        static ElementBuilder CreateURL(string url, string title, string text)
        {

            ElementBuilder e = new ElementBuilder(ElementBuilder.HTMLTag.a);
            e.AddAttribute("href", url);
            e.AddAttribute("title", title);
            e.AddContent(text);
            return e;
        }
Пример #6
0
 static ElementBuilder CreateInput(string type, string name, string value)
 {
     ElementBuilder e = new ElementBuilder(ElementBuilder.HTMLTag.a);
     e.AddAttribute("type", type);
     e.AddAttribute("name", name);
     e.AddContent(value);
     return e;
 }