Interface IPreviewSetsFactory
Interface used for instantiating a set of preview types available for a specific file.
Inherited Members
Namespace: Sdl.FileTypeSupport.Framework.IntegrationApi
Assembly: Sdl.FileTypeSupport.Framework.Core.dll
Syntax
public interface IPreviewSetsFactory : IFileTypeDefinitionAware
Remarks
Normally accessed via Build
The set of available preview types for a file type sometimes depends on
the actual file itself (e.g. for TTX where the underlying file
format can vary significantly). However, for most file formats
the set is the same for all document instances. You can check the
Is
Properties
IsFileAgnostic
Returns true
if the set of previews is the same for
all files that the factory applies to, in which case passing
null
to Get
Declaration
bool IsFileAgnostic { get; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
Normally accessed via Build
The set of available preview types for a file type sometimes depends on
the actual file itself (e.g. for TTX where the underlying file
format can vary significantly). However, for most file formats
the set is the same for all document instances. You can check the
Is
Methods
CreatePreviewSet()
Provides access to the creation of a new preview set.
Declaration
IPreviewSet CreatePreviewSet()
Returns
Type | Description |
---|---|
IPreview |
Remarks
Normally accessed via Build
The set of available preview types for a file type sometimes depends on
the actual file itself (e.g. for TTX where the underlying file
format can vary significantly). However, for most file formats
the set is the same for all document instances. You can check the
Is
CreatePreviewType<T>()
Creates a preview type of type T. T can either be an IApplication
Declaration
IPreviewType CreatePreviewType<T>()
Returns
Type | Description |
---|---|
IPreview |
Type Parameters
Name | Description |
---|---|
T | The type of preview type to create. |
Remarks
Normally accessed via Build
The set of available preview types for a file type sometimes depends on
the actual file itself (e.g. for TTX where the underlying file
format can vary significantly). However, for most file formats
the set is the same for all document instances. You can check the
Is
GetPreviewSets(IFileProperties)
Gets the set of previews that can be used with the specified file.
Declaration
IPreviewSets GetPreviewSets(IFileProperties fileProperties)
Parameters
Type | Name | Description |
---|---|---|
IFile |
fileProperties | Properties of the file instance
for which previews should be specialized, or |
Returns
Type | Description |
---|---|
IPreview |
The preview sets available from this factory, or |
Remarks
The file properties are used to determine available previews for file types like TTX, for which the previews depend on the underlying file format.
For most file formats, the preview sets do not depend on the file properties.