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
| Name | Type | Access | Description |
|---|---|---|---|
start_container | "Node" | Read | The node that contains the start of the range. |
start_offset | int | Read | The offset within start_container. |
end_container | "Node" | Read | The node that contains the end of the range. |
end_offset | int | Read | The offset within end_container. |
collapsed | bool | Read | True if the start and end boundary points are identical. |
Methods
| Signature | Description |
|---|---|
__init__(init: dict) | Create an immutable range from endpoint init fields. |
to_string() → str | Return text content within this static range. |