Class TreeGridToExcelConverter
Provides the base implementation to export the SfTreeGrid to Excel.
Inheritance
System.Object
TreeGridToExcelConverter
Assembly: Syncfusion.SfGridConverter.WPF.dll
Syntax
public class TreeGridToExcelConverter : Object
Constructors
TreeGridToExcelConverter()
Declaration
public TreeGridToExcelConverter()
Fields
Stores column names and its format.
Declaration
protected Dictionary<string, string> ColumnFormat
Field Value
Type |
System.Collections.Generic.Dictionary<System.String, System.String> |
PropertyAccessProvider
Declaration
protected IPropertyAccessProvider PropertyAccessProvider
Field Value
Properties
ExcelColumnIndex
Gets or sets the column index in worksheet to export the data.
Declaration
protected int ExcelColumnIndex { get; set; }
Property Value
Remarks
ExcelRowIndex
Gets or sets the row index in worksheet to export the data.
Declaration
protected int ExcelRowIndex { get; set; }
Property Value
Methods
ExportCellToExcel(SfTreeGrid, TreeNode, String, IWorksheet, IRange, TreeGridExcelExportingOptions)
Declaration
protected void ExportCellToExcel(SfTreeGrid treeGrid, TreeNode node, string columnName, IWorksheet sheet, IRange excelrange, TreeGridExcelExportingOptions excelExportingOptions)
Parameters
Declaration
protected virtual void ExportHeadersToExcel(SfTreeGrid treeGrid, IWorksheet sheet, TreeGridExcelExportingOptions excelExportingOptions)
Parameters
ExportIndentColumn(IWorksheet, TreeGridExcelExportingOptions)
Declaration
protected virtual void ExportIndentColumn(IWorksheet sheet, TreeGridExcelExportingOptions excelExportingOptions)
Parameters
ExportNodesToExcel(SfTreeGrid, TreeNodes, IWorksheet, TreeGridExcelExportingOptions)
Declaration
protected virtual void ExportNodesToExcel(SfTreeGrid treeGrid, TreeNodes nodes, IWorksheet sheet, TreeGridExcelExportingOptions excelExportingOptions)
Parameters
ExportNodeToExcel(SfTreeGrid, TreeNode, IWorksheet, TreeGridExcelExportingOptions)
Declaration
protected void ExportNodeToExcel(SfTreeGrid treeGrid, TreeNode node, IWorksheet sheet, TreeGridExcelExportingOptions excelExportingOptions)
Parameters
Export NumberFormat to excel.
Declaration
protected virtual void ExportNumberFormatToExcel(IRange excelrange, TreeGridColumn treeGridColumn, object cellValue)
Parameters
Type |
Name |
Description |
IRange |
excelrange |
|
TreeGridColumn |
treeGridColumn |
Specifies the TreeGridColumn.
|
System.Object |
cellValue |
Specifies the cell value.
|
ExportRowStyle(IRange, IStyle, TreeNode)
Export the row style to excel.
Declaration
protected virtual void ExportRowStyle(IRange excelRange, IStyle style, TreeNode node = null)
Parameters
Type |
Name |
Description |
IRange |
excelRange |
Specifies the excel range.
|
IStyle |
style |
Specifies the style.
|
TreeNode |
node |
|
Declaration
protected virtual void ExportStackedHeaderToExcel(SfTreeGrid grid, IWorksheet sheet, TreeGridExcelExportingOptions exportingOptions, StackedHeaderRow stackedHeaderRow)
Parameters
ExportToExcel(SfTreeGrid, TreeGridExcelExportingOptions)
Declaration
public virtual ExcelEngine ExportToExcel(SfTreeGrid treeGrid, TreeGridExcelExportingOptions excelExportingOptions)
Parameters
Returns
ExportToExcel(SfTreeGrid, IWorkbook, TreeGridExcelExportingOptions)
Declaration
public virtual void ExportToExcel(SfTreeGrid treeGrid, IWorkbook workbook, TreeGridExcelExportingOptions excelExportingOptions)
Parameters
ExportToExcel(SfTreeGrid, IWorksheet, TreeGridExcelExportingOptions)
Declaration
public virtual void ExportToExcel(SfTreeGrid treeGrid, IWorksheet sheet, TreeGridExcelExportingOptions excelExportingOptions)
Parameters
ExportToExcelWorksheet(SfTreeGrid, IWorksheet, TreeGridExcelExportingOptions)
Declaration
protected virtual void ExportToExcelWorksheet(SfTreeGrid treeGrid, IWorksheet sheet, TreeGridExcelExportingOptions excelExportingOptions)
Parameters
GetMaxLevel(TreeNodes, ref Int32)
Return the maximum level of the TreeNode.
Declaration
protected void GetMaxLevel(TreeNodes nodes, ref int maxlevel)
Parameters
Type |
Name |
Description |
TreeNodes |
nodes |
Specifies the collection of node in SfTreeGrid.
|
System.Int32 |
maxlevel |
Specifies the level of TreeNode.
|
InitializeCellStyle(SfTreeGrid, IWorksheet, TreeGridExcelExportingOptions)
Declaration
protected virtual void InitializeCellStyle(SfTreeGrid treeGrid, IWorksheet sheet, TreeGridExcelExportingOptions excelExportingOptions)
Parameters
SetColumnWidth(SfTreeGrid, IWorksheet, TreeGridExcelExportingOptions)
Declaration
protected virtual void SetColumnWidth(SfTreeGrid treeGrid, IWorksheet sheet, TreeGridExcelExportingOptions excelExportingOptions)
Parameters