HtmlTextWriter.WriteStyleAttribute Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Escreve um atributo de estilo e o seu valor no fluxo de saída.
Sobrecargas
| Name | Description |
|---|---|
| WriteStyleAttribute(String, String, Boolean) |
Escreve o atributo de estilo especificado e o valor no fluxo de saída, e codifica o valor, se especificado. |
| WriteStyleAttribute(String, String) |
Escreve o atributo de estilo especificado no fluxo de saída. |
WriteStyleAttribute(String, String, Boolean)
Escreve o atributo de estilo especificado e o valor no fluxo de saída, e codifica o valor, se especificado.
public:
virtual void WriteStyleAttribute(System::String ^ name, System::String ^ value, bool fEncode);
public virtual void WriteStyleAttribute(string name, string value, bool fEncode);
abstract member WriteStyleAttribute : string * string * bool -> unit
override this.WriteStyleAttribute : string * string * bool -> unit
Public Overridable Sub WriteStyleAttribute (name As String, value As String, fEncode As Boolean)
Parâmetros
- name
- String
O atributo style para escrever no fluxo de saída.
- value
- String
O valor atribuído ao atributo de estilo.
- fEncode
- Boolean
true codificar o atributo estilo e o seu valor atribuído; caso contrário, false.
Observações
O WriteStyleAttribute método escreve o atributo estilo na seguinte forma:
name
=
value
;
O HtmlAttributeEncode método é usado para codificar o value parâmetro.
Ver também
Aplica-se a
WriteStyleAttribute(String, String)
Escreve o atributo de estilo especificado no fluxo de saída.
public:
virtual void WriteStyleAttribute(System::String ^ name, System::String ^ value);
public virtual void WriteStyleAttribute(string name, string value);
abstract member WriteStyleAttribute : string * string -> unit
override this.WriteStyleAttribute : string * string -> unit
Public Overridable Sub WriteStyleAttribute (name As String, value As String)
Parâmetros
- name
- String
O atributo style para escrever no fluxo de saída.
- value
- String
O valor atribuído ao atributo de estilo.
Observações
O WriteStyleAttribute método escreve o atributo estilo na seguinte forma:
name
=
value
;