BookmarkState
Overview
BookmarkState is a class in Aspose.Words FOSS for Python.
Hands out monotonically increasing bookmark ids and pairs
starts/ends across paragraphs.
This class provides 5 methods for working with BookmarkState objects in Python programs.
Available methods include: __init__, close, drain_open, next_id, open.
All public members are accessible to any Python application after installing the Aspose.Words FOSS for Python package.
Methods
| Signature | Description |
|---|---|
__init__() | |
next_id() → int | |
open(name: str) → int | |
close(name: str) → int | None | Return the id paired with name’s open marker, or None |
when no start is currently open under that name. |
| drain_open() → list[tuple[str, int]] | Return the currently-open (name, id) pairs and clear them. |