# DrawingGroup Class

> DrawingGroup 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 > DrawingGroup Class
- **1257 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawinggroup/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawinggroup/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawinggroup/llms-full.txt

---

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

### Syntax

```csharp
public class DrawingGroup
```

### Members

#### Properties

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

#### Methods

| Method | Description |
|---|---|
| [BringForwardAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawinggroup/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/drawinggroup/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/drawinggroup/copytoasync-method/llms-full.txt) | Performs an operation on this document without activating another worksheet. |
| [GetMembersAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawinggroup/getmembersasync-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/drawinggroup/getsizeasync-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/drawinggroup/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/drawinggroup/removeasync-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/drawinggroup/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/drawinggroup/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/drawinggroup/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/drawinggroup/sendtobackasync-method/llms-full.txt) | Performs an operation on this document without activating another worksheet. |
| [UngroupAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawinggroup/ungroupasync-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[]> CreateDrawingGroupReportAsync(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" });
    var second = await sheet.Drawings.AddShapeAsync(new { type = "rectangle", name = "Invoice badge", anchor = new { cell = "H5" } });
    var drawingGroup = await sheet.Drawings.GroupAsync([drawing, second]);
    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)

---

## In This Section

- [DrawingGroup.BringForwardAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawinggroup/bringforwardasync-method/llms-full.txt): DrawingGroup.BringForwardAsync method in the TX Sheet Control .NET API: Performs an operation on this document without activating another worksheet.
- [DrawingGroup.BringToFrontAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawinggroup/bringtofrontasync-method/llms-full.txt): DrawingGroup.BringToFrontAsync method in the TX Sheet Control .NET API: Performs an operation on this document without activating another worksheet.
- [DrawingGroup.CopyToAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawinggroup/copytoasync-method/llms-full.txt): DrawingGroup.CopyToAsync method in the TX Sheet Control .NET API: Performs an operation on this document without activating another worksheet.
- [DrawingGroup.GetMembersAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawinggroup/getmembersasync-method/llms-full.txt): DrawingGroup.GetMembersAsync method in the TX Sheet Control .NET API: Performs an operation on this document without activating another worksheet.
- [DrawingGroup.GetSizeAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawinggroup/getsizeasync-method/llms-full.txt): DrawingGroup.GetSizeAsync method in the TX Sheet Control .NET API: Performs an operation on this document without activating another worksheet.
- [DrawingGroup.Id Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawinggroup/id-property/llms-full.txt): DrawingGroup.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.
- [DrawingGroup.MoveToAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawinggroup/movetoasync-method/llms-full.txt): DrawingGroup.MoveToAsync method in the TX Sheet Control .NET API: Performs an operation on this document without activating another worksheet.
- [DrawingGroup.RemoveAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawinggroup/removeasync-method/llms-full.txt): DrawingGroup.RemoveAsync method in the TX Sheet Control .NET API: Performs an operation on this document without activating another worksheet.
- [DrawingGroup.ResizeAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawinggroup/resizeasync-method/llms-full.txt): DrawingGroup.ResizeAsync method in the TX Sheet Control .NET API: Performs an operation on this document without activating another worksheet.
- [DrawingGroup.RotateAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawinggroup/rotateasync-method/llms-full.txt): DrawingGroup.RotateAsync method in the TX Sheet Control .NET API: Performs an operation on this document without activating another worksheet.
- [DrawingGroup.SendBackwardAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawinggroup/sendbackwardasync-method/llms-full.txt): DrawingGroup.SendBackwardAsync method in the TX Sheet Control .NET API: Performs an operation on this document without activating another worksheet.
- [DrawingGroup.SendToBackAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawinggroup/sendtobackasync-method/llms-full.txt): DrawingGroup.SendToBackAsync method in the TX Sheet Control .NET API: Performs an operation on this document without activating another worksheet.
- [DrawingGroup.UngroupAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawinggroup/ungroupasync-method/llms-full.txt): DrawingGroup.UngroupAsync method in the TX Sheet Control .NET API: Performs an operation on this document without activating another worksheet.

---

## Nearby

- **Previous:** [DrawingCollection.AddBarcodeAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawingcollection/addbarcodeasync-method/llms-full.txt)
- **Next:** [DrawingGroup.BringForwardAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/drawinggroup/bringforwardasync-method/llms-full.txt)
