Export (0) Print
Expand All
0 out of 2 rated this helpful - Rate this topic

HtmlTextWriter Members

The following tables list the members exposed by the HtmlTextWriter type.

  Name Description
Public method HtmlTextWriter Overloaded. Initializes a new instance of the HtmlTextWriter class.
Top
(see also Protected Fields )
  Name Description
Public field Static DefaultTabString Represents a single tab character.
Public field Static DoubleQuoteChar Represents the quotation mark (") character.
Public field Static EndTagLeftChars Represents the left angle bracket and slash mark (</) of the closing tag of a markup element.
Public field Static EqualsChar Represents the equal sign (=).
Public field Static EqualsDoubleQuoteString Represents an equal sign (=) and a double quotation mark (") together in a string (=").
Public field Static SelfClosingChars Represents a space and the self-closing slash mark (/) of a markup tag.
Public field Static SelfClosingTagEnd Represents the closing slash mark and right angle bracket (/>) of a self-closing markup element.
Public field Static SemicolonChar Represents the semicolon (;).
Public field Static SingleQuoteChar Represents an apostrophe (').
Public field Static SlashChar Represents the slash mark (/).
Public field Static SpaceChar Represents a space ( ) character.
Public field Static StyleEqualsChar Represents the style equals (:) character used to set style attributes equal to values.
Public field Static TagLeftChar Represents the opening angle bracket (<) of a markup tag.
Public field Static TagRightChar Represents the closing angle bracket (>) of a markup tag.
Top
  Name Description
Protected field CoreNewLine  Stores the new line characters used for this TextWriter.(inherited from TextWriter)
Top
(see also Protected Properties )
  Name Description
Public property Encoding Overridden. Gets the encoding that the HtmlTextWriter object uses to write content to the page.
Public property FormatProvider  Gets an object that controls formatting.(inherited from TextWriter)
Public property Indent Gets or sets the number of tab positions to indent the beginning of each line of markup.
Public property InnerWriter Gets or sets the text writer that writes the inner content of the markup element.
Public property NewLine Overridden. Gets or sets the line terminator string used by the HtmlTextWriter object.
Top
  Name Description
Protected property TagKey Gets or sets the HtmlTextWriterTag value for the specified markup element.
Protected property TagName Gets or sets the tag name of the markup element being rendered.
Top
(see also Protected Methods )
  Name Description
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 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.
Public method Close Overridden. Closes the HtmlTextWriter object and releases any system resources associated with it.
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. (inherited from TextWriter)
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.
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  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method ExitStyle Overloaded. Writes the closing tag of a markup element to end the specified layout and character formatting.
Public method Flush Overridden. Clears all buffers for the current HtmlTextWriter object and causes any buffered data to be written to the output stream.
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)
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)
Public method IsValidFormAttribute Checks an attribute to ensure that it can be rendered in the opening tag of a <form> markup element.
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method RenderBeginTag Overloaded. Writes the opening tag of a markup element to the output stream.
Public method RenderEndTag Writes the end tag of a markup element to the output stream.
Public method Static Synchronized  Creates a thread-safe wrapper around the specified TextWriter. (inherited from TextWriter)
Public method ToString  Returns a String that represents the current Object. (inherited from Object)
Public method Write Overloaded. Overridden. Writes the specified data type to the output stream, along with any pending tab spacing.
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.
Public method WriteBreak Writes a <br /> markup element to the output stream.
Public method WriteEncodedText Encodes the specified text for the requesting device, and then writes it to the output stream.
Public method WriteEncodedUrl Encodes the specified URL, and then writes it to the output stream. The URL might include parameters.
Public method WriteEncodedUrlParameter Encodes the specified URL parameter for the requesting device, and then writes it to the output stream.
Public method WriteEndTag Writes any tab spacing and the closing tag of the specified markup element.
Public method WriteFullBeginTag Writes any tab spacing and the opening tag of the specified markup element to the output stream.
Public method WriteLine Overloaded. Overridden. 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.
Public method WriteLineNoTabs Writes a string, followed by a line terminator string, to the output stream. This method ignores any specified tab spacing.
Public method WriteStyleAttribute Overloaded. Writes a style attribute and its value to the output stream.
Top
  Name Description
Protected 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.
Protected 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.
Protected method Dispose  Overloaded. Releases all resources used by the TextWriter object. (inherited from TextWriter)
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".
Protected method FilterAttributes Removes all the markup and style attributes on all properties of the page or Web server control.
Protected method 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)
Protected method GetAttributeKey Obtains the corresponding HtmlTextWriterAttribute enumeration value for the specified attribute.
Protected method GetAttributeName Obtains the name of the markup attribute associated with the specified HtmlTextWriterAttribute value.
Protected method GetStyleKey Obtains the HtmlTextWriterStyle enumeration value for the specified style.
Protected method GetStyleName Obtains the markup style attribute name associated with the specified HtmlTextWriterStyle enumeration value.
Protected method GetTagKey Obtains the HtmlTextWriterTag enumeration value associated with the specified markup element.
Protected method GetTagName Obtains the markup element associated with the specified HtmlTextWriterTag enumeration value.
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.
Protected method MemberwiseClone  Overloaded. (inherited from MarshalByRefObject)
Protected method OnAttributeRender Determines whether the specified markup attribute and its value can be rendered to the current markup element.
Protected method OnStyleAttributeRender Determines whether the specified markup style attribute and its value can be rendered to the current markup element.
Protected method OnTagRender Determines whether the specified markup element will be rendered to the requesting page.
Protected method OutputTabs Writes a series of tab strings that represent the indentation level for a line of markup characters.
Protected method PopEndTag Removes the most recently saved markup element from the list of rendered elements.
Protected method PushEndTag Saves the specified markup element for later use when generating the end tag for a markup element.
Protected method Static RegisterAttribute Registers markup attributes, whether literals or dynamically generated, from the source file so that they can be properly rendered to the requesting client.
Protected method Static 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.
Protected method Static RegisterTag Registers markup tags, whether literals or dynamically generated, from the source file so that they can be properly rendered to the requesting client.
Protected method 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.
Protected method RenderAfterTag Writes any spacing or text that occurs after the closing tag for a markup element.
Protected method RenderBeforeContent Writes any text or spacing before the content and after the opening tag of a markup element.
Protected method RenderBeforeTag Writes any text or spacing that occurs before the opening tag of a markup element.
Protected method WriteUrlEncodedString Writes the specified string, encoding it according to URL requirements.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.