This documentation is archived and is not being maintained.

HtmlTextWriter.WriteStyleAttribute Method (String, String)

Writes the specified style attribute to the output stream.

Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)

public virtual void WriteStyleAttribute (
	string name,
	string value
)
public void WriteStyleAttribute (
	String name, 
	String value
)
public function WriteStyleAttribute (
	name : String, 
	value : String
)
Not applicable.

Parameters

name

The style attribute to write to the output stream.

value

The value assigned to the style attribute.

The WriteStyleAttribute method writes the style attribute in the following form:

name = value ;

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0
Show: