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_offsetint读取在 start_container 中的偏移量。
end_container"Node"读取包含范围结束位置的节点。
end_offsetint读取在 end_container 中的偏移量。
collapsedbool读取如果起始和结束边界点相同,则为 True。

方法

签名描述
__init__(init: dict)从端点初始化字段创建不可变范围。
to_string() → str返回此静态范围内的文本内容。

另请参阅

 中文