ClassSpreadStreamExportRenderer
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
SpreadStreamExportRenderer()
Declaration
public SpreadStreamExportRenderer()
Properties
ColumnIndex
Gets or sets the index of the column.
Declaration
public int ColumnIndex { get; set; }
Property Value
The index of the column.
Methods
AddWorksheet(string)
Create and add excel worksheet to the workbook.
Declaration
public virtual void AddWorksheet(string sheetName)
Parameters
sheetName
Excel workbook.
ApplyCellFormat(object)
Applies the cell format. Note that format needs to be of SpreadCellFormat type in order to be applied to current cell.
Declaration
public virtual void ApplyCellFormat(object format)
Parameters
format
The format.
ApplyCellStyle(SpreadStreamCellStyle, string)
Applies the cell style.
Declaration
public virtual void ApplyCellStyle(SpreadStreamCellStyle cellStyle, string numberFormat)
Parameters
cellStyle
The cell style.
numberFormat
The format string.
CallOnWorksheetCreated()
Calls the WorksheetCreated event.
ClearCellValue()
Clears the value of current Cell.
Declaration
public virtual void ClearCellValue()
CreateAndAddCellForMerge(int, int, int, int)
Creates CellSelection.
Declaration
public virtual void CreateAndAddCellForMerge(int startRowIndex, int startColumnIndex, int endRowIndex, int endColumnIndex)
Parameters
startRowIndex
From row index.
startColumnIndex
From column index.
endRowIndex
To row index.
endColumnIndex
To column index.
CreateWorkbook(Stream, SpreadStreamExportFormat)
Creates new workbook.
Declaration
public virtual void CreateWorkbook(Stream stream, SpreadStreamExportFormat exportFormat)
Parameters
stream
The stream.
exportFormat
The export format.
FinishColumn()
Finishes the column.
Declaration
protected virtual void FinishColumn()
FinishWorkbook()
Finishes the workbook.
Declaration
protected virtual void FinishWorkbook()
FinishWorksheet()
Finishes the worksheet.
Declaration
protected virtual void FinishWorksheet()
GetCell()
Gets current Cell.
GetCellFormat(bool)
Gets current SpreadCellFormat.
Declaration
public virtual SpreadCellFormat GetCellFormat(bool createNew)
Parameters
createNew
Returns
SpreadCellFormat
GetCellStyle()
Gets the cell style info.
Declaration
public virtual SpreadStreamCellStyle GetCellStyle()
Returns
GetColumn()
Gets the column.
GetFileExtension(SpreadStreamExportFormat)
Gets file extension.
Declaration
public virtual string GetFileExtension(SpreadStreamExportFormat exportFormat)
Parameters
exportFormat
Export format.
Returns
GetRow(bool)
Gets current Row.
GetWorksheet()
Gets current worksheet.
Declaration
public virtual object GetWorksheet()
Returns
Worksheet as object.
OnWorkbookCreated(SpreadStreamWorkbookEventArgs)
Raises the event.
Declaration
protected virtual void OnWorkbookCreated(SpreadStreamWorkbookEventArgs e)
Parameters
e
The SpreadStreamWorkbookEventArgs instance containing the event data.
OnWorksheetCreated(SpreadStreamWorksheetEventArgs)
Raises the event.
Declaration
protected virtual bool OnWorksheetCreated(SpreadStreamWorksheetEventArgs e)
Parameters
e
SpreadStreamWorksheetEventArgs
The SpreadStreamWorksheetEventArgs instance containing the event data.
Returns
OnWorksheetExporting(SpreadStreamWorksheetEventArgs)
Raises the event.
Declaration
protected virtual void OnWorksheetExporting(SpreadStreamWorksheetEventArgs e)
Parameters
e
SpreadStreamWorksheetEventArgs
The SpreadStreamWorksheetEventArgs instance containing the event data.
SetBooleanValue(object)
Sets the value as boolean.
SetCellFormat(SpreadCellFormat)
Sets the cell format.
Declaration
public virtual void SetCellFormat(SpreadCellFormat spreadCellFormat)
Parameters
spreadCellFormat
SpreadCellFormat
The cell format.
SetCellValue(DataType, object)
Sets the value of current CellSelection.
SetCellValue(string)
Sets the value of current CellSelection.
Declaration
public virtual void SetCellValue(string text)
Parameters
text
Text.
SetColumnWidth(double, bool)
Sets the width of current worksheet column.
SetDateTimeValue(object)
Sets the value as date time.
SetHiddenColumn()
Sets current worksheet column as hidden.
Declaration
public virtual void SetHiddenColumn()
SetHiddenRow()
Sets current worksheet row as hidden.
Declaration
public virtual void SetHiddenRow()
SetNumberValue(object)
Sets the value as number.
SetRowHeight(double, bool)
Sets height of current row in worksheet.
SetStringValue(object)
Sets the value as string.
SkipCells(int)
Skips the cells.
Declaration
public virtual void SkipCells(int count)
Parameters
count
The count.
SkipColumns(int)
Skips the columns.
Declaration
public virtual void SkipColumns(int count)
Parameters
count
The count.
Events
WorkbookCreated
Occurs when the workbook is created. This is suitable place to add and/or modify cell styles.
Declaration
public event SpreadStreamWorkbookEventHandler WorkbookCreated
Event Value
WorksheetCreated
Occurs when a new worksheet is created. This is suitable place to set width of columns, add indent/header rows.
Declaration
public event SpreadStreamWorksheetEventHandler WorksheetCreated
Event Value
WorksheetExporting
Occurs when a worksheet is about to be exported. This is suitable place to add footer rows.
Declaration
public event SpreadStreamWorksheetEventHandler WorksheetExporting
Event Value