Interface IPreviewType
Describes a type of preview that is available for a file type
through its file type definition. This interface is further specialized
into IControl
Namespace: Sdl.FileTypeSupport.Framework.IntegrationApi
Assembly: Sdl.FileTypeSupport.Framework.Core.dll
Syntax
public interface IPreviewType
Remarks
The preview type determines which preview file generators should be used for generating the preview files.
Different generator types can be defined for source and target files. However,
very often the same generator is used for both. By setting the generator id
to Default (which is the equivalent to default(GeneratorId)
or new GenertorId(null)
) the default generator type defined for the file
type will be used. (This is the default value. It will be used in case it is not explicitly set.)
Generators can be either of the type IFile
Properties
SourceGeneratorId
Identifier for the generator that can generate the source language file to be displayed using the preview.
Declaration
GeneratorId? SourceGeneratorId { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Generator |
Remarks
If null
, the Target
TargetGeneratorId
Identifier for the generator that can generate the target language file to be displayed in the preview.
Declaration
GeneratorId TargetGeneratorId { get; set; }
Property Value
Type | Description |
---|---|
Generator |
Remarks
To use the default generator associated with the file type, set this
value to GeneratorId.Default
.