# Style Exported Html

You can use the ExportFormat.Html to export RadGridView in HTML format.

> important As of **Q3 2013 GridViewElementExportingEventArgs** exposes a new argument **VisualParameters**. The value of the property depends on the export format. Please note that it is only valid when exporting with **ExportFormat.ExcelML** and **ExportFormat.Html**.

## Set Exported Element's VisualParameters

When using the ElementExporting event, the type of the VisualParameters property for this format is **GridViewHtmlVisualExportParameters**. It has the following properties:

* *Background*
* *FontFamily*
* *FontSize*
* *FontWeight*
* *Foreground*
* *Height*
* *TextAlignment*
* *VerticalAlignment*
* *Width*

For example:

**Example 1: Set the properties of the VisualParameters:**

```C#
private void clubsGrid_ElementExporting_1(object sender, GridViewElementExportingEventArgs e)
{
    if (e.VisualParameters is GridViewHtmlVisualExportParameters)
    {
        var param = e.VisualParameters as GridViewHtmlVisualExportParameters;
        param.Background = Colors.Red;
        param.FontFamily = new FontFamily("Verdana");
        param.FontSize = 30;
        param.FontWeight = FontWeights.Bold;
        param.Foreground = Colors.Green;
        param.Height = 50;
        param.TextAlignment = TextAlignment.Center;
        param.VerticalAlignment = VerticalAlignment.Bottom;
        param.Width = 500;
    }
}
```

You can read more about the export events [here](https://www.telerik.com/products/wpf/documentation/controls/radgridview/export/events/datacontext).

## See Also

* [SpreadsheetStreamingExport](https://www.telerik.com/products/wpf/documentation/controls/radgridview/export/excel/export-with-spreadsheetstreamingexport)
* [ExportToXlsx](https://www.telerik.com/products/wpf/documentation/controls/radgridview/export/excel/export-xlsx)
* [ExportToPdf](https://www.telerik.com/products/wpf/documentation/controls/radgridview/export/pdf/export-pdf)
