[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ImageSource.Type

Type Property

Type

Gets the type of the image.

Returns the ImageType that was assigned when this image source was created.

Declaration
public ImageType Type { get; }
Public ReadOnly Property Type As ImageType
Examples
byte[] imageBytes = new byte[] { (byte)137, 80, 78, 71, 13, 10, 26, 10 };
ImageSource imageSource = new ImageSource(
    new MemoryStream(imageBytes),
    ImageType.PNG);
ImageType type = imageSource.Type;