Exemplo n.º 1
0
 public BaseTag(string tagName, BaseTag parent) : base()
 {
     content = new List<BaseTag>();
     Parent = parent;
     TagName = tagName;
     this.paragraphOffset = parent == null ? "" : (parent.paragraphOffset + " ");
 }
Exemplo n.º 2
0
 static void Main(string[] args)
 {
     BaseTag bt = new BaseTag(null);
     bt.Div().Id("teste").Div().Id("ee").Div().Close().Span().Close().Span().Div().Id("r").Close().Div().Id("id2");
     Console.WriteLine(bt);
     Console.ReadKey();
 }
Exemplo n.º 3
0
 public BaseTag(string tagName, BaseTag parent) : base()
 {
     content = new List <BaseTag>();
     Parent  = parent;
     TagName = tagName;
     this.paragraphOffset = parent == null ? "" : (parent.paragraphOffset + " ");
 }
Exemplo n.º 4
0
 public Span(BaseTag parent) : base("span", parent)
 {
 }
Exemplo n.º 5
0
 public BaseTag(BaseTag parent) : this("html", parent)
 {
 }
Exemplo n.º 6
0
 public BaseTag(BaseTag parent) : this("html", parent)
 {
 }
Exemplo n.º 7
0
 public Span(BaseTag parent) : base("span", parent)
 {
 }