New to Telerik UI for WPFStart a free 30-day trial

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

Definition

Namespace:Telerik.Windows.Controls.GridView.SpreadsheetStreamingExport

Assembly:Telerik.Windows.Controls.GridView.SpreadsheetStreamingExport.dll

Syntax:

C#
public class SpreadStreamExportRenderer

Inheritance: objectSpreadStreamExportRenderer

Constructors

C#
public SpreadStreamExportRenderer()

Properties

Gets or sets the index of the column.

C#
public int ColumnIndex { get; set; }
Property Value:

The index of the column.

Gets or sets the index of the row.

C#
public int RowIndex { get; set; }
Property Value:

The index of the row.

Methods

Create and add excel worksheet to the workbook.

C#
public virtual void AddWorksheet(string sheetName)
Parameters:sheetNamestring

Excel workbook.

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

C#
public virtual void ApplyCellFormat(object format)
Parameters:formatobject

The format.

Applies the cell style.

C#
public virtual void ApplyCellStyle(SpreadStreamCellStyle cellStyle, string numberFormat)
Parameters:cellStyleSpreadStreamCellStyle

The cell style.

numberFormatstring

The format string.

Calls the WorksheetCreated event.

C#
public virtual bool CallOnWorksheetCreated()
Returns:

bool

Clears the value of current Cell.

C#
public virtual void ClearCellValue()

Creates CellSelection.

C#
public virtual void CreateAndAddCellForMerge(int startRowIndex, int startColumnIndex, int endRowIndex, int endColumnIndex)
Parameters:startRowIndexint

From row index.

startColumnIndexint

From column index.

endRowIndexint

To row index.

endColumnIndexint

To column index.

Creates CellSelection.

C#
public virtual void CreateCell()

Creates the column.

C#
public virtual void CreateColumn()

Creates the row.

C#
public virtual void CreateRow()

Creates new workbook.

C#
public virtual void CreateWorkbook(Stream stream, SpreadStreamExportFormat exportFormat)
Parameters:streamStream

The stream.

exportFormatSpreadStreamExportFormat

The export format.

Finishes the cell.

C#
public virtual void FinishCell()

Finishes the column.

C#
protected virtual void FinishColumn()

Exports workbook.

C#
public virtual void FinishExport()

Finishes the row.

C#
protected virtual void FinishRow()

Finishes the workbook.

C#
protected virtual void FinishWorkbook()

Finishes the worksheet.

C#
protected virtual void FinishWorksheet()

Gets current Cell.

C#
public virtual object GetCell()
Returns:

object

Cell as object.

Gets current SpreadCellFormat.

C#
public virtual SpreadCellFormat GetCellFormat(bool createNew)
Parameters:createNewboolReturns:

SpreadCellFormat

Gets the cell style info.

C#
public virtual SpreadStreamCellStyle GetCellStyle()
Returns:

SpreadStreamCellStyle

Gets the column.

C#
public virtual object GetColumn()
Returns:

object

Gets file extension.

C#
public virtual string GetFileExtension(SpreadStreamExportFormat exportFormat)
Parameters:exportFormatSpreadStreamExportFormat

Export format.

Returns:

string

Gets current Row.

C#
public virtual object GetRow(bool finishCell)
Parameters:finishCellboolReturns:

object

Row as object.

Gets current worksheet.

C#
public virtual object GetWorksheet()
Returns:

object

Worksheet as object.

Raises the event.

C#
protected virtual void OnWorkbookCreated(SpreadStreamWorkbookEventArgs e)
Parameters:eSpreadStreamWorkbookEventArgs

The SpreadStreamWorkbookEventArgs instance containing the event data.

Raises the event.

C#
protected virtual bool OnWorksheetCreated(SpreadStreamWorksheetEventArgs e)
Parameters:eSpreadStreamWorksheetEventArgs

The SpreadStreamWorksheetEventArgs instance containing the event data.

Returns:

bool

Raises the event.

C#
protected virtual void OnWorksheetExporting(SpreadStreamWorksheetEventArgs e)
Parameters:eSpreadStreamWorksheetEventArgs

The SpreadStreamWorksheetEventArgs instance containing the event data.

Sets the value as boolean.

C#
protected virtual bool SetBooleanValue(object value)
Parameters:valueobject

The value.

Returns:

bool

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

Sets the cell format.

C#
public virtual void SetCellFormat(SpreadCellFormat spreadCellFormat)
Parameters:spreadCellFormatSpreadCellFormat

The cell format.

Sets the value of current CellSelection.

C#
public virtual void SetCellValue(DataType dataType, object value)
Parameters:dataTypeDataType

CellSelection data type.

valueobject

Value.

Sets the value of current CellSelection.

C#
public virtual void SetCellValue(string text)
Parameters:textstring

Text.

Sets the width of current worksheet column.

C#
public virtual void SetColumnWidth(double width, bool pixels)
Parameters:widthdouble

The width.

pixelsbool

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

Sets the value as date time.

C#
protected virtual bool SetDateTimeValue(object value)
Parameters:valueobject

The value.

Returns:

bool

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

Sets current worksheet column as hidden.

C#
public virtual void SetHiddenColumn()

Sets current worksheet row as hidden.

C#
public virtual void SetHiddenRow()

Sets the value as number.

C#
protected virtual bool SetNumberValue(object value)
Parameters:valueobject

The value.

Returns:

bool

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

Sets height of current row in worksheet.

C#
public virtual void SetRowHeight(double height, bool pixels)
Parameters:heightdouble

Height of row.

pixelsbool

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

Sets the value as string.

C#
protected virtual bool SetStringValue(object value)
Parameters:valueobject

The value.

Returns:

bool

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

Skips the cells.

C#
public virtual void SkipCells(int count)
Parameters:countint

The count.

Skips the columns.

C#
public virtual void SkipColumns(int count)
Parameters:countint

The count.

Events

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

C#
public event SpreadStreamWorkbookEventHandler WorkbookCreated

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

C#
public event SpreadStreamWorksheetEventHandler WorksheetCreated

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

C#
public event SpreadStreamWorksheetEventHandler WorksheetExporting