ערוך

שתף באמצעות


Html32TextWriter Class

Definition

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

public ref class Html32TextWriter : System::Web::UI::HtmlTextWriter
public class Html32TextWriter : System.Web.UI.HtmlTextWriter
type Html32TextWriter = class
    inherit HtmlTextWriter
Public Class Html32TextWriter
Inherits HtmlTextWriter
Inheritance
Derived

Examples

The following code example demonstrates how to use a class, named CustomHtml32TextWriter, that derives from the Html32TextWriter class. CustomHtml32TextWriter creates two constructors that follow the pattern that is established by the HtmlTextWriter class and overrides the RenderBeforeContent, RenderAfterContent, RenderBeforeTag, and RenderAfterTag methods.

using System.IO;
using System.Web.UI;

namespace Examples.AspNet
{
    public class CustomHtml32TextWriter : Html32TextWriter
    {
        // Create a constructor for the class
        // that takes a TextWriter as a parameter.
        public CustomHtml32TextWriter(TextWriter writer) 
            : this(writer, DefaultTabString) 
        {
        }

        // Create a constructor for the class that takes
        // a TextWriter and a string as parameters.
        public CustomHtml32TextWriter(TextWriter writer, String tabString) 
            : base(writer, tabString)
        {
        }
        
        // Override the RenderBeforeContent method to render
        // styles before rendering the content of a <th> element.
        protected override string RenderBeforeContent()
        {
            // Check the TagKey property. If its value is
            // HtmlTextWriterTag.TH, check the value of the 
            // SupportsBold property. If true, return the
            // opening tag of a <b> element; otherwise, render
            // the opening tag of a <font> element with a color
            // attribute set to the hexadecimal value for red.
            if (TagKey == HtmlTextWriterTag.Th)
            {
                if (SupportsBold)
                    return "<b>";
                else
                    return "<font color=\"FF0000\">";
            }

            // Check whether the element being rendered
            // is an <H4> element. If it is, check the 
            // value of the SupportsItalic property.
            // If true, render the opening tag of the <i> element
            // prior to the <H4> element's content; otherwise, 
            // render the opening tag of a <font> element 
            // with a color attribute set to the hexadecimal
            // value for navy blue.
            if (TagKey == HtmlTextWriterTag.H4)
            {
                if (SupportsItalic)
                    return "<i>";
                else
                    return "<font color=\"000080\">";
            }
            // Call the base method.
            return base.RenderBeforeContent();
        }

        // Override the RenderAfterContent method to close
        // styles opened during the call to the RenderBeforeContent
        // method.
        protected override string RenderAfterContent()
        {
            // Check whether the element being rendered is a <th> element.
            // If so, and the requesting device supports bold formatting,
            // render the closing tag of the <b> element. If not,
            // render the closing tag of the <font> element.
            if (TagKey == HtmlTextWriterTag.Th)
            {
                if (SupportsBold)
                    return "</b>";
                else
                    return "</font>";
            }

            // Check whether the element being rendered is an <H4>.
            // element. If so, and the requesting device supports italic
            // formatting, render the closing tag of the <i> element.
            // If not, render the closing tag of the <font> element.
            if (TagKey == HtmlTextWriterTag.H4)
            {
                if (SupportsItalic)
                    return "</i>";
                else
                    return "</font>";
            }
            // Call the base method
            return base.RenderAfterContent();
        }

        // Override the RenderBeforeTag method to render the
        // opening tag of a <small> element to modify the text size of 
        // any <a> elements that this writer encounters.
        protected override string RenderBeforeTag()
        {
            // Check whether the element being rendered is an 
            // <a> element. If so, render the opening tag
            // of the <small> element; otherwise, call the base method.
            if (TagKey == HtmlTextWriterTag.A)
                return "<small>";
            return base.RenderBeforeTag();
        }

