GetComputedStyle

GetComputedStyle(Element)

This method is used to get the computed style as it is defined in CSS2.

public ICSSStyleDeclaration GetComputedStyle(Element element)
Parameter Type Description
element Element The element whose style is to be computed. This parameter cannot be null.

Return Value

The computed style

See Also


GetComputedStyle(Element, string)

This method is used to get the computed style as it is defined in CSS2.

public ICSSStyleDeclaration GetComputedStyle(Element element, string pseudoElement)
Parameter Type Description
element Element The element whose style is to be computed. This parameter cannot be null.
pseudoElement String The pseudo element.

Return Value

The computed style

See Also