Represents a class which exposes all methods needed to export using RadSpreadStreamProcessing.
Definition
Namespace:Telerik.Windows.Controls.GridView.SpreadsheetStreamingExport
Assembly:Telerik.Windows.Controls.GridView.SpreadsheetStreamingExport.dll
Syntax:
public class SpreadStreamExportRenderer
Inheritance: objectSpreadStreamExportRenderer
Constructors
public SpreadStreamExportRenderer()
Properties
Gets or sets the index of the column.
public int ColumnIndex { get; set; }
The index of the column.
Methods
Create and add excel worksheet to the workbook.
Applies the cell format. Note that format needs to be of SpreadCellFormat type in order to be applied to current cell.
Applies the cell style.
public virtual void ApplyCellStyle(SpreadStreamCellStyle cellStyle, string numberFormat)
The cell style.
numberFormatstringThe format string.
Calls the WorksheetCreated event.
Clears the value of current Cell.
public virtual void ClearCellValue()
Creates CellSelection.
public virtual void CreateCell()
Creates the column.
public virtual void CreateColumn()
Creates the row.
public virtual void CreateRow()
Creates new workbook.
public virtual void CreateWorkbook(Stream stream, SpreadStreamExportFormat exportFormat)
The stream.
exportFormatSpreadStreamExportFormatThe export format.
Finishes the cell.
public virtual void FinishCell()
Finishes the column.
protected virtual void FinishColumn()
Exports workbook.
public virtual void FinishExport()
Finishes the row.
protected virtual void FinishRow()
Finishes the workbook.
protected virtual void FinishWorkbook()
Finishes the worksheet.
protected virtual void FinishWorksheet()
Gets current SpreadCellFormat.
public virtual SpreadCellFormat GetCellFormat(bool createNew)
SpreadCellFormat
Gets the cell style info.
Gets the column.
Gets file extension.
public virtual string GetFileExtension(SpreadStreamExportFormat exportFormat)
Export format.
Returns:Gets current worksheet.
Raises the event.
protected virtual void OnWorkbookCreated(SpreadStreamWorkbookEventArgs e)
The SpreadStreamWorkbookEventArgs instance containing the event data.
Raises the event.
protected virtual bool OnWorksheetCreated(SpreadStreamWorksheetEventArgs e)
The SpreadStreamWorksheetEventArgs instance containing the event data.
Returns:Raises the event.
protected virtual void OnWorksheetExporting(SpreadStreamWorksheetEventArgs e)
The SpreadStreamWorksheetEventArgs instance containing the event data.
Sets the cell format.
public virtual void SetCellFormat(SpreadCellFormat spreadCellFormat)
The cell format.
Sets the value of current CellSelection.
Sets current worksheet column as hidden.
public virtual void SetHiddenColumn()
Sets current worksheet row as hidden.
public virtual void SetHiddenRow()
Skips the cells.
Skips the columns.
Events
Occurs when the workbook is created. This is suitable place to add and/or modify cell styles.
public event SpreadStreamWorkbookEventHandler WorkbookCreated
Occurs when a new worksheet is created. This is suitable place to set width of columns, add indent/header rows.
public event SpreadStreamWorksheetEventHandler WorksheetCreated
Occurs when a worksheet is about to be exported. This is suitable place to add footer rows.
public event SpreadStreamWorksheetEventHandler WorksheetExporting