Back to Devexpress

TreeListXlExportOptions.RowExpandMode Property

blazor-devexpress-dot-blazor-dot-treelistxlexportoptions-4aefec2c.md

latest1.7 KB
Original Source

TreeListXlExportOptions.RowExpandMode Property

Specifies how the TreeList export nodes that contain child nodes.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(TreeListExportRowExpandMode.KeepExpandState)]
public TreeListExportRowExpandMode RowExpandMode { get; set; }

Property Value

TypeDefaultDescription
TreeListExportRowExpandModeKeepExpandState

An enumeration value.

|

Available values:

NameDescription
None

All nodes are exported as a plain list (in the first outline).

| | KeepExpandState |

If nodes are expanded when exported from the TreeList source, they remain expanded in the new document.

| | ExpandAll |

All nodes are expanded.

| | CollapseAll |

All nodes are collapsed.

|

Remarks

The TreeList preserves row expanded state during export. Use the RowExpandMode property to expand or collapse all rows in the exported document, or to export all rows as a plain list.

The following example expands all nodes:

csharp
async Task ExportXlsx_Click() {
    await MyTreeList.ExportToXlsxAsync("ExportResult", new TreeListXlExportOptions() {
        RowExpandMode = TreeListExportRowExpandMode.ExpandAll
    });
}

See Also

TreeListXlExportOptions Class

TreeListXlExportOptions Members

DevExpress.Blazor Namespace