Otter SDK Reference
Version:

SlimHtmlTextWriter Class

Slimmed down version of System.Web.UI.HtmlTextWriter.

Inheritance Hierarchy

  • object
    • System.MarshalByRefObject
      • System.IO.TextWriter
        • Inedo.Web.SlimHtmlTextWriter

Syntax

public class SlimHtmlTextWriter : System.IO.TextWriter, System.IDisposable

Constructors

Name Description
SlimHtmlTextWriter(System.IO.TextWriter writer)

Initializes a new instance of the SlimHtmlTextWriter class.

SlimHtmlTextWriter(System.IO.TextWriter writer, int initialIndentLevel)

Initializes a new instance of the SlimHtmlTextWriter class.

Properties

Name Description
CurrentTag

Gets the current tag.

DisableFormatting

Gets or sets a value indicating whether formatting is currently enabled.

Encoding

Gets the encoding of the underlying System.IO.TextWriter.

IndentLevel

Gets the current indent level.

IndentText

Gets or sets the string to use for individual indent tabs.

Methods

Name Description
Dispose(bool disposing)

Releases resources used by the writer.

Flush

Flushes the writer.

Write(string html)

Writes raw HTML.

Write(char[] buffer, int index, int count)

Writes the text.

Write(char[] buffer)

Writes the text.

Write(char value)

Writes the character.

WriteAttribute(string name, string value)

Writes an attribute to the current tag.

WriteAttributes(Inedo.Web.Controls.AttributeCollection attributes)

Writes attributes contained in the attribute collection to the current tag.

WriteClassAttribute(Inedo.Web.Controls.ClassCollection classes)

Writes the class attribute to the current tag using a class collection.

WriteEncodedText(string text)

HTML encodes the specified text before writing it.

WriteEndTag

Closes the current HTML tag.

WriteStartTag(string tagName)

Writes an HTML tag.