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)
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. |
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.