page_index property

PageLayoutCallbackArgs.page_index property

Gets 0-based index of the page in the document this event relates to. Returns negative value if there is no associated page, or if page was removed during reflow.

@property
def page_index(self) -> int:
    ...

See Also