public static ImagePartType Convert(XLPictureType type) { switch (type) { case XLPictureType.Bmp: return ImagePartType.Bmp; case XLPictureType.Gif: return ImagePartType.Gif; case XLPictureType.Png: return ImagePartType.Png; case XLPictureType.Tiff: return ImagePartType.Tiff; case XLPictureType.Jpeg: return ImagePartType.Jpeg; default: throw new ArgumentException("not-supported type: " + type.ToString()); } }
public static ImagePartType Convert(XLPictureType type) { switch (type) { case XLPictureType.Bmp: return(ImagePartType.Bmp); case XLPictureType.Gif: return(ImagePartType.Gif); case XLPictureType.Png: return(ImagePartType.Png); case XLPictureType.Tiff: return(ImagePartType.Tiff); case XLPictureType.Jpeg: return(ImagePartType.Jpeg); default: throw new ArgumentException("not-supported type: " + type.ToString()); } }