-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathImageTag.cs
More file actions
68 lines (63 loc) · 1.83 KB
/
ImageTag.cs
File metadata and controls
68 lines (63 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TextCode
{
class ImageTag : GlobalAttributes
{
public string src;
public string alt;
public string width;
public string height;
public void Src(string src)
{
if (src == null)
{
Console.Write("");
}
else
{
Console.Write("src=" + '\u0022' + src + '\u0022' + " ");
}
}
public void Alt(string alt)
{
if (alt == null)
{
Console.Write("");
}
else
{
Console.Write("alt=" + '\u0022' + alt + '\u0022' + " ");
}
}
public void Width(string width)
{
if (width == null)
{
Console.Write("");
}
else
{
Console.Write("src=" + '\u0022' + width + '\u0022' + " ");
}
}
public void Height(string height)
{
if (height == null)
{
Console.Write("");
}
else
{
Console.Write("src=" + '\u0022' + height + '\u0022' + " ");
}
}
public void Img(string text)
{
Console.Write("<img "); Src(src); Alt(alt); Width(width); Height(height); Class(classes); Id(id); Draggable(draggable); Content(content); DataCustom(dataCustomValue, dataCustomText); Name(name); Translate(translate); Title(title); Tabindex(tabindex); Lang(lang); Dir(dir); Spellcheck(spellcheck); Contenteditable(contenteditable); Style(style); Hidden(hidden); Accesskey(accesskey); Console.WriteLine("> ");
}
}
}