Html32TextWriter Classe
Definição
Grava uma série de caracteres específicos do HTML 3.2 e um texto no fluxo de saída de um controle de servidor ASP.NET.Writes a series of HTML 3.2-specific characters and text to the output stream for an ASP.NET server control. A classe Html32TextWriter fornece funcionalidades de formatação que os controles de servidor ASP.NET usam ao renderizar o conteúdo HTML 3.2 para os clientes.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
- Herança
- Derivado
Exemplos
O exemplo de código a seguir demonstra como usar uma classe, chamada CustomHtml32TextWriter , que deriva da Html32TextWriter classe.The following code example demonstrates how to use a class, named CustomHtml32TextWriter, that derives from the Html32TextWriter class. CustomHtml32TextWriter cria dois construtores que seguem o padrão estabelecido pela HtmlTextWriter classe e substitui os RenderBeforeContent RenderAfterContent métodos,, RenderBeforeTag e RenderAfterTag .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
Comentários
A Html32TextWriter classe é uma alternativa à HtmlTextWriter classe.The Html32TextWriter class is an alternative to the HtmlTextWriter class. Ele converte atributos de estilo HTML 4,0 em marcas e atributos equivalentes em HTML 3,2.It converts HTML 4.0 style attributes into the equivalent HTML 3.2 tags and attributes. Ele padroniza a propagação de atributos, como cores e fontes, usando tabelas HTML.It standardizes the propagation of attributes, such as colors and fonts, using HTML tables. O ASP.NET usa automaticamente essa classe para HTML 3,2 e navegadores anteriores, verificando a TagWriter propriedade da HttpBrowserCapabilities classe.ASP.NET automatically uses this class for HTML 3.2 and earlier browsers by checking the TagWriter property of the HttpBrowserCapabilities class. A menos que você crie uma página personalizada ou um adaptador de controle que tenha como destino dispositivos que usam marcação HTML 3,2, você não precisará criar uma instância da Html32TextWriter classe explicitamente.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.
Para obter mais informações sobre como personalizar a renderização de página e controle, consulte Walkthrough: desenvolvendo e usando um controle de servidor Web personalizado.For more information about customizing page and control rendering, see Walkthrough: Developing and Using a Custom Web Server Control.
Construtores
| Html32TextWriter(TextWriter) |
Inicializa uma nova instância da classe Html32TextWriter que usa o recuo de linha especificado no campo DefaultTabString quando o navegador solicitante requer recuo de linha.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) |
Inicializa uma nova instância da classe Html32TextWriter que usa o recuo de linha especificado.Initializes a new instance of the Html32TextWriter class that uses the specified line indentation. |
Campos
| CoreNewLine |
Armazena os caracteres de nova linha usados para esse |
| DefaultTabString |
Representa um único caractere de tabulação.Represents a single tab character. (Herdado de HtmlTextWriter) |
| DoubleQuoteChar |
Representa o caractere de aspas (").Represents the quotation mark (") character. (Herdado de HtmlTextWriter) |
| EndTagLeftChars |
Representa a marca de colchete angular esquerdo e barra (</) da marca de fechamento de um elemento de marcação.Represents the left angle bracket and slash mark (</) of the closing tag of a markup element. (Herdado de HtmlTextWriter) |
| EqualsChar |
Representa o sinal de igual ( |
| EqualsDoubleQuoteString |
Representa um sinal de igual (=) e aspas duplas (") juntos em uma cadeia de caracteres (=").Represents an equal sign (=) and a double quotation mark (") together in a string (="). (Herdado de HtmlTextWriter) |
| SelfClosingChars |
Representa um espaço e a marca de barra (/) de autofechamento de uma marca de marcação.Represents a space and the self-closing slash mark (/) of a markup tag. (Herdado de HtmlTextWriter) |
| SelfClosingTagEnd |
Representa a marca de barra de fechamento e o colchete angular direito (/>) de um elemento de marcação de autofechamento.Represents the closing slash mark and right angle bracket (/>) of a self-closing markup element. (Herdado de HtmlTextWriter) |
| SemicolonChar |
Representa o ponto e vírgula (;).Represents the semicolon (;). (Herdado de HtmlTextWriter) |
| SingleQuoteChar |
Representa um apóstrofo (').Represents an apostrophe ('). (Herdado de HtmlTextWriter) |
| SlashChar |
Representa a marca de barra (/).Represents the slash mark (/). (Herdado de HtmlTextWriter) |
| SpaceChar |
Representa um caractere de espaço ( ).Represents a space ( ) character. (Herdado de HtmlTextWriter) |
| StyleEqualsChar |
Representa o caractere de igual para estilo ( |
| TagLeftChar |
Representa o colchete angular de abertura (<) de uma marca de marcação.Represents the opening angle bracket (<) of a markup tag. (Herdado de HtmlTextWriter) |
| TagRightChar |
Representa o colchete angular de fechamento (>) de uma marca de marcação.Represents the closing angle bracket (>) of a markup tag. (Herdado de HtmlTextWriter) |
Propriedades
| Encoding |
Obtém a codificação que o objeto HtmlTextWriter usa para gravar conteúdo na página.Gets the encoding that the HtmlTextWriter object uses to write content to the page. (Herdado de HtmlTextWriter) |
| FontStack |
Obtém uma coleção de informações de fonte para o HTML renderizar.Gets a collection of font information for the HTML to render. |
| FormatProvider |
Obtém um objeto que controla a formatação.Gets an object that controls formatting. (Herdado de TextWriter) |
| Indent |
Obtém ou define o número de posições de tabulação para recuar o início de cada linha de marcação.Gets or sets the number of tab positions to indent the beginning of each line of markup. (Herdado de HtmlTextWriter) |
| InnerWriter |
Obtém ou define o gravador de texto que grava o conteúdo interno do elemento de marcação.Gets or sets the text writer that writes the inner content of the markup element. (Herdado de HtmlTextWriter) |
| NewLine |
Obtém ou define a cadeia de caracteres de terminador de linha usada pelo objeto HtmlTextWriter.Gets or sets the line terminator string used by the HtmlTextWriter object. (Herdado de HtmlTextWriter) |
| ShouldPerformDivTableSubstitution |
Obtém ou define um valor booliano que indica se é necessário substituir um elemento |
| SupportsBold |
Obtém ou define um valor booliano que indica se a solicitação do dispositivo dá suporte a texto HTML em negrito.Gets or sets a Boolean value indicating whether the requesting device supports bold HTML text. Use a propriedade SupportsBold para renderizar condicionalmente texto em negrito para o fluxo de saída Html32TextWriter.Use the SupportsBold property to conditionally render bold text to the Html32TextWriter output stream. |
| SupportsItalic |
Obtém ou define um valor booliano que indica se a solicitação do dispositivo dá suporte a texto HTML em itálico.Gets or sets a Boolean value indicating whether the requesting device supports italic HTML text. Use a propriedade SupportsItalic para renderizar condicionalmente texto em itálico para o fluxo de saída Html32TextWriter.Use the SupportsItalic property to conditionally render italicized text to the Html32TextWriter output stream. |
| TagKey |
Obtém ou define o valor HtmlTextWriterTag para o elemento de marcação especificado.Gets or sets the HtmlTextWriterTag value for the specified markup element. (Herdado de HtmlTextWriter) |
| TagName |
Obtém ou define o nome da marca do elemento de marcação que está sendo renderizado.Gets or sets the tag name of the markup element being rendered. (Herdado de HtmlTextWriter) |
Métodos
| AddAttribute(HtmlTextWriterAttribute, String) |
Adiciona o atributo de marcação e o valor de atributo à marca de abertura do elemento que o objeto HtmlTextWriter cria com uma chamada posterior ao método RenderBeginTag.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. (Herdado de HtmlTextWriter) |
| AddAttribute(HtmlTextWriterAttribute, String, Boolean) |
Adiciona o atributo de marcação e o valor de atributo à marca de abertura do elemento criado pelo objeto HtmlTextWriter com uma chamada posterior ao método RenderBeginTag, com codificação opcional.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. (Herdado de HtmlTextWriter) |
| AddAttribute(String, String) |
Adiciona o atributo e valor de marcação especificados à marca de abertura do elemento que o objeto HtmlTextWriter cria com uma chamada posterior ao método RenderBeginTag.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. (Herdado de HtmlTextWriter) |
| AddAttribute(String, String, Boolean) |
Adiciona o valor e o atributo de marcação especificados à marca de abertura do elemento que o objeto HtmlTextWriter cria com uma chamada subsequente ao método RenderBeginTag, com codificação opcional.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. (Herdado de HtmlTextWriter) |
| AddAttribute(String, String, HtmlTextWriterAttribute) |
Adiciona o atributo e valor de marcação especificados, juntamente com um valor de enumeração HtmlTextWriterAttribute, à marca de abertura do elemento que o objeto HtmlTextWriter cria com uma chamada subsequente ao método RenderBeginTag.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. (Herdado de HtmlTextWriter) |
| AddStyleAttribute(HtmlTextWriterStyle, String) |
Adiciona o atributo de estilo de marcação associado ao valor HtmlTextWriterStyle especificado e o valor do atributo para a marcação de abertura criada por uma chamada subsequente para o método RenderBeginTag.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. (Herdado de HtmlTextWriter) |
| AddStyleAttribute(String, String) |
Adiciona o atributo de estilo de marcação especificado e o valor do atributo para a marcação de abertura criada por uma chamada subsequente para o método RenderBeginTag.Adds the specified markup style attribute and the attribute value to the opening markup tag created by a subsequent call to the RenderBeginTag method. (Herdado de HtmlTextWriter) |
| AddStyleAttribute(String, String, HtmlTextWriterStyle) |
Adiciona o atributo de estilo de marcação especificado e o valor do atributo, juntamente com um valor de enumeração HtmlTextWriterStyle, à marcação de abertura criada por uma chamada subsequente para o método RenderBeginTag.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. (Herdado de HtmlTextWriter) |
| BeginRender() |
Notifica um objeto HtmlTextWriter ou um objeto de uma classe derivada de que um controle está prestes a ser renderizado.Notifies an HtmlTextWriter object, or an object of a derived class, that a control is about to be rendered. (Herdado de HtmlTextWriter) |
| Close() |
Fecha o objeto HtmlTextWriter e libera os recursos do sistema associados a ele.Closes the HtmlTextWriter object and releases any system resources associated with it. (Herdado de HtmlTextWriter) |
| CreateObjRef(Type) |
Cria um objeto que contém todas as informações relevantes necessárias para gerar um proxy usado para se comunicar com um objeto remoto.Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Herdado de MarshalByRefObject) |
| Dispose() |
Libera todos os recursos usados pelo objeto TextWriter.Releases all resources used by the TextWriter object. (Herdado de TextWriter) |
| Dispose(Boolean) |
Libera os recursos não gerenciados usados pelo TextWriter e opcionalmente libera os recursos gerenciados.Releases the unmanaged resources used by the TextWriter and optionally releases the managed resources. (Herdado de TextWriter) |
| DisposeAsync() |
Libera de forma assíncrona todos os recursos usados pelo objeto TextWriter.Asynchronously releases all resources used by the TextWriter object. (Herdado de TextWriter) |
| EncodeAttributeValue(HtmlTextWriterAttribute, String) |
Codifica o valor de atributo de marcação especificado com base nos requisitos do objeto HttpRequest do contexto atual.Encodes the value of the specified markup attribute based on the requirements of the HttpRequest object of the current context. (Herdado de HtmlTextWriter) |
| EncodeAttributeValue(String, Boolean) |
Codifica o valor de atributo de marcação especificado com base nos requisitos do objeto HttpRequest do contexto atual.Encodes the value of the specified markup attribute based on the requirements of the HttpRequest object of the current context. (Herdado de HtmlTextWriter) |
| EncodeUrl(String) |
Executa a codificação de URL mínima convertendo espaços existentes na URL especificada para a cadeia de caracteres "%20".Performs minimal URL encoding by converting spaces in the specified URL to the string "%20". (Herdado de HtmlTextWriter) |
| EndRender() |
Notifica um objeto HtmlTextWriter ou um objeto de uma classe derivada de que a renderização de um controle foi concluída.Notifies an HtmlTextWriter object, or an object of a derived class, that a control has finished rendering. Você pode usar esse método para fechar os elementos de marcação abertos no método BeginRender().You can use this method to close any markup elements opened in the BeginRender() method. (Herdado de HtmlTextWriter) |
| EnterStyle(Style) |
Grava a marca de abertura de um elemento |
| EnterStyle(Style, HtmlTextWriterTag) |
Grava a marca de abertura de um elemento de marcação que contém atributos que implementam o layout e formatação de caracteres do estilo especificado.Writes the opening tag of a markup element that contains attributes that implement the layout and character formatting of the specified style. (Herdado de HtmlTextWriter) |
| Equals(Object) |
Determina se o objeto especificado é igual ao objeto atual.Determines whether the specified object is equal to the current object. (Herdado de Object) |
| ExitStyle(Style) |
Grava a marca de fechamento de um elemento |
| ExitStyle(Style, HtmlTextWriterTag) |
Grava a marca de fechamento do elemento de marcação especificado para encerrar o layout e a formatação de caracteres especificados.Writes the closing tag of the specified markup element to end the specified layout and character formatting. (Herdado de HtmlTextWriter) |
| FilterAttributes() |
Remove todos os atributos de estilo e marcação em todas as propriedades da página ou controle de servidor Web.Removes all the markup and style attributes on all properties of the page or Web server control. (Herdado de HtmlTextWriter) |
| Flush() |
Limpa todos os buffers para o objeto HtmlTextWriter atual e faz com que todos os dados armazenados em buffer sejam gravados no fluxo de saída.Clears all buffers for the current HtmlTextWriter object and causes any buffered data to be written to the output stream. (Herdado de HtmlTextWriter) |
| FlushAsync() |
Limpa, de maneira assíncrona, todos os buffers do gravador atual e faz com que todos os dados armazenados em buffer sejam gravados no dispositivo subjacente.Asynchronously clears all buffers for the current writer and causes any buffered data to be written to the underlying device. (Herdado de TextWriter) |
| GetAttributeKey(String) |
Obtém o valor de enumeração HtmlTextWriterAttribute correspondente para o atributo especificado.Obtains the corresponding HtmlTextWriterAttribute enumeration value for the specified attribute. (Herdado de HtmlTextWriter) |
| GetAttributeName(HtmlTextWriterAttribute) |
Obtém o nome do atributo de marcação associado ao valor HtmlTextWriterAttribute especificado.Obtains the name of the markup attribute associated with the specified HtmlTextWriterAttribute value. (Herdado de HtmlTextWriter) |
| GetHashCode() |
Serve como a função de hash padrão.Serves as the default hash function. (Herdado de Object) |
| GetLifetimeService() |
Obsoleto.
Recupera o objeto de serviço de tempo de vida atual que controla a política de ciclo de vida para esta instância.Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Herdado de MarshalByRefObject) |
| GetStyleKey(String) |
Obtém o valor de enumeração HtmlTextWriterStyle do estilo especificado.Obtains the HtmlTextWriterStyle enumeration value for the specified style. (Herdado de HtmlTextWriter) |
| GetStyleName(HtmlTextWriterStyle) |
Obtém o nome de atributo de estilo de marcação associado ao valor de enumeração HtmlTextWriterStyle especificado.Obtains the markup style attribute name associated with the specified HtmlTextWriterStyle enumeration value. (Herdado de HtmlTextWriter) |
| GetTagKey(String) |
Obtém o valor de enumeração HtmlTextWriterTag associado ao elemento de marcação especificado.Obtains the HtmlTextWriterTag enumeration value associated with the specified markup element. (Herdado de HtmlTextWriter) |
| GetTagName(HtmlTextWriterTag) |
Retorna o elemento HTML associado ao valor de enumeração HtmlTextWriterTag especificado.Returns the HTML element that is associated with the specified HtmlTextWriterTag enumeration value. |
| GetType() |
Obtém o Type da instância atual.Gets the Type of the current instance. (Herdado de Object) |
| InitializeLifetimeService() |
Obsoleto.
Obtém um objeto de serviço de tempo de vida para controlar a política de tempo de vida para essa instância.Obtains a lifetime service object to control the lifetime policy for this instance. (Herdado de MarshalByRefObject) |
| IsAttributeDefined(HtmlTextWriterAttribute) |
Determina se o atributo de marcação especificado e seu valor são renderizados durante a próxima chamada para o método RenderBeginTag.Determines whether the specified markup attribute and its value are rendered during the next call to the RenderBeginTag method. (Herdado de HtmlTextWriter) |
| IsAttributeDefined(HtmlTextWriterAttribute, String) |
Determina se o atributo de marcação especificado e seu valor são renderizados durante a próxima chamada para o método RenderBeginTag.Determines whether the specified markup attribute and its value are rendered during the next call to the RenderBeginTag method. (Herdado de HtmlTextWriter) |
| IsStyleAttributeDefined(HtmlTextWriterStyle) |
Determina se o atributo de estilo de marcação especificado é renderizado durante a próxima chamada para o método RenderBeginTag.Determines whether the specified markup style attribute is rendered during the next call to the RenderBeginTag method. (Herdado de HtmlTextWriter) |
| IsStyleAttributeDefined(HtmlTextWriterStyle, String) |
Determina se o atributo de estilo de marcação especificado e seu valor são renderizados durante a próxima chamada para o método RenderBeginTag.Determines whether the specified markup style attribute and its value are rendered during the next call to the RenderBeginTag method. (Herdado de HtmlTextWriter) |
| IsValidFormAttribute(String) |
Verifica se um atributo para garantir que ele pode ser renderizado na marca de abertura de um elemento de marcação |
| MemberwiseClone() |
Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object. (Herdado de Object) |
| MemberwiseClone(Boolean) |
Cria uma cópia superficial do objeto MarshalByRefObject atual.Creates a shallow copy of the current MarshalByRefObject object. (Herdado de MarshalByRefObject) |
| OnAttributeRender(String, String, HtmlTextWriterAttribute) |
Determina se o atributo de marcação especificado e seu valor podem ser renderizados para o elemento atual da marcação.Determines whether the specified markup attribute and its value can be rendered to the current markup element. (Herdado de HtmlTextWriter) |
| OnStyleAttributeRender(String, String, HtmlTextWriterStyle) |
Determina se é necessário gravar o atributo de estilo HTML especificado e o respectivo valor no fluxo de saída.Determines whether to write the specified HTML style attribute and its value to the output stream. |
| OnTagRender(String, HtmlTextWriterTag) |
Determina se é necessário gravar o elemento HTML especificado no fluxo de saída.Determines whether to write the specified HTML element to the output stream. |
| OutputTabs() |
Grava uma série de cadeias de caracteres de guia que representam o nível de recuo de uma linha de caracteres de marcação.Writes a series of tab strings that represent the indentation level for a line of markup characters. (Herdado de HtmlTextWriter) |
| PopEndTag() |
Remove o elemento de marcação salvo mais recentemente na lista de elementos renderizados.Removes the most recently saved markup element from the list of rendered elements. (Herdado de HtmlTextWriter) |
| PushEndTag(String) |
Salva o elemento de marcação especificado para uso posterior ao gerar a marca de fim de um elemento de marcação.Saves the specified markup element for later use when generating the end tag for a markup element. (Herdado de HtmlTextWriter) |
| RenderAfterContent() |
Grava qualquer texto ou espaçamento que aparece depois do conteúdo do elemento HTML.Writes any text or spacing that appears after the content of the HTML element. |
| RenderAfterTag() |
Grava o espaçamento ou texto que ocorre após a marca de fechamento de um elemento HTML.Writes any spacing or text that occurs after an HTML element's closing tag. |
| RenderBeforeContent() |
Grava o espaçamento de guia ou informações de fonte que aparecem antes do conteúdo contido em um elemento HTML.Writes any tab spacing or font information that appears before the content that is contained in an HTML element. |
| RenderBeforeTag() |
Grava qualquer texto ou espaçamento de guia que ocorre antes da marca de abertura de um elemento HTML para o fluxo de saída HTML 3.2.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) |
Grava a marca de abertura do elemento especificado no fluxo de saída HTML 3.2.Writes the opening tag of the specified element to the HTML 3.2 output stream. |
| RenderBeginTag(String) |
Grava a marca de abertura do elemento de marcação especificado no fluxo de saída.Writes the opening tag of the specified markup element to the output stream. (Herdado de HtmlTextWriter) |
| RenderEndTag() |
Grava a marca de fim de um elemento HTML no fluxo de saída Html32TextWriter, juntamente com qualquer informação de fonte associada ao elemento.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() |
Retorna uma cadeia de caracteres que representa o objeto atual.Returns a string that represents the current object. (Herdado de Object) |
| Write(Boolean) |
Grava a representação de texto de um valor booliano no fluxo de saída, juntamente com qualquer espaçamento de guia pendente.Writes the text representation of a Boolean value to the output stream, along with any pending tab spacing. (Herdado de HtmlTextWriter) |
| Write(Char) |
Grava a representação de texto de um caractere Unicode no fluxo de saída, juntamente com qualquer espaçamento de guia pendente.Writes the text representation of a Unicode character to the output stream, along with any pending tab spacing. (Herdado de HtmlTextWriter) |
| Write(Char[]) |
Grava a representação de texto de uma matriz de caracteres Unicode no fluxo de saída, juntamente com qualquer espaçamento de guia pendente.Writes the text representation of an array of Unicode characters to the output stream, along with any pending tab spacing. (Herdado de HtmlTextWriter) |
| Write(Char[], Int32, Int32) |
Grava a representação de texto de uma submatriz de caracteres Unicode no fluxo de saída, juntamente com qualquer espaçamento de guia pendente.Writes the text representation of a subarray of Unicode characters to the output stream, along with any pending tab spacing. (Herdado de HtmlTextWriter) |
| Write(Decimal) |
Grava a representação de texto de um valor decimal no fluxo de texto.Writes the text representation of a decimal value to the text stream. (Herdado de TextWriter) |
| Write(Double) |
Grava a representação de texto de um número de ponto flutuante de precisão dupla no fluxo de saída, juntamente com qualquer espaçamento de guia pendente.Writes the text representation of a double-precision floating-point number to the output stream, along with any pending tab spacing. (Herdado de HtmlTextWriter) |
| Write(Int32) |
Grava a representação de texto de um inteiro com sinal de 32 bytes no fluxo de saída, juntamente com qualquer espaçamento de guia pendente.Writes the text representation of a 32-byte signed integer to the output stream, along with any pending tab spacing. (Herdado de HtmlTextWriter) |
| Write(Int64) |
Grava a representação de texto de um inteiro com sinal de 64 bytes no fluxo de saída, juntamente com qualquer espaçamento de guia pendente.Writes the text representation of a 64-byte signed integer to the output stream, along with any pending tab spacing. (Herdado de HtmlTextWriter) |
| Write(Object) |
Grava a representação de texto de um objeto no fluxo de saída, juntamente com qualquer espaçamento de guia pendente.Writes the text representation of an object to the output stream, along with any pending tab spacing. (Herdado de HtmlTextWriter) |
| Write(ReadOnlySpan<Char>) |
Grava um intervalo de caracteres no fluxo de texto.Writes a character span to the text stream. (Herdado de TextWriter) |
| Write(Single) |
Grava a representação de texto de um número de ponto flutuante de precisão simples no fluxo de saída, juntamente com qualquer espaçamento de guia pendente.Writes the text representation of a single-precision floating-point number to the output stream, along with any pending tab spacing. (Herdado de HtmlTextWriter) |
| Write(String) |
Grava a cadeia de caracteres especificada no fluxo de saída, juntamente a qualquer espaçamento de tabulação pendente.Writes the specified string to the output stream, along with any pending tab spacing. (Herdado de HtmlTextWriter) |
| Write(String, Object) |
Grava uma cadeia de caracteres de guia e uma cadeia de caracteres formatada no fluxo de saída, usando a mesma semântica do método Format(String, Object), juntamente com qualquer espaçamento de guia pendente.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. (Herdado de HtmlTextWriter) |
| Write(String, Object, Object) |
Grava uma cadeia de caracteres formatada que contém a representação de texto de dois objetos no fluxo de saída, juntamente com qualquer espaçamento de guia pendente.Writes a formatted string that contains the text representation of two objects to the output stream, along with any pending tab spacing. Esse método usa a mesma semântica do método Format(String, Object, Object).This method uses the same semantics as the Format(String, Object, Object) method. (Herdado de HtmlTextWriter) |
| Write(String, Object, Object, Object) |
Grava uma cadeia de caracteres formatada no fluxo de texto usando a mesma semântica do método Format(String, Object, Object, Object).Writes a formatted string to the text stream, using the same semantics as the Format(String, Object, Object, Object) method. (Herdado de TextWriter) |
| Write(String, Object[]) |
Grava uma cadeia de caracteres formatada que contém a representação de texto de uma matriz de objeto para o fluxo de saída, juntamente com qualquer espaçamento de guia pendente.Writes a formatted string that contains the text representation of an object array to the output stream, along with any pending tab spacing. Esse método usa a mesma semântica do método Format(String, Object[]).This method uses the same semantics as the Format(String, Object[]) method. (Herdado de HtmlTextWriter) |
| Write(StringBuilder) |
Grava um construtor de cadeia de caracteres no fluxo de texto.Writes a string builder to the text stream. (Herdado de TextWriter) |
| Write(UInt32) |
Grava a representação de texto de um inteiro sem sinal de 4 bytes no fluxo de texto.Writes the text representation of a 4-byte unsigned integer to the text stream. (Herdado de TextWriter) |
| Write(UInt64) |
Grava a representação de texto de um inteiro sem sinal de 8 bytes no fluxo de texto.Writes the text representation of an 8-byte unsigned integer to the text stream. (Herdado de TextWriter) |
| WriteAsync(Char) |
Grava um caractere no fluxo de texto de forma assíncrona.Writes a character to the text stream asynchronously. (Herdado de TextWriter) |
| WriteAsync(Char[]) |
Grava uma matriz de caracteres no fluxo de texto de forma assíncrona.Writes a character array to the text stream asynchronously. (Herdado de TextWriter) |
| WriteAsync(Char[], Int32, Int32) |
Grava uma submatriz de caracteres no fluxo de texto de forma assíncrona.Writes a subarray of characters to the text stream asynchronously. (Herdado de TextWriter) |
| WriteAsync(ReadOnlyMemory<Char>, CancellationToken) |
Grava a região da memória do caractere no fluxo de texto de forma assíncrona.Asynchronously writes a character memory region to the text stream. (Herdado de TextWriter) |
| WriteAsync(String) |
Grava uma cadeia de caracteres no fluxo de texto de forma assíncrona.Writes a string to the text stream asynchronously. (Herdado de TextWriter) |
| WriteAsync(StringBuilder, CancellationToken) |
Grava de forma assíncrona um construtor de cadeia de caracteres no fluxo de texto.Asynchronously writes a string builder to the text stream. (Herdado de TextWriter) |
| WriteAttribute(String, String) |
Grava o atributo de marcação e o valor especificados no fluxo de saída.Writes the specified markup attribute and value to the output stream. (Herdado de HtmlTextWriter) |
| WriteAttribute(String, String, Boolean) |
Grava o atributo de marcação e o valor especificados no fluxo de saída e, se especificado, grava o valor codificado.Writes the specified markup attribute and value to the output stream, and, if specified, writes the value encoded. (Herdado de HtmlTextWriter) |
| WriteBeginTag(String) |
Grava qualquer espaçamento de tabulação e a marca de abertura do elemento de marcação especificado no fluxo de saída.Writes any tab spacing and the opening tag of the specified markup element to the output stream. (Herdado de HtmlTextWriter) |
| WriteBreak() |
Grava um elemento de marcação |
| WriteEncodedText(String) |
Codifica o texto especificado para o dispositivo solicitante e, em seguida, grava-o no fluxo de saída.Encodes the specified text for the requesting device, and then writes it to the output stream. (Herdado de HtmlTextWriter) |
| WriteEncodedUrl(String) |
Codifica a URL especificada e grava-a no fluxo de saída.Encodes the specified URL, and then writes it to the output stream. A URL pode incluir parâmetros.The URL might include parameters. (Herdado de HtmlTextWriter) |
| WriteEncodedUrlParameter(String) |
Codifica o parâmetro de URL especificado para o dispositivo solicitante e, em seguida, grava-o no fluxo de saída.Encodes the specified URL parameter for the requesting device, and then writes it to the output stream. (Herdado de HtmlTextWriter) |
| WriteEndTag(String) |
Grava qualquer espaçamento de tabulação e a marca de fechamento do elemento de marcação especificado.Writes any tab spacing and the closing tag of the specified markup element. (Herdado de HtmlTextWriter) |
| WriteFullBeginTag(String) |
Grava qualquer espaçamento de tabulação e a marca de abertura do elemento de marcação especificado no fluxo de saída.Writes any tab spacing and the opening tag of the specified markup element to the output stream. (Herdado de HtmlTextWriter) |
| WriteLine() |
Grava uma cadeia de caracteres de terminador de linha no fluxo de saída.Writes a line terminator string to the output stream. (Herdado de HtmlTextWriter) |
| WriteLine(Boolean) |
Grava qualquer espaçamento de guia pendente e a representação de texto de um valor booliano, seguidos por uma cadeia de caracteres de terminador de linha, no fluxo de saída.Writes any pending tab spacing and the text representation of a Boolean value, followed by a line terminator string, to the output stream. (Herdado de HtmlTextWriter) |
| WriteLine(Char) |
Grava qualquer espaçamento de guia pendente e um caractere Unicode, seguidos por uma cadeia de caracteres de terminador de linha, no fluxo de saída.Writes any pending tab spacing and a Unicode character, followed by a line terminator string, to the output stream. (Herdado de HtmlTextWriter) |
| WriteLine(Char[]) |
Grava qualquer espaçamento de guia pendente e uma matriz de caracteres Unicode, seguidos por uma cadeia de caracteres de terminador de linha, no fluxo de saída.Writes any pending tab spacing and an array of Unicode characters, followed by a line terminator string, to the output stream. (Herdado de HtmlTextWriter) |
| WriteLine(Char[], Int32, Int32) |
Grava qualquer espaçamento de guia pendente e uma submatriz de caracteres Unicode, seguidos por uma cadeia de caracteres de terminador de linha, no fluxo de saída.Writes any pending tab spacing and a subarray of Unicode characters, followed by a line terminator string, to the output stream. (Herdado de HtmlTextWriter) |
| WriteLine(Decimal) |
Grava a representação de texto de um valor decimal no fluxo de texto, seguida por um terminador de linha.Writes the text representation of a decimal value to the text stream, followed by a line terminator. (Herdado de TextWriter) |
| WriteLine(Double) |
Grava qualquer espaçamento de guia pendente e a representação de texto de um número de ponto flutuante de precisão dupla, seguidos por uma cadeia de caracteres de terminador de linha, no fluxo de saída.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. (Herdado de HtmlTextWriter) |
| WriteLine(Int32) |
Grava qualquer espaçamento de guia pendente e a representação de texto de um inteiro com sinal de 32 bytes, seguidos por uma cadeia de caracteres de terminador de linha, no fluxo de saída.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. (Herdado de HtmlTextWriter) |
| WriteLine(Int64) |
Grava qualquer espaçamento de guia pendente e a representação de texto de um inteiro com sinal de 64 bytes, seguidos por uma cadeia de caracteres de terminador de linha, no fluxo de saída.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. (Herdado de HtmlTextWriter) |
| WriteLine(Object) |
Grava qualquer espaçamento de guia pendente e a representação de texto de um objeto, seguidos por uma cadeia de caracteres de terminador de linha, no fluxo de saída.Writes any pending tab spacing and the text representation of an object, followed by a line terminator string, to the output stream. (Herdado de HtmlTextWriter) |
| WriteLine(ReadOnlySpan<Char>) |
Grava a representação de texto de um intervalo de caracteres no fluxo de texto, seguido por um terminador de linha.Writes the text representation of a character span to the text stream, followed by a line terminator. (Herdado de TextWriter) |
| WriteLine(Single) |
Grava qualquer espaçamento de guia pendente e a representação de texto de um número de ponto flutuante de precisão simples, seguidos por uma cadeia de caracteres de terminador de linha, no fluxo de saída.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. (Herdado de HtmlTextWriter) |
| WriteLine(String) |
Grava qualquer espaçamento de guia pendente e uma cadeia de caracteres de texto, seguidos por uma cadeia de caracteres de terminador de linha, no fluxo de saída.Writes any pending tab spacing and a text string, followed by a line terminator string, to the output stream. (Herdado de HtmlTextWriter) |
| WriteLine(String, Object) |
Grava qualquer espaçamento de guia pendente e uma cadeia de caracteres formatada contendo a representação de texto de um objeto, seguidos por uma cadeia de caracteres de terminador de linha, no fluxo de saída.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. (Herdado de HtmlTextWriter) |
| WriteLine(String, Object, Object) |
Grava qualquer espaçamento de guia pendente e uma cadeia de caracteres formatada contendo a representação de texto de dois objetos, seguidos por uma cadeia de caracteres de terminador de linha, no fluxo de saída.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. (Herdado de HtmlTextWriter) |
| WriteLine(String, Object, Object, Object) |
Grava uma cadeia de caracteres formatada e uma nova linha no fluxo de texto, usando a mesma semântica que Format(String, Object).Writes out a formatted string and a new line to the text stream, using the same semantics as Format(String, Object). (Herdado de TextWriter) |
| WriteLine(String, Object[]) |
Grava qualquer espaçamento de guia pendente e uma cadeia de caracteres formatada contendo a representação de texto de uma matriz de objetos, seguidos por uma cadeia de caracteres de terminador de linha, no fluxo de saída.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. (Herdado de HtmlTextWriter) |
| WriteLine(StringBuilder) |
Grava a representação de texto de um construtor de cadeia de caracteres no fluxo de texto, seguida por um terminador de linha.Writes the text representation of a string builder to the text stream, followed by a line terminator. (Herdado de TextWriter) |
| WriteLine(UInt32) |
Grava qualquer espaçamento de guia pendente e a representação de texto de um inteiro sem sinal de 4 bytes, seguidos por uma cadeia de caracteres de terminador de linha, no fluxo de saída.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. (Herdado de HtmlTextWriter) |
| WriteLine(UInt64) |
Grava a representação de texto de um inteiro sem sinal de 8 bytes no fluxo de texto, seguido por um terminador de linha.Writes the text representation of an 8-byte unsigned integer to the text stream, followed by a line terminator. (Herdado de TextWriter) |
| WriteLineAsync() |
Grava de forma assíncrona um terminador de linha no fluxo de texto.Asynchronously writes a line terminator to the text stream. (Herdado de TextWriter) |
| WriteLineAsync(Char) |
Grava de forma assíncrona um caractere no fluxo de texto, seguido por um terminador de linha.Asynchronously writes a character to the text stream, followed by a line terminator. (Herdado de TextWriter) |
| WriteLineAsync(Char[]) |
Grava de forma assíncrona uma matriz de caracteres no fluxo de texto, seguida por um terminador de linha no fluxo.Asynchronously writes an array of characters to the text stream, followed by a line terminator. (Herdado de TextWriter) |
| WriteLineAsync(Char[], Int32, Int32) |
Grava de forma assíncrona uma submatriz de caracteres no fluxo de texto, seguida por um terminador de linha no fluxo.Asynchronously writes a subarray of characters to the text stream, followed by a line terminator. (Herdado de TextWriter) |
| WriteLineAsync(ReadOnlyMemory<Char>, CancellationToken) |
Grava de forma assíncrona a representação de texto de uma região da memória do caractere no fluxo de texto, seguida por um terminador de linha.Asynchronously writes the text representation of a character memory region to the text stream, followed by a line terminator. (Herdado de TextWriter) |
| WriteLineAsync(String) |
Grava de forma assíncrona uma cadeia de caracteres no fluxo de texto, seguida por um terminador de linha.Asynchronously writes a string to the text stream, followed by a line terminator. (Herdado de TextWriter) |
| WriteLineAsync(StringBuilder, CancellationToken) |
Grava de forma assíncrona a representação de texto de um construtor de cadeia de caracteres no fluxo de texto, seguida por um terminador de linha.Asynchronously writes the text representation of a string builder to the text stream, followed by a line terminator. (Herdado de TextWriter) |
| WriteLineNoTabs(String) |
Grava uma cadeia de caracteres seguida por uma cadeia de caracteres de terminador de linha, no fluxo de saída.Writes a string, followed by a line terminator string, to the output stream. Este método ignora qualquer espaçamento de tabulação especificado.This method ignores any specified tab spacing. (Herdado de HtmlTextWriter) |
| WriteStyleAttribute(String, String) |
Grava o atributo de estilo especificado no fluxo de saída.Writes the specified style attribute to the output stream. (Herdado de HtmlTextWriter) |
| WriteStyleAttribute(String, String, Boolean) |
Grava o atributo de estilo e o valor especificados no fluxo de saída e, se especificado, codifica o valor.Writes the specified style attribute and value to the output stream, and encodes the value, if specified. (Herdado de HtmlTextWriter) |
| WriteUrlEncodedString(String, Boolean) |
Grava a cadeia de caracteres especificada, codificando-a de acordo com os requisitos de URL.Writes the specified string, encoding it according to URL requirements. (Herdado de HtmlTextWriter) |
Implantações explícitas de interface
| IDisposable.Dispose() |
Para obter uma descrição desse membro, confira Dispose().For a description of this member, see Dispose(). (Herdado de TextWriter) |