# ServerSheetControlOptions Class

> ServerSheetControlOptions class in the TX Sheet Control .NET API: Document limits, locale and font settings for server spreadsheet operations.

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

---

Document limits, locale and font settings for server spreadsheet operations.

### Syntax

```csharp
public class ServerSheetControlOptions
```

### Members

#### Constructors

| Constructor | Description |
|---|---|
| [Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontroloptions/constructor/llms-full.txt) |  |

#### Properties

| Property | Description |
|---|---|
| [AutoExpand](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontroloptions/autoexpand-property/llms-full.txt) |  |
| [Cells](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontroloptions/cells-property/llms-full.txt) |  |
| [Columns](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontroloptions/columns-property/llms-full.txt) |  |
| [Currency](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontroloptions/currency-property/llms-full.txt) |  |
| [DateSystem](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontroloptions/datesystem-property/llms-full.txt) |  |
| [FontDirectory](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontroloptions/fontdirectory-property/llms-full.txt) | Trusted deployed font directory. Defaults to TX\_SHEET\_FONT\_DIRECTORY or the packaged fonts directory. |
| [Fonts](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontroloptions/fonts-property/llms-full.txt) |  |
| [License](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontroloptions/license-property/llms-full.txt) | Signed entitlement for this major version; falls back to TX\_SHEET\_LICENSE. Missing configuration fails with LicenseMissing. |
| [Locale](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontroloptions/locale-property/llms-full.txt) |  |
| [MaxColumns](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontroloptions/maxcolumns-property/llms-full.txt) |  |
| [MaxRows](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontroloptions/maxrows-property/llms-full.txt) |  |
| [PageSetup](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontroloptions/pagesetup-property/llms-full.txt) |  |
| [Rows](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontroloptions/rows-property/llms-full.txt) |  |
| [SheetName](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontroloptions/sheetname-property/llms-full.txt) |  |
| [TimeZone](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontroloptions/timezone-property/llms-full.txt) |  |
| [UserName](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontroloptions/username-property/llms-full.txt) | Initial runtime comment author; excluded from document serialization. |

### Examples

Configure an isolated processing operation, create and format invoice cells, and return a PDF. Supply your own permitted resource files or valid signed license only when the example explicitly accepts them.

```csharp
using TXTextControl.TXSheetControl.Server;

async Task<byte[]> CreateConfiguredServerSheetControlOptionsReportAsync()
{
    var settings = new ServerSheetControlOptions();
    await using var control = new ServerSheetControl(settings);
    var book = control.Workbook;
    var sheet = await book.Sheets.AtAsync(0);
    await sheet.Cell("B8").SetValueAsync(120);
    await sheet.Cell("B9").SetValueAsync(80);
    await sheet.Cell("B10").SetFormulaAsync("=SUM(B8:B9)");
    await sheet.Cell("A1").SetTextAsync("October invoice");
    await sheet.Cell("A1").FormatAsync(new { fontFamily = "Liberation Sans", fontSize = 16, bold = true, textColor = "#ffffff", fillColor = "#163b63" });
    await sheet.Range("B8:B10").FormatAsync(new { numberFormatCode = "#,##0.00", fontFamily = "Liberation Sans", fontSize = 11 });
    return await control.SaveAsync(StreamType.PDF);
}
```

### See Also

- [TXTextControl.TXSheetControl.Server Namespace](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/llms-full.txt)
- [Workbooks and Worksheets](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/workbooks/llms-full.txt)

---

## In This Section

- [ServerSheetControlOptions.AutoExpand Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontroloptions/autoexpand-property/llms-full.txt): ServerSheetControlOptions.AutoExpand property in the TX Sheet Control .NET API, with its syntax, its type bool? and a C# example.
- [ServerSheetControlOptions.Cells Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontroloptions/cells-property/llms-full.txt): ServerSheetControlOptions.Cells property in the TX Sheet Control .NET API, with its type Dictionary<string, object?>? and a C# example.
- [ServerSheetControlOptions.Columns Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontroloptions/columns-property/llms-full.txt): ServerSheetControlOptions.Columns property in the TX Sheet Control .NET API, with its syntax, its type int? and a C# example.
- [ServerSheetControlOptions Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontroloptions/constructor/llms-full.txt): ServerSheetControlOptions constructor in the TX Sheet Control .NET API, with its syntax, a C# example and remarks on awaiting tasks and handles.
- [ServerSheetControlOptions.Currency Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontroloptions/currency-property/llms-full.txt): ServerSheetControlOptions.Currency property in the TX Sheet Control .NET API, with its syntax, its type string? and a C# example.
- [ServerSheetControlOptions.DateSystem Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontroloptions/datesystem-property/llms-full.txt): ServerSheetControlOptions.DateSystem property in the TX Sheet Control .NET API, with its syntax, its type string? and a C# example.
- [ServerSheetControlOptions.FontDirectory Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontroloptions/fontdirectory-property/llms-full.txt): ServerSheetControlOptions.FontDirectory property in the TX Sheet Control .NET API: Trusted deployed font directory. Covers its type string? and a C# example.
- [ServerSheetControlOptions.Fonts Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontroloptions/fonts-property/llms-full.txt): ServerSheetControlOptions.Fonts property in the TX Sheet Control .NET API, with its type EmbeddedFont[] and a C# example.
- [ServerSheetControlOptions.License Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontroloptions/license-property/llms-full.txt): ServerSheetControlOptions.License property in the TX Sheet Control .NET API: Signed entitlement for this major version; falls back to TX_SHEET_LICENSE.
- [ServerSheetControlOptions.Locale Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontroloptions/locale-property/llms-full.txt): ServerSheetControlOptions.Locale property in the TX Sheet Control .NET API, with its syntax, its type string? and a C# example.
- [ServerSheetControlOptions.MaxColumns Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontroloptions/maxcolumns-property/llms-full.txt): ServerSheetControlOptions.MaxColumns property in the TX Sheet Control .NET API, with its syntax, its type int? and a C# example.
- [ServerSheetControlOptions.MaxRows Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontroloptions/maxrows-property/llms-full.txt): ServerSheetControlOptions.MaxRows property in the TX Sheet Control .NET API, with its syntax, its type int? and a C# example.
- [ServerSheetControlOptions.PageSetup Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontroloptions/pagesetup-property/llms-full.txt): ServerSheetControlOptions.PageSetup property in the TX Sheet Control .NET API, with its syntax, its type object? and a C# example.
- [ServerSheetControlOptions.Rows Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontroloptions/rows-property/llms-full.txt): ServerSheetControlOptions.Rows property in the TX Sheet Control .NET API, with its syntax, its type int? and a C# example.
- [ServerSheetControlOptions.SheetName Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontroloptions/sheetname-property/llms-full.txt): ServerSheetControlOptions.SheetName property in the TX Sheet Control .NET API, with its syntax, its type string? and a C# example.
- [ServerSheetControlOptions.TimeZone Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontroloptions/timezone-property/llms-full.txt): ServerSheetControlOptions.TimeZone property in the TX Sheet Control .NET API, with its syntax, its type string? and a C# example.
- [ServerSheetControlOptions.UserName Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontroloptions/username-property/llms-full.txt): ServerSheetControlOptions.UserName property in the TX Sheet Control .NET API: Initial runtime comment author; excluded from document serialization.

---

## Nearby

- **Previous:** [ServerSheetControlException.Code Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontrolexception/code-property/llms-full.txt)
- **Next:** [ServerSheetControlOptions Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontroloptions/constructor/llms-full.txt)
