Moves XNA 4 files for Github migration.
This commit is contained in:
37
Plan B Html Parser/Nodes/HtmlSpanNode.cs
Normal file
37
Plan B Html Parser/Nodes/HtmlSpanNode.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace PlanB.Html.Nodes
|
||||
{
|
||||
public class HtmlSpanNode: HtmlNode
|
||||
{
|
||||
public HtmlSpanNode()
|
||||
{
|
||||
Type = HtmlNodeType.Span;
|
||||
}
|
||||
|
||||
public HtmlSpanNode(String text)
|
||||
:this()
|
||||
{
|
||||
Children.Add(new HtmlTextNode(text));
|
||||
}
|
||||
|
||||
public HtmlSpanNode(IEnumerable<HtmlNode> children)
|
||||
:this()
|
||||
{
|
||||
foreach (HtmlNode child in children)
|
||||
{
|
||||
Children.Add(child);
|
||||
}
|
||||
}
|
||||
|
||||
public override string TagName
|
||||
{
|
||||
get { return StaticTagName; }
|
||||
}
|
||||
|
||||
public static string StaticTagName { get { return "span"; } }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user