ImageTypeOptions(String, Boolean, ImageTypeSource)
Constructor
Description:
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.
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.
Parameters
Parameter | Type | Description |
---|---|---|
path | String | The file path that specifies the image to be used. |
useRelativePath | Boolean | True if ImageType should use a relative path, false otherwise. |
sourceType | ImageTypeSource | Specifies the image type source. Valid values are 'Import' and 'Link'. |
Return Value
Exceptions
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 |