## GetComputedStyle(*[Element](../../../aspose.html.dom/element/)*) {#getcomputedstyle}

This method is used to get the computed style as it is defined in CSS2.

```csharp
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

* interface [ICSSStyleDeclaration](../../icssstyledeclaration/)
* class [Element](../../../aspose.html.dom/element/)
* interface [IViewCSS](../)
* namespace [Aspose.Html.Dom.Css](../../../aspose.html.dom.css/)
* assembly [Aspose.HTML](../../../)

---

## GetComputedStyle(*[Element](../../../aspose.html.dom/element/), string*) {#getcomputedstyle_1}

This method is used to get the computed style as it is defined in CSS2.

```csharp
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

* interface [ICSSStyleDeclaration](../../icssstyledeclaration/)
* class [Element](../../../aspose.html.dom/element/)
* interface [IViewCSS](../)
* namespace [Aspose.Html.Dom.Css](../../../aspose.html.dom.css/)
* assembly [Aspose.HTML](../../../)
