Click or drag to resize

OfficeDecoderIsValidFormat Method

Checks the stream to determine if the image can be read by the decoder that derives this class.

Namespace:  Atalasoft.Imaging.Codec.Office
Assembly:  Atalasoft.dotImage.Office (in Atalasoft.dotImage.Office.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public override bool IsValidFormat(
	Stream stream
)

Parameters

stream
Type: System.IOStream
A stream containing the encoded image data.

Return Value

Type: Boolean
True if the encoded image can be read by this decoder, otherwise false.
Exceptions
ExceptionCondition
ArgumentException

stream is null.

OfficeDecoderException

error decoding MS Office document.

See Also