Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetStyleAttribute Method

HtmlElement.GetStyleAttribute Method

Silverlight

Retrieves the specified style attribute for the current HTML element.

Namespace:  System.Windows.Browser
Assembly:  System.Windows.Browser (in System.Windows.Browser.dll)

public string GetStyleAttribute(
	string name
)

Parameters

name
Type: System.String
The name of the style attribute to retrieve.

Return Value

Type: System.String
The style attribute for the current HTML element.

ExceptionCondition
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.

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.

Community Additions

ADD
Show:
© 2015 Microsoft