# ServerTextControl.Images Property

> Gets a collection of all images contained in the main text of the document. The property's value is an object of the type ImageCollection.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 12.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.Server.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Server.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > ServerTextControl.Images Property
- **455 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/servertextcontrol/images-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/servertextcontrol/images-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/servertextcontrol/images-property/llms-full.txt

---

### Description

Gets a collection of all images contained in the main text of the document. The property's value is an object of the type [ImageCollection](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/imagecollection/llms-full.txt).

### Syntax

```csharp
public ImageCollection Images { get; }
```

```vbnet
Public ReadOnly Property Images As ImageCollection
```

### Examples

The following example gives every document image an accessible description before export.

```csharp
foreach (TXTextControl.Image image in textControl.Images)
{
    if (string.IsNullOrWhiteSpace(image.DescriptiveText))
    {
        image.DescriptiveText = "Document illustration";
    }
}
```

```vbnet
For Each image As TXTextControl.Image In textControl.Images
    If String.IsNullOrWhiteSpace(image.DescriptiveText) Then
        image.DescriptiveText = "Document illustration"
    End If
Next
```

### Limitations

Runtime only.

Read only.

---

## Nearby

- **Previous:** [ServerTextControl.ImageDeleted Event](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/servertextcontrol/imagedeleted-event/llms-full.txt)
- **Next:** [ServerTextControl.InlineStyles Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/servertextcontrol/inlinestyles-property/llms-full.txt)
