New to Telerik Document ProcessingStart a free 30-day trial

ICellExporter

Interface

Streams cell content and formatting to an output spreadsheet document in a forward-only, low-memory fashion.

Definition

Namespace:Telerik.Documents.SpreadsheetStreaming

Assembly:Telerik.Documents.SpreadsheetStreaming.dll

Syntax:

C#
public interface ICellExporter : IDisposable

Inherited Members IDisposable.Dispose()

Methods

Apply the provided cell format (style, number format, alignment, borders, etc.) to the current cell.

C#
void SetFormat(SpreadCellFormat cellFormat)
Parameters:cellFormatSpreadCellFormat

The cell format.

Write a formula expression with a pre-computed cached value. The cached value is written to the output as the cell value element and is used for filter evaluation when the cell participates in a BeginFiltering(SpreadAutoFilter) block.

C#
void SetFormula(string formula, string cachedValue)
Parameters:formulastring

The formula expression.

cachedValuestring

The pre-computed cached value.

Exceptions:

ArgumentNullException

Thrown when formula or cachedValue is null.

Remarks:

The cachedValue is REQUIRED for the cell to participate in BeginFiltering(SpreadAutoFilter) evaluation. The single-arg SetFormula(string) overload writes a formula whose cell is always visible during filtering (no cached value to evaluate against).

Write a formula expression and mark the cell as formula typed.

C#
void SetFormula(string value)
Parameters:valuestring

The formula value.

Remarks:

Cells written via this overload are always visible during a BeginFiltering(SpreadAutoFilter) block because no cached value is available for filter evaluation. Use SetFormula(string, string) to participate in filtering.

Write a boolean value (TRUE/FALSE) to the current cell.

C#
void SetValue(bool value)
Parameters:valuebool

The boolean value.

Write a DateTime value converted to the spreadsheet serial number representation.

C#
void SetValue(DateTime value)
Parameters:valueDateTime

The DateTime value.

Write a numeric (double) value to the current cell for number/date formatting.

C#
void SetValue(double value)
Parameters:valuedouble

The double value.

Write a string value to the current cell.

C#
void SetValue(string value)
Parameters:valuestring

The string value.