Skip to main content
All docs
V24.2

TreeListExportCustomizeCellEventArgs.Hyperlink Property

Specifies the processed cell’s hyperlink.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

public string Hyperlink { get; set; }

Property Value

Type Description
String

The hyperlink.

Remarks

The CustomizeCell action allows you to customize a cell in the exported file. Use the Hyperlink property to add a hyperlink in the processed cell.

Set the Handled property to true to apply the changes made in the action handler to the cell.

The following example adds a hyperlink to the document’s Name column:

async Task ExportXlsx_Click() {
    await MyTreeList.ExportToXlsxAsync("ExportResult", new TreeListXlExportOptions() {
        CustomizeCell = CustomizeCell
    });
}
void CustomizeCell(TreeListExportCustomizeCellEventArgs e) {
    if (e.AreaType == DevExpress.Export.SheetAreaType.DataArea && e.ColumnFieldName == "Name") {
        var product = e.DataItem as TestModel;
        e.Hyperlink = product.Url;
        e.Handled = true;
    }
};
See Also