This documentation is archived and is not being maintained.
HtmlTextWriter Members
.NET Framework 1.1
Public Constructors
HtmlTextWriter Constructor | Overloaded. Initializes a new instance of the HtmlTextWriter class. |
Public Fields
![]() DefaultTabString | Represents a single tab character. |
![]() DoubleQuoteChar | Represents the double-quote (") character. |
![]() EndTagLeftChars | Represents the left angle bracket and slash (</) of the closing tag of an HTML element. |
![]() EqualsChar | Represents the equal sign (=) character. |
![]() EqualsDoubleQuoteString | Represents an equals sign and a double quote character together in a String. |
![]() SelfClosingChars | Represents the self-closing slash (/) character of an HTML tag. |
![]() SelfClosingTagEnd | Represents the closing slash and right angle bracket (/>) of a self-closing HTML element. |
![]() SemicolonChar | Represents the semicolon (;) character. |
![]() SingleQuoteChar | Represents a single quote (') character. |
![]() SlashChar | Represents the slash (/) character. |
![]() SpaceChar | Represents a space character. |
![]() StyleEqualsChar | Represents the colon character (:) used to set style attributes equal to values in the opening tag of an HTML element. |
![]() TagLeftChar | Represents the opening angle-bracket (<) of an HTML tag. |
![]() TagRightChar | Represents the closing angle-bracket (>) of an HTML tag. |
Public Properties
Encoding | Overridden. Gets the Encoding that the HtmlTextWriter object uses to write content to the page. |
FormatProvider (inherited from TextWriter) | Gets an object that controls formatting. |
Indent | Gets or sets the number of spaces to indent at the beginning of a line of HTML. |
InnerWriter | Gets or sets the text writer that writes the inner content of the HTML element. |
NewLine | Overridden. Gets or sets the line terminator string used by the current HtmlTextWriter. |
Public Methods
AddAttribute | Overloaded. Adds an HTML attribute and its value to an HtmlTextWriter output stream to be rendered on a client. |
AddStyleAttribute | Overloaded. Adds an HTML style attribute to the HtmlTextWriter output stream. |
Close | Overridden. Closes the current HtmlTextWriter and releases any system resources associated with it. |
CreateObjRef (inherited from MarshalByRefObject) | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. |
Equals (inherited from Object) | Overloaded. Determines whether two Object instances are equal. |
Flush | Overridden. Clears all buffers for the current HtmlTextWriter and causes any buffered data to be written to the text stream. |
GetHashCode (inherited from Object) | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetLifetimeService (inherited from MarshalByRefObject) | Retrieves the current lifetime service object that controls the lifetime policy for this instance. |
GetType (inherited from Object) | Gets the Type of the current instance. |
InitializeLifetimeService (inherited from MarshalByRefObject) | Obtains a lifetime service object to control the lifetime policy for this instance. |
RenderBeginTag | Overloaded. Writes the opening tag of an HTML element to the HtmlTextWriter output stream. |
RenderEndTag | Writes the end tag of an HTML element to the HtmlTextWriter output stream. |
ToString (inherited from Object) | Returns a String that represents the current Object. |
Write | Overloaded. Overridden. Writes the given data type to an HTML text stream to be rendered to an ASP.NET page. |
WriteAttribute | Overloaded. Writes an HTML attribute and its value to the HtmlTextWriter output stream. |
WriteBeginTag | Writes any tab spacing and the opening tag of the specified HTML element to the HtmlTextWriter output stream. |
WriteEndTag | Writes any tab spacing and the closing tag of the specified HTML element. |
WriteFullBeginTag | Writes any tab spacing and the opening tag of the specified HTML element to the HtmlTextWriter output stream. |
WriteLine | Overloaded. Overridden. Writes some data to an HTML text stream, as specified by the overloaded parameters, followed by a line terminator. All instances of this method write tab strings to the text stream. |
WriteLineNoTabs | Writes a String followed by a line terminator to an HTML text stream. This method ignores any specified tab spacing. |
WriteStyleAttribute | Overloaded. Writes an HTML style attribute and its value to the HtmlTextWriter output stream. |
Protected Fields
CoreNewLine (inherited from TextWriter) | Stores the new line characters used for this TextWriter. |
Protected Properties
TagKey | Gets or sets the HtmlTextWriterTag value for the specified HTML element. |
TagName | Gets or sets the tag name of the HTML element being rendered. |
Protected Methods
AddAttribute | Overloaded. Adds an HTML attribute and its value to an HtmlTextWriter output stream to be rendered on a client. |
AddStyleAttribute | Overloaded. Adds an HTML style attribute to the HtmlTextWriter output stream. |
Dispose (inherited from TextWriter) | Releases the unmanaged resources used by the TextWriter and optionally releases the managed resources. |
EncodeAttributeValue | Overloaded. HTML encodes the specified HTML attribute's value. |
EncodeUrl | Performs minimal URL encoding by converting spaces passed in the url parameter to %20. |
FilterAttributes | Filters all HTML attributes and style attributes by calling HtmlTextWriter.OnAttributeRender and HtmlTextWriter.OnStyleAttributeRender on all properites of the page or ASP.NET server control. |
Finalize (inherited from Object) | Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
In C# and C++, finalizers are expressed using destructor syntax. |
GetAttributeKey | Obtains the corresponding HtmlTextWriterAttribute enumeration value for the specified HTML attribute. |
GetAttributeName | Obtains the name of the HTML attribute associated with the specified HtmlTextWriterAttribute value. |
GetStyleKey | Obtains the HtmlTextWriterStyle enumeration value for the specified HTML style. |
GetStyleName | Obtains the HTML style attribute associated with the specified HtmlTextWriterStyle enumeration value. |
GetTagKey | Obtains the HtmlTextWriterTag enumeration value associated with the specified HTML element. |
GetTagName | Obtains the HTML element associated with the specified HtmlTextWriterTag enumeration value. |
IsAttributeDefined | Overloaded. Determines whether an HTML attribute is to be rendered in the next call to the RenderBeginTag method. |
IsStyleAttributeDefined | Overloaded. Determines whether an HTML style attribute is rendered during the next call to the RenderBeginTag method. |
MemberwiseClone (inherited from Object) | Creates a shallow copy of the current Object. |
OnAttributeRender | Determines whether the specified HTML attribute and its value will be rendered to the requesting page. |
OnStyleAttributeRender | Determines whether the specified HTML style attribute and its value will be rendered to the requesting page. |
OnTagRender | Determines whether the specified HTML element will be rendered to the requesting page. |
OutputTabs | Writes a series of blank characters that represent the tab spacing for a line of HTML characters. |
PopEndTag | Removes an HTML element from the list of rendered elements. |
PushEndTag | Saves the specifed HTML element for a later call to the PopEndTag method. |
![]() RegisterAttribute | Registers HTML attributes, whether literals or dynamically generated, from the source file so that they can be properly rendered to the requesting client. |
![]() RegisterStyle | Registers HTML style properties, whether literals or dynamically generated, from the source file so that they can be properly rendered to the requesting client. |
![]() RegisterTag | Registers HTML tags, whether literals or dynamically generated, from the source file so that they can be properly rendered to the requesting client. |
RenderAfterContent | Writes any text or spacing that occurs after the content and before the closing tag of the HTML element to render to the HtmlTextWriter output stream. |
RenderAfterTag | Writes any spacing or text that occurs after an HTML element's closing tag. |
RenderBeforeContent | Writes any text or spacing before the content and after the opening tag of an HTML element. |
RenderBeforeTag | Writes any text or tab spacing that occurs before the opening tag of an HTML element to the HtmlTextWriter output stream. |
See Also
Show:


