System.Web.UI.XhtmlTextWriter Members

The members of System.Web.UI.XhtmlTextWriter are listed below.

See Also: Inherited members from System.Web.UI.HtmlTextWriter

Public Constructors

Initializes a new instance of the System.Web.UI.XhtmlTextWriter class that uses the line indentation that is specified in the HtmlTextWriter.DefaultTabString field. Use the XhtmlTextWriter.#ctor(System.IO.TextWriter) constructor if you do not want to change the default line indentation.

Initializes a new instance of the System.Web.UI.XhtmlTextWriter class with the specified line indentation.

Protected Properties

[read-only]
CommonAttributesHashtable.

Gets a Hashtable object containing common attributes of the markup tags for the System.Web.UI.XhtmlTextWriter object.

[read-only]
ElementSpecificAttributesHashtable.

Gets a Hashtable object containing element-specific attributes.

[read-only]
SuppressCommonAttributesHashtable.

Gets a Hashtable object of elements for which XhtmlTextWriter.CommonAttributes attributes are suppressed.

Public Methods

AddRecognizedAttribute(string, string)

Adds an attribute to an XHTML element. The collection of element-specific attributes for the System.Web.UI.XhtmlTextWriter object is referenced by the XhtmlTextWriter.ElementSpecificAttributes property.

override
IsValidFormAttribute(string) : bool

Checks an XHTML attribute to ensure that it can be rendered in the opening tag of a <form> element.

RemoveRecognizedAttribute(string, string)

Removes an attribute from the XhtmlTextWriter.ElementSpecificAttributes collection of an element.

SetDocType(XhtmlMobileDocType)

Specifies the XHTML document type for the text writer to render to the page or control.

override
WriteBreak()

Writes a <br/> element to the XHTML output stream.

Protected Methods

override
OnAttributeRender(string, string, HtmlTextWriterAttribute) : bool

Determines whether the specified XHTML attribute and its value can be rendered to the current markup element.

override
OnStyleAttributeRender(string, string, HtmlTextWriterStyle) : bool

Determines whether the specified XHTML style attribute and its value can be rendered to the current markup element.