Exemplo n.º 1
0
 public static ElementsBuilder CreateURL(string url, string title, string text)
 {
     ElementsBuilder attributeUrl = new ElementsBuilder("a");
     attributeUrl.AddAttribute("href", url);
     attributeUrl.AddAttribute("title", title);
     attributeUrl.AddContent(text);
     return attributeUrl;
 }
Exemplo n.º 2
0
 public static ElementsBuilder CreateInput(string inputType, string name, string value)
 {
     ElementsBuilder input = new ElementsBuilder("input");
     input.AddAttribute("type", inputType);
     input.AddAttribute("name", name);
     input.AddAttribute("value", value);
     return input;
 }
Exemplo n.º 3
0
        public static ElementsBuilder CreateImage(string imageSource,string alt, string title)
        {
            ElementsBuilder imageTage = new ElementsBuilder("img");
            imageTage.AddAttribute("src", imageSource);
            imageTage.AddAttribute("alt", alt);
            imageTage.AddAttribute("title", title);

            return imageTage;
        }