        // Override the RenderAfterTag method to render
        // close any elements opened in the RenderBeforeTag
        // method call.
        protected override string RenderAfterTag()
        {
            // Check whether the element being rendered is an
            // <a> element. If so, render the closing tag of the
            // <small> element; otherwise, call the base method.
            if (TagKey == HtmlTextWriterTag.A)
                return "</small>";
            return base.RenderAfterTag();
        }
    }
}
' Create a custom HtmlTextWriter class that overrides 
' the RenderBeforeContent and RenderAfterContent methods.
Imports System.IO
Imports System.Web.UI

Namespace Examples.AspNet


   Public Class CustomHtml32TextWriter
      Inherits Html32TextWriter

        ' Create a constructor for the class
        ' that takes a TextWriter as a parameter.
        Public Sub New(ByVal writer As TextWriter)
            Me.New(writer, DefaultTabString)
        End Sub

        ' Create a constructor for the class that takes
        ' a TextWriter and a string as parameters. 
        Public Sub New(ByVal writer As TextWriter, ByVal tabString As String)
            MyBase.New(writer, tabString)
        End Sub

        ' Override the RenderBeforeContent method to render
        ' styles before rendering the content of a <th> element.
        Protected Overrides Function RenderBeforeContent() As String
            ' Check the TagKey property. If its value is
            ' HtmlTextWriterTag.TH, check the value of the 
            ' SupportsBold property. If true, return the
            ' opening tag of a <b> element; otherwise, render
            ' the opening tag of a <font> element with a color
            ' attribute set to the hexadecimal value for red.
            If TagKey = HtmlTextWriterTag.Th Then
                If (SupportsBold) Then
                    Return "<b>"
                Else
                    Return "<font color=""FF0000"">"
                End If
            End If

            ' Check whether the element being rendered
            ' is an <H4> element. If it is, check the 
            ' value of the SupportsItalic property.
            ' If true, render the opening tag of the <i> element
            ' prior to the <H4> element's content; otherwise, 
            ' render the opening tag of a <font> element 
            ' with a color attribute set to the hexadecimal
            ' value for navy blue.
            If TagKey = HtmlTextWriterTag.H4 Then
                If (SupportsItalic) Then
                    Return "<i>"
                Else
                    Return "<font color=""000080"">"
                End If
            End If
            ' Call the base method.
            Return MyBase.RenderBeforeContent()
        End Function

        ' Override the RenderAfterContent method to close
        ' styles opened during the call to the RenderBeforeContent
        ' method.
        Protected Overrides Function RenderAfterContent() As String

            ' Check whether the element being rendered is a <th> element.
            ' If so, and the requesting device supports bold formatting,
            ' render the closing tag of the <b> element. If not,
            ' render the closing tag of the <font> element.
            If TagKey = HtmlTextWriterTag.Th Then
                If SupportsBold Then
                    Return "</b>"
                Else
                    Return "</font>"
                End If
            End If

            ' Check whether the element being rendered is an <H4>.
            ' element. If so, and the requesting device supports italic
            ' formatting, render the closing tag of the <i> element.
            ' If not, render the closing tag of the <font> element.
            If TagKey = HtmlTextWriterTag.H4 Then
                If (SupportsItalic) Then
                    Return "</i>"
                Else
                    Return "</font>"
                End If
            End If
            ' Call the base method.
            Return MyBase.RenderAfterContent()
        End Function

        ' Override the RenderBeforeTag method to render the
        ' opening tag of a <small> element to modify the text size of 
        ' any <a> elements that this writer encounters.
        Protected Overrides Function RenderBeforeTag() As String
            ' Check whether the element being rendered is an 
            ' <a> element. If so, render the opening tag
            ' of the <small> element; otherwise, call the base method.
            If TagKey = HtmlTextWriterTag.A Then
                Return "<small>"
            End If
            Return MyBase.RenderBeforeTag()
        End Function

        ' Override the RenderAfterTag method to render
        ' close any elements opened in the RenderBeforeTag
        ' method call.
        Protected Overrides Function RenderAfterTag() As String
            ' Check whether the element being rendered is an
            ' <a> element. If so, render the closing tag of the
            ' <small> element; otherwise, call the base method.
            If TagKey = HtmlTextWriterTag.A Then
                Return "</small>"
            End If
            Return MyBase.RenderAfterTag()
        End Function
    End Class
