Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ChtmlTextWriter Members

Writes a series of cHTML-specific characters and text to the output stream of an ASP.NET server control. The ChtmlTextWriter class provides formatting capabilities that ASP.NET server controls use when rendering cHTML content to clients.

The ChtmlTextWriter type exposes the following members.

  NameDescription
Public method ChtmlTextWriter Overloaded. Initializes a new instance of the ChtmlTextWriter class.
Top
  NameDescription
Public method 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.
Public method AddRecognizedAttribute Adds an attribute to a cHTML element of the ChtmlTextWriter object.
Public method 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.
Public method BeginRender Notifies an HtmlTextWriter object, or an object of a derived class, that a control is about to be rendered. (Inherited from HtmlTextWriter.)
Public method Close Closes the HtmlTextWriter object and releases any system resources associated with it. (Inherited from HtmlTextWriter.)
Public method 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.)
Public method Dispose Overloaded. Releases all resources used by the TextWriter object.
Protected method EncodeAttributeValue Overloaded. Encodes the value of the specified markup attribute based on the requirements of the HttpRequest object of the current context.
Protected method EncodeUrl Performs minimal URL encoding by converting spaces in the specified URL to the string "%20". (Inherited from HtmlTextWriter.)
Public method 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.)
Public method EnterStyle Overloaded. Writes the opening tag of a markup element that contains attributes that implement the layout and character formatting of the specified style.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method ExitStyle Overloaded. Writes the closing tag of a markup element to end the specified layout and character formatting.
Protected method FilterAttributes Removes all the markup and style attributes on all properties of the page or Web server control. (Inherited from HtmlTextWriter.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Flush Clears all buffers for the current HtmlTextWriter object and causes any buffered data to be written to the output stream. (Inherited from HtmlTextWriter.)
Protected method GetAttributeKey Obtains the corresponding HtmlTextWriterAttribute enumeration value for the specified attribute. (Inherited from HtmlTextWriter.)
Protected method GetAttributeName Obtains the name of the markup attribute associated with the specified HtmlTextWriterAttribute value. (Inherited from HtmlTextWriter.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected method GetStyleKey Obtains the HtmlTextWriterStyle enumeration value for the specified style. (Inherited from HtmlTextWriter.)
Protected method GetStyleName Obtains the markup style attribute name associated with the specified HtmlTextWriterStyle enumeration value. (Inherited from HtmlTextWriter.)
Protected method GetTagKey Obtains the HtmlTextWriterTag enumeration value associated with the specified markup element. (Inherited from HtmlTextWriter.)
Protected method GetTagName Returns the HTML element that is associated with the specified HtmlTextWriterTag enumeration value. (Inherited from Html32TextWriter.)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Public method InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected method IsAttributeDefined Overloaded. Determines whether the specified markup attribute and its value are rendered during the next call to the RenderBeginTag method.
Protected method IsStyleAttributeDefined Overloaded. Determines whether a markup style attribute is rendered during the next call to the RenderBeginTag method.
Public method IsValidFormAttribute Checks an attribute to ensure that it can be rendered in the opening tag of a <form> markup element. (Inherited from HtmlTextWriter.)
Protected method MemberwiseClone Overloaded.
Protected method OnAttributeRender Determines whether the specified cHTML attribute and its value are rendered to the requesting page. You can override the OnAttributeRender method in classes that derive from the ChtmlTextWriter class to filter out attributes that you do not want to render on devices that support cHTML. (Overrides HtmlTextWriter.OnAttributeRender(String, String, HtmlTextWriterAttribute).)
Protected method OnStyleAttributeRender Determines whether the specified cHTML markup style attribute and its value can be rendered to the current markup element. (Overrides Html32TextWriter.OnStyleAttributeRender(String, String, HtmlTextWriterStyle).)
Protected method OnTagRender Determines whether the specified cHTML markup element is rendered to the requesting page. (Overrides Html32TextWriter.OnTagRender(String, HtmlTextWriterTag).)
Protected method OutputTabs Writes a series of tab strings that represent the indentation level for a line of markup characters. (Inherited from HtmlTextWriter.)
Protected method PopEndTag Removes the most recently saved markup element from the list of rendered elements. (Inherited from HtmlTextWriter.)
Protected method PushEndTag Saves the specified markup element for later use when generating the end tag for a markup element. (Inherited from HtmlTextWriter.)
Public method RemoveRecognizedAttribute Removes an attribute of a cHTML element of the ChtmlTextWriter object.
Protected method RenderAfterContent Writes any text or spacing that appears after the content of the HTML element. (Inherited from Html32TextWriter.)
Protected method RenderAfterTag Writes any spacing or text that occurs after an HTML element's closing tag. (Inherited from Html32TextWriter.)
Protected method RenderBeforeContent Writes any tab spacing or font information that appears before the content that is contained in an HTML element. (Inherited from Html32TextWriter.)
Protected method RenderBeforeTag Writes any text or tab spacing that occurs before the opening tag of an HTML element to the HTML 3.2 output stream. (Inherited from Html32TextWriter.)
Public method RenderBeginTag Overloaded. Writes the opening tag of an HTML element to an Html32TextWriter output stream.
Public method RenderEndTag Writes the end tag of an HTML element to the Html32TextWriter output stream, along with any font information that is associated with the element. (Inherited from Html32TextWriter.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method Write Overloaded. Writes the given data type to a text stream.
Public method WriteAttribute Overloaded. Writes a markup attribute and its value to the output stream.
Public method WriteBeginTag Writes any tab spacing and the opening tag of the specified markup element to the output stream. (Inherited from HtmlTextWriter.)
Public method WriteBreak Writes a br element to the cHTML output stream. (Overrides HtmlTextWriter.WriteBreak().)
Public method WriteEncodedText Encodes the specified text for the requesting device, and then writes it to the output stream. (Overrides HtmlTextWriter.WriteEncodedText(String).)
Public method WriteEncodedUrl Encodes the specified URL, and then writes it to the output stream. The URL might include parameters. (Inherited from HtmlTextWriter.)
Public method WriteEncodedUrlParameter Encodes the specified URL parameter for the requesting device, and then writes it to the output stream. (Inherited from HtmlTextWriter.)
Public method WriteEndTag Writes any tab spacing and the closing tag of the specified markup element. (Inherited from HtmlTextWriter.)
Public method WriteFullBeginTag Writes any tab spacing and the opening tag of the specified markup element to the output stream. (Inherited from HtmlTextWriter.)
Public method WriteLine Overloaded. Writes some data as specified by the overloaded parameters, followed by a line terminator.
Public method WriteLineNoTabs Writes a string, followed by a line terminator string, to the output stream. This method ignores any specified tab spacing. (Inherited from HtmlTextWriter.)
Public method WriteStyleAttribute Overloaded. Writes a style attribute and its value to the output stream.
Protected method WriteUrlEncodedString Writes the specified string, encoding it according to URL requirements. (Inherited from HtmlTextWriter.)
Top
  NameDescription
Protected field CoreNewLine Stores the new line characters used for this TextWriter. (Inherited from TextWriter.)
Top
  NameDescription
Public property Encoding Gets the encoding that the HtmlTextWriter object uses to write content to the page. (Inherited from HtmlTextWriter.)
Protected property FontStack Infrastructure. Gets a collection of font information for the HTML to render. (Inherited from Html32TextWriter.)
Public property FormatProvider Gets an object that controls formatting. (Inherited from TextWriter.)
Protected property GlobalSuppressedAttributes Gets a Hashtable object of globally suppressed attributes that cannot be rendered on cHTML elements.
Public property Indent Gets or sets the number of tab positions to indent the beginning of each line of markup. (Inherited from HtmlTextWriter.)
Public property InnerWriter Gets or sets the text writer that writes the inner content of the markup element. (Inherited from HtmlTextWriter.)
Public property NewLine Gets or sets the line terminator string used by the HtmlTextWriter object. (Inherited from HtmlTextWriter.)
Protected property RecognizedAttributes Gets a Hashtable object of recognized attributes that could be rendered on cHTML elements.
Public property ShouldPerformDivTableSubstitution Gets or sets a Boolean value indicating whether to replace a Table element with a Div element to reduce the time that it takes to render a block of HTML. (Inherited from Html32TextWriter.)
Public property SupportsBold Gets or sets a Boolean value indicating whether the requesting device supports bold HTML text. Use the SupportsBold property to conditionally render bold text to the Html32TextWriter output stream. (Inherited from Html32TextWriter.)
Public property SupportsItalic Gets or sets a Boolean value indicating whether the requesting device supports italic HTML text. Use the SupportsItalic property to conditionally render italicized text to the Html32TextWriter output stream. (Inherited from Html32TextWriter.)
Protected property SuppressedAttributes Gets a Hashtable object of user-specified suppressed attributes that are not rendered on cHTML elements.
Protected property TagKey Gets or sets the HtmlTextWriterTag value for the specified markup element. (Inherited from HtmlTextWriter.)
Protected property TagName Gets or sets the tag name of the markup element being rendered. (Inherited from HtmlTextWriter.)
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.