예제 #1
0
파일: HTMLDispatcher.cs 프로젝트: Gab42/OOP
 public static string CreateUrl(string url, string title, string text)
 {
     ElementBuilder link = new ElementBuilder("a");
     link.AddAttribute("href", url);
     link.AddAttribute("title", title);
     link.AddContent(text);
     return link.ToString();
 }
예제 #2
0
파일: HTMLDispatcher.cs 프로젝트: Gab42/OOP
 public static string CreateImage(string imgSource, string alt, string title)
 {
     ElementBuilder image = new ElementBuilder("img");
     image.AddAttribute("src", imgSource);
     image.AddAttribute("alt", alt);
     image.AddAttribute("title", title);
     return image.ToString();
 }
예제 #3
0
파일: HTMLDispatcher.cs 프로젝트: Gab42/OOP
 public static string CreateInput(string type, string name, string value)
 {
     ElementBuilder input = new ElementBuilder("input");
     input.AddAttribute("type", type);
     input.AddAttribute("name", name);
     input.AddAttribute("value", value);
     return input.ToString();
 }
        public static string CreateURL(string url2, string title, string text)
        {
            ElementBuilder url = new ElementBuilder("a");
            url.AddAtributes("href", url2);
            url.AddAtributes("title", title);
            url.AddContent(text);

            return url.ToString();
        }