XhtmlTextWriter Members
.NET Framework 2.0
Writes Extensible Hypertext Markup Language (XHTML)-specific characters, including all variations of XHTML modules that derive from XTHML, to the output stream for an ASP.NET server control for mobile devices. Override the XhtmlTextWriter class to provide custom XHTML rendering for ASP.NET pages and server controls.
The following tables list the members exposed by the XhtmlTextWriter type.
| Name | Description | |
|---|---|---|
| XhtmlTextWriter | Overloaded. Initializes a new instance of the XhtmlTextWriter class. |
| Name | Description | |
|---|---|---|
| CoreNewLine | Stores the new line characters used for this TextWriter.(inherited from TextWriter) |
(see also
Protected Properties
)
Top
| Name | Description | |
|---|---|---|
| Encoding | Gets the encoding that the HtmlTextWriter object uses to write content to the page.(inherited from HtmlTextWriter) |
| FormatProvider | Gets an object that controls formatting.(inherited from TextWriter) |
| Indent | Gets or sets the number of tab positions to indent the beginning of each line of markup.(inherited from HtmlTextWriter) |
| InnerWriter | Gets or sets the text writer that writes the inner content of the markup element.(inherited from HtmlTextWriter) |
| NewLine | Gets or sets the line terminator string used by the HtmlTextWriter object.(inherited from HtmlTextWriter) |
| Name | Description | |
|---|---|---|
| CommonAttributes | Gets a Hashtable object containing common attributes of the markup tags for the XhtmlTextWriter object. |
| ElementSpecificAttributes | Gets a Hashtable object containing element-specific attributes. |
| SuppressCommonAttributes | Gets a Hashtable object of elements for which CommonAttributes attributes are suppressed. |
| TagKey | Gets or sets the HtmlTextWriterTag value for the specified markup element.(inherited from HtmlTextWriter) |
| TagName | Gets or sets the tag name of the markup element being rendered.(inherited from HtmlTextWriter) |
(see also
Protected Methods
)
Top
| Name | Description | |
|---|---|---|
| AddAttribute | Overloaded. Adds the specified markup attribute and value to the opening tag of the element that the HtmlTextWriter object creates with a subsequent call to the RenderBeginTag method. (inherited from HtmlTextWriter) |
| AddRecognizedAttribute | Adds an attribute to an XHTML element. The collection of element-specific attributes for the XhtmlTextWriter object is referenced by the ElementSpecificAttributes property. |
| AddStyleAttribute | Overloaded. Adds a markup style attribute to the opening tag of the element that the HtmlTextWriter object creates with a subsequent call to the RenderBeginTag method. (inherited from HtmlTextWriter) |
| BeginRender | Notifies an HtmlTextWriter object, or an object of a derived class, that a control is about to be rendered. (inherited from HtmlTextWriter) |
| Close | Closes the HtmlTextWriter object and releases any system resources associated with it. (inherited from HtmlTextWriter) |
| CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (inherited from MarshalByRefObject) |
| Dispose | Overloaded. Releases all resources used by the TextWriter object. (inherited from TextWriter) |
| EndRender | Notifies an HtmlTextWriter object, or an object of a derived class, that a control has finished rendering. You can use this method to close any markup elements opened in the BeginRender method. (inherited from HtmlTextWriter) |
| EnterStyle | Overloaded. Writes the opening tag of a markup element that contains attributes that implement the layout and character formatting of the specified style. (inherited from HtmlTextWriter) |
| Equals | Overloaded. Determines whether two Object instances are equal. (inherited from Object) |
| ExitStyle | Overloaded. Writes the closing tag of a markup element to end the specified layout and character formatting. (inherited from HtmlTextWriter) |
| Flush | Clears all buffers for the current HtmlTextWriter object and causes any buffered data to be written to the output stream. (inherited from HtmlTextWriter) |
| GetHashCode | Serves as a hash function for a particular type. (inherited from Object) |
| GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (inherited from MarshalByRefObject) |
| GetType | Gets the Type of the current instance. (inherited from Object) |
| InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (inherited from MarshalByRefObject) |
| IsValidFormAttribute | Overridden. Checks an XHTML attribute to ensure that it can be rendered in the opening tag of a <form> element. |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (inherited from Object) |
| RemoveRecognizedAttribute | Removes an attribute from the ElementSpecificAttributes collection of an element. |
| RenderBeginTag | Overloaded. Writes the opening tag of a markup element to the output stream. (inherited from HtmlTextWriter) |
| RenderEndTag | Writes the end tag of a markup element to the output stream. (inherited from HtmlTextWriter) |
| SetDocType | Specifies the XHTML document type for the text writer to render to the page or control. |
| Synchronized | Creates a thread-safe wrapper around the specified TextWriter. (inherited from TextWriter) |
| ToString | Returns a String that represents the current Object. (inherited from Object) |
| Write | Overloaded. Writes the specified data type to the output stream, along with any pending tab spacing. (inherited from HtmlTextWriter) |
| WriteAttribute | Overloaded. Writes a markup attribute and its value to the output stream. (inherited from HtmlTextWriter) |
| WriteBeginTag | Writes any tab spacing and the opening tag of the specified markup element to the output stream. (inherited from HtmlTextWriter) |
| WriteBreak | Overridden. Writes a <br/> element to the XHTML output stream. |
| WriteEncodedText | Encodes the specified text for the requesting device, and then writes it to the output stream. (inherited from HtmlTextWriter) |
| WriteEncodedUrl | Encodes the specified URL, and then writes it to the output stream. The URL might include parameters. (inherited from HtmlTextWriter) |
| WriteEncodedUrlParameter | Encodes the specified URL parameter for the requesting device, and then writes it to the output stream. (inherited from HtmlTextWriter) |
| WriteEndTag | Writes any tab spacing and the closing tag of the specified markup element. (inherited from HtmlTextWriter) |
| WriteFullBeginTag | Writes any tab spacing and the opening tag of the specified markup element to the output stream. (inherited from HtmlTextWriter) |
| WriteLine | Overloaded. Writes data to an HtmlTextWriter output stream, as specified by the overloaded parameters, followed by a line terminator string. All versions of this method write any pending tab spacing to the output stream. (inherited from HtmlTextWriter) |
| WriteLineNoTabs | Writes a string, followed by a line terminator string, to the output stream. This method ignores any specified tab spacing. (inherited from HtmlTextWriter) |
| WriteStyleAttribute | Overloaded. Writes a style attribute and its value to the output stream. (inherited from HtmlTextWriter) |
| Name | Description | |
|---|---|---|
| AddAttribute | Overloaded. Adds the specified markup attribute and value to the opening tag of the element that the HtmlTextWriter object creates with a subsequent call to the RenderBeginTag method. (inherited from HtmlTextWriter) |
| AddStyleAttribute | Overloaded. Adds a markup style attribute to the opening tag of the element that the HtmlTextWriter object creates with a subsequent call to the RenderBeginTag method. (inherited from HtmlTextWriter) |
| Dispose | Overloaded. Releases all resources used by the TextWriter object. (inherited from TextWriter) |
| EncodeAttributeValue | Overloaded. Encodes the value of the specified markup attribute based on the requirements of the HttpRequest object of the current context. (inherited from HtmlTextWriter) |
| EncodeUrl | Performs minimal URL encoding by converting spaces in the specified URL to the string "%20". (inherited from HtmlTextWriter) |
| FilterAttributes | Removes all the markup and style attributes on all properties of the page or Web server control. (inherited from HtmlTextWriter) |
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object) |
| GetAttributeKey | Obtains the corresponding HtmlTextWriterAttribute enumeration value for the specified attribute. (inherited from HtmlTextWriter) |
| GetAttributeName | Obtains the name of the markup attribute associated with the specified HtmlTextWriterAttribute value. (inherited from HtmlTextWriter) |
| GetStyleKey | Obtains the HtmlTextWriterStyle enumeration value for the specified style. (inherited from HtmlTextWriter) |
| GetStyleName | Obtains the markup style attribute name associated with the specified HtmlTextWriterStyle enumeration value. (inherited from HtmlTextWriter) |
| GetTagKey | Obtains the HtmlTextWriterTag enumeration value associated with the specified markup element. (inherited from HtmlTextWriter) |
| GetTagName | Obtains the markup element associated with the specified HtmlTextWriterTag enumeration value. (inherited from HtmlTextWriter) |
| IsAttributeDefined | Overloaded. Determines whether the specified markup attribute and its value are rendered during the next call to the RenderBeginTag method. (inherited from HtmlTextWriter) |
| IsStyleAttributeDefined | Overloaded. Determines whether a markup style attribute is rendered during the next call to the RenderBeginTag method. (inherited from HtmlTextWriter) |
| MemberwiseClone | Overloaded. (inherited from MarshalByRefObject) |
| OnAttributeRender | Overridden. Determines whether the specified XHTML attribute and its value can be rendered to the current markup element. |
| OnStyleAttributeRender | Overridden. Determines whether the specified XHTML style attribute and its value can be rendered to the current markup element. |
| OnTagRender | Determines whether the specified markup element will be rendered to the requesting page. (inherited from HtmlTextWriter) |
| OutputTabs | Writes a series of tab strings that represent the indentation level for a line of markup characters. (inherited from HtmlTextWriter) |
| PopEndTag | Removes the most recently saved markup element from the list of rendered elements. (inherited from HtmlTextWriter) |
| PushEndTag | Saves the specified markup element for later use when generating the end tag for a markup element. (inherited from HtmlTextWriter) |
| RegisterAttribute | Registers markup attributes, whether literals or dynamically generated, from the source file so that they can be properly rendered to the requesting client. (inherited from HtmlTextWriter) |
| RegisterStyle | Registers markup style properties, whether literals or dynamically generated, from the source file so that they can be properly rendered to the requesting client. (inherited from HtmlTextWriter) |
| RegisterTag | Registers markup tags, whether literals or dynamically generated, from the source file so that they can be properly rendered to the requesting client. (inherited from HtmlTextWriter) |
| RenderAfterContent | Writes any text or spacing that occurs after the content and before the closing tag of the markup element to the markup output stream. (inherited from HtmlTextWriter) |
| RenderAfterTag | Writes any spacing or text that occurs after the closing tag for a markup element. (inherited from HtmlTextWriter) |
| RenderBeforeContent | Writes any text or spacing before the content and after the opening tag of a markup element. (inherited from HtmlTextWriter) |
| RenderBeforeTag | Writes any text or spacing that occurs before the opening tag of a markup element. (inherited from HtmlTextWriter) |
| WriteUrlEncodedString | Writes the specified string, encoding it according to URL requirements. (inherited from HtmlTextWriter) |
Community Additions
ADD
Show: