Table of Contents

Property MetadataForSaveOptions

Namespace
PaintDotNet.FileTypes
Assembly
PaintDotNet.FileTypes.dll

MetadataForSaveOptions

A metadata container that can be used by OnCreateSaveOptionsForDocument(ICreateSaveOptionsForDocumentContext) to create a IFileTypeSaveOptions that is customized for the document returned by Load(Stream).

IFileTypePropertyBag MetadataForSaveOptions { get; }

Property Value

IFileTypePropertyBag

Remarks

This is generally used to store information about the loaded file that may be useful when saving the file back out, such as the original file format version, or other metadata that should not be preserved in the document itself. An example of where this is used is in the DDS FileType, which stores the DXT format that the original file was stored in so that it can be used to customize the default save options that the user is presented with when saving the file. This data is discarded on the next successful save of this document with this FileType.