Contents

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.

Return Value

An NSTextLayoutFragment.

See Also

Causing layout generation