This topic has not yet been rated - Rate this topic

HtmlElement.SetStyleAttribute Method

Silverlight

Sets the value of a style attribute on the current HTML element.

Namespace:  System.Windows.Browser
Assembly:  System.Windows.Browser (in System.Windows.Browser.dll)
public void SetStyleAttribute(
	string name,
	string value
)

Parameters

name
Type: System.String
The style attribute whose value will be set.
value
Type: System.String
The style attribute's new value.
Exception Condition
ArgumentException

name is an empty string.

ArgumentNullException

name is null.

If the style attribute is not recognized, this method's behavior is determined by the browser.

You can pass null for the value parameter.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