The -gravity center option is ignored by the -resize option. Your command translates to this:
using (MagickImageCollection images = new MagickImageCollection("Source.gif")) { foreach (MagickImage image in images) { image.Resize(new MagickGeometry("240x320^")); } images.RePage(); images.Write("Output.gif"); }