Class TextFragment
Represents a text node in a HTML stream.
Inherited Members
Namespace: EPiServer.HtmlParsing
Assembly: EPiServer.Framework.dll
Version: 12.0.3Syntax
public class TextFragment : HtmlFragment
Constructors
TextFragment()
Initializes a new instance of the TextFragment class.
Declaration
public TextFragment()
Methods
Parse(IHtmlParserContext)
Parses the fragment from the specified context.
Declaration
public override void Parse(IHtmlParserContext context)
Parameters
Type | Name | Description |
---|---|---|
IHtmlParserContext | context | The context. |
Overrides
ToString()
Returns a System.String that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents this instance. |
Overrides
ToWriter(TextWriter)
Writes the fragment to the given TextWriter.
Declaration
public override void ToWriter(TextWriter writer)
Parameters
Type | Name | Description |
---|---|---|
System.IO.TextWriter | writer | The writer. |