End Namespace

Remarks

The Html32TextWriter class is an alternative to the HtmlTextWriter class. It converts HTML 4.0 style attributes into the equivalent HTML 3.2 tags and attributes. It standardizes the propagation of attributes, such as colors and fonts, using HTML tables. ASP.NET automatically uses this class for HTML 3.2 and earlier browsers by checking the TagWriter property of the HttpBrowserCapabilities class. Unless you create a custom page or control adapter that targets devices that use HTML 3.2 markup, you do not need to create an instance of the Html32TextWriter class explicitly.

For more information about customizing page and control rendering, see Walkthrough: Developing and Using a Custom Web Server Control.

Constructors

Html32TextWriter(TextWriter)

Initializes a new instance of the Html32TextWriter class that uses the line indentation that is specified in the DefaultTabString field when the requesting browser requires line indentation.

Html32TextWriter(TextWriter, String)

Initializes a new instance of the Html32TextWriter class that uses the specified line indentation.

Fields

CoreNewLine

Stores the newline characters used for this TextWriter.

(Inherited from TextWriter)
DefaultTabString

Represents a single tab character.

(Inherited from HtmlTextWriter)
DoubleQuoteChar

Represents the quotation mark (") character.

(Inherited from HtmlTextWriter)
EndTagLeftChars

Represents the left angle bracket and slash mark (</) of the closing tag of a markup element.

(Inherited from HtmlTextWriter)
EqualsChar

Represents the equal sign (=).

(Inherited from HtmlTextWriter)
EqualsDoubleQuoteString

Represents an equal sign (=) and a double quotation mark (") together in a string (=").

(Inherited from HtmlTextWriter)
SelfClosingChars

Represents a space and the self-closing slash mark (/) of a markup tag.

(Inherited from HtmlTextWriter)
SelfClosingTagEnd

Represents the closing slash mark and right angle bracket (/>) of a self-closing markup element.

(Inherited from HtmlTextWriter)
SemicolonChar

Represents the semicolon (;).

(Inherited from HtmlTextWriter)
SingleQuoteChar

Represents an apostrophe (').

(Inherited from HtmlTextWriter)
SlashChar

Represents the slash mark (/).

(Inherited from HtmlTextWriter)
SpaceChar

Represents a space ( ) character.

(Inherited from HtmlTextWriter)
StyleEqualsChar

Represents the style equals (:) character used to set style attributes equal to values.

(Inherited from HtmlTextWriter)
TagLeftChar

Represents the opening angle bracket (<) of a markup tag.

(Inherited from HtmlTextWriter)
TagRightChar

Represents the closing angle bracket (>) of a markup tag.

(Inherited from HtmlTextWriter)

Properties

Encoding

Gets the encoding that the HtmlTextWriter object uses to write content to the page.

(Inherited from HtmlTextWriter)
FontStack

Gets a collection of font information for the HTML to render.

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)
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.

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.

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.

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)

Methods

AddAttribute(HtmlTextWriterAttribute, String)

Adds the markup attribute and the attribute value to the opening tag of the element that the HtmlTextWriter object creates with a subsequent call to the RenderBeginTag method.

(Inherited from HtmlTextWriter)
AddAttribute(HtmlTextWriterAttribute, String, Boolean)

Adds the markup attribute and the attribute value to the opening tag of the element that the HtmlTextWriter object creates with a subsequent call to the RenderBeginTag method, with optional encoding.

(Inherited from HtmlTextWriter)
AddAttribute(String, String)

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)
AddAttribute(String, String, Boolean)

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, with optional encoding.

(Inherited from HtmlTextWriter)
AddAttribute(String, String, HtmlTextWriterAttribute)

Adds the specified markup attribute and value, along with an HtmlTextWriterAttribute enumeration 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(HtmlTextWriterStyle, String)

Adds the markup style attribute associated with the specified HtmlTextWriterStyle value and the attribute value to the opening markup tag created by a subsequent call to the RenderBeginTag method.

