This documentation is archived and is not being maintained.
XhtmlTextWriter Methods
Visual Studio 2008
The XhtmlTextWriter type exposes the following members.
| 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. |
|
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. |
|
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. |
|
EncodeAttributeValue | Overloaded. Encodes the value of the specified markup attribute based on the requirements of the HttpRequest object of the current context. |
|
EncodeUrl | Performs minimal URL encoding by converting spaces in the specified URL to the string "%20". (Inherited from HtmlTextWriter.) |
|
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. |
|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
ExitStyle | Overloaded. Writes the closing tag of a markup element to end the specified layout and character formatting. |
|
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 try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
Flush | Clears all buffers for the current HtmlTextWriter object and causes any buffered data to be written to the output stream. (Inherited from HtmlTextWriter.) |
|
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.) |
|
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.) |
|
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.) |
|
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.) |
|
IsAttributeDefined | Overloaded. Determines whether the specified markup attribute and its value are rendered during the next call to the RenderBeginTag method. |
|
IsStyleAttributeDefined | Overloaded. Determines whether a markup style attribute is rendered during the next call to the RenderBeginTag method. |
|
IsValidFormAttribute | Checks an XHTML attribute to ensure that it can be rendered in the opening tag of a <form> element. (Overrides HtmlTextWriter::IsValidFormAttribute(String).) |
|
MemberwiseClone | Overloaded. |
|
OnAttributeRender | Determines whether the specified XHTML attribute and its value can be rendered to the current markup element. (Overrides HtmlTextWriter::OnAttributeRender(String, String, HtmlTextWriterAttribute).) |
|
OnStyleAttributeRender | Determines whether the specified XHTML style attribute and its value can be rendered to the current markup element. (Overrides HtmlTextWriter::OnStyleAttributeRender(String, String, HtmlTextWriterStyle).) |
|
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.) |
|
RemoveRecognizedAttribute | Removes an attribute from the ElementSpecificAttributes collection of an element. |
|
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.) |
|
RenderBeginTag | Overloaded. Writes the opening tag of a markup element to the output stream. |
|
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. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
|
Write | Overloaded. Writes the given data type to a text stream. |
|
WriteAttribute | Overloaded. Writes a markup attribute and its value to the output stream. |
|
WriteBeginTag | Writes any tab spacing and the opening tag of the specified markup element to the output stream. (Inherited from HtmlTextWriter.) |
|
WriteBreak | Writes a <br/> element to the XHTML output stream. (Overrides HtmlTextWriter::WriteBreak().) |
|
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 some data as specified by the overloaded parameters, followed by a line terminator. |
|
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. |
|
WriteUrlEncodedString | Writes the specified string, encoding it according to URL requirements. (Inherited from HtmlTextWriter.) |
Show: