Paragraph range
ParagraphRange
¶
Bases: _IndexRange
A paragraph span of a [TextDocument][].
Created via TextDocument.paragraph_range(paragraph_index_start,
signed_paragraph_index_end). Paragraph character boundaries include
each paragraph's trailing \r; the final boundary is clamped to
the visible text length, so a trailing empty paragraph reports a
zero-span range.
See: https://ae-scripting.docsforadobe.dev/text/paragraphrange/
Attributes¶
is_range_valid
¶
is_range_valid: bool
True while the range lies within the document bounds. Read-only.
Functions¶
character_range
¶
character_range() -> CharacterRange
A [CharacterRange][] fixed to the current character bounds.
The returned range holds resolved indices and does not follow later changes to this range's paragraphs or lines.