Skip to main content
All docs
V25.1
  • TreeListXlExportOptions.SheetName Property

    Specifies the name of the sheet in the exported document.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.1.dll

    NuGet Package: DevExpress.Blazor

    Declaration

    [DefaultValue(null)]
    public string SheetName { get; set; }

    Property Value

    Type Default Description
    String null

    The sheet name.

    Remarks

    The SheetName property allows you to specify the worksheet name. The following naming limitations apply:

    • The sheet name must be unique.
    • The sheet name must not exceed 31 characters.
    • The sheet name must not contain the following symbols: , /, ?, :, *, [ or ].
    • The sheet name must not start and end with a single quote (‘).
    • The sheet name must not be an empty string.

    An ArgumentException occurs when the sheet name does not meet the aforementioned requirements.

    async Task ExportXlsx_Click() {
        await MyTreeList.ExportToXlsxAsync("ExportResult", new TreeListXlExportOptions() {
            SheetName = "Tasks"
        });
    }
    
    See Also