Class SpreadExportRenderer
Represents a class which exposes all methods needed to export using RadSpreadProcessing.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.Export
Assembly: TelerikExport.dll
Syntax
public class SpreadExportRenderer : ISpreadExportRenderer
Constructors
SpreadExportRenderer()
Declaration
public SpreadExportRenderer()
Methods
AddHyperlink(String)
Declaration
public virtual void AddHyperlink(string link)
Parameters
System.
|
Implements
AddWorksheet(String)
Create and add excel worksheet to the workbook.
Declaration
public virtual void AddWorksheet(string sheetName)
Parameters
System. Excel workbook. |
Implements
CallWorkbookCreated()
Calls Workbook
Declaration
public virtual void CallWorkbookCreated()
Implements
ClearCellSelectionValue()
Clears the value of current CellSelection.
Declaration
public virtual void ClearCellSelectionValue()
Implements
CreateCellSelection(Int32, Int32)
Creates CellSelection.
Declaration
public virtual void CreateCellSelection(int rowIndex, int columnIndex)
Parameters
System. Row index. |
System. Column index. |
Implements
CreateCellSelection(Int32, Int32, Int32, Int32)
Creates CellSelection.
Declaration
public virtual void CreateCellSelection(int fromRowIndex, int fromColumnIndex, int toRowIndex, int toColumnIndex)
Parameters
System. From row index. |
System. From column index. |
System. To row index. |
System. To column index. |
Implements
CreateCellStyleInfo()
Creates CellStyleInfo using current CellSelection and Worksheet.
Declaration
public virtual void CreateCellStyleInfo()
Implements
CreateCellStyleInfo(Color, Color, FontFamily, Double, Boolean, Boolean, Boolean, ContentAlignment, Boolean, 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)
Parameters
System. BackColor of cell. |
System. ForeColor of cell. |
System. FontFamily of cell. |
System. Font size of cell. |
System. Is text bold. |
System. Is text italic. |
System. Is text underlined. |
System. Text alignment. |
System. Is text wrapped. |
Border Border box style. |
System. Color of border. |
System. Color of top border. |
System. Color of bottom border. |
System. Color of right border. |
System. Color of left border. |
System. The text orientation/ |
Implements
CreateFloatingImage(Int32, Int32, Int32, Int32, Byte[], String, Int32, Int32, Int32)
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
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
Implements
CreateFreezePanes(Int32, Int32)
Creates freeze panes.
Declaration
public virtual void CreateFreezePanes(int rowsCount, int columnsCount)
Parameters
System. Count of frozen rows. |
System. Count of frozen columns. |
Implements
CreateWorkbook()
Creates new workbook.
Declaration
public virtual void CreateWorkbook()
Implements
Export(Stream)
Exports workbook.
Declaration
public virtual void Export(Stream stream)
Parameters
System. Associated stream. |
Implements
GetCellSelection()
Gets current CellSelection.
Declaration
public virtual object GetCellSelection()
Returns
System. CellSelection as object. |
Implements
GetCellSelectionValue()
Gets the value of current CellSelection.
Declaration
public virtual object GetCellSelectionValue()
Returns
System.
|
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
Spread Export format. |
Returns
System.
|
Implements
GetFormatProvider(SpreadExportFormat)
Gets current format provider.
Declaration
public virtual void GetFormatProvider(SpreadExportFormat exportFormat)
Parameters
Spread Export format. |
Implements
GetIsMerged(Int32, Int32)
Determines if a cell(by given row and column index) belongs to a merged cell.
Declaration
public virtual bool GetIsMerged(int rowIndex, int columnIndex)
Parameters
System. The row of cell. |
System. The column of cell. |
Returns
System. A value indicating, whether given cell is part of a merged cell. |
Implements
GetWorksheet()
Gets current worksheet.
Declaration
public virtual object GetWorksheet()
Returns
System. Worksheet as object |
Implements
GetWorksheetColumnWidth(Int32)
Gets the width of column by given column index.
Declaration
public virtual int GetWorksheetColumnWidth(int columnIndex)
Parameters
System. Column index |
Returns
System. Column width |
Implements
GetWorksheetRowHeight(Int32)
Gets height of row in worksheet by given row index.
Declaration
public virtual double GetWorksheetRowHeight(int rowIndex)
Parameters
System. Row index. |
Returns
System.
|
Implements
GroupRows(Int32, Int32, Int32)
Groups rows in current worksheet.
Declaration
public virtual void GroupRows(int startRow, int endRow, int level)
Parameters
System. Start row. |
System. End row. |
System. Outline level. |
Implements
ImportWorkbook(Stream)
Imports workbook.
Declaration
public virtual void ImportWorkbook(Stream stream)
Parameters
System. Associated stream. |
Implements
MergeCellSelection()
Merges the cells of current CellSelection.
Declaration
public virtual void MergeCellSelection()
Implements
OnWorkbookCreated(WorkbookCreatedEventArgs)
Raises the Workbook
Declaration
protected virtual void OnWorkbookCreated(WorkbookCreatedEventArgs e)
Parameters
Workbook The Workbook |
RegisterFormatProvider(SpreadExportFormat)
Registers format provider.
Declaration
public virtual void RegisterFormatProvider(SpreadExportFormat exportFormat)
Parameters
Spread 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.
Declaration
public virtual bool ReplaceWorksheet(string sheetName)
Parameters
System. The name of the sheet to be replaced. |
Returns
System. A value indicating whether a sheet with given name was removed. |
Implements
SetCellSelectionFormat(String)
Sets format of current CellSelection.
Declaration
public virtual void SetCellSelectionFormat(string formatString)
Parameters
System. Format string. |
Implements
SetCellSelectionValue(String)
Sets the value of current CellSelection.
Declaration
public virtual void SetCellSelectionValue(string text)
Parameters
System. Text. |
Implements
SetCellSelectionValue(DataType, Object)
Sets the value of current CellSelection.
Declaration
public virtual void SetCellSelectionValue(DataType dataType, object value)
Parameters
Data CellSelection data type. |
System. Value. |
Implements
SetWorksheetColumnWidth(Int32, Double, Boolean)
Sets width of column in worksheet by given column index.
Declaration
public virtual void SetWorksheetColumnWidth(int columnIndex, double value, bool isCustom)
Parameters
System. Column index. |
System. Width of column. |
System.
|
Implements
SetWorksheetRowHeight(Int32, Int32, Boolean)
Sets height of row in worksheet by given row index.
Declaration
public virtual void SetWorksheetRowHeight(int rowIndex, int rowHeight, bool isCustom)
Parameters
System. Row index. |
System. Height of row. |
System.
|
Implements
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 Type
Explicit Interface Implementations
ISpreadExportRenderer.CreateGridViewExportDataRowInfo(Int32, List<IGridViewSpreadExportCellInfo>, Boolean)
Creates and returns GridViewSpreadExportDataRowInfo.
Declaration
IGridViewSpreadExportRowInfo ISpreadExportRenderer.CreateGridViewExportDataRowInfo(int currentIndent, List<IGridViewSpreadExportCellInfo> cells, bool exportAsHidden)
Parameters
System. Cells indent. |
System. Cells. |
System. Export as hidden. |
Returns
Implements
ISpreadExportRenderer.CreateGridViewExportDataRowInfo(Int32, List<IGridViewSpreadExportCellInfo>, Boolean, Int32)
Creates and returns GridViewSpreadExportDataRowInfo.
Declaration
IGridViewSpreadExportRowInfo ISpreadExportRenderer.CreateGridViewExportDataRowInfo(int currentIndent, List<IGridViewSpreadExportCellInfo> cells, bool exportAsHidden, int hierarchyLevel)
Parameters
System. Cells indent. |
System. Cells. |
System. Export as hidden. |
System. Hierarchy level of row. |
Returns
Implements
ISpreadExportRenderer.CreateGridViewExportGroupRowInfo(Int32, String, Int32, Boolean)
Creates and returns GridViewExportGroupRowInfo.
Declaration
IGridViewSpreadExportRowInfo ISpreadExportRenderer.CreateGridViewExportGroupRowInfo(int currentIndent, string content, int colSpan, bool exportAsHidden)
Parameters
System. Cells indent. |
System. Content string. |
System. Column span. |
System. Export as hidden. |
Returns
Implements
ISpreadExportRenderer.CreateGridViewExportGroupRowInfo(Int32, String, Int32, Boolean, Int32)
Creates and returns GridViewExportGroupRowInfo.
Declaration
IGridViewSpreadExportRowInfo ISpreadExportRenderer.CreateGridViewExportGroupRowInfo(int currentIndent, string content, int colSpan, bool exportAsHidden, int hierarchyLevel)
Parameters
System. Cells indent. |
System. Content string. |
System. Column span. |
System. Export as hidden. |
System. Hierarchy level of row. |