Exemplo n.º 1
0
 /// <summary>
 /// 创建一个 HtmlBeginTag 对象
 /// </summary>
 /// <param name="info">应当被认为是 HTML 结束标签的 HTML 片段</param>
 /// <param name="tagName">标签名</param>
 /// <param name="selfClosed">是否自结束标签</param>
 /// <param name="attibutes">属性设置</param>
 public HtmlBeginTag( HtmlContentFragment info, string tagName, bool selfClosed, IEnumerable<HtmlAttributeSetting> attibutes )
     : base(info)
 {
     TagName = tagName;
       Attributes = attibutes;
       SelfClosed = selfClosed;
 }
Exemplo n.º 2
0
 /// <summary>
 /// 创建一个 HtmlBeginTag 对象
 /// </summary>
 /// <param name="info">应当被认为是 HTML 结束标签的 HTML 片段</param>
 /// <param name="tagName">标签名</param>
 /// <param name="selfClosed">是否自结束标签</param>
 /// <param name="attibutes">属性设置</param>
 public HtmlBeginTag(HtmlContentFragment info, string tagName, bool selfClosed, IEnumerable <HtmlAttributeSetting> attibutes)
     : base(info)
 {
     TagName    = tagName;
     Attributes = attibutes;
     SelfClosed = selfClosed;
 }
Exemplo n.º 3
0
 /// <summary>
 /// 创建 HtmlAttributeSetting 对象
 /// </summary>
 /// <param name="info">应当被认为是 HTML 标签属性的 HTML 片段</param>
 /// <param name="name">属性名</param>
 /// <param name="value">属性值</param>
 public HtmlAttributeSetting(HtmlContentFragment info, string name, string value)
     : base(info)
 {
     Name  = name;
     Value = value;
 }
Exemplo n.º 4
0
 /// <summary>
 /// 创建 HtmlCommentContent 实例
 /// </summary>
 /// <param name="info">应当被认为是 HTML 结束标签的 HTML 片段</param>
 /// <param name="comment">注释内容</param>
 public HtmlCommentContent( HtmlContentFragment info, string comment )
     : base(info)
 {
     Comment = comment;
 }
Exemplo n.º 5
0
 /// <summary>
 /// 创建 HtmlTextContent 对象
 /// </summary>
 /// <param name="fragement">应当被认为是 HTML 文本的 HTML 片段</param>
 public HtmlTextContent( HtmlContentFragment fragement )
     : base(fragement)
 {
 }
Exemplo n.º 6
0
 /// <summary>
 /// 创建 HtmlDoctypeDeclaration 对象
 /// </summary>
 /// <param name="info">应当被认为是 HTML 结束标签的 HTML 片段</param>
 /// <param name="declaration">HTML 文档类型声明</param>
 public HtmlDoctypeDeclaration( HtmlContentFragment info, string declaration )
     : base(info)
 {
     Declaration = declaration;
 }
Exemplo n.º 7
0
 /// <summary>
 /// 创建 HtmlAttributeSetting 对象
 /// </summary>
 /// <param name="info">应当被认为是 HTML 标签属性的 HTML 片段</param>
 /// <param name="name">属性名</param>
 /// <param name="value">属性值</param>
 public HtmlAttributeSetting( HtmlContentFragment info, string name, string value )
     : base(info)
 {
     Name = name;
       Value = value;
 }
Exemplo n.º 8
0
 /// <summary>
 /// 创建 HtmlCommentContent 实例
 /// </summary>
 /// <param name="info">应当被认为是 HTML 结束标签的 HTML 片段</param>
 /// <param name="comment">注释内容</param>
 public HtmlCommentContent(HtmlContentFragment info, string comment)
     : base(info)
 {
     Comment = comment;
 }
Exemplo n.º 9
0
 /// <summary>
 /// 创建 HtmlSpecialTag 实例
 /// </summary>
 /// <param name="fragment"></param>
 /// <param name="content"></param>
 /// <param name="speciaSymbol"></param>
 public HtmlSpecialTag( HtmlContentFragment fragment, string content, string speciaSymbol )
     : base(fragment)
 {
     Content = content;
       SpecialSymbol = speciaSymbol;
 }
Exemplo n.º 10
0
 /// <summary>
 /// 创建 HtmlSpecialTag 实例
 /// </summary>
 /// <param name="fragment"></param>
 /// <param name="content"></param>
 /// <param name="speciaSymbol"></param>
 public HtmlSpecialTag(HtmlContentFragment fragment, string content, string speciaSymbol)
     : base(fragment)
 {
     Content       = content;
     SpecialSymbol = speciaSymbol;
 }
Exemplo n.º 11
0
 /// <summary>
 /// 创建 HtmlTextContent 对象
 /// </summary>
 /// <param name="fragement">应当被认为是 HTML 文本的 HTML 片段</param>
 public HtmlTextContent(HtmlContentFragment fragement) : base(fragement)
 {
 }
Exemplo n.º 12
0
 /// <summary>
 /// 创建 HtmlTextContent 对象
 /// </summary>
 /// <param name="info">应当被认为是 HTML 结束标签的 HTML 片段</param>
 /// <param name="tagName">标签名</param>
 public HtmlEndTag( HtmlContentFragment info, string tagName )
     : base(info)
 {
     TagName = tagName;
 }
Exemplo n.º 13
0
 /// <summary>
 /// 创建 HtmlDoctypeDeclaration 对象
 /// </summary>
 /// <param name="info">应当被认为是 HTML 结束标签的 HTML 片段</param>
 /// <param name="declaration">HTML 文档类型声明</param>
 public HtmlDoctypeDeclaration(HtmlContentFragment info, string declaration) : base(info)
 {
     Declaration = declaration;
 }
Exemplo n.º 14
0
 internal HtmlContentFragment(HtmlContentFragment info)
 {
     Reader     = info.Reader;
     StartIndex = info.StartIndex;
     Length     = info.Length;
 }
Exemplo n.º 15
0
 /// <summary>
 /// 创建 HtmlTextContent 对象
 /// </summary>
 /// <param name="info">应当被认为是 HTML 结束标签的 HTML 片段</param>
 /// <param name="tagName">标签名</param>
 public HtmlEndTag(HtmlContentFragment info, string tagName)
     : base(info)
 {
     TagName = tagName;
 }
Exemplo n.º 16
0
 internal HtmlContentFragment( HtmlContentFragment info )
 {
     Reader = info.Reader;
       StartIndex = info.StartIndex;
       Length = info.Length;
 }