Class
SpreadStreamExportRenderer

Represents a class which exposes all methods needed to export using RadSpreadStreamProcessing.

Definition

Namespace:Telerik.WinControls.Export

Assembly:TelerikExport.dll

Syntax:

cs-api-definition
public class SpreadStreamExportRenderer : ISpreadStreamExportRenderer

Inheritance: objectSpreadStreamExportRenderer

Implements: ISpreadStreamExportRenderer

Constructors

SpreadStreamExportRenderer()

Declaration

cs-api-definition
public SpreadStreamExportRenderer()

Properties

ColumnIndex

Gets or sets the index of the column.

Declaration

cs-api-definition
public int ColumnIndex { get; set; }

Property Value

int

The index of the column.

Implements ISpreadStreamExportRenderer.ColumnIndex

RowIndex

Gets or sets the index of the row.

Declaration

cs-api-definition
public int RowIndex { get; set; }

Property Value

int

The index of the row.

Implements ISpreadStreamExportRenderer.RowIndex

Methods

AddWorksheet(string)

Create and add excel worksheet to the workbook.

Declaration

cs-api-definition
public virtual void AddWorksheet(string sheetName)

Parameters

sheetName

string

Excel workbook.

Implements ISpreadStreamExportRenderer.AddWorksheet(string)

ApplyCellFormat(object)

Applies the cell format. Note that format needs to be of SpreadCellFormat type in order to be applied to current cell.

Declaration

cs-api-definition
public virtual void ApplyCellFormat(object format)

Parameters

format

object

The format.

Implements ISpreadStreamExportRenderer.ApplyCellFormat(object)

ApplyCellStyle(ISpreadStreamExportCellStyleInfo, string)

Applies the cell style.

Declaration

cs-api-definition
public virtual void ApplyCellStyle(ISpreadStreamExportCellStyleInfo cellStyle, string formatString)

Parameters

cellStyle

ISpreadStreamExportCellStyleInfo

The cell style.

formatString

string

The format string.

Implements ISpreadStreamExportRenderer.ApplyCellStyle(ISpreadStreamExportCellStyleInfo, string)

CallOnWorksheetCreated()

Calls the WorksheetCreated event.

Declaration

cs-api-definition
public virtual bool CallOnWorksheetCreated()

Returns

bool

Implements ISpreadStreamExportRenderer.CallOnWorksheetCreated()

ClearCellValue()

Clears the value of current Cell.

Declaration

cs-api-definition
public virtual void ClearCellValue()

Implements ISpreadStreamExportRenderer.ClearCellValue()

CreateBorderCellStyle(ISpreadStreamExportCellStyleInfo)

Creates the border cell style.

Declaration

cs-api-definition
public virtual void CreateBorderCellStyle(ISpreadStreamExportCellStyleInfo cellStyle)

Parameters

cellStyle

ISpreadStreamExportCellStyleInfo

The cell style.

Implements ISpreadStreamExportRenderer.CreateBorderCellStyle(ISpreadStreamExportCellStyleInfo)

CreateCell()

Creates CellSelection.

Declaration

cs-api-definition
public virtual void CreateCell()

Implements ISpreadStreamExportRenderer.CreateCell()

CreateCellStyle(Color, Color, FontFamily, double, bool, bool, bool, ContentAlignment, bool, BorderBoxStyle, Color, Color, Color, Color, Color)

Creates a SpreadStreamCellStyleInfo by given visual styles.

Declaration

cs-api-definition
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

Color

BackColor of cell.

foreColor

Color

ForeColor of cell.

fontFamily

FontFamily

FontFamily of cell.

fontSize

double

Font size of cell.

isBold

bool

Is text bold.

isItalic

bool

Is text italic.

underline

bool

Is text underlined.

textAlignment

ContentAlignment

Text alignment.

textWrap

bool

Is text wrapped.

borderBoxStyle

BorderBoxStyle

Border box style.

borderColor

Color

Color of border.

