Skip to content
Document Authoring DA  API Docs v1.14.1
npmGitHub

TextAnchorRange

TextAnchorRange:

A paragraph-local text range for an inferred text comment thread anchor.

Query results use TextAnchorRange because the SDK is describing where an existing comment thread is currently attached. Each range contains the paragraph, the paragraph-local range, and the current text at that anchor.

This is different from TextAnchorInputRange, which uses a TextView because callers are applying a new anchor to text.

paragraph: Paragraph

Paragraph that contains the anchored text.


range: Range

Paragraph-local range covered by this anchor.


text: string

Current plain text covered by this anchor range.