Пример #1
0
 public static string CreateInput(string type, string name, string value)
 {
     ElementBuilder input = new ElementBuilder("input");
     input.AddAttr("type", type);
     input.AddAttr("name", name);
     input.AddAttr("value", value);
     input.IsClosingTag(false);
     return input.ToString();
 }
Пример #2
0
 public static string CreateURL(string url, string title, string text)
 {
     ElementBuilder a = new ElementBuilder("a");
     a.AddAttr("href", url);
     a.AddAttr("title", title);
     a.AddContent(text);
     a.IsClosingTag(true);
     return a.ToString();
 }
Пример #3
0
 public static string CreateImage(string src, string alt, string title)
 {
     ElementBuilder img = new ElementBuilder("img");
     img.AddAttr("src", src);
     img.AddAttr("alt", alt);
     img.AddAttr("title", title);
     img.IsClosingTag(false);
     return img.ToString();
 }
Пример #4
0
        public static string CreateInput(string type, string name, string value)
        {
            ElementBuilder input = new ElementBuilder("input");

            input.AddAttr("type", type);
            input.AddAttr("name", name);
            input.AddAttr("value", value);
            input.IsClosingTag(false);
            return(input.ToString());
        }
Пример #5
0
        public static string CreateURL(string url, string title, string text)
        {
            ElementBuilder a = new ElementBuilder("a");

            a.AddAttr("href", url);
            a.AddAttr("title", title);
            a.AddContent(text);
            a.IsClosingTag(true);
            return(a.ToString());
        }
Пример #6
0
        public static string CreateImage(string src, string alt, string title)
        {
            ElementBuilder img = new ElementBuilder("img");

            img.AddAttr("src", src);
            img.AddAttr("alt", alt);
            img.AddAttr("title", title);
            img.IsClosingTag(false);
            return(img.ToString());
        }