ClassSpreadExportRenderer
Represents a class which exposes all methods needed to export using RadSpreadProcessing.
Definition
Namespace:Telerik.WinControls.Export
Assembly:TelerikExport.dll
Syntax:
public class SpreadExportRenderer : ISpreadExportRenderer
Inheritance: objectSpreadExportRenderer
Implements:
Constructors
SpreadExportRenderer()
Declaration
public SpreadExportRenderer()
Methods
AddHyperlink(string)
Declaration
public virtual void AddHyperlink(string link)
Parameters
link
Implements
AddWorksheet(string)
Create and add excel worksheet to the workbook.
Declaration
public virtual void AddWorksheet(string sheetName)
Parameters
sheetName
Excel workbook.
Implements
CallWorkbookCreated()
Calls event.
Declaration
public virtual void CallWorkbookCreated()
Implements
ClearCellSelectionValue()
Clears the value of current CellSelection.
Declaration
public virtual void ClearCellSelectionValue()
Implements
CreateCellSelection(int, int)
Creates CellSelection.
CreateCellSelection(int, int, int, int)
Creates CellSelection.
Declaration
public virtual void CreateCellSelection(int fromRowIndex, int fromColumnIndex, int toRowIndex, int toColumnIndex)
Parameters
fromRowIndex
From row index.
fromColumnIndex
From column index.
toRowIndex
To row index.
toColumnIndex
To column index.
Implements
CreateCellStyleInfo()
Creates CellStyleInfo using current CellSelection and Worksheet.
Declaration
public virtual void CreateCellStyleInfo()
Implements
CreateCellStyleInfo(Color, Color, FontFamily, double, bool, bool, bool, ContentAlignment, bool, BorderBoxStyle, Color, Color, Color, Color, Color, Orientation)
Creates CellStyleInfo.
Declaration
public virtual void CreateCellStyleInfo(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, Orientation textOrientation = Orientation.Horizontal)
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.
textOrientation
The text orientation/
Implements
CreateFloatingImage(int, int, int, int, byte[], string, int, int, int)
Creates a new floating image in current worksheet.
Declaration
public virtual void CreateFloatingImage(int rowIndex, int columnIndex, int offsetX, int offsetY, byte[] bytes, string extension, int width, int height, int rotationAngle)
Parameters
rowIndex
columnIndex
offsetX
offsetY
bytes
byte[]
extension
width
height
rotationAngle
Implements
CreateFreezePanes(int, int)
Creates freeze panes.
CreateWorkbook()
Creates new workbook.
Declaration
public virtual void CreateWorkbook()
Implements
Export(Stream)
Exports workbook.
Declaration
public virtual void Export(Stream stream)
Parameters
stream
Associated stream.
Implements
GetCellSelection()
Gets current CellSelection.
Declaration
public virtual object GetCellSelection()
Returns
CellSelection as object.
Implements
GetCellSelectionValue()
Gets the value of current CellSelection.
Declaration
public virtual object GetCellSelectionValue()
Returns
Implements
GetCellStyleInfo()
Gets current CellStyleInfo.
Declaration
public virtual ISpreadExportCellStyleInfo GetCellStyleInfo()
Returns
Implements
GetFileExtension(SpreadExportFormat)
Gets file extension.
Declaration
public virtual object GetFileExtension(SpreadExportFormat exportFormat)
Parameters
exportFormat
Export format.
Returns
Implements
GetFormatProvider(SpreadExportFormat)
Gets current format provider.
Declaration
public virtual void GetFormatProvider(SpreadExportFormat exportFormat)
Parameters
exportFormat
Export format.
Implements
GetIsMerged(int, int)
Determines if a cell(by given row and column index) belongs to a merged cell.
GetWorksheet()
Gets current worksheet.
Declaration
public virtual object GetWorksheet()
Returns
Worksheet as object
Implements
GetWorksheetColumnWidth(int)
Gets the width of column by given column index.
GetWorksheetRowHeight(int)
Gets height of row in worksheet by given row index.
GroupRows(int, int, int)
Groups rows in current worksheet.
ImportWorkbook(Stream)
Imports workbook.
Declaration
public virtual void ImportWorkbook(Stream stream)
Parameters
stream
Associated stream.
Implements
MergeCellSelection()
Merges the cells of current CellSelection.
Declaration
public virtual void MergeCellSelection()
Implements
OnWorkbookCreated(WorkbookCreatedEventArgs)
Raises the event.
Declaration
protected virtual void OnWorkbookCreated(WorkbookCreatedEventArgs e)
Parameters
e
The WorkbookCreatedEventArgs instance containing the event data.
RegisterFormatProvider(SpreadExportFormat)
Registers format provider.
Declaration
public virtual void RegisterFormatProvider(SpreadExportFormat exportFormat)
Parameters
exportFormat
Export format.
Implements
ReplaceWorksheet(string)
Removes an existing worksheet from the workbook and creates a new one with the same name. If there is no sheet with this name, only creates a new one.
SetCellSelectionFormat(string)
Sets format of current CellSelection.
Declaration
public virtual void SetCellSelectionFormat(string formatString)
Parameters
formatString
Format string.
Implements
SetCellSelectionValue(DataType, object)
Sets the value of current CellSelection.
SetCellSelectionValue(string)
Sets the value of current CellSelection.
Declaration
public virtual void SetCellSelectionValue(string text)
Parameters
text
Text.
Implements
SetWorksheetColumnWidth(int, double, bool)
Sets width of column in worksheet by given column index.
SetWorksheetRowHeight(int, int, bool)
Sets height of row in worksheet by given row index.
Events
WorkbookCreated
Occurs when the workbook is created and is ready to be exported. Suitable for any final touches.
Declaration
public event WorkbookCreatedEventHandler WorkbookCreated
Event Value