DefaultTextWriterVisitor Class
The default visitor implementaion to write the HTML document into text.
public sealed class DefaultTextWriterVisitor : AbstractTextWriterVisitor
- Inheritance
- Implements
Constructors
Default |
Initializes a new instance of the DefaultTextWriterVisitor class. |
Methods
Write |
Description copied from class: AbstractTextWriterVisitor
|
Write |
Description copied from class: AbstractTextWriterVisitor
|
VisitEmptyTag(TagStruct) |
Description copied from interface: NodeVisitor (Inherited from Abstract |
VisitEntity(string) |
Description copied from interface: NodeVisitor (Inherited from Abstract |
VisitTag(TagStruct) |
Description copied from interface: NodeVisitor (Inherited from Abstract |
VisitText(string) |
Description copied from interface: NodeVisitor (Inherited from Abstract |
WriteStartTag(TagStruct) |
Writes a start tag. (Inherited from Abstract |
WriteEndTag(TagStruct) |
Writes an end tag. (Inherited from Abstract |
WriteStartTagHook(TagStruct) |
The hook to write the start tag, which is invoked just before the tag starts. The method overriding this method must invoke AbstractTextWriterVisitor.WriteStartTag(TagStruct) with the specified tag. (Inherited from Abstract |
WriteEndTagHook(TagStruct) |
The hook to write the end tag, which is invoked just before the tag ends. The method overriding this method must invoke AbstractTextWriterVisitor.WriteEndTag(TagStruct) with the specified tag. (Inherited from Abstract |
BeforeEmptyOrText() |
The hook called before the empty tag or the text node. (Inherited from Abstract |
Write(ReadOnlySpan<char>) |
Writes characters into the text stream. (Inherited from Abstract |
Write(string) |
Writes a string into the text stream. (Inherited from Abstract |
Equals(object) | (Inherited from object) |
GetHashCode() | (Inherited from object) |
GetType() | (Inherited from object) |
MemberwiseClone() | (Inherited from object) |
ToString() | (Inherited from object) |
Constructors Detail
DefaultTextWriterVisitor(TextWriter)
Initializes a new instance of the DefaultTextWriterVisitor class.
public DefaultTextWriterVisitor(TextWriter writer)
Parameters
- writer
-
Text
Writer
The text writer object for this visitor to output.
Methods Detail
WriteStartTagHook(TagStruct)
Description copied from class: AbstractTextWriterVisitor
The hook to write the start tag, which is invoked just before the tag starts. The method overriding this method must invoke AbstractTextWriterVisitor.WriteStartTag(TagStruct) with the specified tag.
protected override void WriteStartTagHook(in TagStruct tag)
Parameters
- tag
-
Tag
Struct
WriteEndTagHook(TagStruct)
Description copied from class: AbstractTextWriterVisitor
The hook to write the end tag, which is invoked just before the tag ends. The method overriding this method must invoke AbstractTextWriterVisitor.WriteEndTag(TagStruct) with the specified tag.
protected override void WriteEndTagHook(in TagStruct tag)
Parameters
- tag
-
Tag
Struct