Click or drag to resize
IPreviewSetsFactory Interface
Interface used for instantiating a set of preview types available for a specific file.

Namespace: Sdl.FileTypeSupport.Framework.IntegrationApi
Assembly: Sdl.FileTypeSupport.Framework.Core (in Sdl.FileTypeSupport.Framework.Core.dll) Version: 1.0.0.0 (1.0.2343.0)
Syntax
public interface IPreviewSetsFactory : IFileTypeDefinitionAware

The IPreviewSetsFactory type exposes the following members.

Methods
  NameDescription
Public methodCreatePreviewSet
Provides access to the creation of a new preview set.
Public methodCreatePreviewTypeT
Creates a preview type of type T. T can either be an IApplicationPreviewType or an IControlPreviewType.
Public methodGetPreviewSets
Gets the set of previews that can be used with the specified file.
Top
Properties
  NameDescription
Public propertyFileTypeDefinition
The framework sets this property for components that are instantiated from a file type definition.
(Inherited from IFileTypeDefinitionAware.)
Public propertyIsFileAgnostic
Returns true if the set of previews is the same for all files that the factory applies to, in which case passing null to GetPreviewSets(IFileProperties) will yield all previews that are specifically available for this document type.
Top
Remarks

Normally accessed via BuildPreviewSetsFactory.

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 IsFileAgnostic property to determine if this is the case.

See Also
Community
Edit
Be the first to Edit the community content of this topic.
Comments