textLayoutFragment(for:)
Returns the text layout fragment from the document at the specified location.
Declaration
func textLayoutFragment(for location: any NSTextLocation) -> NSTextLayoutFragment?Parameters
- location:
The starting location.
Returns the text layout fragment from the document at the specified location.
func textLayoutFragment(for location: any NSTextLocation) -> NSTextLayoutFragment?The starting location.