# TreeListControl.ExportToPdf method (1 of 2)

Exports the control's visible data to the specified stream in PDF format.

```csharp
public void ExportToPdf(Stream stream, PageExportOptions? options = null)
```

## See Also

* class [PageExportOptions](../../Eremex.AvaloniaUI.Controls.DataControl/PageExportOptions.md)
* class [TreeListControl](../TreeListControl.md)
* namespace [Eremex.AvaloniaUI.Controls.TreeList](../index.md)

---

# TreeListControl.ExportToPdf method (2 of 2)

Exports the control's visible data to the specified file in PDF format.

```csharp
public void ExportToPdf(string fileName, PageExportOptions? options = null)
```

## See Also

* class [PageExportOptions](../../Eremex.AvaloniaUI.Controls.DataControl/PageExportOptions.md)
* class [TreeListControl](../TreeListControl.md)
* namespace [Eremex.AvaloniaUI.Controls.TreeList](../index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Avalonia.Controls.dll -->
