SpreadExportRenderer
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
public SpreadExportRenderer()
Methods
Create and add excel worksheet to the workbook.
public virtual void AddWorksheet(string sheetName)
Excel workbook.
Implements:
Calls event.
public virtual void CallWorkbookCreated()
Implements:
Clears the value of current CellSelection.
public virtual void ClearCellSelectionValue()
Implements:
Creates CellStyleInfo using current CellSelection and Worksheet.
public virtual void CreateCellStyleInfo()
Implements:
Creates CellStyleInfo.
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)
BackColor of cell.
foreColorColorForeColor of cell.
fontFamilyFontFamilyFontFamily of cell.
fontSizedoubleFont size of cell.
isBoldboolIs text bold.
isItalicboolIs text italic.
underlineboolIs text underlined.
textAlignmentContentAlignmentText alignment.
textWrapboolIs text wrapped.
borderBoxStyleBorderBoxStyleBorder box style.
borderColorColorColor of border.
borderTopColorColorColor of top border.
borderBottomColorColorColor of bottom border.
borderRightColorColorColor of right border.
borderLeftColorColorColor of left border.
textOrientationOrientationThe text orientation/
Implements:
Creates a new floating image in current worksheet.
public virtual void CreateFloatingImage(int rowIndex, int columnIndex, int offsetX, int offsetY, byte[] bytes, string extension, int width, int height, int rotationAngle)
Implements:
Creates new workbook.
public virtual void CreateWorkbook()
Implements:
Exports workbook.
Gets current CellSelection.
Gets the value of current CellSelection.
Gets current CellStyleInfo.
public virtual ISpreadExportCellStyleInfo GetCellStyleInfo()
Implements:
Gets file extension.
public virtual object GetFileExtension(SpreadExportFormat exportFormat)
Export format.
Returns:Implements:
Gets current format provider.
public virtual void GetFormatProvider(SpreadExportFormat exportFormat)
Export format.
Implements:
Determines if a cell(by given row and column index) belongs to a merged cell.
Gets current worksheet.
Imports workbook.
public virtual void ImportWorkbook(Stream stream)
Associated stream.
Implements:
Merges the cells of current CellSelection.
public virtual void MergeCellSelection()
Implements:
Raises the event.
protected virtual void OnWorkbookCreated(WorkbookCreatedEventArgs e)
The WorkbookCreatedEventArgs instance containing the event data.
Registers format provider.
public virtual void RegisterFormatProvider(SpreadExportFormat exportFormat)
Export format.
Implements:
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.
Sets format of current CellSelection.
public virtual void SetCellSelectionFormat(string formatString)
Format string.
Implements:
Sets the value of current CellSelection.
Events
Occurs when the workbook is created and is ready to be exported. Suitable for any final touches.
public event WorkbookCreatedEventHandler WorkbookCreated