borderTopColor

Color

Color of top border.

borderBottomColor

Color

Color of bottom border.

borderRightColor

Color

Color of right border.

borderLeftColor

Color

Color of left border.

Implements ISpreadStreamExportRenderer.CreateCellStyle(Color, Color, FontFamily, double, bool, bool, bool, ContentAlignment, bool, BorderBoxStyle, Color, Color, Color, Color, Color)

CreateCellStyleFromLightStyle(ISpreadStreamExportCellStyleInfo)

Creates the cell style from light style.

Declaration

cs-api-definition
public virtual ISpreadStreamExportCellStyleInfo CreateCellStyleFromLightStyle(ISpreadStreamExportCellStyleInfo cellStyle)

Parameters

cellStyle

ISpreadStreamExportCellStyleInfo

The cell style.

Returns

ISpreadStreamExportCellStyleInfo

Implements ISpreadStreamExportRenderer.CreateCellStyleFromLightStyle(ISpreadStreamExportCellStyleInfo)

CreateCellStyleFromTheme()

Creates SpreadStreamCellStyleInfo from theme normal style.

Declaration

cs-api-definition
public virtual void CreateCellStyleFromTheme()

Implements ISpreadStreamExportRenderer.CreateCellStyleFromTheme()

CreateColumn()

Creates the column.

Declaration

cs-api-definition
public virtual void CreateColumn()

Implements ISpreadStreamExportRenderer.CreateColumn()

CreateFreezePanes(int, int)

Creates freeze panes.

Declaration

cs-api-definition
public virtual void CreateFreezePanes(int rowsCount, int columnsCount)

Parameters

rowsCount

int

Count of frozen rows.

columnsCount

int

Count of frozen columns.

Implements ISpreadStreamExportRenderer.CreateFreezePanes(int, int)

CreateLightCellStyle(Color, Color, FontFamily, double, bool, bool, bool, ContentAlignment, bool, BorderBoxStyle, Color, Color, Color, Color, Color)

Creates a SpreadStreamLightCellStyleInfo by given visual styles.

Declaration

cs-api-definition
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

Color

BackColor of cell.

foreColor

Color

ForeColor of cell.

fontFamily

FontFamily

FontFamily of cell.

fontSize

double

Font size of cell.

isBold

bool

Is text bold.

isItalic

bool

Is text italic.

underline

bool

Is text underlined.

textAlignment

ContentAlignment

Text alignment.

textWrap

bool

Is text wrapped.

borderBoxStyle

BorderBoxStyle

Border box style.

borderColor

Color

Color of border.

borderTopColor

Color

Color of top border.

borderBottomColor

Color

Color of bottom border.

borderRightColor

Color

Color of right border.

borderLeftColor

Color

Color of left border.

Implements ISpreadStreamExportRenderer.CreateLightCellStyle(Color, Color, FontFamily, double, bool, bool, bool, ContentAlignment, bool, BorderBoxStyle, Color, Color, Color, Color, Color)

CreateMergedCells(int, int, int, int)

Creates CellSelection.

Declaration

cs-api-definition
public virtual void CreateMergedCells(int fromRowIndex, int fromColumnIndex, int toRowIndex, int toColumnIndex)

Parameters

fromRowIndex

int

From row index.

fromColumnIndex

int

From column index.

toRowIndex

int

To row index.

toColumnIndex

int

To column index.

Implements ISpreadStreamExportRenderer.CreateMergedCells(int, int, int, int)

CreateRow()

Creates the row.

Declaration

cs-api-definition
public virtual void CreateRow()

Implements ISpreadStreamExportRenderer.CreateRow()

CreateWorkbook(Stream, SpreadStreamExportFormat)

Creates new workbook.

Declaration

cs-api-definition
public virtual void CreateWorkbook(Stream stream, SpreadStreamExportFormat exportFormat)

Parameters

stream

Stream

The stream.

exportFormat

SpreadStreamExportFormat

The export format.

