Class FixedDocumentStreamSourceConverter
Converts an System.Uri to FixedDocumentStreamSource.
Inheritance
Namespace: Telerik.Windows.Documents.Fixed
Assembly: Telerik.Windows.Controls.FixedDocumentViewers.dll
Syntax
public abstract class FixedDocumentStreamSourceConverter : TypeConverter
Constructors
FixedDocumentStreamSourceConverter()
Declaration
protected FixedDocumentStreamSourceConverter()
Methods
CanConvertFrom(ITypeDescriptorContext, Type)
Returns whether the type converter can convert an object from the specified type to the type of this converter.
Declaration
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Parameters
System.ComponentModel.ITypeDescriptorContext
context
An object that provides a format context. |
System.Type
sourceType
The type you want to convert from. |
Returns
System.Boolean
true if this converter can perform the conversion; otherwise, false. |
CanConvertTo(ITypeDescriptorContext, Type)
Returns whether the type converter can convert an object to the specified type.
Declaration
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Parameters
System.ComponentModel.ITypeDescriptorContext
context
An object that provides a format context. |
System.Type
destinationType
The type you want to convert to. |
Returns
System.Boolean
true if this converter can perform the conversion; otherwise, false. |
ConvertFrom(ITypeDescriptorContext, CultureInfo, Object)
Converts from the specified value to the intended conversion type of the converter.
Declaration
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
System.ComponentModel.ITypeDescriptorContext
context
An object that provides a format context. |
System.Globalization.CultureInfo
culture
The System.Globalization.CultureInfo to use as the current culture. |
System.Object
value
The value to convert to the type of this converter. |
Returns
System.Object
The converted value. |
Exceptions
System.NotImplementedException
System.ComponentModel.TypeConverter.ConvertFrom(System.ComponentModel.ITypeDescriptorContext,System.Globalization.CultureInfo,System.Object) not implemented in base System.ComponentModel.TypeConverter. |
ConvertFrom(ITypeDescriptorContext, CultureInfo, Object, PdfImportSettings)
Creates the fixed document stream source from URI.
Declaration
public object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value, PdfImportSettings settings)
Parameters
System.ComponentModel.ITypeDescriptorContext
context
The context. |
System.Globalization.CultureInfo
culture
The culture. |
System.Object
value
The value. |
Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Import.PdfImportSettings
settings
The settings. |
Returns
System.Object
|
CreateFixedDocumentStreamSourceFromUri(Uri, PdfImportSettings)
Creates the fixed document stream source from URI.
Declaration
protected abstract FixedDocumentStreamSource CreateFixedDocumentStreamSourceFromUri(Uri uri, PdfImportSettings settings)
Parameters
System.Uri
uri
The URI. |
Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Import.PdfImportSettings
settings
The settings. |
Returns
FixedDocumentStreamSource
|