# IFormattedText.Drawings Property

> Gets a collection of all drawings in the text part. The property value is an object of the type DataVisualization.DrawingCollection. The collection can be used to get or to alter a drawing's attributes and to add drawings to or to remove drawings.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 23.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl > IFormattedText.Drawings Property
- **512 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/iformattedtext/drawings-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/iformattedtext/drawings-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/iformattedtext/drawings-property/llms-full.txt

---

### Description

Gets a collection of all drawings in the text part. The property value is an object of the type [DataVisualization.DrawingCollection](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-datavisualization/drawingcollection/llms-full.txt). The collection can be used to get or to alter a drawing's attributes and to add drawings to or to remove drawings.

### Syntax

```csharp
DrawingCollection Drawings { get; }
```

```vbnet
ReadOnly Property Drawings As DrawingCollection
```

### Examples

The following example applies bold formatting through the iformatted text's selection by using `IFormattedText.Drawings`.

```csharp
Selection formattedSelection = iFormattedText.Selection;
formattedSelection.Bold = true;
iFormattedText.Selection = formattedSelection;

foreach (TXTextControl.DataVisualization.DrawingFrame drawingFrame in iFormattedText.Drawings)
{
    drawingFrame.DescriptiveText = "Quarterly results";
}
```

```vbnet
Dim formattedSelection As Selection = iFormattedText.Selection
formattedSelection.Bold = True
iFormattedText.Selection = formattedSelection

For Each drawingFrame As TXTextControl.DataVisualization.DrawingFrame In iFormattedText.Drawings
    drawingFrame.DescriptiveText = "Quarterly results"
Next
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [IFormattedText.DocumentTargets Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/iformattedtext/documenttargets-property/llms-full.txt)
- **Next:** [IFormattedText.EditableRegions Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/iformattedtext/editableregions-property/llms-full.txt)
