Class
TextBasedWorkbookFormatProviderBase

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:

cs-api-definition
public abstract class TextBasedWorkbookFormatProviderBase : WorkbookFormatProviderBase, ITextBasedWorkbookFormatProvider, IWorkbookFormatProvider

Inheritance: objectWorkbookFormatProviderBaseTextBasedWorkbookFormatProviderBase

Derived Classes: DelimitedValuesFormatProviderBase

Implements: ITextBasedWorkbookFormatProviderIWorkbookFormatProvider

Inherited Members WorkbookFormatProviderBase.Import(Stream)WorkbookFormatProviderBase.Import(Stream, TimeSpan?)WorkbookFormatProviderBase.ImportOverride(Stream)WorkbookFormatProviderBase.ImportOverride(Stream, CancellationToken)WorkbookFormatProviderBase.Export(Workbook, Stream)WorkbookFormatProviderBase.Export(Workbook, Stream, TimeSpan?)WorkbookFormatProviderBase.ExportOverride(Workbook, Stream)WorkbookFormatProviderBase.ExportOverride(Workbook, Stream, CancellationToken)WorkbookFormatProviderBase.NameWorkbookFormatProviderBase.FilesDescriptionWorkbookFormatProviderBase.SupportedExtensionsWorkbookFormatProviderBase.CanImportWorkbookFormatProviderBase.CanExport

Constructors

TextBasedWorkbookFormatProviderBase()

Initializes a new instance of the TextBasedWorkbookFormatProviderBase class.

Declaration

cs-api-definition
protected TextBasedWorkbookFormatProviderBase()

Methods

Export(Workbook)

Exports the specified workbook to a text string in the provider's format and returns the serialized result.

Declaration

cs-api-definition
[Obsolete("This method is obsolete. Please use Export(Workbook workbook, TimeSpan? timeout) instead.")]
public string Export(Workbook workbook)

Parameters

workbook

Workbook

The workbook.

Returns

string

The result string.

Implements ITextBasedWorkbookFormatProvider.Export(Workbook)

Export(Workbook, TimeSpan?)

Exports the specified workbook to a text string with an optional timeout in the provider's format and returns the serialized result.

Declaration

cs-api-definition
public string Export(Workbook workbook, TimeSpan? timeout)

Parameters

workbook

Workbook

The workbook.

timeout

TimeSpan?

The timeout after which the operation will be cancelled.

Returns

string

The result string.

Exceptions

ArgumentOutOfRangeException

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 ITextBasedWorkbookFormatProvider.Export(Workbook, TimeSpan?)

Import(string)

Imports a workbook from the specified text string and returns the deserialized workbook instance.

Declaration

cs-api-definition
[Obsolete("This method is obsolete. Please use Import(string input, TimeSpan? timeout) instead.")]
public Workbook Import(string input)

Parameters

input

string

The input.

Returns

Workbook

The result workbook.

Implements ITextBasedWorkbookFormatProvider.Import(string)

Import(string, TimeSpan?)

Imports a workbook from the specified text string with an optional timeout and returns the deserialized workbook instance.

Declaration

cs-api-definition
public Workbook Import(string input, TimeSpan? timeout)

Parameters

input

string

The input.

timeout

TimeSpan?

The timeout after which the operation will be cancelled.

Returns

Workbook

The result workbook.

Exceptions

ArgumentOutOfRangeException

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 ITextBasedWorkbookFormatProvider.Import(string, TimeSpan?)