Interface
ICellExporter

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:

cs-api-definition
public interface ICellExporter : IDisposable

Inherited Members IDisposable.Dispose()

Methods

SetFormat(SpreadCellFormat)

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

Declaration

cs-api-definition
void SetFormat(SpreadCellFormat cellFormat)

Parameters

cellFormat

SpreadCellFormat

The cell format.

SetFormula(string)

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

Declaration

cs-api-definition
void SetFormula(string value)

Parameters

value

string

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.

SetFormula(string, string)

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.

Declaration

cs-api-definition
void SetFormula(string formula, string cachedValue)

Parameters

formula

string

The formula expression.

cachedValue

string

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).

SetValue(DateTime)

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

Declaration

cs-api-definition
void SetValue(DateTime value)

Parameters

value

DateTime

The DateTime value.

SetValue(bool)

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

Declaration

cs-api-definition
void SetValue(bool value)

Parameters

value

bool

The boolean value.

SetValue(double)

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

Declaration

cs-api-definition
void SetValue(double value)

Parameters

value

double

The double value.

SetValue(string)

Write a string value to the current cell.

Declaration

cs-api-definition
void SetValue(string value)

Parameters

value

string

The string value.