Implements ISpreadStreamExportRenderer.CreateWorkbook(Stream, SpreadStreamExportFormat)

CreateWorkbook(Stream, SpreadStreamExportFormat, FileExportMode)

Creates new workbook.

Declaration

cs-api-definition
public virtual void CreateWorkbook(Stream stream, SpreadStreamExportFormat exportFormat, FileExportMode fileExportMode)

Parameters

stream

Stream

The stream.

exportFormat

SpreadStreamExportFormat

The export format.

fileExportMode

FileExportMode

The file export mode.

Implements ISpreadStreamExportRenderer.CreateWorkbook(Stream, SpreadStreamExportFormat, FileExportMode)

FinishCell()

Finishes the cell.

Declaration

cs-api-definition
public virtual void FinishCell()

Implements ISpreadStreamExportRenderer.FinishCell()

FinishColumn()

Finishes the column.

Declaration

cs-api-definition
protected virtual void FinishColumn()

FinishExport()

Exports workbook.

Declaration

cs-api-definition
public virtual void FinishExport()

Implements ISpreadStreamExportRenderer.FinishExport()

FinishRow()

Finishes the row.

Declaration

cs-api-definition
protected virtual void FinishRow()

FinishWorkbook()

Finishes the workbook.

Declaration

cs-api-definition
protected virtual void FinishWorkbook()

FinishWorksheet()

Finishes the worksheet.

Declaration

cs-api-definition
protected virtual void FinishWorksheet()

GetBordersFromExistingStyle(ISpreadStreamExportCellStyleInfo)

Gets the borders from existing style.

Declaration

cs-api-definition
public virtual ISpreadStreamExportCellStyleInfo GetBordersFromExistingStyle(ISpreadStreamExportCellStyleInfo cellStyle)

Parameters

cellStyle

ISpreadStreamExportCellStyleInfo

The cell style.

Returns

ISpreadStreamExportCellStyleInfo

Implements ISpreadStreamExportRenderer.GetBordersFromExistingStyle(ISpreadStreamExportCellStyleInfo)

GetCell()

Gets current Cell.

Declaration

cs-api-definition
public virtual object GetCell()

Returns

object

Cell as object.

Implements ISpreadStreamExportRenderer.GetCell()

GetCellFormat(bool)

Gets current SpreadCellFormat.

Declaration

cs-api-definition
public virtual object GetCellFormat(bool createNew)

Parameters

createNew

bool

Returns

object

Implements ISpreadStreamExportRenderer.GetCellFormat(bool)

GetCellStyleInfo()

Gets the cell style info.

Declaration

cs-api-definition
public virtual ISpreadStreamExportCellStyleInfo GetCellStyleInfo()

Returns

ISpreadStreamExportCellStyleInfo

Implements ISpreadStreamExportRenderer.GetCellStyleInfo()

GetColumn()

Gets the column.

Declaration

cs-api-definition
public virtual object GetColumn()

Returns

object

Implements ISpreadStreamExportRenderer.GetColumn()

GetFileExtension(SpreadStreamExportFormat)

Gets file extension.

Declaration

cs-api-definition
public virtual string GetFileExtension(SpreadStreamExportFormat exportFormat)

Parameters

exportFormat

SpreadStreamExportFormat

Export format.

Returns

string

Implements ISpreadStreamExportRenderer.GetFileExtension(SpreadStreamExportFormat)

GetIsMerged(int, int)

Determines if a cell(by given row and column index) belongs to a merged cell.

Declaration

cs-api-definition
public virtual bool GetIsMerged(int rowIndex, int columnIndex)

Parameters

rowIndex

int

The row of cell.

columnIndex

int

The column of cell.

Returns

bool

A value indicating, whether given cell is part of a merged cell.

Implements ISpreadStreamExportRenderer.GetIsMerged(int, int)

GetRow(bool)

Gets current Row.

Declaration

cs-api-definition
public virtual object GetRow(bool finishCell)

