Interface NSTextContentStorageDelegate

    • Method Detail

      • textContentStorageTextParagraphWithRange

        @Nullable
        default @Nullable NSTextParagraph textContentStorageTextParagraphWithRange​(@NotNull
                                                                                   @NotNull NSTextContentStorage textContentStorage,
                                                                                   NSRange range)
        Returns a custom NSTextParagraph for range in NSTextContentStorage.attributedString. When non-nil, textContentStorage uses the text paragraph instead of creating the standard NSTextParagraph with the attributed substring in range. The attributed string for a custom text paragraph must have range.length.