# TableColumnOptions Class

> TableColumnOptions class in the TX Sheet Control .NET API: Partial named-column update; omitted settings retain the existing column definition.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Class
- **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)
- **Implements:** `System.IEquatable<TXTextControl.TXSheetControl.Server.TableColumnOptions>`
- **Path:** TX Sheet Control > API Reference > .NET API > TXTextControl.TXSheetControl.Server > TableColumnOptions Class
- **943 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/tablecolumnoptions/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/tablecolumnoptions/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/tablecolumnoptions/llms-full.txt

---

Partial named-column update; omitted settings retain the existing column definition.

### Syntax

```csharp
public class TableColumnOptions
```

Interfaces: `IEquatable<TableColumnOptions>`.

### Members

#### Constructors

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

#### Properties

| Property | Description |
|---|---|
| [Formula](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/tablecolumnoptions/formula-property/llms-full.txt) |  |
| [Name](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/tablecolumnoptions/name-property/llms-full.txt) |  |
| [TotalsFormula](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/tablecolumnoptions/totalsformula-property/llms-full.txt) |  |
| [TotalsFunction](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/tablecolumnoptions/totalsfunction-property/llms-full.txt) |  |
| [TotalsLabel](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/tablecolumnoptions/totalslabel-property/llms-full.txt) |  |

### Examples

Apply TableColumnOptions to a small working document, then return the exported bytes. The caller can save or download the result.

```csharp
using TXTextControl.TXSheetControl.Server;

async Task<byte[]> CreateTableColumnOptionsReportAsync(ServerSheetControl control)
{
    var book = control.Workbook;
    var sheet = await book.Sheets.AtAsync(0);
    await sheet.Range("A7:D9").SetValuesAsync(new object?[][]
    {
        ["Description", "Quantity", "UnitPrice", "Amount"],
        ["Consulting", 3, 120, 360],
        ["Training", 2, 90, 180]
    });

    var table = await sheet.Tables.AddAsync("InvoiceLines", "A7:D9", new TableOptions { Style = "TableStyleMedium2", ShowRowStripes = true });

    var settings = new TableColumnOptions()
    {
        Formula = "=[@Quantity]*[@UnitPrice]",
        TotalsFunction = "sum"
    };

    await table.SetColumnAsync("Amount", settings);
    return await control.SaveAsync(StreamType.SpreadsheetML);
}
```

### See Also

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

---

## In This Section

- [TableColumnOptions Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/tablecolumnoptions/constructor/llms-full.txt): TableColumnOptions constructor in the TX Sheet Control .NET API, with its syntax, a C# example and remarks on awaiting tasks and handles.
- [TableColumnOptions.Formula Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/tablecolumnoptions/formula-property/llms-full.txt): TableColumnOptions.Formula property in the TX Sheet Control .NET API, with its syntax, its type string? and a C# example.
- [TableColumnOptions.Name Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/tablecolumnoptions/name-property/llms-full.txt): TableColumnOptions.Name property in the TX Sheet Control .NET API, with its syntax, its type string?, a C# example and remarks on awaiting tasks and handles.
- [TableColumnOptions.TotalsFormula Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/tablecolumnoptions/totalsformula-property/llms-full.txt): TableColumnOptions.TotalsFormula property in the TX Sheet Control .NET API, with its syntax, its type string? and a C# example.
- [TableColumnOptions.TotalsFunction Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/tablecolumnoptions/totalsfunction-property/llms-full.txt): TableColumnOptions.TotalsFunction property in the TX Sheet Control .NET API, with its syntax, its type string? and a C# example.
- [TableColumnOptions.TotalsLabel Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/tablecolumnoptions/totalslabel-property/llms-full.txt): TableColumnOptions.TotalsLabel property in the TX Sheet Control .NET API, with its syntax, its type string? and a C# example.

---

## Nearby

- **Previous:** [TableColumnDefinition.TotalsLabel Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/tablecolumndefinition/totalslabel-property/llms-full.txt)
- **Next:** [TableColumnOptions Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/tablecolumnoptions/constructor/llms-full.txt)
