Class ExportToExcelML
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI.Export
Assembly: TelerikData.dll
Syntax
public class ExportToExcelML : IExportGridTo
Constructors
ExportToExcelML(RadGridView)
Properties
ChildViewExportMode
Gets or sets the child view export mode.
Declaration
public ChildViewExportMode ChildViewExportMode { get; set; }
Property Value
Child The child view export mode. |
Encoding
Gets or sets the encoding used for the exported file. Default encoding is UTF8.
Declaration
public Encoding Encoding { get; set; }
Property Value
System.
|
ExportHierarchy
Set if child rows should be exported.
Declaration
public bool ExportHierarchy { set; }
Property Value
System.
|
ExportVisualSettings
Sets a value indicating whether the visual settings should be exported.
Declaration
public bool ExportVisualSettings { set; }
Property Value
System.
|
FileExtension
Sets the file extension of the exported file.
Declaration
public string FileExtension { set; }
Property Value
System. The file extension. |
Implements
HiddenColumnOption
Sets a value indicating how hidden columns are exported.
Declaration
public HiddenOption HiddenColumnOption { set; }
Property Value
Hidden The hidden column option. |
Implements
HiddenRowOption
Sets a value indicating how hidden rows are exported.
Declaration
public HiddenOption HiddenRowOption { set; }
Property Value
Hidden The hidden row option. |
Implements
PagingExportOption
Sets a value indicating how the export behavies when paging is enabled.
Declaration
public PagingExportOption PagingExportOption { set; }
Property Value
Paging The paging export option. |
RadGridViewToExport
Sets the RadGridView to export.
Declaration
public RadGridView RadGridViewToExport { set; }
Property Value
Rad The RadGridView to export. |
Implements
SheetMaxRows
Sets the sheet max rows.
Declaration
public ExcelMaxRows SheetMaxRows { set; }
Property Value
Excel The sheet max rows. |
SheetName
Sets the name of the sheet.
Declaration
public string SheetName { set; }
Property Value
System. The name of the sheet. |
SummariesExportOption
Sets a value indicating how summary rows are exported.
Declaration
public SummariesOption SummariesExportOption { set; }
Property Value
Summaries The summaries export option. |
Implements
Methods
AddCustomExcelRow(TableElement, Int32, Object[])
Add custom row in the provided excel table element
Declaration
public SingleStyleElement AddCustomExcelRow(TableElement excelTableElement, int rowHeight, params object[] cellValues)
Parameters
Table Excel table element where the new row will be added |
System. Custom row height in pixels. If 0 than the height has default value |
System. Values for the every excel cell in the custom row |
Returns
Single New row's style element for further formatting |
OnChildViewExporting(ChildViewExportingEventArgs)
Raises the Child
Declaration
protected virtual void OnChildViewExporting(ChildViewExportingEventArgs e)
Parameters
Child The Child |
OnExcelCellFormatting(ExcelCellFormattingEventArgs)
Raises the Excel
Declaration
protected virtual void OnExcelCellFormatting(ExcelCellFormattingEventArgs e)
Parameters
Excel The Excel |
OnExcelCellFormatting(ExcelRowFormattingEventArgs)
Raises the Excel
Declaration
protected virtual void OnExcelCellFormatting(ExcelRowFormattingEventArgs e)
Parameters
Excel The Excel |
OnExcelTableCreated(ExcelTableCreatedEventArgs)
Raises the Excel
Declaration
protected virtual void OnExcelTableCreated(ExcelTableCreatedEventArgs e)
Parameters
Excel The Excel |
RunExport(String)
Creates ExcelML file
Declaration
public void RunExport(string fileName)
Parameters
System. Export file name |
Implements
Events
ChildViewExporting
Occurs when a child view will be exported.
Declaration
public event ChildViewExportingEventHandler ChildViewExporting
Event Type
ExcelCellFormatting
Occurs for every cell that is being exported.
Declaration
public event ExcelCellFormattingEventHandler ExcelCellFormatting
Event Type
ExcelRowFormatting
Occurs for every row that is being exported.
Declaration
public event ExcelRowFormattingEventHandler ExcelRowFormatting
Event Type
ExcelTableCreated
Occurs when the excel table is created.
Declaration
public event ExcelTableCreatedEventHandler ExcelTableCreated