ComputedStyleDeclaration

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

NameTypeAccessDescription
lengthintReadNumber of resolved properties.

Methods

SignatureDescription
__init__(properties: dict[str, str])Calls init(properties) on this ComputedStyleDeclaration instance.
item(index: int)str | NoneReturn property name at index or None when out-of-range.
get_property_value(name: str)strReturn resolved property value or '' when absent.

See Also