# WorkbookCommand.Args Property

> WorkbookCommand.Args property in the TX Sheet Control .NET API, with its syntax, its type object?[], a C# example and remarks on awaiting tasks and handles.

- **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 > WorkbookCommand > WorkbookCommand.Args Property
- **649 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbookcommand/args-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbookcommand/args-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbookcommand/args-property/llms-full.txt

---

### Syntax

```csharp
public object?[] Args { get; init; }
```

### Property Value

`object?[]`.

### Examples

Create a working document workflow using WorkbookCommand. Return the generated document or application data to the caller.

```csharp
using TXTextControl.TXSheetControl.Server;

async Task<byte[]> BuildWorkbookCommandArgsAsync(ServerSheetControl control)
{
    await control.BatchAsync([new WorkbookCommand("setCell", ["A1", "October invoice"]), new WorkbookCommand("setCell", ["B8", 120]), new WorkbookCommand("setCell", ["B9", 80]), new WorkbookCommand("setCell", ["B10", "=SUM(B8:B9)"])]);

    var sheet = await control.Workbook.Sheets.AtAsync(0);
    await sheet.Cell("A1").FormatAsync(new { fontFamily = "Liberation Sans", fontSize = 16, bold = true, textColor = "#ffffff", fillColor = "#163b63" });
    return await control.SaveAsync(StreamType.PDF);
}
```

### Remarks

Use the member with an instance or settings object from the documented package. Await task-returning operations. Document-bound handles must be resolved again after loading or deleting their owner.

### See Also

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

---

## Nearby

- **Previous:** [WorkbookCommand Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbookcommand/constructor/llms-full.txt)
- **Next:** [WorkbookCommand.Method Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbookcommand/method-property/llms-full.txt)
