Class SpreadStreamExportRenderer
Represents a class which exposes all methods needed to export using RadSpreadStreamProcessing.
Inheritance
Namespace: Telerik.Windows.Controls.GridView.SpreadsheetStreamingExport
Assembly: Telerik.Windows.Controls.GridView.SpreadsheetStreamingExport.dll
Syntax
public class SpreadStreamExportRenderer : Object
Constructors
SpreadStreamExportRenderer()
Declaration
public SpreadStreamExportRenderer()
Properties
ColumnIndex
Gets or sets the index of the column.
Declaration
public int ColumnIndex { get; set; }
Property Value
System. The index of the column. |
RowIndex
Gets or sets the index of the row.
Declaration
public int RowIndex { get; set; }
Property Value
System. The index of the row. |
Methods
add_WorkbookCreated(SpreadStreamWorkbookEventHandler)
Declaration
public void add_WorkbookCreated(SpreadStreamWorkbookEventHandler value)
Parameters
add_WorksheetCreated(SpreadStreamWorksheetEventHandler)
Declaration
public void add_WorksheetCreated(SpreadStreamWorksheetEventHandler value)
Parameters
add_WorksheetExporting(SpreadStreamWorksheetEventHandler)
Declaration
public void add_WorksheetExporting(SpreadStreamWorksheetEventHandler value)
Parameters
AddWorksheet(String)
Create and add excel worksheet to the workbook.
Declaration
public virtual void AddWorksheet(string sheetName)
Parameters
System. 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
System. The format. |
ApplyCellStyle(SpreadStreamCellStyle, String)
Applies the cell style.
Declaration
public virtual void ApplyCellStyle(SpreadStreamCellStyle cellStyle, string numberFormat)
Parameters
Spread The cell style. |
System. The format string. |
CallOnWorksheetCreated()
Calls the WorksheetCreated event.
Declaration
public virtual bool CallOnWorksheetCreated()
Returns
System.
|
ClearCellValue()
Clears the value of current Cell.
Declaration
public virtual void ClearCellValue()
CreateAndAddCellForMerge(Int32, Int32, Int32, Int32)
Creates CellSelection.
Declaration
public virtual void CreateAndAddCellForMerge(int startRowIndex, int startColumnIndex, int endRowIndex, int endColumnIndex)
Parameters
System. From row index. |
System. From column index. |
System. To row index. |
System. To column index. |
CreateCell()
Creates CellSelection.
Declaration
public virtual void CreateCell()
CreateColumn()
Creates the column.
Declaration
public virtual void CreateColumn()
CreateRow()
Creates the row.
Declaration
public virtual void CreateRow()
CreateWorkbook(Stream, SpreadStreamExportFormat)
Creates new workbook.
Declaration
public virtual void CreateWorkbook(Stream stream, SpreadStreamExportFormat exportFormat)
Parameters
System. The stream. |
Spread The export format. |
FinishCell()
Finishes the cell.
Declaration
public virtual void FinishCell()
FinishColumn()
Finishes the column.
Declaration
protected virtual void FinishColumn()
FinishExport()
Exports workbook.
Declaration
public virtual void FinishExport()
FinishRow()
Finishes the row.
Declaration
protected virtual void FinishRow()
FinishWorkbook()
Finishes the workbook.
Declaration
protected virtual void FinishWorkbook()
FinishWorksheet()
Finishes the worksheet.
Declaration
protected virtual void FinishWorksheet()
GetCell()
Gets current Cell.
Declaration
public virtual object GetCell()
Returns
System. Cell as object. |
GetCellFormat(Boolean)
Gets current SpreadCellFormat.
Declaration
public virtual SpreadCellFormat GetCellFormat(bool createNew)
Parameters
System.
|
Returns
Telerik.
|
GetCellStyle()
Gets the cell style info.
Declaration
public virtual SpreadStreamCellStyle GetCellStyle()
Returns
GetColumn()
Gets the column.
Declaration
public virtual object GetColumn()
Returns
System.
|
GetFileExtension(SpreadStreamExportFormat)
Gets file extension.
Declaration
public virtual string GetFileExtension(SpreadStreamExportFormat exportFormat)
Parameters
Spread Export format. |
Returns
System.
|
GetRow(Boolean)
Gets current Row.
Declaration
public virtual object GetRow(bool finishCell)
Parameters
System.
|
Returns
System. Row as object. |
GetWorksheet()
Gets current worksheet.
Declaration
public virtual object GetWorksheet()
Returns
System. Worksheet as object. |
OnWorkbookCreated(SpreadStreamWorkbookEventArgs)
Raises the Spread
Declaration
protected virtual void OnWorkbookCreated(SpreadStreamWorkbookEventArgs e)
Parameters
Spread The Spread |
OnWorksheetCreated(SpreadStreamWorksheetEventArgs)
Raises the Spread
Declaration
protected virtual bool OnWorksheetCreated(SpreadStreamWorksheetEventArgs e)
Parameters
Spread The Spread |
Returns
System.
|
OnWorksheetExporting(SpreadStreamWorksheetEventArgs)
Raises the Spread
Declaration
protected virtual void OnWorksheetExporting(SpreadStreamWorksheetEventArgs e)
Parameters
Spread The Spread |
remove_WorkbookCreated(SpreadStreamWorkbookEventHandler)
Declaration
public void remove_WorkbookCreated(SpreadStreamWorkbookEventHandler value)
Parameters
remove_WorksheetCreated(SpreadStreamWorksheetEventHandler)
Declaration
public void remove_WorksheetCreated(SpreadStreamWorksheetEventHandler value)
Parameters
remove_WorksheetExporting(SpreadStreamWorksheetEventHandler)
Declaration
public void remove_WorksheetExporting(SpreadStreamWorksheetEventHandler value)
Parameters
SetBooleanValue(Object)
Sets the value as boolean.
Declaration
protected virtual bool SetBooleanValue(object value)
Parameters
System. The value. |
Returns
System. True is the cell value is set, otherwise - false. |
SetCellFormat(SpreadCellFormat)
Sets the cell format.
Declaration
public virtual void SetCellFormat(SpreadCellFormat spreadCellFormat)
Parameters
Telerik. The cell format. |
SetCellValue(String)
Sets the value of current CellSelection.
Declaration
public virtual void SetCellValue(string text)
Parameters
System. Text. |
SetCellValue(DataType, Object)
Sets the value of current CellSelection.
Declaration
public virtual void SetCellValue(DataType dataType, object value)
Parameters
Data CellSelection data type. |
System. Value. |
SetColumnWidth(Double, Boolean)
Sets the width of current worksheet column.
Declaration
public virtual void SetColumnWidth(double width, bool pixels)
Parameters
System. The width. |
System. If true, setts the width in pixels, otherwise - in characters. |
SetDateTimeValue(Object)
Sets the value as date time.
Declaration
protected virtual bool SetDateTimeValue(object value)
Parameters
System. The value. |
Returns
System. True is the cell value is set, otherwise - false. |
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.
Declaration
protected virtual bool SetNumberValue(object value)
Parameters
System. The value. |
Returns
System. True is the cell value is set, otherwise - false. |
SetRowHeight(Double, Boolean)
Sets height of current row in worksheet.
Declaration
public virtual void SetRowHeight(double height, bool pixels)
Parameters
System. Height of row. |
System. If true, sets the row height in pixels, otherwise - in points. |
SetStringValue(Object)
Sets the value as string.
Declaration
protected virtual bool SetStringValue(object value)
Parameters
System. The value. |
Returns
System. True is the cell value is set, otherwise - false. |
SkipCells(Int32)
Skips the cells.
Declaration
public virtual void SkipCells(int count)
Parameters
System. The count. |
SkipColumns(Int32)
Skips the columns.
Declaration
public virtual void SkipColumns(int count)
Parameters
System. 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 Type
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 Type
WorksheetExporting
Occurs when a worksheet is about to be exported. This is suitable place to add footer rows.
Declaration
public event SpreadStreamWorksheetEventHandler WorksheetExporting