Image |
Constructs a new instance of the ImageTypeOptions object.
The provided string path must specify a local file. The path can be absolute or relative to the project's location.
This constructor saves an additional setting that indicates whether the imagetype will be a link or an import.
public ImageTypeOptions( string path, bool useRelativePath, ImageTypeSource sourceType )
Exception | Condition |
---|---|
ArgumentException | The ImageType source is not correct. Only Link or Import values are allowed. |
ArgumentNullException | A non-optional argument was null |
ArgumentOutOfRangeException | A value passed for an enumeration argument is not a member of that enumeration |