StaticRange
StaticRange
概述
StaticRange 是 Aspose.Html FOSS 中用于 Python 的类。继承自:AbstractRange。
不可变的边界点范围,从 init 对象初始化。
此类提供 2 个方法,用于在 Python 程序中处理 StaticRange 对象。可用的方法包括:__init__、to_string。在安装了 Aspose.Html FOSS for Python 包之后,所有公共成员对任何 Python 应用程序均可访问。属性:collapsed、end_container、end_offset、start_container、start_offset。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
start_container | "Node" | 读取 | 包含范围起始位置的节点。 |
start_offset | int | 读取 | 在 start_container 中的偏移量。 |
end_container | "Node" | 读取 | 包含范围结束位置的节点。 |
end_offset | int | 读取 | 在 end_container 中的偏移量。 |
collapsed | bool | 读取 | 如果起始和结束边界点相同,则为 True。 |
方法
| 签名 | 描述 |
|---|---|
__init__(init: dict) | 从端点初始化字段创建不可变范围。 |
to_string() → str | 返回此静态范围内的文本内容。 |