IndentTextWriterVisitor Class
The visitor implementaion to write the HTML document into text with indentation.
public sealed class IndentTextWriterVisitor : AbstractTextWriterVisitor
- Inheritance
- Implements
Constructors
Indent |
Initializes a new instance of the IndentTextWriterVisitor class. |
Methods
Write |
Description copied from class: AbstractTextWriterVisitor
|
Write |
Description copied from class: AbstractTextWriterVisitor
|
Before |
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
IndentTextWriterVisitor(TextWriter, FormatOptions)
Initializes a new instance of the IndentTextWriterVisitor class.
public IndentTextWriterVisitor(TextWriter writer, FormatOptions options)
Parameters
- writer
-
Text
Writer
The text writer object for this visitor to output.
- options
-
Format
Options
The format options.
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
BeforeEmptyOrText()
Description copied from class: AbstractTextWriterVisitor
The hook called before the empty tag or the text node.
protected override void BeforeEmptyOrText()