BookmarkState
Overview
BookmarkState is a class in Aspose.Words FOSS for Python.
Hands out monotonically increasing bookmark ids and pairs
starts/ends across paragraphs.
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. |