This is an N2 and N3 pattern.
ことに
How it's built5
Examples2
to my surprise/regret/delight — marks what follows as unexpected or notable
面白いことに、二人とも同じ日に同じ本を買っていた。
omoshiroi koto ni, futari tomo onaji hi ni onaji hon o katte ita.
The two of them, interestingly enough, had bought the same book on the same day. neutral
意外なことに、あいつ、ちゃんと約束守ったんだよ。
igai na koto ni, aitsu, chanto yakusoku mamotta n da yo.
Surprisingly, that guy actually kept his promise! casual
No same-meaning pattern.
No opposite.