Try our conversational search powered by Generative AI!

Class TextFragment

Represents a text node in a HTML stream.

Inheritance
System.Object
TextFragment
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.HtmlParsing
Assembly: EPiServer.Framework.dll
Version: 9.12.2
Syntax
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.

Overrides

Extension Methods