この上ない (pre-noun modifier)
この上なく (adverbial)
ことこの上ない (after adjectives)
The expressions この上ない and ことこの上ない mean "nothing could be more…" or "the utmost; the greatest." They emphasize that something has reached the highest possible degree – there is nothing beyond it. The literal sense is "there is nothing above this."
この上ない directly modifies a noun, functioning like an adjective meaning "the greatest" or "supreme."
When modifying a verb or adjective, the adverbial form この上なく is used.
The pattern Adjective + ことこの上ない is a formal and literary way to say "extremely" or "nothing could be more…" It attaches to the dictionary form of い-adjectives (dropping い and adding いことこの上ない) or な-adjectives (with な replaced by なことこの上ない).