TextAnchorInputRange
TextAnchorInputRange:
A paragraph-local text range used to create a text comment thread anchor.
Remarks
Section titled “Remarks”Creation inputs use a TextView because callers are applying an
anchor to a specific text surface. Provide range to anchor a substring.
Omit range to anchor the whole text view.
If a supplied input range cannot produce valid anchor text, comment thread
creation returns undefined and leaves the document unchanged.
Properties
Section titled “Properties”textView
Section titled “textView”textView:
TextView
Text surface that receives the comment thread anchor.
range?
Section titled “range?”
optionalrange:Range
Optional paragraph-local range within textView. If omitted, the whole
text view is used as the anchor.