Parameters

finishCell

bool

Returns

object

Row as object.

Implements ISpreadStreamExportRenderer.GetRow(bool)

GetWorksheet()

Gets current worksheet.

Declaration

cs-api-definition
public virtual object GetWorksheet()

Returns

object

Worksheet as object

Implements ISpreadStreamExportRenderer.GetWorksheet()

GroupCurrentRow(int)

Groups current row in current worksheet.

Declaration

cs-api-definition
public virtual void GroupCurrentRow(int level)

Parameters

level

int

Outline level.

Implements ISpreadStreamExportRenderer.GroupCurrentRow(int)

OnWorkbookCreated(SpreadStreamWorkbookEventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual void OnWorkbookCreated(SpreadStreamWorkbookEventArgs e)

Parameters

e

SpreadStreamWorkbookEventArgs

The SpreadStreamWorkbookEventArgs instance containing the event data.

OnWorksheetCreated(SpreadStreamWorksheetEventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual bool OnWorksheetCreated(SpreadStreamWorksheetEventArgs e)

Parameters

e

SpreadStreamWorksheetEventArgs

The SpreadStreamWorksheetEventArgs instance containing the event data.

Returns

bool

OnWorksheetExporting(SpreadStreamWorksheetEventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual void OnWorksheetExporting(SpreadStreamWorksheetEventArgs e)

Parameters

e

SpreadStreamWorksheetEventArgs

The SpreadStreamWorksheetEventArgs instance containing the event data.

SetBooleanValue(object)

Sets the value as boolean.

Declaration

cs-api-definition
protected virtual bool SetBooleanValue(object value)

Parameters

value

object

The value.

Returns

bool

True is the cell value is set, otherwise - false.

SetCellFormat(string, bool)

Sets the cell format.

Declaration

cs-api-definition
public virtual void SetCellFormat(string formatString, bool apply)

Parameters

formatString

string

The format string.

apply

bool

The apply.

Implements ISpreadStreamExportRenderer.SetCellFormat(string, bool)

SetCellValue(DataType, object)

Sets the value of current CellSelection.

Declaration

cs-api-definition
public virtual void SetCellValue(DataType dataType, object value)

Parameters

dataType

DataType

CellSelection data type.

value

object

Value.

Implements ISpreadStreamExportRenderer.SetCellValue(DataType, object)

SetCellValue(string)

Sets the value of current CellSelection.

Declaration

cs-api-definition
public virtual void SetCellValue(string text)

Parameters

text

string

Text.

Implements ISpreadStreamExportRenderer.SetCellValue(string)

SetColumnWidth(double, bool)

Sets the width of current worksheet column.

Declaration

cs-api-definition
public virtual void SetColumnWidth(double width, bool inPixels)

Parameters

width

double

The width.

inPixels

bool

If true, setts the width in pixels, otherwise - in characters.

Implements ISpreadStreamExportRenderer.SetColumnWidth(double, bool)

SetDateTimeValue(object)

Sets the value as date time.

Declaration

cs-api-definition
protected virtual bool SetDateTimeValue(object value)

Parameters

value

object

The value.

Returns

bool

True is the cell value is set, otherwise - false.

SetHiddenColumn()

Sets current worksheet column as hidden.

Declaration

cs-api-definition
public virtual void SetHiddenColumn()

Implements ISpreadStreamExportRenderer.SetHiddenColumn()

SetHiddenRow()

Sets current worksheet row as hidden.

Declaration

cs-api-definition
public virtual void SetHiddenRow()

Implements ISpreadStreamExportRenderer.SetHiddenRow()

SetNumberValue(object)

Sets the value as number.

Declaration

cs-api-definition
protected virtual bool SetNumberValue(object value)

Parameters

value

object

The value.

Returns

bool

True is the cell value is set, otherwise - false.

SetRowHeight(double, bool)

Sets height of current row in worksheet.

Declaration

cs-api-definition
public virtual void SetRowHeight(double height, bool inPixels)

Parameters

height

double

Height of row.

inPixels

bool

If true, sets the row height in pixels, otherwise - in points.

Implements ISpreadStreamExportRenderer.SetRowHeight(double, bool)

SetStringValue(object)

Sets the value as string.

Declaration

cs-api-definition
protected virtual bool SetStringValue(object value)

Parameters

value

object

The value.

Returns

bool

True is the cell value is set, otherwise - false.

SkipCells(int)

Skips the cells.

Declaration

cs-api-definition
public virtual void SkipCells(int count)

Parameters

count

int

The count.

Implements ISpreadStreamExportRenderer.SkipCells(int)

SkipColumns(int)

Skips the columns.

Declaration

cs-api-definition
public virtual void SkipColumns(int count)

Parameters

count

int

The count.

Implements ISpreadStreamExportRenderer.SkipColumns(int)

Events

WorkbookCreated

Occurs when the workbook is created. This is suitable place to add and/or modify cell styles.

Declaration

cs-api-definition
public event SpreadStreamWorkbookEventHandler WorkbookCreated

Event Value

SpreadStreamWorkbookEventHandler

WorksheetCreated

Occurs when a new worksheet is created. This is suitable place to set width of columns, add indent/header rows.

Declaration

cs-api-definition
public event SpreadStreamWorksheetEventHandler WorksheetCreated

Event Value

SpreadStreamWorksheetEventHandler

WorksheetExporting

Occurs when a worksheet is about to be exported. This is suitable place to add footer rows.

Declaration

cs-api-definition
public event SpreadStreamWorksheetEventHandler WorksheetExporting

Event Value

SpreadStreamWorksheetEventHandler

In this article
DefinitionConstructorsSpreadStreamExportRenderer()PropertiesColumnIndexRowIndexMethodsAddWorksheet(string)ApplyCellFormat(object)ApplyCellStyle(ISpreadStreamExportCellStyleInfo, string)CallOnWorksheetCreated()ClearCellValue()CreateBorderCellStyle(ISpreadStreamExportCellStyleInfo)CreateCell()CreateCellStyle(Color, Color, FontFamily, double, bool, bool, bool, ContentAlignment, bool, BorderBoxStyle, Color, Color, Color, Color, Color)CreateCellStyleFromLightStyle(ISpreadStreamExportCellStyleInfo)CreateCellStyleFromTheme()CreateColumn()CreateFreezePanes(int, int)CreateLightCellStyle(Color, Color, FontFamily, double, bool, bool, bool, ContentAlignment, bool, BorderBoxStyle, Color, Color, Color, Color, Color)CreateMergedCells(int, int, int, int)CreateRow()CreateWorkbook(Stream, SpreadStreamExportFormat)CreateWorkbook(Stream, SpreadStreamExportFormat, FileExportMode)FinishCell()FinishColumn()FinishExport()FinishRow()FinishWorkbook()FinishWorksheet()GetBordersFromExistingStyle(ISpreadStreamExportCellStyleInfo)GetCell()GetCellFormat(bool)GetCellStyleInfo()GetColumn()GetFileExtension(SpreadStreamExportFormat)GetIsMerged(int, int)GetRow(bool)GetWorksheet()GroupCurrentRow(int)OnWorkbookCreated(SpreadStreamWorkbookEventArgs)OnWorksheetCreated(SpreadStreamWorksheetEventArgs)OnWorksheetExporting(SpreadStreamWorksheetEventArgs)SetBooleanValue(object)SetCellFormat(string, bool)SetCellValue(DataType, object)SetCellValue(string)SetColumnWidth(double, bool)SetDateTimeValue(object)SetHiddenColumn()SetHiddenRow()SetNumberValue(object)SetRowHeight(double, bool)SetStringValue(object)SkipCells(int)SkipColumns(int)EventsWorkbookCreatedWorksheetCreatedWorksheetExporting
Not finding the help you need?
Contact Support