LeaderAttachment Type Alias

LeaderAttachment = { curveIndex: number, fraction: number, mode: "KeyPoint" } | { mode: "TextPoint", position: LeaderTextPointOptions } | { mode: "Nearest" }

Describes how to attach a TextAnnotationLeader to the frame around a TextBlock. Leader can be attached using one of the three modes:

  • KeyPoint: attach to a point on the frame specified by the given curveIndex and fractional position.
  • TextPoint: attach to a point that is projected on to the frame from the point on a particular line of text specified by LeaderTextPointOptions.
  • Nearest: attach to the point on frame that is nearest to startPoint.

Defined in

Last Updated: 29 July, 2025