TreeListXlExportOptions.SheetName Property
Specifies a name of the sheet in the exported document.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
Declaration
[DefaultValue(null)]
public string SheetName { get; set; }
Property Value
Type | Default | Description |
---|---|---|
String | null | The sheet name. |
Remarks
According to the Microsoft Excel requirements, the worksheet names cannot:
- Be blank.
- Contain more than 31 characters.
- Contain any of the following characters: / \ ? * : [ ]
- Begin or end with an apostrophe (‘).
- Be named “History”. This is a reserved word Excel uses internally.
async Task ExportXlsx_Click() {
await MyTreeList.ExportToXlsxAsync("ExportResult", new TreeListXlExportOptions() {
SheetName = "Tasks"
});
}
See Also