ClassXlsxFormatProvider
Imports and exports workbooks in XLSX (Office Open XML) format, supporting full-fidelity roundtrip of spreadsheet data.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.FormatProviders.OpenXml.Xlsx
Assembly:Telerik.Windows.Documents.Spreadsheet.FormatProviders.OpenXml.dll
Syntax:
public class XlsxFormatProvider : BinaryWorkbookFormatProviderBase, IBinaryWorkbookFormatProvider, IWorkbookFormatProvider
Inheritance: objectWorkbookFormatProviderBaseBinaryWorkbookFormatProviderBaseXlsxFormatProvider
Implements:
Inherited Members
Constructors
XlsxFormatProvider()
Initializes a new instance of the XlsxFormatProvider class.
Declaration
public XlsxFormatProvider()
Properties
CanExport
Indicates that this provider supports exporting workbooks to XLSX format.
Declaration
public override bool CanExport { get; }
Property Value
The value indicating whether can export.
Overrides
CanImport
Indicates that this provider supports importing XLSX files into workbooks.
Declaration
public override bool CanImport { get; }
Property Value
The value indicating whether can import.
Overrides
FilesDescription
Describes the file type as "Excel Workbook" for display in UI contexts.
Declaration
public override string FilesDescription { get; }
Property Value
The files description.
Overrides
Name
Identifies this format provider as "XlsxFormatProvider" for registration and lookup.
Declaration
public override string Name { get; }
Property Value
The name of the provider.
Overrides
SupportedExtensions
Specifies that this provider handles files with .xlsx extension.
Declaration
public override IEnumerable<string> SupportedExtensions { get; }
Property Value
IEnumerable<string>
The supported extensions.
Overrides
Methods
ExportOverride(Workbook, Stream)
Exports the specified workbook.
Declaration
[Obsolete("This method is obsolete. Please use ExportOverride(Workbook workbook, Stream output, CancellationToken cancellationToken) instead.")]
protected override void ExportOverride(Workbook workbook, Stream output)
Parameters
workbook
The workbook.
output
The output.
Overrides
ExportOverride(Workbook, Stream, CancellationToken)
Writes the workbook to the stream in XLSX format with license validation.
Declaration
protected override void ExportOverride(Workbook workbook, Stream output, CancellationToken cancellationToken)
Parameters
workbook
The workbook.
output
The output.
cancellationToken
The cancellation token used to cancel the operation.
Overrides
ImportOverride(Stream)
Imports the specified input.
ImportOverride(Stream, CancellationToken)
Reads XLSX data from the stream and constructs a workbook with optimized formula caching enabled during import.
Declaration
protected override Workbook ImportOverride(Stream input, CancellationToken cancellationToken)
Parameters
input
The input.
cancellationToken
The cancellation token used to cancel the operation.
Returns
The imported workbook.
Overrides