(Inherited from HtmlTextWriter)
AddStyleAttribute(String, String)

Adds the specified markup style attribute and the attribute value to the opening markup tag created by a subsequent call to the RenderBeginTag method.

(Inherited from HtmlTextWriter)
AddStyleAttribute(String, String, HtmlTextWriterStyle)

Adds the specified markup style attribute and the attribute value, along with an HtmlTextWriterStyle enumeration value, to the opening markup tag created by 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(Type)

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()

Releases all resources used by the TextWriter object.

(Inherited from TextWriter)
Dispose(Boolean)

Releases the unmanaged resources used by the TextWriter and optionally releases the managed resources.

(Inherited from TextWriter)
DisposeAsync()

Asynchronously releases all resources used by the TextWriter object.

(Inherited from TextWriter)
EncodeAttributeValue(HtmlTextWriterAttribute, String)

Encodes the value of the specified markup attribute based on the requirements of the HttpRequest object of the current context.

(Inherited from HtmlTextWriter)
EncodeAttributeValue(String, Boolean)

Encodes the value of the specified markup attribute based on the requirements of the HttpRequest object of the current context.

(Inherited from HtmlTextWriter)
EncodeUrl(String)

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(Style)

Writes the opening tag of a <span> element that contains attributes that implement the layout and character formatting of the specified style.

