FromExtension
Leave feedback
On this page
Maps the file extension to the file type.
public static FileType FromExtension(string extension)
| Parameter | Type | Description |
|---|---|---|
| extension | String | The file extension (including the period “.”). |
When the file type is supported returns it, otherwise returns the default Unknown file type.
| exception | condition |
|---|---|
| ArgumentException | Thrown when extension is null or empty string. |
- class FileType
- namespace GroupDocs.Watermark.Common
- assembly GroupDocs.Watermark
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.