menu

WinUI

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class TreeGridExcelExportExtensions - WinUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class TreeGridExcelExportExtensions

    Represents a class that provides the extensions for exporting SfTreeGrid into an Excel file.

    Inheritance
    System.Object
    TreeGridExcelExportExtensions
    Namespace: Syncfusion.UI.Xaml.TreeGrid.Export
    Assembly: Syncfusion.GridExport.WinUI.dll
    Syntax
    public static class TreeGridExcelExportExtensions : Object

    Methods

    ExportToExcel(SfTreeGrid, TreeGridExcelExportOptions)

    Exports the data in the SfTreeGrid to Excel file, considering sorting, filtering, cell types, merged cells and stacked headers.

    Declaration
    public static ExcelEngine ExportToExcel(this SfTreeGrid treeGrid, TreeGridExcelExportOptions excelExportOptions)
    Parameters
    Type Name Description
    SfTreeGrid treeGrid

    The SfTreeGrid to be exported.

    TreeGridExcelExportOptions excelExportOptions

    Specifies the instance of the classTreeGridExcelExportOptions which is used to set the exporting options.

    Returns
    Type Description
    ExcelEngine

    Returns the instance of class. ExcelEngine

    ExportToExcel(SfTreeGrid, TreeGridExcelExportOptions, IWorkbook)

    Exports the data in the SfTreeGrid to a specified workbook in an Excel document.

    Declaration
    public static void ExportToExcel(this SfTreeGrid treeGrid, TreeGridExcelExportOptions excelExportOptions, IWorkbook workbook)
    Parameters
    Type Name Description
    SfTreeGrid treeGrid

    The SfTreeGrid to be exported.

    TreeGridExcelExportOptions excelExportOptions

    An instance of the TreeGridExcelExportOptions class that is used to customize the Excel export process.

    IWorkbook workbook

    The Excel Workbook to export the data to.

    ExportToExcel(SfTreeGrid, TreeGridExcelExportOptions, IWorksheet)

    Exports the data in the SfTreeGrid to a specified worksheet in an Excel document.

    Declaration
    public static void ExportToExcel(this SfTreeGrid treeGrid, TreeGridExcelExportOptions excelExportOptions, IWorksheet worksheet)
    Parameters
    Type Name Description
    SfTreeGrid treeGrid

    The SfTreeGrid to be exported.

    TreeGridExcelExportOptions excelExportOptions

    An instance of the TreeGridExcelExportOptions class that is used to customize the Excel export process.

    IWorksheet worksheet

    The worksheet in the Excel document to export the data to.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved