ClassTextBasedFormatProviderBase<T>
Base for text-based format providers that import and export documents from/to strings, useful when handling document text (such as PDF-derived content).
Definition
Namespace:Telerik.Windows.Documents.Common.FormatProviders
Assembly:Telerik.Windows.Documents.Core.dll
Type Parameters:
T
The type of the T.
Syntax:
public abstract class TextBasedFormatProviderBase<T> : FormatProviderBase<T>, IFormatProvider<T>, ITextBasedFormatProvider<T>
Inheritance: objectFormatProviderBase<T>TextBasedFormatProviderBase<T>
Derived Classes:
Implements:
Inherited Members
Constructors
TextBasedFormatProviderBase()
Declaration
protected TextBasedFormatProviderBase()
Methods
Export(T)
Exports the document to a text string representation.
Declaration
[Obsolete("This method is obsolete. Please use Export(T document, TimeSpan? timeout) instead.")]
public string Export(T document)
Parameters
document
T
The document.
Returns
The result string.
Implements
Export(T, TimeSpan?)
Exports the document to a text string with an optional timeout.
Declaration
public string Export(T document, TimeSpan? timeout)
Parameters
document
T
The document.
timeout
The timeout after which the operation will be cancelled.
Returns
The result string.
Exceptions
The exception that is thrown when timeout is less than -1 or greater than Int32.MaxValue. Note that this upper bound is more restrictive than TimeSpan.MaxValue.
Implements
Import(string)
Imports a document from a text string and returns the parsed document instance.
Declaration
[Obsolete("This method is obsolete. Please use Import(string input, TimeSpan? timeout) instead.")]
public T Import(string input)
Parameters
input
The input.
Returns
T
The result document.
Implements
Import(string, TimeSpan?)
Imports a document from a text string with an optional timeout and returns the parsed document.
Declaration
public T Import(string input, TimeSpan? timeout)
Parameters
input
The input.
timeout
The timeout after which the operation will be cancelled.
Returns
T
The result document.
Exceptions
The exception that is thrown when timeout is less than -1 or greater than Int32.MaxValue. Note that this upper bound is more restrictive than TimeSpan.MaxValue.
Implements