---
title: "Enum TextFormat"
url: "https://reference.aspose.com/email/net/aspose.email.personalinfo/textformat/"
product: "Aspose.Email for .NET API Reference"
description: "Aspose.Email.PersonalInfo.TextFormat enum. Specifies the format of text content such as contact notes"
---

## TextFormat enumeration

Specifies the format of text content, such as contact notes.

```csharp
public enum TextFormat
```

### Values

| Name | Value | Description |
| --- | --- | --- |
| Text | `0` | The plain text format. Text content is stored and displayed as plain text without any formatting. |
| Html | `1` | The HTML format. Text content is stored as HTML and can include formatting tags. |

## Remarks

Use the [`NotesFormat`](../contact/notesformat/) property to specify whether text content should be treated as plain text or HTML. This affects how the text is rendered and displayed in contact management applications.

## Examples

[C#]

```csharp
var contact = new Contact();
contact.GivenName = "John";
contact.Surname = "Doe";

// Set notes as plain text
contact.Notes = "Regular text notes";
contact.NotesFormat = TextFormat.Text;

// Set notes as HTML
contact.Notes = "<p>HTML <strong>formatted</strong> notes</p>";
contact.NotesFormat = TextFormat.Html;
```

### See Also

* namespace [Aspose.Email.PersonalInfo](../../aspose.email.personalinfo/)
* assembly [Aspose.Email](../../)


