static ElementBuilder CreateImage(string src, string title)
 {
     ElementBuilder e = new ElementBuilder(ElementBuilder.HTMLTag.img);
     e.AddAttribute("src", src);
     e.AddAttribute("title", title);
     return e;
 }
Exemple #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);
        }
Exemple #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);
        }
Exemple #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);
        }
        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;
        }
 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;
 }