# Drawing Class

> Drawing class in the TX Sheet Control .NET API: Worksheet-scoped server API contract; requests retain document identity and cancellation semantics.

- **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)
- **Inherits:** `TXTextControl.TXSheetControl.Server.DocumentObject`
- **Path:** TX Sheet Control > API Reference > .NET API > TXTextControl.TXSheetControl.Server > Drawing Class
- **1339 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawing/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawing/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawing/llms-full.txt

---

Worksheet-scoped server API contract; requests retain document identity and cancellation semantics.

### Syntax

```csharp
public class Drawing
```

### Members

#### Properties

| Property | Description |
|---|---|
| [Id](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawing/id-property/llms-full.txt) |  |

#### Methods

| Method | Description |
|---|---|
| [BringForwardAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawing/bringforwardasync-method/llms-full.txt) | Performs an operation on this document without activating another worksheet. |
| [BringToFrontAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawing/bringtofrontasync-method/llms-full.txt) | Performs an operation on this document without activating another worksheet. |
| [CopyToAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawing/copytoasync-method/llms-full.txt) | Performs an operation on this document without activating another worksheet. |
| [GetNameAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawing/getnameasync-method/llms-full.txt) | Performs an operation on this document without activating another worksheet. |
| [GetSizeAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawing/getsizeasync-method/llms-full.txt) | Performs an operation on this document without activating another worksheet. |
| [GetSnapshotAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawing/getsnapshotasync-method/llms-full.txt) | Performs an operation on this document without activating another worksheet. |
| [MoveToAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawing/movetoasync-method/llms-full.txt) | Performs an operation on this document without activating another worksheet. |
| [RemoveAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawing/removeasync-method/llms-full.txt) | Performs an operation on this document without activating another worksheet. |
| [RenameAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawing/renameasync-method/llms-full.txt) | Performs an operation on this document without activating another worksheet. |
| [ResizeAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawing/resizeasync-method/llms-full.txt) | Performs an operation on this document without activating another worksheet. |
| [RotateAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawing/rotateasync-method/llms-full.txt) | Performs an operation on this document without activating another worksheet. |
| [SendBackwardAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawing/sendbackwardasync-method/llms-full.txt) | Performs an operation on this document without activating another worksheet. |
| [SendToBackAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawing/sendtobackasync-method/llms-full.txt) | Performs an operation on this document without activating another worksheet. |
| [UpdateAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawing/updateasync-method/llms-full.txt) | Performs an operation on this document without activating another worksheet. |

### Examples

Build a small report using this document API and return its PDF bytes. Pass a live control with a fresh workbook; the caller owns its lifetime.

```csharp
using TXTextControl.TXSheetControl.Server;

async Task<byte[]> CreateDrawingReportAsync(ServerSheetControl control)
{
    var book = control.Workbook;
    var sheet = await book.Sheets.AtAsync(0);
    var drawing = await sheet.Drawings.AddShapeAsync(new { type = "rectangle", name = "Invoice heading", text = "Invoice", anchor = new { cell = "F2" }, size = new { width = 240, height = 80 }, fill = "#e5eef4" });
    await drawing.UpdateAsync(new { text = "Invoice approved", fill = "#e5eef4" });
    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)
- [Pictures and Shapes](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/pictures-shapes/llms-full.txt)
- [GetBarcodeAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawing/getbarcodeasync-method/llms-full.txt) — Reads detached floating barcode settings, or null for an ordinary drawing.
- [UpdateBarcodeAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawing/updatebarcodeasync-method/llms-full.txt) — Replaces all barcode settings while retaining drawing identity and geometry. Ordinary drawings reject this operation.

---

## In This Section

- [Drawing.BringForwardAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawing/bringforwardasync-method/llms-full.txt): Drawing.BringForwardAsync method in the TX Sheet Control .NET API: Performs an operation on this document without activating another worksheet.
- [Drawing.BringToFrontAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawing/bringtofrontasync-method/llms-full.txt): Drawing.BringToFrontAsync method in the TX Sheet Control .NET API: Performs an operation on this document without activating another worksheet.
- [Drawing.CopyToAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawing/copytoasync-method/llms-full.txt): Drawing.CopyToAsync method in the TX Sheet Control .NET API: Performs an operation on this document without activating another worksheet.
- [Drawing.GetBarcodeAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawing/getbarcodeasync-method/llms-full.txt): Drawing.GetBarcodeAsync method in the TX Sheet Control .NET API: Reads detached floating barcode settings, or null for an ordinary drawing.
- [Drawing.GetNameAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawing/getnameasync-method/llms-full.txt): Drawing.GetNameAsync method in the TX Sheet Control .NET API: Performs an operation on this document without activating another worksheet.
- [Drawing.GetSizeAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawing/getsizeasync-method/llms-full.txt): Drawing.GetSizeAsync method in the TX Sheet Control .NET API: Performs an operation on this document without activating another worksheet.
- [Drawing.GetSnapshotAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawing/getsnapshotasync-method/llms-full.txt): Drawing.GetSnapshotAsync method in the TX Sheet Control .NET API: Performs an operation on this document without activating another worksheet.
- [Drawing.Id Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawing/id-property/llms-full.txt): Drawing.Id property in the TX Sheet Control .NET API, with its syntax, its type string, a C# example and remarks on awaiting tasks and handles.
- [Drawing.MoveToAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawing/movetoasync-method/llms-full.txt): Drawing.MoveToAsync method in the TX Sheet Control .NET API: Performs an operation on this document without activating another worksheet.
- [Drawing.RemoveAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawing/removeasync-method/llms-full.txt): Drawing.RemoveAsync method in the TX Sheet Control .NET API: Performs an operation on this document without activating another worksheet.
- [Drawing.RenameAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawing/renameasync-method/llms-full.txt): Drawing.RenameAsync method in the TX Sheet Control .NET API: Performs an operation on this document without activating another worksheet.
- [Drawing.ResizeAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawing/resizeasync-method/llms-full.txt): Drawing.ResizeAsync method in the TX Sheet Control .NET API: Performs an operation on this document without activating another worksheet.
- [Drawing.RotateAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawing/rotateasync-method/llms-full.txt): Drawing.RotateAsync method in the TX Sheet Control .NET API: Performs an operation on this document without activating another worksheet.
- [Drawing.SendBackwardAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawing/sendbackwardasync-method/llms-full.txt): Drawing.SendBackwardAsync method in the TX Sheet Control .NET API: Performs an operation on this document without activating another worksheet.
- [Drawing.SendToBackAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawing/sendtobackasync-method/llms-full.txt): Drawing.SendToBackAsync method in the TX Sheet Control .NET API: Performs an operation on this document without activating another worksheet.
- [Drawing.UpdateAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawing/updateasync-method/llms-full.txt): Drawing.UpdateAsync method in the TX Sheet Control .NET API: Performs an operation on this document without activating another worksheet.
- [Drawing.UpdateBarcodeAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawing/updatebarcodeasync-method/llms-full.txt): Drawing.UpdateBarcodeAsync method in the .NET API: Replaces all barcode settings while keeping drawing identity and geometry; ordinary drawings reject it.

---

## Nearby

- **Previous:** [DocumentProperties.Version Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/version-property/llms-full.txt)
- **Next:** [Drawing.BringForwardAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawing/bringforwardasync-method/llms-full.txt)