(Inherited from HtmlTextWriter)
EnterStyle(Style, HtmlTextWriterTag)

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(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
ExitStyle(Style)

Writes the closing tag of a <span> element to end the specified layout and character formatting.

(Inherited from HtmlTextWriter)
ExitStyle(Style, HtmlTextWriterTag)

Writes the closing tag of the specified markup element to end the specified layout and character formatting.

(Inherited from HtmlTextWriter)
FilterAttributes()

Removes all the markup and style attributes on all properties of the page or Web server control.

(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)
FlushAsync()

Asynchronously clears all buffers for the current writer and causes any buffered data to be written to the underlying device.

(Inherited from TextWriter)
FlushAsync(CancellationToken)

Asynchronously clears all buffers for the current writer and causes any buffered data to be written to the underlying device.

(Inherited from TextWriter)
GetAttributeKey(String)

Obtains the corresponding HtmlTextWriterAttribute enumeration value for the specified attribute.

(Inherited from HtmlTextWriter)
GetAttributeName(HtmlTextWriterAttribute)

Obtains the name of the markup attribute associated with the specified HtmlTextWriterAttribute value.

(Inherited from HtmlTextWriter)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetLifetimeService()
Obsolete.

Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
GetStyleKey(String)

Obtains the HtmlTextWriterStyle enumeration value for the specified style.

(Inherited from HtmlTextWriter)
GetStyleName(HtmlTextWriterStyle)

Obtains the markup style attribute name associated with the specified HtmlTextWriterStyle enumeration value.

(Inherited from HtmlTextWriter)
GetTagKey(String)

Obtains the HtmlTextWriterTag enumeration value associated with the specified markup element.

(Inherited from HtmlTextWriter)
GetTagName(HtmlTextWriterTag)

Returns the HTML element that is associated with the specified HtmlTextWriterTag enumeration value.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
InitializeLifetimeService()
Obsolete.

Obtains a lifetime service object to control the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
IsAttributeDefined(HtmlTextWriterAttribute)

Determines whether the specified markup attribute and its value are rendered during the next call to the RenderBeginTag method.

(Inherited from HtmlTextWriter)
IsAttributeDefined(HtmlTextWriterAttribute, String)

Determines whether the specified markup attribute and its value are rendered during the next call to the RenderBeginTag method.

(Inherited from HtmlTextWriter)
IsStyleAttributeDefined(HtmlTextWriterStyle)

Determines whether the specified markup style attribute is rendered during the next call to the RenderBeginTag method.

(Inherited from HtmlTextWriter)
IsStyleAttributeDefined(HtmlTextWriterStyle, String)

Determines whether the specified markup style attribute and its value are rendered during the next call to the RenderBeginTag method.

(Inherited from HtmlTextWriter)
IsValidFormAttribute(String)

Checks an attribute to ensure that it can be rendered in the opening tag of a <form> markup element.

(Inherited from HtmlTextWriter)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
MemberwiseClone(Boolean)

Creates a shallow copy of the current MarshalByRefObject object.

(Inherited from MarshalByRefObject)
OnAttributeRender(String, String, HtmlTextWriterAttribute)

Determines whether the specified markup attribute and its value can be rendered to the current markup element.

(Inherited from HtmlTextWriter)
OnStyleAttributeRender(String, String, HtmlTextWriterStyle)

Determines whether to write the specified HTML style attribute and its value to the output stream.

OnTagRender(String, HtmlTextWriterTag)

Determines whether to write the specified HTML element to the output stream.

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(String)

Saves the specified markup element for later use when generating the end tag for a markup element.

(Inherited from HtmlTextWriter)
RenderAfterContent()

Writes any text or spacing that appears after the content of the HTML element.

RenderAfterTag()

Writes any spacing or text that occurs after an HTML element's closing tag.

RenderBeforeContent()

Writes any tab spacing or font information that appears before the content that is contained in an HTML element.

RenderBeforeTag()

Writes any text or tab spacing that occurs before the opening tag of an HTML element to the HTML 3.2 output stream.

RenderBeginTag(HtmlTextWriterTag)

Writes the opening tag of the specified element to the HTML 3.2 output stream.

RenderBeginTag(String)

Writes the opening tag of the specified markup element to the output stream.

(Inherited from HtmlTextWriter)
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.

ToString()

Returns a string that represents the current object.

(Inherited from Object)
Write(Boolean)

Writes the text representation of a Boolean value to the output stream, along with any pending tab spacing.

(Inherited from HtmlTextWriter)
Write(Char)

Writes the text representation of a Unicode character to the output stream, along with any pending tab spacing.

(Inherited from HtmlTextWriter)
Write(Char[])

Writes the text representation of an array of Unicode characters to the output stream, along with any pending tab spacing.

(Inherited from HtmlTextWriter)
Write(Char[], Int32, Int32)

Writes the text representation of a subarray of Unicode characters to the output stream, along with any pending tab spacing.

(Inherited from HtmlTextWriter)
Write(Decimal)

Writes the text representation of a decimal value to the text stream.

(Inherited from TextWriter)
Write(Double)

Writes the text representation of a double-precision floating-point number to the output stream, along with any pending tab spacing.

(Inherited from HtmlTextWriter)
Write(Int32)

Writes the text representation of a 32-byte signed integer to the output stream, along with any pending tab spacing.

(Inherited from HtmlTextWriter)
Write(Int64)

Writes the text representation of a 64-byte signed integer to the output stream, along with any pending tab spacing.

(Inherited from HtmlTextWriter)
Write(Object)

Writes the text representation of an object to the output stream, along with any pending tab spacing.

(Inherited from HtmlTextWriter)
Write(ReadOnlySpan<Char>)

Writes a character span to the text stream.

(Inherited from TextWriter)
Write(Single)

Writes the text representation of a single-precision floating-point number to the output stream, along with any pending tab spacing.

(Inherited from HtmlTextWriter)
Write(String)

Writes the specified string to the output stream, along with any pending tab spacing.

(Inherited from HtmlTextWriter)
Write(String, Object)

Writes a tab string and a formatted string to the output stream, using the same semantics as the Format(String, Object) method, along with any pending tab spacing.

(Inherited from HtmlTextWriter)
Write(String, Object, Object)

Writes a formatted string that contains the text representation of two objects to the output stream, along with any pending tab spacing. This method uses the same semantics as the Format(String, Object, Object) method.

(Inherited from HtmlTextWriter)
Write(String, Object, Object, Object)

Writes a formatted string to the text stream, using the same semantics as the Format(String, Object, Object, Object) method.

(Inherited from TextWriter)
Write(String, Object[])

Writes a formatted string that contains the text representation of an object array to the output stream, along with any pending tab spacing. This method uses the same semantics as the Format(String, Object[]) method.

(Inherited from HtmlTextWriter)
Write(String, ReadOnlySpan<Object>)

Writes a formatted string to the text stream, using the same semantics as Format(String, ReadOnlySpan<Object>).

(Inherited from TextWriter)
Write(StringBuilder)

Writes a string builder to the text stream.

(Inherited from TextWriter)
Write(UInt32)

Writes the text representation of a 4-byte unsigned integer to the text stream.

(Inherited from TextWriter)
Write(UInt64)

Writes the text representation of an 8-byte unsigned integer to the text stream.

(Inherited from TextWriter)
WriteAsync(Char)

Writes a character to the text stream asynchronously.

(Inherited from TextWriter)
WriteAsync(Char[])

Writes a character array to the text stream asynchronously.

(Inherited from TextWriter)
WriteAsync(Char[], Int32, Int32)

Writes a subarray of characters to the text stream asynchronously.

(Inherited from TextWriter)
WriteAsync(ReadOnlyMemory<Char>, CancellationToken)

Asynchronously writes a character memory region to the text stream.

(Inherited from TextWriter)
WriteAsync(String)

Writes a string to the text stream asynchronously.

(Inherited from TextWriter)
WriteAsync(StringBuilder, CancellationToken)

Asynchronously writes a string builder to the text stream.

(Inherited from TextWriter)
WriteAttribute(String, String)

Writes the specified markup attribute and value to the output stream.

(Inherited from HtmlTextWriter)
WriteAttribute(String, String, Boolean)

Writes the specified markup attribute and value to the output stream, and, if specified, writes the value encoded.

(Inherited from HtmlTextWriter)
WriteBeginTag(String)

Writes any tab spacing and the opening tag of the specified markup element to the output stream.

(Inherited from HtmlTextWriter)
WriteBreak()

Writes a <br /> markup element to the output stream.

(Inherited from HtmlTextWriter)
WriteEncodedText(String)

Encodes the specified text for the requesting device, and then writes it to the output stream.

(Inherited from HtmlTextWriter)
WriteEncodedUrl(String)

Encodes the specified URL, and then writes it to the output stream. The URL might include parameters.

(Inherited from HtmlTextWriter)
WriteEncodedUrlParameter(String)

Encodes the specified URL parameter for the requesting device, and then writes it to the output stream.

(Inherited from HtmlTextWriter)
WriteEndTag(String)

Writes any tab spacing and the closing tag of the specified markup element.

(Inherited from HtmlTextWriter)
WriteFullBeginTag(String)

Writes any tab spacing and the opening tag of the specified markup element to the output stream.

(Inherited from HtmlTextWriter)
WriteLine()

Writes a line terminator string to the output stream.

(Inherited from HtmlTextWriter)
WriteLine(Boolean)

Writes any pending tab spacing and the text representation of a Boolean value, followed by a line terminator string, to the output stream.

(Inherited from HtmlTextWriter)
WriteLine(Char)

Writes any pending tab spacing and a Unicode character, followed by a line terminator string, to the output stream.

(Inherited from HtmlTextWriter)
WriteLine(Char[])

Writes any pending tab spacing and an array of Unicode characters, followed by a line terminator string, to the output stream.

(Inherited from HtmlTextWriter)
WriteLine(Char[], Int32, Int32)

Writes any pending tab spacing and a subarray of Unicode characters, followed by a line terminator string, to the output stream.

(Inherited from HtmlTextWriter)
WriteLine(Decimal)

Writes the text representation of a decimal value to the text stream, followed by a line terminator.

(Inherited from TextWriter)
WriteLine(Double)

Writes any pending tab spacing and the text representation of a double-precision floating-point number, followed by a line terminator string, to the output stream.

(Inherited from HtmlTextWriter)
WriteLine(Int32)

Writes any pending tab spacing and the text representation of a 32-byte signed integer, followed by a line terminator string, to the output stream.

(Inherited from HtmlTextWriter)
WriteLine(Int64)

Writes any pending tab spacing and the text representation of a 64-byte signed integer, followed by a line terminator string, to the output stream.

(Inherited from HtmlTextWriter)
WriteLine(Object)

Writes any pending tab spacing and the text representation of an object, followed by a line terminator string, to the output stream.

(Inherited from HtmlTextWriter)
WriteLine(ReadOnlySpan<Char>)

Writes the text representation of a character span to the text stream, followed by a line terminator.

(Inherited from TextWriter)
WriteLine(Single)

Writes any pending tab spacing and the text representation of a single-precision floating-point number, followed by a line terminator string, to the output stream.

(Inherited from HtmlTextWriter)
WriteLine(String)

Writes any pending tab spacing and a text string, followed by a line terminator string, to the output stream.

(Inherited from HtmlTextWriter)
WriteLine(String, Object)

Writes any pending tab spacing and a formatted string containing the text representation of an object, followed by a line terminator string, to the output stream.

(Inherited from HtmlTextWriter)
WriteLine(String, Object, Object)

Writes any pending tab spacing and a formatted string that contains the text representation of two objects, followed by a line terminator string, to the output stream.

(Inherited from HtmlTextWriter)
WriteLine(String, Object, Object, Object)

Writes out a formatted string and a new line to the text stream, using the same semantics as Format(String, Object).

(Inherited from TextWriter)
WriteLine(String, Object[])

Writes any pending tab spacing and a formatted string that contains the text representation of an object array, followed by a line terminator string, to the output stream.

(Inherited from HtmlTextWriter)
WriteLine(String, ReadOnlySpan<Object>)

Writes out a formatted string and a new line to the text stream, using the same semantics as Format(String, ReadOnlySpan<Object>).

(Inherited from TextWriter)
WriteLine(StringBuilder)

Writes the text representation of a string builder to the text stream, followed by a line terminator.

(Inherited from TextWriter)
WriteLine(UInt32)

Writes any pending tab spacing and the text representation of a 4-byte unsigned integer, followed by a line terminator string, to the output stream.

(Inherited from HtmlTextWriter)
WriteLine(UInt64)

Writes the text representation of an 8-byte unsigned integer to the text stream, followed by a line terminator.

(Inherited from TextWriter)
WriteLineAsync()

Asynchronously writes a line terminator to the text stream.

(Inherited from TextWriter)
WriteLineAsync(Char)

Asynchronously writes a character to the text stream, followed by a line terminator.

(Inherited from TextWriter)
WriteLineAsync(Char[])

Asynchronously writes an array of characters to the text stream, followed by a line terminator.

(Inherited from TextWriter)
WriteLineAsync(Char[], Int32, Int32)

Asynchronously writes a subarray of characters to the text stream, followed by a line terminator.

(Inherited from TextWriter)
WriteLineAsync(ReadOnlyMemory<Char>, CancellationToken)

Asynchronously writes the text representation of a character memory region to the text stream, followed by a line terminator.

(Inherited from TextWriter)
WriteLineAsync(String)

Asynchronously writes a string to the text stream, followed by a line terminator.

(Inherited from TextWriter)
WriteLineAsync(StringBuilder, CancellationToken)

Asynchronously writes the text representation of a string builder to the text stream, followed by a line terminator.

(Inherited from TextWriter)
WriteLineNoTabs(String)

Writes a string, followed by a line terminator string, to the output stream. This method ignores any specified tab spacing.

(Inherited from HtmlTextWriter)
WriteStyleAttribute(String, String)

Writes the specified style attribute to the output stream.

(Inherited from HtmlTextWriter)
WriteStyleAttribute(String, String, Boolean)

Writes the specified style attribute and value to the output stream, and encodes the value, if specified.

(Inherited from HtmlTextWriter)
WriteUrlEncodedString(String, Boolean)

Writes the specified string, encoding it according to URL requirements.

(Inherited from HtmlTextWriter)

Explicit Interface Implementations

IDisposable.Dispose()

For a description of this member, see Dispose().

(Inherited from TextWriter)

Applies to

See also