Answer
No, Ian Somerhalder has never appeared in a Marvel or DC movie. Although he has appeared in a number of other films and television shows, he has never appeared in any of the superhero movies from either of these two major comic book publishers. Somerhalder is best known for his role as Damon Salvatore on the CW television series The Vampire Diaries.