StaticRange

Overview

StaticRange is a class in Aspose.Html FOSS for Python. Inherits from: AbstractRange.

Immutable boundary-point range initialized from an init object.

This class provides 2 methods for working with StaticRange objects in Python programs. Available methods include: __init__, to_string. All public members are accessible to any Python application after installing the Aspose.Html FOSS for Python package. Properties: collapsed, end_container, end_offset, start_container, start_offset.

Properties

NameTypeAccessDescription
start_container"Node"ReadThe node that contains the start of the range.
start_offsetintReadThe offset within start_container.
end_container"Node"ReadThe node that contains the end of the range.
end_offsetintReadThe offset within end_container.
collapsedboolReadTrue if the start and end boundary points are identical.

Methods

SignatureDescription
__init__(init: dict)Create an immutable range from endpoint init fields.
to_string()strReturn text content within this static range.

See Also