ClassSpreadStreamExportRenderer
Represents a class which exposes all methods needed to export using RadSpreadStreamProcessing.
Definition
Namespace:Telerik.WinControls.Export
Assembly:TelerikExport.dll
Syntax:
public class SpreadStreamExportRenderer : ISpreadStreamExportRenderer
Inheritance: objectSpreadStreamExportRenderer
Implements:
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.
Implements
Methods
AddWorksheet(string)
Create and add excel worksheet to the workbook.
Declaration
public virtual void AddWorksheet(string sheetName)
Parameters
sheetName
Excel workbook.
Implements
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.
Implements
ApplyCellStyle(ISpreadStreamExportCellStyleInfo, string)
Applies the cell style.
Declaration
public virtual void ApplyCellStyle(ISpreadStreamExportCellStyleInfo cellStyle, string formatString)
Parameters
cellStyle
ISpreadStreamExportCellStyleInfo
The cell style.
formatString
The format string.
Implements
CallOnWorksheetCreated()
Calls the WorksheetCreated event.
ClearCellValue()
Clears the value of current Cell.
Declaration
public virtual void ClearCellValue()
Implements
CreateBorderCellStyle(ISpreadStreamExportCellStyleInfo)
Creates the border cell style.
Declaration
public virtual void CreateBorderCellStyle(ISpreadStreamExportCellStyleInfo cellStyle)
Parameters
cellStyle
ISpreadStreamExportCellStyleInfo
The cell style.
Implements
CreateCell()
Creates CellSelection.
Declaration
public virtual void CreateCell()
Implements
CreateCellStyle(Color, Color, FontFamily, double, bool, bool, bool, ContentAlignment, bool, BorderBoxStyle, Color, Color, Color, Color, Color)
Creates a SpreadStreamCellStyleInfo by given visual styles.
Declaration
public virtual void CreateCellStyle(Color backColor, Color foreColor, FontFamily fontFamily, double fontSize, bool isBold, bool isItalic, bool underline, ContentAlignment textAlignment, bool textWrap, BorderBoxStyle borderBoxStyle, Color borderColor, Color borderTopColor, Color borderBottomColor, Color borderRightColor, Color borderLeftColor)
Parameters
backColor
BackColor of cell.
foreColor
ForeColor of cell.
fontFamily
FontFamily of cell.
fontSize
Font size of cell.
isBold
Is text bold.
isItalic
Is text italic.
underline
Is text underlined.
textAlignment
Text alignment.
textWrap
Is text wrapped.
borderBoxStyle
Border box style.
borderColor
Color of border.
borderTopColor
Color of top border.
borderBottomColor
Color of bottom border.
borderRightColor
Color of right border.
borderLeftColor
Color of left border.
Implements
CreateCellStyleFromLightStyle(ISpreadStreamExportCellStyleInfo)
Creates the cell style from light style.
Declaration
public virtual ISpreadStreamExportCellStyleInfo CreateCellStyleFromLightStyle(ISpreadStreamExportCellStyleInfo cellStyle)
Parameters
cellStyle
ISpreadStreamExportCellStyleInfo
The cell style.
Returns
Implements
CreateCellStyleFromTheme()
Creates SpreadStreamCellStyleInfo from theme normal style.
Declaration
public virtual void CreateCellStyleFromTheme()
Implements
CreateColumn()
Creates the column.
Declaration
public virtual void CreateColumn()
Implements
CreateFreezePanes(int, int)
Creates freeze panes.
CreateLightCellStyle(Color, Color, FontFamily, double, bool, bool, bool, ContentAlignment, bool, BorderBoxStyle, Color, Color, Color, Color, Color)
Creates a SpreadStreamLightCellStyleInfo by given visual styles.
Declaration
public virtual void CreateLightCellStyle(Color backColor, Color foreColor, FontFamily fontFamily, double fontSize, bool isBold, bool isItalic, bool underline, ContentAlignment textAlignment, bool textWrap, BorderBoxStyle borderBoxStyle, Color borderColor, Color borderTopColor, Color borderBottomColor, Color borderRightColor, Color borderLeftColor)
Parameters
backColor
BackColor of cell.
foreColor
ForeColor of cell.
fontFamily
FontFamily of cell.
fontSize
Font size of cell.
isBold
Is text bold.
isItalic
Is text italic.
underline
Is text underlined.
textAlignment
Text alignment.
textWrap
Is text wrapped.
borderBoxStyle
Border box style.
borderColor
Color of border.
borderTopColor
Color of top border.
borderBottomColor
Color of bottom border.
borderRightColor
Color of right border.
borderLeftColor
Color of left border.
Implements
CreateMergedCells(int, int, int, int)
Creates CellSelection.
CreateWorkbook(Stream, SpreadStreamExportFormat)
Creates new workbook.
Declaration
public virtual void CreateWorkbook(Stream stream, SpreadStreamExportFormat exportFormat)
Parameters
stream
The stream.
exportFormat
The export format.
Implements
CreateWorkbook(Stream, SpreadStreamExportFormat, FileExportMode)
Creates new workbook.
Declaration
public virtual void CreateWorkbook(Stream stream, SpreadStreamExportFormat exportFormat, FileExportMode fileExportMode)
Parameters
stream
The stream.
exportFormat
The export format.
fileExportMode
The file export mode.
Implements
FinishCell()
Finishes the cell.
Declaration
public virtual void FinishCell()
Implements
FinishColumn()
Finishes the column.
Declaration
protected virtual void FinishColumn()
FinishExport()
Exports workbook.
Declaration
public virtual void FinishExport()
Implements
FinishWorkbook()
Finishes the workbook.
Declaration
protected virtual void FinishWorkbook()
FinishWorksheet()
Finishes the worksheet.
Declaration
protected virtual void FinishWorksheet()
GetBordersFromExistingStyle(ISpreadStreamExportCellStyleInfo)
Gets the borders from existing style.
Declaration
public virtual ISpreadStreamExportCellStyleInfo GetBordersFromExistingStyle(ISpreadStreamExportCellStyleInfo cellStyle)
Parameters
cellStyle
ISpreadStreamExportCellStyleInfo
The cell style.
Returns
Implements
GetCell()
Gets current Cell.
Declaration
public virtual object GetCell()
Returns
Cell as object.
Implements
GetCellFormat(bool)
Gets current SpreadCellFormat.
GetCellStyleInfo()
Gets the cell style info.
Declaration
public virtual ISpreadStreamExportCellStyleInfo GetCellStyleInfo()
Returns
Implements
GetColumn()
Gets the column.
GetFileExtension(SpreadStreamExportFormat)
Gets file extension.
Declaration
public virtual string GetFileExtension(SpreadStreamExportFormat exportFormat)
Parameters
exportFormat
Export format.
Returns
Implements
GetIsMerged(int, int)
Determines if a cell(by given row and column index) belongs to a merged cell.
GetRow(bool)
Gets current Row.
GetWorksheet()
Gets current worksheet.
Declaration
public virtual object GetWorksheet()
Returns
Worksheet as object
Implements
GroupCurrentRow(int)
Groups current row in current worksheet.
Declaration
public virtual void GroupCurrentRow(int level)
Parameters
level
Outline level.
Implements
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(string, bool)
Sets 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.
Implements
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()
Implements
SetHiddenRow()
Sets current worksheet row as hidden.
Declaration
public virtual void SetHiddenRow()
Implements
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.
Implements
SkipColumns(int)
Skips the columns.
Declaration
public virtual void SkipColumns(int count)
Parameters
count
The count.
Implements
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