# EmbeddedFile.Description Property

> Gets or sets an optional file description. It is null, if the file has no description.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 29.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 > EmbeddedFile.Description Property
- **675 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/embeddedfile/description-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/embeddedfile/description-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/embeddedfile/description-property/llms-full.txt

---

### Description

Gets or sets an optional file description. It is null, if the file has no description.

### Syntax

```csharp
public string Description { get; set; }
```

```vbnet
Public Property Description As String
```

### Examples

The following example configures a PDF attachment before embedding it in a WordprocessingML document by using `EmbeddedFile.Description`.

```csharp
EmbeddedFile embeddedFile = new("terms.pdf", @"Attachments\terms.pdf", "application/pdf");

embeddedFile.Description = "Contract terms and conditions";
if (!string.IsNullOrWhiteSpace(embeddedFile.Description))
{
    Console.WriteLine($"Description: {embeddedFile.Description}");
}

SaveSettings saveSettings = new() { EmbeddedFiles = new[] { embeddedFile } };
textControl.Save("contract-with-attachment.docx", StreamType.WordprocessingML, saveSettings);
```

```vbnet
Dim embeddedFile As New EmbeddedFile("terms.pdf", "Attachments\terms.pdf", "application/pdf")

embeddedFile.Description = "Contract terms and conditions"
If Not String.IsNullOrWhiteSpace(embeddedFile.Description) Then
    Console.WriteLine($"Description: {embeddedFile.Description}")
End If

Dim saveSettings As New SaveSettings() With { .EmbeddedFiles = New EmbeddedFile() { embeddedFile } }
textControl.Save("contract-with-attachment.docx", StreamType.WordprocessingML, saveSettings)
```

---

## Nearby

- **Previous:** [EmbeddedFile.Data Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/embeddedfile/data-property/llms-full.txt)
- **Next:** [EmbeddedFile.FileName Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/embeddedfile/filename-property/llms-full.txt)
