ImageTypeOptions.IsValid
Method
Description:
If true the ImageTypeOptions can be used to create or reload an ImageType.
If true the ImageTypeOptions can be used to create or reload an ImageType.
Remarks:
This method returns true if all the following checks are true:
This method returns true if all the following checks are true:
- The Path points to a file that is a supported image file type.
- The Path points to a file that is not encrypted, which can happen for PDF files.
- The Path points to a file that contains the specified PageNumber.
- Only imported images are allowed in family documents.
Parameters
| Parameter | Type | Description |
|---|---|---|
| document | Document | The document. |
Return Value
| Type | Description |
|---|---|
| Boolean | Returns True if the options can be used to create or reload an ImageType. False otherwise. |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | A non-optional argument was null |