# PdfOptions.DashboardWidth Property

> PdfOptions.DashboardWidth property in the TX Sheet Control .NET API: Sets the dashboard canvas width in CSS pixels, from 480 to 4096. The default width is 1440.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Property
- **Namespace:** `TXTextControl.TXSheetControl.Server`
- **Package:** `TXTextControl.TXSheetControl.Server` (assembly `TXTextControl.TXSheetControl.Api.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Package:** `TXTextControl.TXSheetControl.Blazor` (assembly `TXTextControl.TXSheetControl.Api.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Path:** TX Sheet Control > API Reference > .NET API > TXTextControl.TXSheetControl.Server > PdfOptions > PdfOptions.DashboardWidth Property
- **408 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/dashboardwidth-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/dashboardwidth-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/dashboardwidth-property/llms-full.txt

---

Sets the dashboard canvas width in CSS pixels, from 480 to 4096. The default width is 1440.

### Syntax

```csharp
public int? DashboardWidth { get; init; }
```

### Examples

Pass an initialized control and an existing dashboard. Apply a coordinated theme and export the current reporting context as a PDF.

```csharp
using TXTextControl.TXSheetControl.Server;

async Task ExportDashboard(ServerSheetControl control, Dashboard dashboard)
{
    await dashboard.ApplyThemeAsync("dark-1");
    await control.SaveAsync("performance.pdf", StreamType.PDF, new SaveOptions {
        Pdf = new PdfOptions {
            DashboardId = dashboard.Id,
            DashboardWidth = 1440,
            DashboardPage = "fit"
        }
    });
}
```

### Remarks

PDF branding follows the configured license and whether the editor or server generates the file. Browser animations and editing controls are omitted. TXWB remains the editable dashboard format.

### See Also

- [PdfOptions](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/llms-full.txt)

---

## Nearby

- **Previous:** [PdfOptions.DashboardId Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/dashboardid-property/llms-full.txt)
- **Next:** [PdfOptions.DashboardPage Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/dashboardpage-property/llms-full.txt)
