Class FileTypeOptions
- Namespace
- PaintDotNet
- Assembly
- PaintDotNet.Data.dll
public sealed record FileTypeOptions : PluginOptions, IEquatable<PluginOptions>, IEquatable<FileTypeOptions>
- Inheritance
-
FileTypeOptions
- Implements
- Inherited Members
Constructors
Properties
- DefaultSaveExtension
Gets the default extension for saving files, which is the first extension in the SaveExtensions list, or null if the FileType does not support saving (the SupportsSaving property will be false).
- LoadExtensions
Gets or sets the list of file extensions that the FileType can save. These should be prefixed with a dot, e.g. { ".xyz", ".ywx", ".wyx" }
- SaveExtensions
Gets or sets the list of file extensions that the FileType can save. These should be prefixed with a dot, e.g. { ".xyz", ".ywx", ".wyx" }
- SupportsCancellation
If true, then the Stream and/or ProgressEventHandler may throw an OperationCanceledException so as to cancel the save/load operation. This is usually encountered when the user is changing options in the Save Configuration dialog.
- SupportsLayers
Indicates whether the FileType supports layers. This affects whether the image is flattened before being sent to the FileType's Save() method.
- SupportsLoading
Gets a flag indicating whether the FileType can load files. This will be true if the LoadExtensions property is non-empty.
- SupportsSaving
Gets a flag indicating whether the FileType can save files. This will be true if the SaveExtensions property is non-empty.
Methods
- CanLoadExtension(string)
Gets a flag indicating whether the FileType can load a file with the given file extension.
- CanSaveExtension(string)
Gets a flag indicating whether the FileType can save a file with the given file extension.