ComputedStyleDeclaration
Overview
ComputedStyleDeclaration is a class in Aspose.Html FOSS for Python.
Read-only resolved style declarations for an element.
This class provides 3 methods for working with ComputedStyleDeclaration objects in Python programs.
Available methods include: __init__, get_property_value, item.
All public members are accessible to any Python application after installing the Aspose.Html FOSS for Python package.
Properties: length.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
length | int | Read | Number of resolved properties. |
Methods
| Signature | Description |
|---|---|
__init__(properties: dict[str, str]) | Calls init(properties) on this ComputedStyleDeclaration instance. |
item(index: int) → str | None | Return property name at index or None when out-of-range. |
get_property_value(name: str) → str | Return resolved property value or '' when absent. |