Enum TextFormat
Contents
[
Hide
]TextFormat enumeration
Specifies the format of text content, such as contact notes.
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 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#]
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
- assembly Aspose.Email