Converts an Uri to FixedDocumentStreamSource.
Definition
Namespace:Telerik.Windows.Documents.Fixed
Assembly:Telerik.Windows.Controls.FixedDocumentViewers.dll
Syntax:
public abstract class FixedDocumentStreamSourceConverter : TypeConverter
Inheritance: objectTypeConverterFixedDocumentStreamSourceConverter
Derived Classes:
Inherited Members
Constructors
protected FixedDocumentStreamSourceConverter()
Methods
Returns whether the type converter can convert an object from the specified type to the type of this converter.
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
An object that provides a format context.
sourceTypeTypeThe type you want to convert from.
Returns:true if this converter can perform the conversion; otherwise, false.
Overrides:
Returns whether the type converter can convert an object to the specified type.
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
An object that provides a format context.
destinationTypeTypeThe type you want to convert to.
Returns:true if this converter can perform the conversion; otherwise, false.
Overrides:
Creates the fixed document stream source from URI.
public object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value, PdfImportSettings settings)
The context.
cultureCultureInfoThe culture.
valueobjectThe value.
settingsPdfImportSettingsThe settings.
Returns:Converts from the specified value to the intended conversion type of the converter.
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
An object that provides a format context.
cultureCultureInfoThe CultureInfo to use as the current culture.
valueobjectThe value to convert to the type of this converter.
Returns:The converted value.
Exceptions:ConvertFrom(ITypeDescriptorContext, CultureInfo, object) not implemented in base TypeConverter.
Overrides:
Creates the fixed document stream source from URI.
protected abstract FixedDocumentStreamSource CreateFixedDocumentStreamSourceFromUri(Uri uri, PdfImportSettings settings)
The URI.
settingsPdfImportSettingsThe settings.
Returns: