Base class for text-based workbook format providers that offer string-based import and export methods in addition to stream-based operations.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.FormatProviders
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public abstract class TextBasedWorkbookFormatProviderBase : WorkbookFormatProviderBase, ITextBasedWorkbookFormatProvider, IWorkbookFormatProvider
Inheritance: objectWorkbookFormatProviderBaseTextBasedWorkbookFormatProviderBase
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the TextBasedWorkbookFormatProviderBase class.
protected TextBasedWorkbookFormatProviderBase()
Methods
Exports the specified workbook to a text string with an optional timeout in the provider's format and returns the serialized result.
public string Export(Workbook workbook, TimeSpan? timeout)
The workbook.
timeoutTimeSpan?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:
Imports a workbook from the specified text string with an optional timeout and returns the deserialized workbook instance.
public Workbook Import(string input, TimeSpan? timeout)
The input.
timeoutTimeSpan?The timeout after which the operation will be cancelled.
Returns:The result workbook.
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: